diff --git a/.gitignore b/.gitignore index ab0c0c1..f9b2e94 100644 --- a/.gitignore +++ b/.gitignore @@ -1,33 +1,33 @@ -# Miscellaneous -*.class -*.log -*.pyc -*.swp -.DS_Store -.atom/ -.buildlog/ -.history -.svn/ -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 -# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. -/pubspec.lock -**/doc/api/ -.dart_tool/ -.packages -build/ - -**/.vs/** +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ +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 +# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. +/pubspec.lock +**/doc/api/ +.dart_tool/ +.packages +build/ + +**/.vs/** cmake-build-** \ No newline at end of file diff --git a/.metadata b/.metadata index a0ddbc9..c884735 100644 --- a/.metadata +++ b/.metadata @@ -1,36 +1,36 @@ -# 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. - -version: - revision: e3c29ec00c9c825c891d75054c63fcc46454dca1 - channel: stable - -project_type: plugin - -# Tracks metadata for the flutter migrate command -migration: - platforms: - - platform: root - create_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1 - base_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1 - - platform: linux - create_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1 - base_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1 - - platform: macos - create_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1 - base_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1 - - platform: windows - create_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1 - base_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1 - - # 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' +# 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. + +version: + revision: e3c29ec00c9c825c891d75054c63fcc46454dca1 + channel: stable + +project_type: plugin + +# Tracks metadata for the flutter migrate command +migration: + platforms: + - platform: root + create_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1 + base_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1 + - platform: linux + create_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1 + base_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1 + - platform: macos + create_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1 + base_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1 + - platform: windows + create_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1 + base_revision: e3c29ec00c9c825c891d75054c63fcc46454dca1 + + # 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/CHANGELOG.md b/CHANGELOG.md index c439520..3d48c3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,33 +1,33 @@ -## 2.0.1 - -Fixed non-ascii keys on linux - -## 2.0.0 - -Keyboard events are now platform-aware and no longer require a correct remapping table in the backend to work properly. - -Backend initialization is now explicit and controlled by user. - -## 1.1.2 - -Fixed media keys on linux+macos. - -## 1.1.1 - -Fixed crash when moving mouse on linux - -## 1.1.0 - -Added mouse events support - -## 1.0.2 - -* Fix example - -## 1.0.1 - -* Update example - -## 1.0.0 - -* Initial release +## 2.0.1 + +Fixed non-ascii keys on linux + +## 2.0.0 + +Keyboard events are now platform-aware and no longer require a correct remapping table in the backend to work properly. + +Backend initialization is now explicit and controlled by user. + +## 1.1.2 + +Fixed media keys on linux+macos. + +## 1.1.1 + +Fixed crash when moving mouse on linux + +## 1.1.0 + +Added mouse events support + +## 1.0.2 + +* Fix example + +## 1.0.1 + +* Update example + +## 1.0.0 + +* Initial release diff --git a/LICENSE b/LICENSE index 7895608..8da0bef 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,21 @@ -The MIT License (MIT) -Copyright (c) 2022 localcc - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without restriction, -including without limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of the Software, -and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +The MIT License (MIT) +Copyright (c) 2022 localcc + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without restriction, +including without limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of the Software, +and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE \ No newline at end of file diff --git a/README.md b/README.md index 7f71325..8a7430d 100644 --- a/README.md +++ b/README.md @@ -1,89 +1,89 @@ -# hid_listener - -HidListener is a library that allows you to listen to hid events cross-platform. - - -## Windows - -Add this into your `main.cpp` file - -```cpp -#include -``` - -and add this inside `wWinMain` funciton - -```cpp -HidListener listener; -``` - -## MacOS - -Add this into your `MainFlutterWindow.swift` file - -```swift -import hid_listener -``` - -and add this inside `MainFlutterWindow` class - -```swift -let listener = HidListener() -``` - -The file should now look something like this: - -```swift -... -import hid_listener - -class MainFlutterWindow: NSWindow { - let listener = HidListener() -... -``` - -## Linux - -Add this into your `main.cc` file - -```cpp -#include -``` - -and add this inside `main` funciton - -```cpp -HidListener listener; -``` - -## Dart - -To use the library, you first have to initialize the listener backend: - -```dart -if (getListenerBackend() != null) { - if (!getListenerBackend().initialize()) { - print("Failed to initialize listener backend"); - } -} else { - print("No listener backend for this platform") -} -``` - -After successfully initializing the listener backend, register listeners like this: - -```dart -final keyboardListenerId = getListenerBackend()!.addKeyboardListener((event) { - print("${event.logicalKey.debugName}") -}); - -getListenerBackend()!.addMouseListener((event) { ... }) -``` - -Removing listeners can be done using `remove(keyboard/Mouse)Listener` method call: - -```dart -getListenerBackend()!.removeKeyboardListener(keyboardListenerId); -``` - - +# hid_listener + +HidListener is a library that allows you to listen to hid events cross-platform. + + +## Windows + +Add this into your `main.cpp` file + +```cpp +#include +``` + +and add this inside `wWinMain` funciton + +```cpp +HidListener listener; +``` + +## MacOS + +Add this into your `MainFlutterWindow.swift` file + +```swift +import hid_listener +``` + +and add this inside `MainFlutterWindow` class + +```swift +let listener = HidListener() +``` + +The file should now look something like this: + +```swift +... +import hid_listener + +class MainFlutterWindow: NSWindow { + let listener = HidListener() +... +``` + +## Linux + +Add this into your `main.cc` file + +```cpp +#include +``` + +and add this inside `main` funciton + +```cpp +HidListener listener; +``` + +## Dart + +To use the library, you first have to initialize the listener backend: + +```dart +if (getListenerBackend() != null) { + if (!getListenerBackend().initialize()) { + print("Failed to initialize listener backend"); + } +} else { + print("No listener backend for this platform") +} +``` + +After successfully initializing the listener backend, register listeners like this: + +```dart +final keyboardListenerId = getListenerBackend()!.addKeyboardListener((event) { + print("${event.logicalKey.debugName}") +}); + +getListenerBackend()!.addMouseListener((event) { ... }) +``` + +Removing listeners can be done using `remove(keyboard/Mouse)Listener` method call: + +```dart +getListenerBackend()!.removeKeyboardListener(keyboardListenerId); +``` + + diff --git a/analysis_options.yaml b/analysis_options.yaml index a5744c1..a66c323 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:flutter_lints/flutter.yaml - -# Additional information about this file can be found at -# https://dart.dev/guides/language/analysis-options +include: package:flutter_lints/flutter.yaml + +# Additional information about this file can be found at +# https://dart.dev/guides/language/analysis-options diff --git a/example/.gitignore b/example/.gitignore index 24476c5..70ccb97 100644 --- a/example/.gitignore +++ b/example/.gitignore @@ -1,44 +1,44 @@ -# Miscellaneous -*.class -*.log -*.pyc -*.swp -.DS_Store -.atom/ -.buildlog/ -.history -.svn/ -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 -.packages -.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 +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ +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 +.packages +.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/example/README.md b/example/README.md index ea4fb9f..ec5e01a 100644 --- a/example/README.md +++ b/example/README.md @@ -1,16 +1,16 @@ -# hid_listener_example - -Demonstrates how to use the hid_listener plugin. - -## Getting Started - -This project is a starting point for a Flutter application. - -A few resources to get you started if this is your first Flutter project: - -- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) -- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) - -For help getting started with Flutter development, view the -[online documentation](https://docs.flutter.dev/), which offers tutorials, -samples, guidance on mobile development, and a full API reference. +# hid_listener_example + +Demonstrates how to use the hid_listener plugin. + +## Getting Started + +This project is a starting point for a Flutter application. + +A few resources to get you started if this is your first Flutter project: + +- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) +- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) + +For help getting started with Flutter development, view the +[online documentation](https://docs.flutter.dev/), which offers tutorials, +samples, guidance on mobile development, and a full API reference. diff --git a/example/analysis_options.yaml b/example/analysis_options.yaml index 61b6c4d..a7acf24 100644 --- a/example/analysis_options.yaml +++ b/example/analysis_options.yaml @@ -1,29 +1,29 @@ -# This file configures the analyzer, which statically analyzes Dart code to -# check for errors, warnings, and lints. -# -# The issues identified by the analyzer are surfaced in the UI of Dart-enabled -# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be -# invoked from the command line by running `flutter analyze`. - -# The following line activates a set of recommended lints for Flutter apps, -# packages, and plugins designed to encourage good coding practices. -include: package:flutter_lints/flutter.yaml - -linter: - # The lint rules applied to this project can be customized in the - # section below to disable rules from the `package:flutter_lints/flutter.yaml` - # included above or to enable additional rules. A list of all available lints - # and their documentation is published at - # https://dart-lang.github.io/linter/lints/index.html. - # - # Instead of disabling a lint rule for the entire project in the - # section below, it can also be suppressed for a single line of code - # or a specific dart file by using the `// ignore: name_of_lint` and - # `// ignore_for_file: name_of_lint` syntax on the line or in the file - # producing the lint. - rules: - # avoid_print: false # Uncomment to disable the `avoid_print` rule - # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule - -# Additional information about this file can be found at -# https://dart.dev/guides/language/analysis-options +# This file configures the analyzer, which statically analyzes Dart code to +# check for errors, warnings, and lints. +# +# The issues identified by the analyzer are surfaced in the UI of Dart-enabled +# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be +# invoked from the command line by running `flutter analyze`. + +# The following line activates a set of recommended lints for Flutter apps, +# packages, and plugins designed to encourage good coding practices. +include: package:flutter_lints/flutter.yaml + +linter: + # The lint rules applied to this project can be customized in the + # section below to disable rules from the `package:flutter_lints/flutter.yaml` + # included above or to enable additional rules. A list of all available lints + # and their documentation is published at + # https://dart-lang.github.io/linter/lints/index.html. + # + # Instead of disabling a lint rule for the entire project in the + # section below, it can also be suppressed for a single line of code + # or a specific dart file by using the `// ignore: name_of_lint` and + # `// ignore_for_file: name_of_lint` syntax on the line or in the file + # producing the lint. + rules: + # avoid_print: false # Uncomment to disable the `avoid_print` rule + # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule + +# Additional information about this file can be found at +# https://dart.dev/guides/language/analysis-options diff --git a/example/lib/main.dart b/example/lib/main.dart index 538b857..82c88c0 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -1,48 +1,53 @@ -import 'package:flutter/material.dart'; -import 'package:flutter/services.dart'; -import 'package:hid_listener/hid_listener.dart'; - -void listener(RawKeyEvent event) { - print( - "${event is RawKeyDownEvent} ${event.logicalKey.debugName} ${event.isShiftPressed} ${event.isAltPressed} ${event.isControlPressed}"); -} - -void mouseListener(MouseEvent event) { - print("${event}"); -} - -var registerResult = ""; - -void main() { - if (!getListenerBackend()!.initialize()) { - print("Failed to initialize listener backend"); - } - - getListenerBackend()!.addKeyboardListener(listener); - getListenerBackend()!.addMouseListener(mouseListener); - - runApp(const MyApp()); -} - -class MyApp extends StatefulWidget { - const MyApp({super.key}); - - @override - State createState() => _MyAppState(); -} - -class _MyAppState extends State { - @override - Widget build(BuildContext context) { - return MaterialApp( - home: Scaffold( - appBar: AppBar( - title: const Text('Plugin example app'), - ), - body: Center( - child: Text(registerResult), - ), - ), - ); - } -} +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:hid_listener/hid_listener.dart'; + +void listener(RawKeyEvent event) { + print( + "${event is RawKeyDownEvent} ${event.logicalKey.debugName} ${event.isShiftPressed} ${event.isAltPressed} ${event.isControlPressed}"); +} + +void mouseListener(MouseEvent event) { + if (event is MouseButtonEvent) { + print("Button: ${event.type} (${event.x}, ${event.y})"); + } + // else { + // print("Button: $event (${event.x}, ${event.y})"); + // } +} + +var registerResult = ""; + +void main() { + if (!getListenerBackend()!.initialize()) { + print("Failed to initialize listener backend"); + } + + getListenerBackend()!.addKeyboardListener(listener); + getListenerBackend()!.addMouseListener(mouseListener); + + runApp(const MyApp()); +} + +class MyApp extends StatefulWidget { + const MyApp({super.key}); + + @override + State createState() => _MyAppState(); +} + +class _MyAppState extends State { + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar( + title: const Text('Plugin example app'), + ), + body: Center( + child: Text(registerResult), + ), + ), + ); + } +} diff --git a/example/linux/.gitignore b/example/linux/.gitignore index d3896c9..c7ea17f 100644 --- a/example/linux/.gitignore +++ b/example/linux/.gitignore @@ -1 +1 @@ -flutter/ephemeral +flutter/ephemeral diff --git a/example/linux/CMakeLists.txt b/example/linux/CMakeLists.txt index 04fb107..69bade1 100644 --- a/example/linux/CMakeLists.txt +++ b/example/linux/CMakeLists.txt @@ -1,138 +1,138 @@ -# Project-level configuration. -cmake_minimum_required(VERSION 3.10) -project(runner LANGUAGES CXX) - -# The name of the executable created for the application. Change this to change -# the on-disk name of your application. -set(BINARY_NAME "hid_listener_example") -# The unique GTK application identifier for this application. See: -# https://wiki.gnome.org/HowDoI/ChooseApplicationID -set(APPLICATION_ID "com.example.hid_listener") - -# Explicitly opt in to modern CMake behaviors to avoid warnings with recent -# versions of CMake. -cmake_policy(SET CMP0063 NEW) - -# Load bundled libraries from the lib/ directory relative to the binary. -set(CMAKE_INSTALL_RPATH "$ORIGIN/lib") - -# Root filesystem for cross-building. -if(FLUTTER_TARGET_PLATFORM_SYSROOT) - set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT}) - set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT}) - set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) - set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) - set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) - set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) -endif() - -# Define build configuration options. -if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) - set(CMAKE_BUILD_TYPE "Debug" CACHE - STRING "Flutter build mode" FORCE) - set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS - "Debug" "Profile" "Release") -endif() - -# Compilation settings that should be applied to most targets. -# -# Be cautious about adding new options here, as plugins use this function by -# default. In most cases, you should add new options to specific targets instead -# of modifying this function. -function(APPLY_STANDARD_SETTINGS TARGET) - target_compile_features(${TARGET} PUBLIC cxx_std_14) - target_compile_options(${TARGET} PRIVATE -Wall -Werror) - target_compile_options(${TARGET} PRIVATE "$<$>:-O3>") - target_compile_definitions(${TARGET} PRIVATE "$<$>:NDEBUG>") -endfunction() - -# Flutter library and tool build rules. -set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") -add_subdirectory(${FLUTTER_MANAGED_DIR}) - -# System-level dependencies. -find_package(PkgConfig REQUIRED) -pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) - -add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}") - -# Define the application target. To change its name, change BINARY_NAME above, -# not the value here, or `flutter run` will no longer work. -# -# Any new source files that you add to the application should be added here. -add_executable(${BINARY_NAME} - "main.cc" - "my_application.cc" - "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" -) - -# Apply the standard set of build settings. This can be removed for applications -# that need different build settings. -apply_standard_settings(${BINARY_NAME}) - -# Add dependency libraries. Add any application-specific dependencies here. -target_link_libraries(${BINARY_NAME} PRIVATE flutter) -target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK) - -# Run the Flutter tool portions of the build. This must not be removed. -add_dependencies(${BINARY_NAME} flutter_assemble) - -# Only the install-generated bundle's copy of the executable will launch -# correctly, since the resources must in the right relative locations. To avoid -# people trying to run the unbundled copy, put it in a subdirectory instead of -# the default top-level location. -set_target_properties(${BINARY_NAME} - PROPERTIES - RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run" -) - -# Generated plugin build rules, which manage building the plugins and adding -# them to the application. -include(flutter/generated_plugins.cmake) - - -# === Installation === -# By default, "installing" just makes a relocatable bundle in the build -# directory. -set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle") -if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) - set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) -endif() - -# Start with a clean build bundle directory every time. -install(CODE " - file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\") - " COMPONENT Runtime) - -set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") -set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib") - -install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" - COMPONENT Runtime) - -install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" - COMPONENT Runtime) - -install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" - COMPONENT Runtime) - -foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES}) - install(FILES "${bundled_library}" - DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" - COMPONENT Runtime) -endforeach(bundled_library) - -# Fully re-copy the assets directory on each build to avoid having stale files -# from a previous install. -set(FLUTTER_ASSET_DIR_NAME "flutter_assets") -install(CODE " - file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") - " COMPONENT Runtime) -install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" - DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) - -# Install the AOT library on non-Debug builds only. -if(NOT CMAKE_BUILD_TYPE MATCHES "Debug") - install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" - COMPONENT Runtime) -endif() +# Project-level configuration. +cmake_minimum_required(VERSION 3.10) +project(runner LANGUAGES CXX) + +# The name of the executable created for the application. Change this to change +# the on-disk name of your application. +set(BINARY_NAME "hid_listener_example") +# The unique GTK application identifier for this application. See: +# https://wiki.gnome.org/HowDoI/ChooseApplicationID +set(APPLICATION_ID "com.example.hid_listener") + +# Explicitly opt in to modern CMake behaviors to avoid warnings with recent +# versions of CMake. +cmake_policy(SET CMP0063 NEW) + +# Load bundled libraries from the lib/ directory relative to the binary. +set(CMAKE_INSTALL_RPATH "$ORIGIN/lib") + +# Root filesystem for cross-building. +if(FLUTTER_TARGET_PLATFORM_SYSROOT) + set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT}) + set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT}) + set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) + set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) + set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) + set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +endif() + +# Define build configuration options. +if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + set(CMAKE_BUILD_TYPE "Debug" CACHE + STRING "Flutter build mode" FORCE) + set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS + "Debug" "Profile" "Release") +endif() + +# Compilation settings that should be applied to most targets. +# +# Be cautious about adding new options here, as plugins use this function by +# default. In most cases, you should add new options to specific targets instead +# of modifying this function. +function(APPLY_STANDARD_SETTINGS TARGET) + target_compile_features(${TARGET} PUBLIC cxx_std_14) + target_compile_options(${TARGET} PRIVATE -Wall -Werror) + target_compile_options(${TARGET} PRIVATE "$<$>:-O3>") + target_compile_definitions(${TARGET} PRIVATE "$<$>:NDEBUG>") +endfunction() + +# Flutter library and tool build rules. +set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") +add_subdirectory(${FLUTTER_MANAGED_DIR}) + +# System-level dependencies. +find_package(PkgConfig REQUIRED) +pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) + +add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}") + +# Define the application target. To change its name, change BINARY_NAME above, +# not the value here, or `flutter run` will no longer work. +# +# Any new source files that you add to the application should be added here. +add_executable(${BINARY_NAME} + "main.cc" + "my_application.cc" + "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" +) + +# Apply the standard set of build settings. This can be removed for applications +# that need different build settings. +apply_standard_settings(${BINARY_NAME}) + +# Add dependency libraries. Add any application-specific dependencies here. +target_link_libraries(${BINARY_NAME} PRIVATE flutter) +target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK) + +# Run the Flutter tool portions of the build. This must not be removed. +add_dependencies(${BINARY_NAME} flutter_assemble) + +# Only the install-generated bundle's copy of the executable will launch +# correctly, since the resources must in the right relative locations. To avoid +# people trying to run the unbundled copy, put it in a subdirectory instead of +# the default top-level location. +set_target_properties(${BINARY_NAME} + PROPERTIES + RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run" +) + +# Generated plugin build rules, which manage building the plugins and adding +# them to the application. +include(flutter/generated_plugins.cmake) + + +# === Installation === +# By default, "installing" just makes a relocatable bundle in the build +# directory. +set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle") +if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) +endif() + +# Start with a clean build bundle directory every time. +install(CODE " + file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\") + " COMPONENT Runtime) + +set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") +set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib") + +install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES}) + install(FILES "${bundled_library}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endforeach(bundled_library) + +# Fully re-copy the assets directory on each build to avoid having stale files +# from a previous install. +set(FLUTTER_ASSET_DIR_NAME "flutter_assets") +install(CODE " + file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") + " COMPONENT Runtime) +install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" + DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) + +# Install the AOT library on non-Debug builds only. +if(NOT CMAKE_BUILD_TYPE MATCHES "Debug") + install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endif() diff --git a/example/linux/flutter/CMakeLists.txt b/example/linux/flutter/CMakeLists.txt index d5bd016..27860e8 100644 --- a/example/linux/flutter/CMakeLists.txt +++ b/example/linux/flutter/CMakeLists.txt @@ -1,88 +1,88 @@ -# This file controls Flutter-level build steps. It should not be edited. -cmake_minimum_required(VERSION 3.10) - -set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") - -# Configuration provided via flutter tool. -include(${EPHEMERAL_DIR}/generated_config.cmake) - -# TODO: Move the rest of this into files in ephemeral. See -# https://github.com/flutter/flutter/issues/57146. - -# Serves the same purpose as list(TRANSFORM ... PREPEND ...), -# which isn't available in 3.10. -function(list_prepend LIST_NAME PREFIX) - set(NEW_LIST "") - foreach(element ${${LIST_NAME}}) - list(APPEND NEW_LIST "${PREFIX}${element}") - endforeach(element) - set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE) -endfunction() - -# === Flutter Library === -# System-level dependencies. -find_package(PkgConfig REQUIRED) -pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) -pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0) -pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0) - -set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so") - -# Published to parent scope for install step. -set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) -set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) -set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) -set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE) - -list(APPEND FLUTTER_LIBRARY_HEADERS - "fl_basic_message_channel.h" - "fl_binary_codec.h" - "fl_binary_messenger.h" - "fl_dart_project.h" - "fl_engine.h" - "fl_json_message_codec.h" - "fl_json_method_codec.h" - "fl_message_codec.h" - "fl_method_call.h" - "fl_method_channel.h" - "fl_method_codec.h" - "fl_method_response.h" - "fl_plugin_registrar.h" - "fl_plugin_registry.h" - "fl_standard_message_codec.h" - "fl_standard_method_codec.h" - "fl_string_codec.h" - "fl_value.h" - "fl_view.h" - "flutter_linux.h" -) -list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/") -add_library(flutter INTERFACE) -target_include_directories(flutter INTERFACE - "${EPHEMERAL_DIR}" -) -target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}") -target_link_libraries(flutter INTERFACE - PkgConfig::GTK - PkgConfig::GLIB - PkgConfig::GIO -) -add_dependencies(flutter flutter_assemble) - -# === Flutter tool backend === -# _phony_ is a non-existent file to force this command to run every time, -# since currently there's no way to get a full input/output list from the -# flutter tool. -add_custom_command( - OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} - ${CMAKE_CURRENT_BINARY_DIR}/_phony_ - COMMAND ${CMAKE_COMMAND} -E env - ${FLUTTER_TOOL_ENVIRONMENT} - "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" - ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} - VERBATIM -) -add_custom_target(flutter_assemble DEPENDS - "${FLUTTER_LIBRARY}" - ${FLUTTER_LIBRARY_HEADERS} -) +# This file controls Flutter-level build steps. It should not be edited. +cmake_minimum_required(VERSION 3.10) + +set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") + +# Configuration provided via flutter tool. +include(${EPHEMERAL_DIR}/generated_config.cmake) + +# TODO: Move the rest of this into files in ephemeral. See +# https://github.com/flutter/flutter/issues/57146. + +# Serves the same purpose as list(TRANSFORM ... PREPEND ...), +# which isn't available in 3.10. +function(list_prepend LIST_NAME PREFIX) + set(NEW_LIST "") + foreach(element ${${LIST_NAME}}) + list(APPEND NEW_LIST "${PREFIX}${element}") + endforeach(element) + set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE) +endfunction() + +# === Flutter Library === +# System-level dependencies. +find_package(PkgConfig REQUIRED) +pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) +pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0) +pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0) + +set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so") + +# Published to parent scope for install step. +set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) +set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) +set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) +set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE) + +list(APPEND FLUTTER_LIBRARY_HEADERS + "fl_basic_message_channel.h" + "fl_binary_codec.h" + "fl_binary_messenger.h" + "fl_dart_project.h" + "fl_engine.h" + "fl_json_message_codec.h" + "fl_json_method_codec.h" + "fl_message_codec.h" + "fl_method_call.h" + "fl_method_channel.h" + "fl_method_codec.h" + "fl_method_response.h" + "fl_plugin_registrar.h" + "fl_plugin_registry.h" + "fl_standard_message_codec.h" + "fl_standard_method_codec.h" + "fl_string_codec.h" + "fl_value.h" + "fl_view.h" + "flutter_linux.h" +) +list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/") +add_library(flutter INTERFACE) +target_include_directories(flutter INTERFACE + "${EPHEMERAL_DIR}" +) +target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}") +target_link_libraries(flutter INTERFACE + PkgConfig::GTK + PkgConfig::GLIB + PkgConfig::GIO +) +add_dependencies(flutter flutter_assemble) + +# === Flutter tool backend === +# _phony_ is a non-existent file to force this command to run every time, +# since currently there's no way to get a full input/output list from the +# flutter tool. +add_custom_command( + OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} + ${CMAKE_CURRENT_BINARY_DIR}/_phony_ + COMMAND ${CMAKE_COMMAND} -E env + ${FLUTTER_TOOL_ENVIRONMENT} + "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" + ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} + VERBATIM +) +add_custom_target(flutter_assemble DEPENDS + "${FLUTTER_LIBRARY}" + ${FLUTTER_LIBRARY_HEADERS} +) diff --git a/example/linux/main.cc b/example/linux/main.cc index 9bb14ef..9822152 100644 --- a/example/linux/main.cc +++ b/example/linux/main.cc @@ -1,10 +1,10 @@ -#include "my_application.h" - -#include - -int main(int argc, char **argv) -{ - HidListener listener; - g_autoptr(MyApplication) app = my_application_new(); - return g_application_run(G_APPLICATION(app), argc, argv); -} +#include "my_application.h" + +#include + +int main(int argc, char **argv) +{ + HidListener listener; + g_autoptr(MyApplication) app = my_application_new(); + return g_application_run(G_APPLICATION(app), argc, argv); +} diff --git a/example/linux/my_application.cc b/example/linux/my_application.cc index ab27c15..ff139bb 100644 --- a/example/linux/my_application.cc +++ b/example/linux/my_application.cc @@ -1,104 +1,104 @@ -#include "my_application.h" - -#include -#ifdef GDK_WINDOWING_X11 -#include -#endif - -#include "flutter/generated_plugin_registrant.h" - -struct _MyApplication { - GtkApplication parent_instance; - char** dart_entrypoint_arguments; -}; - -G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION) - -// Implements GApplication::activate. -static void my_application_activate(GApplication* application) { - MyApplication* self = MY_APPLICATION(application); - GtkWindow* window = - GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application))); - - // Use a header bar when running in GNOME as this is the common style used - // by applications and is the setup most users will be using (e.g. Ubuntu - // desktop). - // If running on X and not using GNOME then just use a traditional title bar - // in case the window manager does more exotic layout, e.g. tiling. - // If running on Wayland assume the header bar will work (may need changing - // if future cases occur). - gboolean use_header_bar = TRUE; -#ifdef GDK_WINDOWING_X11 - GdkScreen* screen = gtk_window_get_screen(window); - if (GDK_IS_X11_SCREEN(screen)) { - const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen); - if (g_strcmp0(wm_name, "GNOME Shell") != 0) { - use_header_bar = FALSE; - } - } -#endif - if (use_header_bar) { - GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new()); - gtk_widget_show(GTK_WIDGET(header_bar)); - gtk_header_bar_set_title(header_bar, "hid_listener_example"); - gtk_header_bar_set_show_close_button(header_bar, TRUE); - gtk_window_set_titlebar(window, GTK_WIDGET(header_bar)); - } else { - gtk_window_set_title(window, "hid_listener_example"); - } - - gtk_window_set_default_size(window, 1280, 720); - gtk_widget_show(GTK_WIDGET(window)); - - g_autoptr(FlDartProject) project = fl_dart_project_new(); - fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments); - - FlView* view = fl_view_new(project); - gtk_widget_show(GTK_WIDGET(view)); - gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view)); - - fl_register_plugins(FL_PLUGIN_REGISTRY(view)); - - gtk_widget_grab_focus(GTK_WIDGET(view)); -} - -// Implements GApplication::local_command_line. -static gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) { - MyApplication* self = MY_APPLICATION(application); - // Strip out the first argument as it is the binary name. - self->dart_entrypoint_arguments = g_strdupv(*arguments + 1); - - g_autoptr(GError) error = nullptr; - if (!g_application_register(application, nullptr, &error)) { - g_warning("Failed to register: %s", error->message); - *exit_status = 1; - return TRUE; - } - - g_application_activate(application); - *exit_status = 0; - - return TRUE; -} - -// Implements GObject::dispose. -static void my_application_dispose(GObject* object) { - MyApplication* self = MY_APPLICATION(object); - g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev); - G_OBJECT_CLASS(my_application_parent_class)->dispose(object); -} - -static void my_application_class_init(MyApplicationClass* klass) { - G_APPLICATION_CLASS(klass)->activate = my_application_activate; - G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line; - G_OBJECT_CLASS(klass)->dispose = my_application_dispose; -} - -static void my_application_init(MyApplication* self) {} - -MyApplication* my_application_new() { - return MY_APPLICATION(g_object_new(my_application_get_type(), - "application-id", APPLICATION_ID, - "flags", G_APPLICATION_NON_UNIQUE, - nullptr)); -} +#include "my_application.h" + +#include +#ifdef GDK_WINDOWING_X11 +#include +#endif + +#include "flutter/generated_plugin_registrant.h" + +struct _MyApplication { + GtkApplication parent_instance; + char** dart_entrypoint_arguments; +}; + +G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION) + +// Implements GApplication::activate. +static void my_application_activate(GApplication* application) { + MyApplication* self = MY_APPLICATION(application); + GtkWindow* window = + GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application))); + + // Use a header bar when running in GNOME as this is the common style used + // by applications and is the setup most users will be using (e.g. Ubuntu + // desktop). + // If running on X and not using GNOME then just use a traditional title bar + // in case the window manager does more exotic layout, e.g. tiling. + // If running on Wayland assume the header bar will work (may need changing + // if future cases occur). + gboolean use_header_bar = TRUE; +#ifdef GDK_WINDOWING_X11 + GdkScreen* screen = gtk_window_get_screen(window); + if (GDK_IS_X11_SCREEN(screen)) { + const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen); + if (g_strcmp0(wm_name, "GNOME Shell") != 0) { + use_header_bar = FALSE; + } + } +#endif + if (use_header_bar) { + GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new()); + gtk_widget_show(GTK_WIDGET(header_bar)); + gtk_header_bar_set_title(header_bar, "hid_listener_example"); + gtk_header_bar_set_show_close_button(header_bar, TRUE); + gtk_window_set_titlebar(window, GTK_WIDGET(header_bar)); + } else { + gtk_window_set_title(window, "hid_listener_example"); + } + + gtk_window_set_default_size(window, 1280, 720); + gtk_widget_show(GTK_WIDGET(window)); + + g_autoptr(FlDartProject) project = fl_dart_project_new(); + fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments); + + FlView* view = fl_view_new(project); + gtk_widget_show(GTK_WIDGET(view)); + gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view)); + + fl_register_plugins(FL_PLUGIN_REGISTRY(view)); + + gtk_widget_grab_focus(GTK_WIDGET(view)); +} + +// Implements GApplication::local_command_line. +static gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) { + MyApplication* self = MY_APPLICATION(application); + // Strip out the first argument as it is the binary name. + self->dart_entrypoint_arguments = g_strdupv(*arguments + 1); + + g_autoptr(GError) error = nullptr; + if (!g_application_register(application, nullptr, &error)) { + g_warning("Failed to register: %s", error->message); + *exit_status = 1; + return TRUE; + } + + g_application_activate(application); + *exit_status = 0; + + return TRUE; +} + +// Implements GObject::dispose. +static void my_application_dispose(GObject* object) { + MyApplication* self = MY_APPLICATION(object); + g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev); + G_OBJECT_CLASS(my_application_parent_class)->dispose(object); +} + +static void my_application_class_init(MyApplicationClass* klass) { + G_APPLICATION_CLASS(klass)->activate = my_application_activate; + G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line; + G_OBJECT_CLASS(klass)->dispose = my_application_dispose; +} + +static void my_application_init(MyApplication* self) {} + +MyApplication* my_application_new() { + return MY_APPLICATION(g_object_new(my_application_get_type(), + "application-id", APPLICATION_ID, + "flags", G_APPLICATION_NON_UNIQUE, + nullptr)); +} diff --git a/example/linux/my_application.h b/example/linux/my_application.h index 72271d5..8f20fb5 100644 --- a/example/linux/my_application.h +++ b/example/linux/my_application.h @@ -1,18 +1,18 @@ -#ifndef FLUTTER_MY_APPLICATION_H_ -#define FLUTTER_MY_APPLICATION_H_ - -#include - -G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION, - GtkApplication) - -/** - * my_application_new: - * - * Creates a new Flutter-based application. - * - * Returns: a new #MyApplication. - */ -MyApplication* my_application_new(); - -#endif // FLUTTER_MY_APPLICATION_H_ +#ifndef FLUTTER_MY_APPLICATION_H_ +#define FLUTTER_MY_APPLICATION_H_ + +#include + +G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION, + GtkApplication) + +/** + * my_application_new: + * + * Creates a new Flutter-based application. + * + * Returns: a new #MyApplication. + */ +MyApplication* my_application_new(); + +#endif // FLUTTER_MY_APPLICATION_H_ diff --git a/example/macos/.gitignore b/example/macos/.gitignore index 746adbb..d4e0569 100644 --- a/example/macos/.gitignore +++ b/example/macos/.gitignore @@ -1,7 +1,7 @@ -# Flutter-related -**/Flutter/ephemeral/ -**/Pods/ - -# Xcode-related -**/dgph -**/xcuserdata/ +# Flutter-related +**/Flutter/ephemeral/ +**/Pods/ + +# Xcode-related +**/dgph +**/xcuserdata/ diff --git a/example/macos/Flutter/Flutter-Debug.xcconfig b/example/macos/Flutter/Flutter-Debug.xcconfig index c2efd0b..df4c964 100644 --- a/example/macos/Flutter/Flutter-Debug.xcconfig +++ b/example/macos/Flutter/Flutter-Debug.xcconfig @@ -1 +1,2 @@ -#include "ephemeral/Flutter-Generated.xcconfig" +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/example/macos/Flutter/Flutter-Release.xcconfig b/example/macos/Flutter/Flutter-Release.xcconfig index c2efd0b..e79501e 100644 --- a/example/macos/Flutter/Flutter-Release.xcconfig +++ b/example/macos/Flutter/Flutter-Release.xcconfig @@ -1 +1,2 @@ -#include "ephemeral/Flutter-Generated.xcconfig" +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/example/macos/Podfile.lock b/example/macos/Podfile.lock new file mode 100644 index 0000000..082d0da --- /dev/null +++ b/example/macos/Podfile.lock @@ -0,0 +1,22 @@ +PODS: + - FlutterMacOS (1.0.0) + - hid_listener (1.0.0): + - FlutterMacOS + +DEPENDENCIES: + - FlutterMacOS (from `Flutter/ephemeral`) + - hid_listener (from `Flutter/ephemeral/.symlinks/plugins/hid_listener/macos`) + +EXTERNAL SOURCES: + FlutterMacOS: + :path: Flutter/ephemeral + hid_listener: + :path: Flutter/ephemeral/.symlinks/plugins/hid_listener/macos + +SPEC CHECKSUMS: + FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 + hid_listener: 91db7ae4ff06a7ad9e7d1e81162858856bc67dfd + +PODFILE CHECKSUM: 353c8bcc5d5b0994e508d035b5431cfe18c1dea7 + +COCOAPODS: 1.16.2 diff --git a/example/macos/Runner.xcodeproj/project.pbxproj b/example/macos/Runner.xcodeproj/project.pbxproj index f81ea00..a4657ac 100644 --- a/example/macos/Runner.xcodeproj/project.pbxproj +++ b/example/macos/Runner.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 51; + objectVersion = 54; objects = { /* Begin PBXAggregateTarget section */ @@ -21,6 +21,7 @@ /* End PBXAggregateTarget section */ /* Begin PBXBuildFile section */ + 300276048736614F0744DFAD /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F401C97056C0A1ED4F7473AD /* Pods_Runner.framework */; }; 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 */; }; @@ -52,9 +53,10 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 0FCA4AA6624FF9102E1F24C9 /* 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 = ""; }; 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 /* hid_listener_example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "hid_listener_example.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 33CC10ED2044A3C60003C045 /* hid_listener_example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = hid_listener_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 = ""; }; @@ -66,8 +68,11 @@ 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 = ""; }; + 6A30B360815978CF72F3F863 /* 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 = ""; }; 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; + 8802B86B85E58EEE0C6CC1E8 /* 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 = ""; }; 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; + F401C97056C0A1ED4F7473AD /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -75,6 +80,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 300276048736614F0744DFAD /* Pods_Runner.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -99,6 +105,7 @@ 33CEB47122A05771004F2AC0 /* Flutter */, 33CC10EE2044A3C60003C045 /* Products */, D73912EC22F37F3D000D13A0 /* Frameworks */, + AADF5EB5CDFCF648F8A2216E /* Pods */, ); sourceTree = ""; }; @@ -145,9 +152,21 @@ path = Runner; sourceTree = ""; }; + AADF5EB5CDFCF648F8A2216E /* Pods */ = { + isa = PBXGroup; + children = ( + 8802B86B85E58EEE0C6CC1E8 /* Pods-Runner.debug.xcconfig */, + 0FCA4AA6624FF9102E1F24C9 /* Pods-Runner.release.xcconfig */, + 6A30B360815978CF72F3F863 /* Pods-Runner.profile.xcconfig */, + ); + name = Pods; + path = Pods; + sourceTree = ""; + }; D73912EC22F37F3D000D13A0 /* Frameworks */ = { isa = PBXGroup; children = ( + F401C97056C0A1ED4F7473AD /* Pods_Runner.framework */, ); name = Frameworks; sourceTree = ""; @@ -159,11 +178,13 @@ isa = PBXNativeTarget; buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; buildPhases = ( + BEF7C87766E1DF4F06A611E1 /* [CP] Check Pods Manifest.lock */, 33CC10E92044A3C60003C045 /* Sources */, 33CC10EA2044A3C60003C045 /* Frameworks */, 33CC10EB2044A3C60003C045 /* Resources */, 33CC110E2044A8840003C045 /* Bundle Framework */, 3399D490228B24CF009A79C7 /* ShellScript */, + 2B435657B7C0C37912E71804 /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -182,7 +203,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0920; - LastUpgradeCheck = 1300; + LastUpgradeCheck = 1510; ORGANIZATIONNAME = ""; TargetAttributes = { 33CC10EC2044A3C60003C045 = { @@ -233,8 +254,26 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ + 2B435657B7C0C37912E71804 /* [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; + }; 3399D490228B24CF009A79C7 /* ShellScript */ = { isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; buildActionMask = 2147483647; files = ( ); @@ -270,6 +309,28 @@ shellPath = /bin/sh; shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire"; }; + BEF7C87766E1DF4F06A611E1 /* [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 */ @@ -344,7 +405,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.11; + MACOSX_DEPLOYMENT_TARGET = 10.14; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = macosx; SWIFT_COMPILATION_MODE = wholemodule; @@ -423,7 +484,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.11; + MACOSX_DEPLOYMENT_TARGET = 10.14; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = macosx; @@ -470,7 +531,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.11; + MACOSX_DEPLOYMENT_TARGET = 10.14; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = macosx; SWIFT_COMPILATION_MODE = wholemodule; diff --git a/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist index 18d9810..fc6bf80 100644 --- a/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ b/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -1,8 +1,8 @@ - - - - - IDEDidComputeMac32BitWarning - - - + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index 5f6dc00..dd6f517 100644 --- a/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -1,6 +1,6 @@ diff --git a/example/macos/Runner.xcworkspace/contents.xcworkspacedata b/example/macos/Runner.xcworkspace/contents.xcworkspacedata index 1d526a1..21a3cc1 100644 --- a/example/macos/Runner.xcworkspace/contents.xcworkspacedata +++ b/example/macos/Runner.xcworkspace/contents.xcworkspacedata @@ -4,4 +4,7 @@ + + diff --git a/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist index 18d9810..fc6bf80 100644 --- a/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ b/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -1,8 +1,8 @@ - - - - - IDEDidComputeMac32BitWarning - - - + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/example/macos/Runner/AppDelegate.swift b/example/macos/Runner/AppDelegate.swift index d53ef64..553a135 100644 --- a/example/macos/Runner/AppDelegate.swift +++ b/example/macos/Runner/AppDelegate.swift @@ -1,9 +1,9 @@ -import Cocoa -import FlutterMacOS - -@NSApplicationMain -class AppDelegate: FlutterAppDelegate { - override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { - return true - } -} +import Cocoa +import FlutterMacOS + +@NSApplicationMain +class AppDelegate: FlutterAppDelegate { + override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { + return true + } +} diff --git a/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json index a2ec33f..8d4e7cb 100644 --- a/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -1,68 +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" - } -} +{ + "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/example/macos/Runner/Base.lproj/MainMenu.xib b/example/macos/Runner/Base.lproj/MainMenu.xib index 80e867a..4632c69 100644 --- a/example/macos/Runner/Base.lproj/MainMenu.xib +++ b/example/macos/Runner/Base.lproj/MainMenu.xib @@ -1,343 +1,343 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/example/macos/Runner/Configs/AppInfo.xcconfig b/example/macos/Runner/Configs/AppInfo.xcconfig index 246ddd6..a9b630d 100644 --- a/example/macos/Runner/Configs/AppInfo.xcconfig +++ b/example/macos/Runner/Configs/AppInfo.xcconfig @@ -1,14 +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 = hid_listener_example - -// The application's bundle identifier -PRODUCT_BUNDLE_IDENTIFIER = com.example.hidListenerExample - -// The copyright displayed in application information -PRODUCT_COPYRIGHT = Copyright © 2022 com.example. All rights reserved. +// 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 = hid_listener_example + +// The application's bundle identifier +PRODUCT_BUNDLE_IDENTIFIER = com.example.hidListenerExample + +// The copyright displayed in application information +PRODUCT_COPYRIGHT = Copyright © 2022 com.example. All rights reserved. diff --git a/example/macos/Runner/Configs/Debug.xcconfig b/example/macos/Runner/Configs/Debug.xcconfig index 36b0fd9..b398823 100644 --- a/example/macos/Runner/Configs/Debug.xcconfig +++ b/example/macos/Runner/Configs/Debug.xcconfig @@ -1,2 +1,2 @@ -#include "../../Flutter/Flutter-Debug.xcconfig" -#include "Warnings.xcconfig" +#include "../../Flutter/Flutter-Debug.xcconfig" +#include "Warnings.xcconfig" diff --git a/example/macos/Runner/Configs/Release.xcconfig b/example/macos/Runner/Configs/Release.xcconfig index dff4f49..d93e5dc 100644 --- a/example/macos/Runner/Configs/Release.xcconfig +++ b/example/macos/Runner/Configs/Release.xcconfig @@ -1,2 +1,2 @@ -#include "../../Flutter/Flutter-Release.xcconfig" -#include "Warnings.xcconfig" +#include "../../Flutter/Flutter-Release.xcconfig" +#include "Warnings.xcconfig" diff --git a/example/macos/Runner/Configs/Warnings.xcconfig b/example/macos/Runner/Configs/Warnings.xcconfig index 42bcbf4..fb4d7d3 100644 --- a/example/macos/Runner/Configs/Warnings.xcconfig +++ b/example/macos/Runner/Configs/Warnings.xcconfig @@ -1,13 +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 +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/example/macos/Runner/DebugProfile.entitlements b/example/macos/Runner/DebugProfile.entitlements index dddb8a3..51d0967 100644 --- a/example/macos/Runner/DebugProfile.entitlements +++ b/example/macos/Runner/DebugProfile.entitlements @@ -1,12 +1,12 @@ - - - - - com.apple.security.app-sandbox - - com.apple.security.cs.allow-jit - - com.apple.security.network.server - - - + + + + + com.apple.security.app-sandbox + + com.apple.security.cs.allow-jit + + com.apple.security.network.server + + + diff --git a/example/macos/Runner/Info.plist b/example/macos/Runner/Info.plist index 4789daa..3733c1a 100644 --- a/example/macos/Runner/Info.plist +++ b/example/macos/Runner/Info.plist @@ -1,32 +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 - - + + + + + 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/example/macos/Runner/MainFlutterWindow.swift b/example/macos/Runner/MainFlutterWindow.swift index 2722837..4cb95dc 100644 --- a/example/macos/Runner/MainFlutterWindow.swift +++ b/example/macos/Runner/MainFlutterWindow.swift @@ -1,15 +1,15 @@ -import Cocoa -import FlutterMacOS - -class MainFlutterWindow: NSWindow { - override func awakeFromNib() { - let flutterViewController = FlutterViewController.init() - let windowFrame = self.frame - self.contentViewController = flutterViewController - self.setFrame(windowFrame, display: true) - - RegisterGeneratedPlugins(registry: flutterViewController) - - super.awakeFromNib() - } -} +import Cocoa +import FlutterMacOS + +class MainFlutterWindow: NSWindow { + override func awakeFromNib() { + let flutterViewController = FlutterViewController.init() + let windowFrame = self.frame + self.contentViewController = flutterViewController + self.setFrame(windowFrame, display: true) + + RegisterGeneratedPlugins(registry: flutterViewController) + + super.awakeFromNib() + } +} diff --git a/example/macos/Runner/Release.entitlements b/example/macos/Runner/Release.entitlements index 852fa1a..04336df 100644 --- a/example/macos/Runner/Release.entitlements +++ b/example/macos/Runner/Release.entitlements @@ -1,8 +1,8 @@ - - - - - com.apple.security.app-sandbox - - - + + + + + com.apple.security.app-sandbox + + + diff --git a/example/pubspec.lock b/example/pubspec.lock index a4b1acb..233461a 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -1,212 +1,236 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - async: - dependency: transitive - description: - name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" - url: "https://pub.dev" - source: hosted - version: "2.11.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - characters: - dependency: transitive - description: - name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" - url: "https://pub.dev" - source: hosted - version: "1.3.0" - clock: - dependency: transitive - description: - name: clock - sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf - url: "https://pub.dev" - source: hosted - version: "1.1.1" - collection: - dependency: transitive - description: - name: collection - sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" - url: "https://pub.dev" - source: hosted - version: "1.17.1" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - sha256: e35129dc44c9118cee2a5603506d823bab99c68393879edb440e0090d07586be - url: "https://pub.dev" - source: hosted - version: "1.0.5" - fake_async: - dependency: transitive - description: - name: fake_async - sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" - url: "https://pub.dev" - source: hosted - version: "1.3.1" - ffi: - dependency: transitive - description: - name: ffi - sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878" - url: "https://pub.dev" - source: hosted - version: "2.1.0" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_lints: - dependency: "direct dev" - description: - name: flutter_lints - sha256: aeb0b80a8b3709709c9cc496cdc027c5b3216796bc0af0ce1007eaf24464fd4c - url: "https://pub.dev" - source: hosted - version: "2.0.1" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" - hid_listener: - dependency: "direct main" - description: - path: ".." - relative: true - source: path - version: "1.1.3" - js: - dependency: transitive - description: - name: js - sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 - url: "https://pub.dev" - source: hosted - version: "0.6.7" - lints: - dependency: transitive - description: - name: lints - sha256: "5cfd6509652ff5e7fe149b6df4859e687fca9048437857cb2e65c8d780f396e3" - url: "https://pub.dev" - source: hosted - version: "2.0.0" - matcher: - dependency: transitive - description: - name: matcher - sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb" - url: "https://pub.dev" - source: hosted - version: "0.12.15" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 - url: "https://pub.dev" - source: hosted - version: "0.2.0" - meta: - dependency: transitive - description: - name: meta - sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" - url: "https://pub.dev" - source: hosted - version: "1.9.1" - path: - dependency: transitive - description: - name: path - sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" - url: "https://pub.dev" - source: hosted - version: "1.8.3" - plugin_platform_interface: - dependency: transitive - description: - name: plugin_platform_interface - sha256: dbf0f707c78beedc9200146ad3cb0ab4d5da13c246336987be6940f026500d3a - url: "https://pub.dev" - source: hosted - version: "2.1.3" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 - url: "https://pub.dev" - source: hosted - version: "1.9.1" - stack_trace: - dependency: transitive - description: - name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 - url: "https://pub.dev" - source: hosted - version: "1.11.0" - stream_channel: - dependency: transitive - description: - name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - string_scanner: - dependency: transitive - description: - name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - term_glyph: - dependency: transitive - description: - name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 - url: "https://pub.dev" - source: hosted - version: "1.2.1" - test_api: - dependency: transitive - description: - name: test_api - sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb - url: "https://pub.dev" - source: hosted - version: "0.5.1" - vector_math: - dependency: transitive - description: - name: vector_math - sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" - url: "https://pub.dev" - source: hosted - version: "2.1.4" -sdks: - dart: ">=3.0.0 <4.0.0" - flutter: ">=2.5.0" +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + async: + dependency: transitive + description: + name: async + sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb" + url: "https://pub.dev" + source: hosted + version: "2.13.0" + boolean_selector: + dependency: transitive + description: + name: boolean_selector + sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + characters: + dependency: transitive + description: + name: characters + sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 + url: "https://pub.dev" + source: hosted + version: "1.4.0" + clock: + dependency: transitive + description: + name: clock + sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b + url: "https://pub.dev" + source: hosted + version: "1.1.2" + collection: + dependency: transitive + description: + name: collection + sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76" + url: "https://pub.dev" + source: hosted + version: "1.19.1" + cupertino_icons: + dependency: "direct main" + description: + name: cupertino_icons + sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 + url: "https://pub.dev" + source: hosted + version: "1.0.8" + fake_async: + dependency: transitive + description: + name: fake_async + sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44" + url: "https://pub.dev" + source: hosted + version: "1.3.3" + ffi: + dependency: transitive + description: + name: ffi + sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6" + url: "https://pub.dev" + source: hosted + version: "2.1.3" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_lints: + dependency: "direct dev" + description: + name: flutter_lints + sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04 + url: "https://pub.dev" + source: hosted + version: "2.0.3" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + hid_listener: + dependency: "direct main" + description: + path: ".." + relative: true + source: path + version: "2.0.1" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "6bb818ecbdffe216e81182c2f0714a2e62b593f4a4f13098713ff1685dfb6ab0" + url: "https://pub.dev" + source: hosted + version: "10.0.9" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573 + url: "https://pub.dev" + source: hosted + version: "3.0.9" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" + url: "https://pub.dev" + source: hosted + version: "3.0.1" + lints: + dependency: transitive + description: + name: lints + sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + matcher: + dependency: transitive + description: + name: matcher + sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 + url: "https://pub.dev" + source: hosted + version: "0.12.17" + material_color_utilities: + dependency: transitive + description: + name: material_color_utilities + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec + url: "https://pub.dev" + source: hosted + version: "0.11.1" + meta: + dependency: "direct main" + description: + name: meta + sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c + url: "https://pub.dev" + source: hosted + version: "1.16.0" + path: + dependency: transitive + description: + name: path + sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" + url: "https://pub.dev" + source: hosted + version: "1.9.1" + plugin_platform_interface: + dependency: transitive + description: + name: plugin_platform_interface + sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" + url: "https://pub.dev" + source: hosted + version: "2.1.8" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + source_span: + dependency: transitive + description: + name: source_span + sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c" + url: "https://pub.dev" + source: hosted + version: "1.10.1" + stack_trace: + dependency: transitive + description: + name: stack_trace + sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1" + url: "https://pub.dev" + source: hosted + version: "1.12.1" + stream_channel: + dependency: transitive + description: + name: stream_channel + sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + string_scanner: + dependency: transitive + description: + name: string_scanner + sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43" + url: "https://pub.dev" + source: hosted + version: "1.4.1" + term_glyph: + dependency: transitive + description: + name: term_glyph + sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e" + url: "https://pub.dev" + source: hosted + version: "1.2.2" + test_api: + dependency: transitive + description: + name: test_api + sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd + url: "https://pub.dev" + source: hosted + version: "0.7.4" + vector_math: + dependency: transitive + description: + name: vector_math + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + vm_service: + dependency: transitive + description: + name: vm_service + sha256: ddfa8d30d89985b96407efce8acbdd124701f96741f2d981ca860662f1c0dc02 + url: "https://pub.dev" + source: hosted + version: "15.0.0" +sdks: + dart: ">=3.7.0-0 <4.0.0" + flutter: ">=3.18.0-18.0.pre.54" diff --git a/example/pubspec.yaml b/example/pubspec.yaml index ca4ab67..fd1da6b 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -1,84 +1,85 @@ -name: hid_listener_example -description: Demonstrates how to use the hid_listener plugin. - -# The following line prevents the package from being accidentally published to -# pub.dev using `flutter pub publish`. This is preferred for private packages. -publish_to: 'none' # Remove this line if you wish to publish to pub.dev - -environment: - sdk: '>=2.18.1 <3.0.0' - -# Dependencies specify other packages that your package needs in order to work. -# To automatically upgrade your package dependencies to the latest versions -# consider running `flutter pub upgrade --major-versions`. Alternatively, -# dependencies can be manually updated by changing the version numbers below to -# the latest version available on pub.dev. To see which dependencies have newer -# versions available, run `flutter pub outdated`. -dependencies: - flutter: - sdk: flutter - - hid_listener: - # When depending on this package from a real application you should use: - # hid_listener: ^x.y.z - # See https://dart.dev/tools/pub/dependencies#version-constraints - # The example app is bundled with the plugin so we use a path dependency on - # the parent directory to use the current plugin's version. - path: ../ - - # The following adds the Cupertino Icons font to your application. - # Use with the CupertinoIcons class for iOS style icons. - cupertino_icons: ^1.0.2 - -dev_dependencies: - flutter_test: - sdk: flutter - - # The "flutter_lints" package below contains a set of recommended lints to - # encourage good coding practices. The lint set provided by the package is - # activated in the `analysis_options.yaml` file located at the root of your - # package. See that file for information about deactivating specific lint - # rules and activating additional ones. - flutter_lints: ^2.0.0 - -# For information on the generic Dart part of this file, see the -# following page: https://dart.dev/tools/pub/pubspec - -# The following section is specific to Flutter packages. -flutter: - - # The following line ensures that the Material Icons font is - # included with your application, so that you can use the icons in - # the material Icons class. - uses-material-design: true - - # To add assets to your application, add an assets section, like this: - # assets: - # - images/a_dot_burr.jpeg - # - images/a_dot_ham.jpeg - - # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/assets-and-images/#resolution-aware - - # For details regarding adding assets from package dependencies, see - # https://flutter.dev/assets-and-images/#from-packages - - # To add custom fonts to your application, add a fonts section here, - # in this "flutter" section. Each entry in this list should have a - # "family" key with the font family name, and a "fonts" key with a - # list giving the asset and other descriptors for the font. For - # example: - # fonts: - # - family: Schyler - # fonts: - # - asset: fonts/Schyler-Regular.ttf - # - asset: fonts/Schyler-Italic.ttf - # style: italic - # - family: Trajan Pro - # fonts: - # - asset: fonts/TrajanPro.ttf - # - asset: fonts/TrajanPro_Bold.ttf - # weight: 700 - # - # For details regarding fonts from package dependencies, - # see https://flutter.dev/custom-fonts/#from-packages +name: hid_listener_example +description: Demonstrates how to use the hid_listener plugin. + +# The following line prevents the package from being accidentally published to +# pub.dev using `flutter pub publish`. This is preferred for private packages. +publish_to: 'none' # Remove this line if you wish to publish to pub.dev + +environment: + sdk: '>=2.18.1 <3.0.0' + +# Dependencies specify other packages that your package needs in order to work. +# To automatically upgrade your package dependencies to the latest versions +# consider running `flutter pub upgrade --major-versions`. Alternatively, +# dependencies can be manually updated by changing the version numbers below to +# the latest version available on pub.dev. To see which dependencies have newer +# versions available, run `flutter pub outdated`. +dependencies: + flutter: + sdk: flutter + + hid_listener: + # When depending on this package from a real application you should use: + # hid_listener: ^x.y.z + # See https://dart.dev/tools/pub/dependencies#version-constraints + # The example app is bundled with the plugin so we use a path dependency on + # the parent directory to use the current plugin's version. + path: ../ + + # The following adds the Cupertino Icons font to your application. + # Use with the CupertinoIcons class for iOS style icons. + cupertino_icons: ^1.0.2 + meta: ^1.16.0 + +dev_dependencies: + flutter_test: + sdk: flutter + + # The "flutter_lints" package below contains a set of recommended lints to + # encourage good coding practices. The lint set provided by the package is + # activated in the `analysis_options.yaml` file located at the root of your + # package. See that file for information about deactivating specific lint + # rules and activating additional ones. + flutter_lints: ^2.0.0 + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + +# The following section is specific to Flutter packages. +flutter: + + # The following line ensures that the Material Icons font is + # included with your application, so that you can use the icons in + # the material Icons class. + uses-material-design: true + + # To add assets to your application, add an assets section, like this: + # assets: + # - images/a_dot_burr.jpeg + # - images/a_dot_ham.jpeg + + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/assets-and-images/#resolution-aware + + # For details regarding adding assets from package dependencies, see + # https://flutter.dev/assets-and-images/#from-packages + + # To add custom fonts to your application, add a fonts section here, + # in this "flutter" section. Each entry in this list should have a + # "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # For details regarding fonts from package dependencies, + # see https://flutter.dev/custom-fonts/#from-packages diff --git a/example/test/widget_test.dart b/example/test/widget_test.dart index 2050486..f2c57f1 100644 --- a/example/test/widget_test.dart +++ b/example/test/widget_test.dart @@ -1,27 +1,27 @@ -// 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:hid_listener_example/main.dart'; - -void main() { - testWidgets('Verify Platform version', (WidgetTester tester) async { - // Build our app and trigger a frame. - await tester.pumpWidget(const MyApp()); - - // Verify that platform version is retrieved. - expect( - find.byWidgetPredicate( - (Widget widget) => widget is Text && - widget.data!.startsWith('Running on:'), - ), - findsOneWidget, - ); - }); -} +// 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:hid_listener_example/main.dart'; + +void main() { + testWidgets('Verify Platform version', (WidgetTester tester) async { + // Build our app and trigger a frame. + await tester.pumpWidget(const MyApp()); + + // Verify that platform version is retrieved. + expect( + find.byWidgetPredicate( + (Widget widget) => widget is Text && + widget.data!.startsWith('Running on:'), + ), + findsOneWidget, + ); + }); +} diff --git a/example/windows/.gitignore b/example/windows/.gitignore index d492d0d..ec4098a 100644 --- a/example/windows/.gitignore +++ b/example/windows/.gitignore @@ -1,17 +1,17 @@ -flutter/ephemeral/ - -# Visual Studio user-specific files. -*.suo -*.user -*.userosscache -*.sln.docstates - -# Visual Studio build-related files. -x64/ -x86/ - -# Visual Studio cache files -# files ending in .cache can be ignored -*.[Cc]ache -# but keep track of directories ending in .cache -!*.[Cc]ache/ +flutter/ephemeral/ + +# Visual Studio user-specific files. +*.suo +*.user +*.userosscache +*.sln.docstates + +# Visual Studio build-related files. +x64/ +x86/ + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ diff --git a/example/windows/CMakeLists.txt b/example/windows/CMakeLists.txt index e0f5aef..f97b0c2 100644 --- a/example/windows/CMakeLists.txt +++ b/example/windows/CMakeLists.txt @@ -1,101 +1,101 @@ -# Project-level configuration. -cmake_minimum_required(VERSION 3.14) -project(hid_listener_example LANGUAGES CXX) - -# The name of the executable created for the application. Change this to change -# the on-disk name of your application. -set(BINARY_NAME "hid_listener_example") - -# Explicitly opt in to modern CMake behaviors to avoid warnings with recent -# versions of CMake. -cmake_policy(SET CMP0063 NEW) - -# Define build configuration option. -get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) -if(IS_MULTICONFIG) - set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release" - CACHE STRING "" FORCE) -else() - if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) - set(CMAKE_BUILD_TYPE "Debug" CACHE - STRING "Flutter build mode" FORCE) - set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS - "Debug" "Profile" "Release") - endif() -endif() -# Define settings for the Profile build mode. -set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}") -set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}") -set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}") -set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}") - -# Use Unicode for all projects. -add_definitions(-DUNICODE -D_UNICODE) - -# Compilation settings that should be applied to most targets. -# -# Be cautious about adding new options here, as plugins use this function by -# default. In most cases, you should add new options to specific targets instead -# of modifying this function. -function(APPLY_STANDARD_SETTINGS TARGET) - target_compile_features(${TARGET} PUBLIC cxx_std_17) - target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100") - target_compile_options(${TARGET} PRIVATE /EHsc) - target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0") - target_compile_definitions(${TARGET} PRIVATE "$<$:_DEBUG>") -endfunction() - -# Flutter library and tool build rules. -set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") -add_subdirectory(${FLUTTER_MANAGED_DIR}) - -# Application build; see runner/CMakeLists.txt. -add_subdirectory("runner") - -# Generated plugin build rules, which manage building the plugins and adding -# them to the application. -include(flutter/generated_plugins.cmake) - - -# === Installation === -# Support files are copied into place next to the executable, so that it can -# run in place. This is done instead of making a separate bundle (as on Linux) -# so that building and running from within Visual Studio will work. -set(BUILD_BUNDLE_DIR "$") -# Make the "install" step default, as it's required to run. -set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1) -if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) - set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) -endif() - -set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") -set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}") - -install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" - COMPONENT Runtime) - -install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" - COMPONENT Runtime) - -install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" - COMPONENT Runtime) - -if(PLUGIN_BUNDLED_LIBRARIES) - install(FILES "${PLUGIN_BUNDLED_LIBRARIES}" - DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" - COMPONENT Runtime) -endif() - -# Fully re-copy the assets directory on each build to avoid having stale files -# from a previous install. -set(FLUTTER_ASSET_DIR_NAME "flutter_assets") -install(CODE " - file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") - " COMPONENT Runtime) -install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" - DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) - -# Install the AOT library on non-Debug builds only. -install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" - CONFIGURATIONS Profile;Release - COMPONENT Runtime) +# Project-level configuration. +cmake_minimum_required(VERSION 3.14) +project(hid_listener_example LANGUAGES CXX) + +# The name of the executable created for the application. Change this to change +# the on-disk name of your application. +set(BINARY_NAME "hid_listener_example") + +# Explicitly opt in to modern CMake behaviors to avoid warnings with recent +# versions of CMake. +cmake_policy(SET CMP0063 NEW) + +# Define build configuration option. +get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) +if(IS_MULTICONFIG) + set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release" + CACHE STRING "" FORCE) +else() + if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + set(CMAKE_BUILD_TYPE "Debug" CACHE + STRING "Flutter build mode" FORCE) + set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS + "Debug" "Profile" "Release") + endif() +endif() +# Define settings for the Profile build mode. +set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}") +set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}") +set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}") +set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}") + +# Use Unicode for all projects. +add_definitions(-DUNICODE -D_UNICODE) + +# Compilation settings that should be applied to most targets. +# +# Be cautious about adding new options here, as plugins use this function by +# default. In most cases, you should add new options to specific targets instead +# of modifying this function. +function(APPLY_STANDARD_SETTINGS TARGET) + target_compile_features(${TARGET} PUBLIC cxx_std_17) + target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100") + target_compile_options(${TARGET} PRIVATE /EHsc) + target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0") + target_compile_definitions(${TARGET} PRIVATE "$<$:_DEBUG>") +endfunction() + +# Flutter library and tool build rules. +set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") +add_subdirectory(${FLUTTER_MANAGED_DIR}) + +# Application build; see runner/CMakeLists.txt. +add_subdirectory("runner") + +# Generated plugin build rules, which manage building the plugins and adding +# them to the application. +include(flutter/generated_plugins.cmake) + + +# === Installation === +# Support files are copied into place next to the executable, so that it can +# run in place. This is done instead of making a separate bundle (as on Linux) +# so that building and running from within Visual Studio will work. +set(BUILD_BUNDLE_DIR "$") +# Make the "install" step default, as it's required to run. +set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1) +if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) +endif() + +set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") +set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}") + +install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +if(PLUGIN_BUNDLED_LIBRARIES) + install(FILES "${PLUGIN_BUNDLED_LIBRARIES}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endif() + +# Fully re-copy the assets directory on each build to avoid having stale files +# from a previous install. +set(FLUTTER_ASSET_DIR_NAME "flutter_assets") +install(CODE " + file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") + " COMPONENT Runtime) +install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" + DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) + +# Install the AOT library on non-Debug builds only. +install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + CONFIGURATIONS Profile;Release + COMPONENT Runtime) diff --git a/example/windows/flutter/CMakeLists.txt b/example/windows/flutter/CMakeLists.txt index 930d207..efb62eb 100644 --- a/example/windows/flutter/CMakeLists.txt +++ b/example/windows/flutter/CMakeLists.txt @@ -1,104 +1,109 @@ -# This file controls Flutter-level build steps. It should not be edited. -cmake_minimum_required(VERSION 3.14) - -set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") - -# Configuration provided via flutter tool. -include(${EPHEMERAL_DIR}/generated_config.cmake) - -# TODO: Move the rest of this into files in ephemeral. See -# https://github.com/flutter/flutter/issues/57146. -set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper") - -# === Flutter Library === -set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll") - -# Published to parent scope for install step. -set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) -set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) -set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) -set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE) - -list(APPEND FLUTTER_LIBRARY_HEADERS - "flutter_export.h" - "flutter_windows.h" - "flutter_messenger.h" - "flutter_plugin_registrar.h" - "flutter_texture_registrar.h" -) -list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/") -add_library(flutter INTERFACE) -target_include_directories(flutter INTERFACE - "${EPHEMERAL_DIR}" -) -target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib") -add_dependencies(flutter flutter_assemble) - -# === Wrapper === -list(APPEND CPP_WRAPPER_SOURCES_CORE - "core_implementations.cc" - "standard_codec.cc" -) -list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/") -list(APPEND CPP_WRAPPER_SOURCES_PLUGIN - "plugin_registrar.cc" -) -list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/") -list(APPEND CPP_WRAPPER_SOURCES_APP - "flutter_engine.cc" - "flutter_view_controller.cc" -) -list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/") - -# Wrapper sources needed for a plugin. -add_library(flutter_wrapper_plugin STATIC - ${CPP_WRAPPER_SOURCES_CORE} - ${CPP_WRAPPER_SOURCES_PLUGIN} -) -apply_standard_settings(flutter_wrapper_plugin) -set_target_properties(flutter_wrapper_plugin PROPERTIES - POSITION_INDEPENDENT_CODE ON) -set_target_properties(flutter_wrapper_plugin PROPERTIES - CXX_VISIBILITY_PRESET hidden) -target_link_libraries(flutter_wrapper_plugin PUBLIC flutter) -target_include_directories(flutter_wrapper_plugin PUBLIC - "${WRAPPER_ROOT}/include" -) -add_dependencies(flutter_wrapper_plugin flutter_assemble) - -# Wrapper sources needed for the runner. -add_library(flutter_wrapper_app STATIC - ${CPP_WRAPPER_SOURCES_CORE} - ${CPP_WRAPPER_SOURCES_APP} -) -apply_standard_settings(flutter_wrapper_app) -target_link_libraries(flutter_wrapper_app PUBLIC flutter) -target_include_directories(flutter_wrapper_app PUBLIC - "${WRAPPER_ROOT}/include" -) -add_dependencies(flutter_wrapper_app flutter_assemble) - -# === Flutter tool backend === -# _phony_ is a non-existent file to force this command to run every time, -# since currently there's no way to get a full input/output list from the -# flutter tool. -set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_") -set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE) -add_custom_command( - OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} - ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN} - ${CPP_WRAPPER_SOURCES_APP} - ${PHONY_OUTPUT} - COMMAND ${CMAKE_COMMAND} -E env - ${FLUTTER_TOOL_ENVIRONMENT} - "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat" - windows-x64 $ - VERBATIM -) -add_custom_target(flutter_assemble DEPENDS - "${FLUTTER_LIBRARY}" - ${FLUTTER_LIBRARY_HEADERS} - ${CPP_WRAPPER_SOURCES_CORE} - ${CPP_WRAPPER_SOURCES_PLUGIN} - ${CPP_WRAPPER_SOURCES_APP} -) +# This file controls Flutter-level build steps. It should not be edited. +cmake_minimum_required(VERSION 3.14) + +set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") + +# Configuration provided via flutter tool. +include(${EPHEMERAL_DIR}/generated_config.cmake) + +# TODO: Move the rest of this into files in ephemeral. See +# https://github.com/flutter/flutter/issues/57146. +set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper") + +# Set fallback configurations for older versions of the flutter tool. +if (NOT DEFINED FLUTTER_TARGET_PLATFORM) + set(FLUTTER_TARGET_PLATFORM "windows-x64") +endif() + +# === Flutter Library === +set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll") + +# Published to parent scope for install step. +set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) +set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) +set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) +set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE) + +list(APPEND FLUTTER_LIBRARY_HEADERS + "flutter_export.h" + "flutter_windows.h" + "flutter_messenger.h" + "flutter_plugin_registrar.h" + "flutter_texture_registrar.h" +) +list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/") +add_library(flutter INTERFACE) +target_include_directories(flutter INTERFACE + "${EPHEMERAL_DIR}" +) +target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib") +add_dependencies(flutter flutter_assemble) + +# === Wrapper === +list(APPEND CPP_WRAPPER_SOURCES_CORE + "core_implementations.cc" + "standard_codec.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/") +list(APPEND CPP_WRAPPER_SOURCES_PLUGIN + "plugin_registrar.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/") +list(APPEND CPP_WRAPPER_SOURCES_APP + "flutter_engine.cc" + "flutter_view_controller.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/") + +# Wrapper sources needed for a plugin. +add_library(flutter_wrapper_plugin STATIC + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_PLUGIN} +) +apply_standard_settings(flutter_wrapper_plugin) +set_target_properties(flutter_wrapper_plugin PROPERTIES + POSITION_INDEPENDENT_CODE ON) +set_target_properties(flutter_wrapper_plugin PROPERTIES + CXX_VISIBILITY_PRESET hidden) +target_link_libraries(flutter_wrapper_plugin PUBLIC flutter) +target_include_directories(flutter_wrapper_plugin PUBLIC + "${WRAPPER_ROOT}/include" +) +add_dependencies(flutter_wrapper_plugin flutter_assemble) + +# Wrapper sources needed for the runner. +add_library(flutter_wrapper_app STATIC + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_APP} +) +apply_standard_settings(flutter_wrapper_app) +target_link_libraries(flutter_wrapper_app PUBLIC flutter) +target_include_directories(flutter_wrapper_app PUBLIC + "${WRAPPER_ROOT}/include" +) +add_dependencies(flutter_wrapper_app flutter_assemble) + +# === Flutter tool backend === +# _phony_ is a non-existent file to force this command to run every time, +# since currently there's no way to get a full input/output list from the +# flutter tool. +set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_") +set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE) +add_custom_command( + OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} + ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN} + ${CPP_WRAPPER_SOURCES_APP} + ${PHONY_OUTPUT} + COMMAND ${CMAKE_COMMAND} -E env + ${FLUTTER_TOOL_ENVIRONMENT} + "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat" + ${FLUTTER_TARGET_PLATFORM} $ + VERBATIM +) +add_custom_target(flutter_assemble DEPENDS + "${FLUTTER_LIBRARY}" + ${FLUTTER_LIBRARY_HEADERS} + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_PLUGIN} + ${CPP_WRAPPER_SOURCES_APP} +) diff --git a/example/windows/runner/CMakeLists.txt b/example/windows/runner/CMakeLists.txt index 17411a8..c832c4b 100644 --- a/example/windows/runner/CMakeLists.txt +++ b/example/windows/runner/CMakeLists.txt @@ -1,39 +1,39 @@ -cmake_minimum_required(VERSION 3.14) -project(runner LANGUAGES CXX) - -# Define the application target. To change its name, change BINARY_NAME in the -# top-level CMakeLists.txt, not the value here, or `flutter run` will no longer -# work. -# -# Any new source files that you add to the application should be added here. -add_executable(${BINARY_NAME} WIN32 - "flutter_window.cpp" - "main.cpp" - "utils.cpp" - "win32_window.cpp" - "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" - "Runner.rc" - "runner.exe.manifest" -) - -# Apply the standard set of build settings. This can be removed for applications -# that need different build settings. -apply_standard_settings(${BINARY_NAME}) - -# Add preprocessor definitions for the build version. -target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"") -target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}") -target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}") -target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}") -target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}") - -# Disable Windows macros that collide with C++ standard library functions. -target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") - -# Add dependency libraries and include directories. Add any application-specific -# dependencies here. -target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) -target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") - -# Run the Flutter tool portions of the build. This must not be removed. -add_dependencies(${BINARY_NAME} flutter_assemble) +cmake_minimum_required(VERSION 3.14) +project(runner LANGUAGES CXX) + +# Define the application target. To change its name, change BINARY_NAME in the +# top-level CMakeLists.txt, not the value here, or `flutter run` will no longer +# work. +# +# Any new source files that you add to the application should be added here. +add_executable(${BINARY_NAME} WIN32 + "flutter_window.cpp" + "main.cpp" + "utils.cpp" + "win32_window.cpp" + "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" + "Runner.rc" + "runner.exe.manifest" +) + +# Apply the standard set of build settings. This can be removed for applications +# that need different build settings. +apply_standard_settings(${BINARY_NAME}) + +# Add preprocessor definitions for the build version. +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}") + +# Disable Windows macros that collide with C++ standard library functions. +target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") + +# Add dependency libraries and include directories. Add any application-specific +# dependencies here. +target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) +target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") + +# Run the Flutter tool portions of the build. This must not be removed. +add_dependencies(${BINARY_NAME} flutter_assemble) diff --git a/example/windows/runner/Runner.rc b/example/windows/runner/Runner.rc index eeced11..777db1c 100644 --- a/example/windows/runner/Runner.rc +++ b/example/windows/runner/Runner.rc @@ -1,121 +1,121 @@ -// Microsoft Visual C++ generated resource script. -// -#pragma code_page(65001) -#include "resource.h" - -#define APSTUDIO_READONLY_SYMBOLS -///////////////////////////////////////////////////////////////////////////// -// -// Generated from the TEXTINCLUDE 2 resource. -// -#include "winres.h" - -///////////////////////////////////////////////////////////////////////////// -#undef APSTUDIO_READONLY_SYMBOLS - -///////////////////////////////////////////////////////////////////////////// -// English (United States) resources - -#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) -LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US - -#ifdef APSTUDIO_INVOKED -///////////////////////////////////////////////////////////////////////////// -// -// TEXTINCLUDE -// - -1 TEXTINCLUDE -BEGIN - "resource.h\0" -END - -2 TEXTINCLUDE -BEGIN - "#include ""winres.h""\r\n" - "\0" -END - -3 TEXTINCLUDE -BEGIN - "\r\n" - "\0" -END - -#endif // APSTUDIO_INVOKED - - -///////////////////////////////////////////////////////////////////////////// -// -// Icon -// - -// Icon with lowest ID value placed first to ensure application icon -// remains consistent on all systems. -IDI_APP_ICON ICON "resources\\app_icon.ico" - - -///////////////////////////////////////////////////////////////////////////// -// -// Version -// - -#if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD) -#define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD -#else -#define VERSION_AS_NUMBER 1,0,0,0 -#endif - -#if defined(FLUTTER_VERSION) -#define VERSION_AS_STRING FLUTTER_VERSION -#else -#define VERSION_AS_STRING "1.0.0" -#endif - -VS_VERSION_INFO VERSIONINFO - FILEVERSION VERSION_AS_NUMBER - PRODUCTVERSION VERSION_AS_NUMBER - FILEFLAGSMASK VS_FFI_FILEFLAGSMASK -#ifdef _DEBUG - FILEFLAGS VS_FF_DEBUG -#else - FILEFLAGS 0x0L -#endif - FILEOS VOS__WINDOWS32 - FILETYPE VFT_APP - FILESUBTYPE 0x0L -BEGIN - BLOCK "StringFileInfo" - BEGIN - BLOCK "040904e4" - BEGIN - VALUE "CompanyName", "com.example" "\0" - VALUE "FileDescription", "hid_listener_example" "\0" - VALUE "FileVersion", VERSION_AS_STRING "\0" - VALUE "InternalName", "hid_listener_example" "\0" - VALUE "LegalCopyright", "Copyright (C) 2022 com.example. All rights reserved." "\0" - VALUE "OriginalFilename", "hid_listener_example.exe" "\0" - VALUE "ProductName", "hid_listener_example" "\0" - VALUE "ProductVersion", VERSION_AS_STRING "\0" - END - END - BLOCK "VarFileInfo" - BEGIN - VALUE "Translation", 0x409, 1252 - END -END - -#endif // English (United States) resources -///////////////////////////////////////////////////////////////////////////// - - - -#ifndef APSTUDIO_INVOKED -///////////////////////////////////////////////////////////////////////////// -// -// Generated from the TEXTINCLUDE 3 resource. -// - - -///////////////////////////////////////////////////////////////////////////// -#endif // not APSTUDIO_INVOKED +// Microsoft Visual C++ generated resource script. +// +#pragma code_page(65001) +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "winres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// English (United States) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""winres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Icon +// + +// Icon with lowest ID value placed first to ensure application icon +// remains consistent on all systems. +IDI_APP_ICON ICON "resources\\app_icon.ico" + + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +#if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD) +#define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD +#else +#define VERSION_AS_NUMBER 1,0,0,0 +#endif + +#if defined(FLUTTER_VERSION) +#define VERSION_AS_STRING FLUTTER_VERSION +#else +#define VERSION_AS_STRING "1.0.0" +#endif + +VS_VERSION_INFO VERSIONINFO + FILEVERSION VERSION_AS_NUMBER + PRODUCTVERSION VERSION_AS_NUMBER + FILEFLAGSMASK VS_FFI_FILEFLAGSMASK +#ifdef _DEBUG + FILEFLAGS VS_FF_DEBUG +#else + FILEFLAGS 0x0L +#endif + FILEOS VOS__WINDOWS32 + FILETYPE VFT_APP + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904e4" + BEGIN + VALUE "CompanyName", "com.example" "\0" + VALUE "FileDescription", "hid_listener_example" "\0" + VALUE "FileVersion", VERSION_AS_STRING "\0" + VALUE "InternalName", "hid_listener_example" "\0" + VALUE "LegalCopyright", "Copyright (C) 2022 com.example. All rights reserved." "\0" + VALUE "OriginalFilename", "hid_listener_example.exe" "\0" + VALUE "ProductName", "hid_listener_example" "\0" + VALUE "ProductVersion", VERSION_AS_STRING "\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1252 + END +END + +#endif // English (United States) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED diff --git a/example/windows/runner/flutter_window.cpp b/example/windows/runner/flutter_window.cpp index b43b909..3a11b51 100644 --- a/example/windows/runner/flutter_window.cpp +++ b/example/windows/runner/flutter_window.cpp @@ -1,61 +1,61 @@ -#include "flutter_window.h" - -#include - -#include "flutter/generated_plugin_registrant.h" - -FlutterWindow::FlutterWindow(const flutter::DartProject& project) - : project_(project) {} - -FlutterWindow::~FlutterWindow() {} - -bool FlutterWindow::OnCreate() { - if (!Win32Window::OnCreate()) { - return false; - } - - RECT frame = GetClientArea(); - - // The size here must match the window dimensions to avoid unnecessary surface - // creation / destruction in the startup path. - flutter_controller_ = std::make_unique( - frame.right - frame.left, frame.bottom - frame.top, project_); - // Ensure that basic setup of the controller was successful. - if (!flutter_controller_->engine() || !flutter_controller_->view()) { - return false; - } - RegisterPlugins(flutter_controller_->engine()); - SetChildContent(flutter_controller_->view()->GetNativeWindow()); - return true; -} - -void FlutterWindow::OnDestroy() { - if (flutter_controller_) { - flutter_controller_ = nullptr; - } - - Win32Window::OnDestroy(); -} - -LRESULT -FlutterWindow::MessageHandler(HWND hwnd, UINT const message, - WPARAM const wparam, - LPARAM const lparam) noexcept { - // Give Flutter, including plugins, an opportunity to handle window messages. - if (flutter_controller_) { - std::optional result = - flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam, - lparam); - if (result) { - return *result; - } - } - - switch (message) { - case WM_FONTCHANGE: - flutter_controller_->engine()->ReloadSystemFonts(); - break; - } - - return Win32Window::MessageHandler(hwnd, message, wparam, lparam); -} +#include "flutter_window.h" + +#include + +#include "flutter/generated_plugin_registrant.h" + +FlutterWindow::FlutterWindow(const flutter::DartProject& project) + : project_(project) {} + +FlutterWindow::~FlutterWindow() {} + +bool FlutterWindow::OnCreate() { + if (!Win32Window::OnCreate()) { + return false; + } + + RECT frame = GetClientArea(); + + // The size here must match the window dimensions to avoid unnecessary surface + // creation / destruction in the startup path. + flutter_controller_ = std::make_unique( + frame.right - frame.left, frame.bottom - frame.top, project_); + // Ensure that basic setup of the controller was successful. + if (!flutter_controller_->engine() || !flutter_controller_->view()) { + return false; + } + RegisterPlugins(flutter_controller_->engine()); + SetChildContent(flutter_controller_->view()->GetNativeWindow()); + return true; +} + +void FlutterWindow::OnDestroy() { + if (flutter_controller_) { + flutter_controller_ = nullptr; + } + + Win32Window::OnDestroy(); +} + +LRESULT +FlutterWindow::MessageHandler(HWND hwnd, UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + // Give Flutter, including plugins, an opportunity to handle window messages. + if (flutter_controller_) { + std::optional result = + flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam, + lparam); + if (result) { + return *result; + } + } + + switch (message) { + case WM_FONTCHANGE: + flutter_controller_->engine()->ReloadSystemFonts(); + break; + } + + return Win32Window::MessageHandler(hwnd, message, wparam, lparam); +} diff --git a/example/windows/runner/flutter_window.h b/example/windows/runner/flutter_window.h index 6da0652..28c2383 100644 --- a/example/windows/runner/flutter_window.h +++ b/example/windows/runner/flutter_window.h @@ -1,33 +1,33 @@ -#ifndef RUNNER_FLUTTER_WINDOW_H_ -#define RUNNER_FLUTTER_WINDOW_H_ - -#include -#include - -#include - -#include "win32_window.h" - -// A window that does nothing but host a Flutter view. -class FlutterWindow : public Win32Window { - public: - // Creates a new FlutterWindow hosting a Flutter view running |project|. - explicit FlutterWindow(const flutter::DartProject& project); - virtual ~FlutterWindow(); - - protected: - // Win32Window: - bool OnCreate() override; - void OnDestroy() override; - LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, - LPARAM const lparam) noexcept override; - - private: - // The project to run. - flutter::DartProject project_; - - // The Flutter instance hosted by this window. - std::unique_ptr flutter_controller_; -}; - -#endif // RUNNER_FLUTTER_WINDOW_H_ +#ifndef RUNNER_FLUTTER_WINDOW_H_ +#define RUNNER_FLUTTER_WINDOW_H_ + +#include +#include + +#include + +#include "win32_window.h" + +// A window that does nothing but host a Flutter view. +class FlutterWindow : public Win32Window { + public: + // Creates a new FlutterWindow hosting a Flutter view running |project|. + explicit FlutterWindow(const flutter::DartProject& project); + virtual ~FlutterWindow(); + + protected: + // Win32Window: + bool OnCreate() override; + void OnDestroy() override; + LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, + LPARAM const lparam) noexcept override; + + private: + // The project to run. + flutter::DartProject project_; + + // The Flutter instance hosted by this window. + std::unique_ptr flutter_controller_; +}; + +#endif // RUNNER_FLUTTER_WINDOW_H_ diff --git a/example/windows/runner/main.cpp b/example/windows/runner/main.cpp index 6e61c91..05da467 100644 --- a/example/windows/runner/main.cpp +++ b/example/windows/runner/main.cpp @@ -1,51 +1,51 @@ -#include -#include -#include - -#include - -#include "flutter_window.h" -#include "utils.h" - -int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, - _In_ wchar_t *command_line, _In_ int show_command) -{ - // Attach to console when present (e.g., 'flutter run') or create a - // new console when running with a debugger. - if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) - { - CreateAndAttachConsole(); - } - - // Initialize COM, so that it is available for use in the library and/or - // plugins. - ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); - - HidListener listener; - - flutter::DartProject project(L"data"); - - std::vector command_line_arguments = - GetCommandLineArguments(); - - project.set_dart_entrypoint_arguments(std::move(command_line_arguments)); - - FlutterWindow window(project); - Win32Window::Point origin(10, 10); - Win32Window::Size size(1280, 720); - if (!window.CreateAndShow(L"hid_listener_example", origin, size)) - { - return EXIT_FAILURE; - } - window.SetQuitOnClose(true); - - ::MSG msg; - while (::GetMessage(&msg, nullptr, 0, 0)) - { - ::TranslateMessage(&msg); - ::DispatchMessage(&msg); - } - - ::CoUninitialize(); - return EXIT_SUCCESS; -} +#include +#include +#include + +#include + +#include "flutter_window.h" +#include "utils.h" + +int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, + _In_ wchar_t *command_line, _In_ int show_command) +{ + // Attach to console when present (e.g., 'flutter run') or create a + // new console when running with a debugger. + if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) + { + CreateAndAttachConsole(); + } + + // Initialize COM, so that it is available for use in the library and/or + // plugins. + ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); + + HidListener listener; + + flutter::DartProject project(L"data"); + + std::vector command_line_arguments = + GetCommandLineArguments(); + + project.set_dart_entrypoint_arguments(std::move(command_line_arguments)); + + FlutterWindow window(project); + Win32Window::Point origin(10, 10); + Win32Window::Size size(1280, 720); + if (!window.CreateAndShow(L"hid_listener_example", origin, size)) + { + return EXIT_FAILURE; + } + window.SetQuitOnClose(true); + + ::MSG msg; + while (::GetMessage(&msg, nullptr, 0, 0)) + { + ::TranslateMessage(&msg); + ::DispatchMessage(&msg); + } + + ::CoUninitialize(); + return EXIT_SUCCESS; +} diff --git a/example/windows/runner/resource.h b/example/windows/runner/resource.h index 66a65d1..ddc7f3e 100644 --- a/example/windows/runner/resource.h +++ b/example/windows/runner/resource.h @@ -1,16 +1,16 @@ -//{{NO_DEPENDENCIES}} -// Microsoft Visual C++ generated include file. -// Used by Runner.rc -// -#define IDI_APP_ICON 101 - -// Next default values for new objects -// -#ifdef APSTUDIO_INVOKED -#ifndef APSTUDIO_READONLY_SYMBOLS -#define _APS_NEXT_RESOURCE_VALUE 102 -#define _APS_NEXT_COMMAND_VALUE 40001 -#define _APS_NEXT_CONTROL_VALUE 1001 -#define _APS_NEXT_SYMED_VALUE 101 -#endif -#endif +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by Runner.rc +// +#define IDI_APP_ICON 101 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 102 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1001 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/example/windows/runner/runner.exe.manifest b/example/windows/runner/runner.exe.manifest index a42ea76..157e871 100644 --- a/example/windows/runner/runner.exe.manifest +++ b/example/windows/runner/runner.exe.manifest @@ -1,20 +1,20 @@ - - - - - PerMonitorV2 - - - - - - - - - - - - - - - + + + + + PerMonitorV2 + + + + + + + + + + + + + + + diff --git a/example/windows/runner/utils.cpp b/example/windows/runner/utils.cpp index f5bf9fa..92ed547 100644 --- a/example/windows/runner/utils.cpp +++ b/example/windows/runner/utils.cpp @@ -1,64 +1,64 @@ -#include "utils.h" - -#include -#include -#include -#include - -#include - -void CreateAndAttachConsole() { - if (::AllocConsole()) { - FILE *unused; - if (freopen_s(&unused, "CONOUT$", "w", stdout)) { - _dup2(_fileno(stdout), 1); - } - if (freopen_s(&unused, "CONOUT$", "w", stderr)) { - _dup2(_fileno(stdout), 2); - } - std::ios::sync_with_stdio(); - FlutterDesktopResyncOutputStreams(); - } -} - -std::vector GetCommandLineArguments() { - // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use. - int argc; - wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc); - if (argv == nullptr) { - return std::vector(); - } - - std::vector command_line_arguments; - - // Skip the first argument as it's the binary name. - for (int i = 1; i < argc; i++) { - command_line_arguments.push_back(Utf8FromUtf16(argv[i])); - } - - ::LocalFree(argv); - - return command_line_arguments; -} - -std::string Utf8FromUtf16(const wchar_t* utf16_string) { - if (utf16_string == nullptr) { - return std::string(); - } - int target_length = ::WideCharToMultiByte( - CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, - -1, nullptr, 0, nullptr, nullptr); - std::string utf8_string; - if (target_length == 0 || target_length > utf8_string.max_size()) { - return utf8_string; - } - utf8_string.resize(target_length); - int converted_length = ::WideCharToMultiByte( - CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, - -1, utf8_string.data(), - target_length, nullptr, nullptr); - if (converted_length == 0) { - return std::string(); - } - return utf8_string; -} +#include "utils.h" + +#include +#include +#include +#include + +#include + +void CreateAndAttachConsole() { + if (::AllocConsole()) { + FILE *unused; + if (freopen_s(&unused, "CONOUT$", "w", stdout)) { + _dup2(_fileno(stdout), 1); + } + if (freopen_s(&unused, "CONOUT$", "w", stderr)) { + _dup2(_fileno(stdout), 2); + } + std::ios::sync_with_stdio(); + FlutterDesktopResyncOutputStreams(); + } +} + +std::vector GetCommandLineArguments() { + // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use. + int argc; + wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc); + if (argv == nullptr) { + return std::vector(); + } + + std::vector command_line_arguments; + + // Skip the first argument as it's the binary name. + for (int i = 1; i < argc; i++) { + command_line_arguments.push_back(Utf8FromUtf16(argv[i])); + } + + ::LocalFree(argv); + + return command_line_arguments; +} + +std::string Utf8FromUtf16(const wchar_t* utf16_string) { + if (utf16_string == nullptr) { + return std::string(); + } + int target_length = ::WideCharToMultiByte( + CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, + -1, nullptr, 0, nullptr, nullptr); + std::string utf8_string; + if (target_length == 0 || target_length > utf8_string.max_size()) { + return utf8_string; + } + utf8_string.resize(target_length); + int converted_length = ::WideCharToMultiByte( + CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, + -1, utf8_string.data(), + target_length, nullptr, nullptr); + if (converted_length == 0) { + return std::string(); + } + return utf8_string; +} diff --git a/example/windows/runner/utils.h b/example/windows/runner/utils.h index 3879d54..3f0e05c 100644 --- a/example/windows/runner/utils.h +++ b/example/windows/runner/utils.h @@ -1,19 +1,19 @@ -#ifndef RUNNER_UTILS_H_ -#define RUNNER_UTILS_H_ - -#include -#include - -// Creates a console for the process, and redirects stdout and stderr to -// it for both the runner and the Flutter library. -void CreateAndAttachConsole(); - -// Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string -// encoded in UTF-8. Returns an empty std::string on failure. -std::string Utf8FromUtf16(const wchar_t* utf16_string); - -// Gets the command line arguments passed in as a std::vector, -// encoded in UTF-8. Returns an empty std::vector on failure. -std::vector GetCommandLineArguments(); - -#endif // RUNNER_UTILS_H_ +#ifndef RUNNER_UTILS_H_ +#define RUNNER_UTILS_H_ + +#include +#include + +// Creates a console for the process, and redirects stdout and stderr to +// it for both the runner and the Flutter library. +void CreateAndAttachConsole(); + +// Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string +// encoded in UTF-8. Returns an empty std::string on failure. +std::string Utf8FromUtf16(const wchar_t* utf16_string); + +// Gets the command line arguments passed in as a std::vector, +// encoded in UTF-8. Returns an empty std::vector on failure. +std::vector GetCommandLineArguments(); + +#endif // RUNNER_UTILS_H_ diff --git a/example/windows/runner/win32_window.cpp b/example/windows/runner/win32_window.cpp index c10f08d..97f4439 100644 --- a/example/windows/runner/win32_window.cpp +++ b/example/windows/runner/win32_window.cpp @@ -1,245 +1,245 @@ -#include "win32_window.h" - -#include - -#include "resource.h" - -namespace { - -constexpr const wchar_t kWindowClassName[] = L"FLUTTER_RUNNER_WIN32_WINDOW"; - -// The number of Win32Window objects that currently exist. -static int g_active_window_count = 0; - -using EnableNonClientDpiScaling = BOOL __stdcall(HWND hwnd); - -// Scale helper to convert logical scaler values to physical using passed in -// scale factor -int Scale(int source, double scale_factor) { - return static_cast(source * scale_factor); -} - -// Dynamically loads the |EnableNonClientDpiScaling| from the User32 module. -// This API is only needed for PerMonitor V1 awareness mode. -void EnableFullDpiSupportIfAvailable(HWND hwnd) { - HMODULE user32_module = LoadLibraryA("User32.dll"); - if (!user32_module) { - return; - } - auto enable_non_client_dpi_scaling = - reinterpret_cast( - GetProcAddress(user32_module, "EnableNonClientDpiScaling")); - if (enable_non_client_dpi_scaling != nullptr) { - enable_non_client_dpi_scaling(hwnd); - FreeLibrary(user32_module); - } -} - -} // namespace - -// Manages the Win32Window's window class registration. -class WindowClassRegistrar { - public: - ~WindowClassRegistrar() = default; - - // Returns the singleton registar instance. - static WindowClassRegistrar* GetInstance() { - if (!instance_) { - instance_ = new WindowClassRegistrar(); - } - return instance_; - } - - // Returns the name of the window class, registering the class if it hasn't - // previously been registered. - const wchar_t* GetWindowClass(); - - // Unregisters the window class. Should only be called if there are no - // instances of the window. - void UnregisterWindowClass(); - - private: - WindowClassRegistrar() = default; - - static WindowClassRegistrar* instance_; - - bool class_registered_ = false; -}; - -WindowClassRegistrar* WindowClassRegistrar::instance_ = nullptr; - -const wchar_t* WindowClassRegistrar::GetWindowClass() { - if (!class_registered_) { - WNDCLASS window_class{}; - window_class.hCursor = LoadCursor(nullptr, IDC_ARROW); - window_class.lpszClassName = kWindowClassName; - window_class.style = CS_HREDRAW | CS_VREDRAW; - window_class.cbClsExtra = 0; - window_class.cbWndExtra = 0; - window_class.hInstance = GetModuleHandle(nullptr); - window_class.hIcon = - LoadIcon(window_class.hInstance, MAKEINTRESOURCE(IDI_APP_ICON)); - window_class.hbrBackground = 0; - window_class.lpszMenuName = nullptr; - window_class.lpfnWndProc = Win32Window::WndProc; - RegisterClass(&window_class); - class_registered_ = true; - } - return kWindowClassName; -} - -void WindowClassRegistrar::UnregisterWindowClass() { - UnregisterClass(kWindowClassName, nullptr); - class_registered_ = false; -} - -Win32Window::Win32Window() { - ++g_active_window_count; -} - -Win32Window::~Win32Window() { - --g_active_window_count; - Destroy(); -} - -bool Win32Window::CreateAndShow(const std::wstring& title, - const Point& origin, - const Size& size) { - Destroy(); - - const wchar_t* window_class = - WindowClassRegistrar::GetInstance()->GetWindowClass(); - - const POINT target_point = {static_cast(origin.x), - static_cast(origin.y)}; - HMONITOR monitor = MonitorFromPoint(target_point, MONITOR_DEFAULTTONEAREST); - UINT dpi = FlutterDesktopGetDpiForMonitor(monitor); - double scale_factor = dpi / 96.0; - - HWND window = CreateWindow( - window_class, title.c_str(), WS_OVERLAPPEDWINDOW | WS_VISIBLE, - Scale(origin.x, scale_factor), Scale(origin.y, scale_factor), - Scale(size.width, scale_factor), Scale(size.height, scale_factor), - nullptr, nullptr, GetModuleHandle(nullptr), this); - - if (!window) { - return false; - } - - return OnCreate(); -} - -// static -LRESULT CALLBACK Win32Window::WndProc(HWND const window, - UINT const message, - WPARAM const wparam, - LPARAM const lparam) noexcept { - if (message == WM_NCCREATE) { - auto window_struct = reinterpret_cast(lparam); - SetWindowLongPtr(window, GWLP_USERDATA, - reinterpret_cast(window_struct->lpCreateParams)); - - auto that = static_cast(window_struct->lpCreateParams); - EnableFullDpiSupportIfAvailable(window); - that->window_handle_ = window; - } else if (Win32Window* that = GetThisFromHandle(window)) { - return that->MessageHandler(window, message, wparam, lparam); - } - - return DefWindowProc(window, message, wparam, lparam); -} - -LRESULT -Win32Window::MessageHandler(HWND hwnd, - UINT const message, - WPARAM const wparam, - LPARAM const lparam) noexcept { - switch (message) { - case WM_DESTROY: - window_handle_ = nullptr; - Destroy(); - if (quit_on_close_) { - PostQuitMessage(0); - } - return 0; - - case WM_DPICHANGED: { - auto newRectSize = reinterpret_cast(lparam); - LONG newWidth = newRectSize->right - newRectSize->left; - LONG newHeight = newRectSize->bottom - newRectSize->top; - - SetWindowPos(hwnd, nullptr, newRectSize->left, newRectSize->top, newWidth, - newHeight, SWP_NOZORDER | SWP_NOACTIVATE); - - return 0; - } - case WM_SIZE: { - RECT rect = GetClientArea(); - if (child_content_ != nullptr) { - // Size and position the child window. - MoveWindow(child_content_, rect.left, rect.top, rect.right - rect.left, - rect.bottom - rect.top, TRUE); - } - return 0; - } - - case WM_ACTIVATE: - if (child_content_ != nullptr) { - SetFocus(child_content_); - } - return 0; - } - - return DefWindowProc(window_handle_, message, wparam, lparam); -} - -void Win32Window::Destroy() { - OnDestroy(); - - if (window_handle_) { - DestroyWindow(window_handle_); - window_handle_ = nullptr; - } - if (g_active_window_count == 0) { - WindowClassRegistrar::GetInstance()->UnregisterWindowClass(); - } -} - -Win32Window* Win32Window::GetThisFromHandle(HWND const window) noexcept { - return reinterpret_cast( - GetWindowLongPtr(window, GWLP_USERDATA)); -} - -void Win32Window::SetChildContent(HWND content) { - child_content_ = content; - SetParent(content, window_handle_); - RECT frame = GetClientArea(); - - MoveWindow(content, frame.left, frame.top, frame.right - frame.left, - frame.bottom - frame.top, true); - - SetFocus(child_content_); -} - -RECT Win32Window::GetClientArea() { - RECT frame; - GetClientRect(window_handle_, &frame); - return frame; -} - -HWND Win32Window::GetHandle() { - return window_handle_; -} - -void Win32Window::SetQuitOnClose(bool quit_on_close) { - quit_on_close_ = quit_on_close; -} - -bool Win32Window::OnCreate() { - // No-op; provided for subclasses. - return true; -} - -void Win32Window::OnDestroy() { - // No-op; provided for subclasses. -} +#include "win32_window.h" + +#include + +#include "resource.h" + +namespace { + +constexpr const wchar_t kWindowClassName[] = L"FLUTTER_RUNNER_WIN32_WINDOW"; + +// The number of Win32Window objects that currently exist. +static int g_active_window_count = 0; + +using EnableNonClientDpiScaling = BOOL __stdcall(HWND hwnd); + +// Scale helper to convert logical scaler values to physical using passed in +// scale factor +int Scale(int source, double scale_factor) { + return static_cast(source * scale_factor); +} + +// Dynamically loads the |EnableNonClientDpiScaling| from the User32 module. +// This API is only needed for PerMonitor V1 awareness mode. +void EnableFullDpiSupportIfAvailable(HWND hwnd) { + HMODULE user32_module = LoadLibraryA("User32.dll"); + if (!user32_module) { + return; + } + auto enable_non_client_dpi_scaling = + reinterpret_cast( + GetProcAddress(user32_module, "EnableNonClientDpiScaling")); + if (enable_non_client_dpi_scaling != nullptr) { + enable_non_client_dpi_scaling(hwnd); + FreeLibrary(user32_module); + } +} + +} // namespace + +// Manages the Win32Window's window class registration. +class WindowClassRegistrar { + public: + ~WindowClassRegistrar() = default; + + // Returns the singleton registar instance. + static WindowClassRegistrar* GetInstance() { + if (!instance_) { + instance_ = new WindowClassRegistrar(); + } + return instance_; + } + + // Returns the name of the window class, registering the class if it hasn't + // previously been registered. + const wchar_t* GetWindowClass(); + + // Unregisters the window class. Should only be called if there are no + // instances of the window. + void UnregisterWindowClass(); + + private: + WindowClassRegistrar() = default; + + static WindowClassRegistrar* instance_; + + bool class_registered_ = false; +}; + +WindowClassRegistrar* WindowClassRegistrar::instance_ = nullptr; + +const wchar_t* WindowClassRegistrar::GetWindowClass() { + if (!class_registered_) { + WNDCLASS window_class{}; + window_class.hCursor = LoadCursor(nullptr, IDC_ARROW); + window_class.lpszClassName = kWindowClassName; + window_class.style = CS_HREDRAW | CS_VREDRAW; + window_class.cbClsExtra = 0; + window_class.cbWndExtra = 0; + window_class.hInstance = GetModuleHandle(nullptr); + window_class.hIcon = + LoadIcon(window_class.hInstance, MAKEINTRESOURCE(IDI_APP_ICON)); + window_class.hbrBackground = 0; + window_class.lpszMenuName = nullptr; + window_class.lpfnWndProc = Win32Window::WndProc; + RegisterClass(&window_class); + class_registered_ = true; + } + return kWindowClassName; +} + +void WindowClassRegistrar::UnregisterWindowClass() { + UnregisterClass(kWindowClassName, nullptr); + class_registered_ = false; +} + +Win32Window::Win32Window() { + ++g_active_window_count; +} + +Win32Window::~Win32Window() { + --g_active_window_count; + Destroy(); +} + +bool Win32Window::CreateAndShow(const std::wstring& title, + const Point& origin, + const Size& size) { + Destroy(); + + const wchar_t* window_class = + WindowClassRegistrar::GetInstance()->GetWindowClass(); + + const POINT target_point = {static_cast(origin.x), + static_cast(origin.y)}; + HMONITOR monitor = MonitorFromPoint(target_point, MONITOR_DEFAULTTONEAREST); + UINT dpi = FlutterDesktopGetDpiForMonitor(monitor); + double scale_factor = dpi / 96.0; + + HWND window = CreateWindow( + window_class, title.c_str(), WS_OVERLAPPEDWINDOW | WS_VISIBLE, + Scale(origin.x, scale_factor), Scale(origin.y, scale_factor), + Scale(size.width, scale_factor), Scale(size.height, scale_factor), + nullptr, nullptr, GetModuleHandle(nullptr), this); + + if (!window) { + return false; + } + + return OnCreate(); +} + +// static +LRESULT CALLBACK Win32Window::WndProc(HWND const window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + if (message == WM_NCCREATE) { + auto window_struct = reinterpret_cast(lparam); + SetWindowLongPtr(window, GWLP_USERDATA, + reinterpret_cast(window_struct->lpCreateParams)); + + auto that = static_cast(window_struct->lpCreateParams); + EnableFullDpiSupportIfAvailable(window); + that->window_handle_ = window; + } else if (Win32Window* that = GetThisFromHandle(window)) { + return that->MessageHandler(window, message, wparam, lparam); + } + + return DefWindowProc(window, message, wparam, lparam); +} + +LRESULT +Win32Window::MessageHandler(HWND hwnd, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + switch (message) { + case WM_DESTROY: + window_handle_ = nullptr; + Destroy(); + if (quit_on_close_) { + PostQuitMessage(0); + } + return 0; + + case WM_DPICHANGED: { + auto newRectSize = reinterpret_cast(lparam); + LONG newWidth = newRectSize->right - newRectSize->left; + LONG newHeight = newRectSize->bottom - newRectSize->top; + + SetWindowPos(hwnd, nullptr, newRectSize->left, newRectSize->top, newWidth, + newHeight, SWP_NOZORDER | SWP_NOACTIVATE); + + return 0; + } + case WM_SIZE: { + RECT rect = GetClientArea(); + if (child_content_ != nullptr) { + // Size and position the child window. + MoveWindow(child_content_, rect.left, rect.top, rect.right - rect.left, + rect.bottom - rect.top, TRUE); + } + return 0; + } + + case WM_ACTIVATE: + if (child_content_ != nullptr) { + SetFocus(child_content_); + } + return 0; + } + + return DefWindowProc(window_handle_, message, wparam, lparam); +} + +void Win32Window::Destroy() { + OnDestroy(); + + if (window_handle_) { + DestroyWindow(window_handle_); + window_handle_ = nullptr; + } + if (g_active_window_count == 0) { + WindowClassRegistrar::GetInstance()->UnregisterWindowClass(); + } +} + +Win32Window* Win32Window::GetThisFromHandle(HWND const window) noexcept { + return reinterpret_cast( + GetWindowLongPtr(window, GWLP_USERDATA)); +} + +void Win32Window::SetChildContent(HWND content) { + child_content_ = content; + SetParent(content, window_handle_); + RECT frame = GetClientArea(); + + MoveWindow(content, frame.left, frame.top, frame.right - frame.left, + frame.bottom - frame.top, true); + + SetFocus(child_content_); +} + +RECT Win32Window::GetClientArea() { + RECT frame; + GetClientRect(window_handle_, &frame); + return frame; +} + +HWND Win32Window::GetHandle() { + return window_handle_; +} + +void Win32Window::SetQuitOnClose(bool quit_on_close) { + quit_on_close_ = quit_on_close; +} + +bool Win32Window::OnCreate() { + // No-op; provided for subclasses. + return true; +} + +void Win32Window::OnDestroy() { + // No-op; provided for subclasses. +} diff --git a/example/windows/runner/win32_window.h b/example/windows/runner/win32_window.h index 17ba431..d9bcac1 100644 --- a/example/windows/runner/win32_window.h +++ b/example/windows/runner/win32_window.h @@ -1,98 +1,98 @@ -#ifndef RUNNER_WIN32_WINDOW_H_ -#define RUNNER_WIN32_WINDOW_H_ - -#include - -#include -#include -#include - -// A class abstraction for a high DPI-aware Win32 Window. Intended to be -// inherited from by classes that wish to specialize with custom -// rendering and input handling -class Win32Window { - public: - struct Point { - unsigned int x; - unsigned int y; - Point(unsigned int x, unsigned int y) : x(x), y(y) {} - }; - - struct Size { - unsigned int width; - unsigned int height; - Size(unsigned int width, unsigned int height) - : width(width), height(height) {} - }; - - Win32Window(); - virtual ~Win32Window(); - - // Creates and shows a win32 window with |title| and position and size using - // |origin| and |size|. New windows are created on the default monitor. Window - // sizes are specified to the OS in physical pixels, hence to ensure a - // consistent size to will treat the width height passed in to this function - // as logical pixels and scale to appropriate for the default monitor. Returns - // true if the window was created successfully. - bool CreateAndShow(const std::wstring& title, - const Point& origin, - const Size& size); - - // Release OS resources associated with window. - void Destroy(); - - // Inserts |content| into the window tree. - void SetChildContent(HWND content); - - // Returns the backing Window handle to enable clients to set icon and other - // window properties. Returns nullptr if the window has been destroyed. - HWND GetHandle(); - - // If true, closing this window will quit the application. - void SetQuitOnClose(bool quit_on_close); - - // Return a RECT representing the bounds of the current client area. - RECT GetClientArea(); - - protected: - // Processes and route salient window messages for mouse handling, - // size change and DPI. Delegates handling of these to member overloads that - // inheriting classes can handle. - virtual LRESULT MessageHandler(HWND window, - UINT const message, - WPARAM const wparam, - LPARAM const lparam) noexcept; - - // Called when CreateAndShow is called, allowing subclass window-related - // setup. Subclasses should return false if setup fails. - virtual bool OnCreate(); - - // Called when Destroy is called. - virtual void OnDestroy(); - - private: - friend class WindowClassRegistrar; - - // OS callback called by message pump. Handles the WM_NCCREATE message which - // is passed when the non-client area is being created and enables automatic - // non-client DPI scaling so that the non-client area automatically - // responsponds to changes in DPI. All other messages are handled by - // MessageHandler. - static LRESULT CALLBACK WndProc(HWND const window, - UINT const message, - WPARAM const wparam, - LPARAM const lparam) noexcept; - - // Retrieves a class instance pointer for |window| - static Win32Window* GetThisFromHandle(HWND const window) noexcept; - - bool quit_on_close_ = false; - - // window handle for top level window. - HWND window_handle_ = nullptr; - - // window handle for hosted content. - HWND child_content_ = nullptr; -}; - -#endif // RUNNER_WIN32_WINDOW_H_ +#ifndef RUNNER_WIN32_WINDOW_H_ +#define RUNNER_WIN32_WINDOW_H_ + +#include + +#include +#include +#include + +// A class abstraction for a high DPI-aware Win32 Window. Intended to be +// inherited from by classes that wish to specialize with custom +// rendering and input handling +class Win32Window { + public: + struct Point { + unsigned int x; + unsigned int y; + Point(unsigned int x, unsigned int y) : x(x), y(y) {} + }; + + struct Size { + unsigned int width; + unsigned int height; + Size(unsigned int width, unsigned int height) + : width(width), height(height) {} + }; + + Win32Window(); + virtual ~Win32Window(); + + // Creates and shows a win32 window with |title| and position and size using + // |origin| and |size|. New windows are created on the default monitor. Window + // sizes are specified to the OS in physical pixels, hence to ensure a + // consistent size to will treat the width height passed in to this function + // as logical pixels and scale to appropriate for the default monitor. Returns + // true if the window was created successfully. + bool CreateAndShow(const std::wstring& title, + const Point& origin, + const Size& size); + + // Release OS resources associated with window. + void Destroy(); + + // Inserts |content| into the window tree. + void SetChildContent(HWND content); + + // Returns the backing Window handle to enable clients to set icon and other + // window properties. Returns nullptr if the window has been destroyed. + HWND GetHandle(); + + // If true, closing this window will quit the application. + void SetQuitOnClose(bool quit_on_close); + + // Return a RECT representing the bounds of the current client area. + RECT GetClientArea(); + + protected: + // Processes and route salient window messages for mouse handling, + // size change and DPI. Delegates handling of these to member overloads that + // inheriting classes can handle. + virtual LRESULT MessageHandler(HWND window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept; + + // Called when CreateAndShow is called, allowing subclass window-related + // setup. Subclasses should return false if setup fails. + virtual bool OnCreate(); + + // Called when Destroy is called. + virtual void OnDestroy(); + + private: + friend class WindowClassRegistrar; + + // OS callback called by message pump. Handles the WM_NCCREATE message which + // is passed when the non-client area is being created and enables automatic + // non-client DPI scaling so that the non-client area automatically + // responsponds to changes in DPI. All other messages are handled by + // MessageHandler. + static LRESULT CALLBACK WndProc(HWND const window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept; + + // Retrieves a class instance pointer for |window| + static Win32Window* GetThisFromHandle(HWND const window) noexcept; + + bool quit_on_close_ = false; + + // window handle for top level window. + HWND window_handle_ = nullptr; + + // window handle for hosted content. + HWND child_content_ = nullptr; +}; + +#endif // RUNNER_WIN32_WINDOW_H_ diff --git a/ffigen_linux.yaml b/ffigen_linux.yaml index 566f7d0..0f20e7d 100644 --- a/ffigen_linux.yaml +++ b/ffigen_linux.yaml @@ -1,26 +1,26 @@ -name: HidListenerBindingsLinux -description: | - Bindings for 'linux/hid_listener_linux.h' -output: "lib/src/linux/hid_listener_bindings_linux.dart" -compiler-opts: - - "-Ishared/" -headers: - entry-points: - - "linux/hid_listener_linux.h" - include-directives: - - "**hid_listener**.h" -structs: - include: - - LinuxKeyboardEventType - - LinuxKeyboardEvent -enums: - include: - - None -preamble: | - // ignore_for_file: always_specify_types - // ignore_for_file: camel_case_types - // ignore_for_file: non_constant_identifier_names - // ignore_for_file: constant_identifier_names -comments: - style: any - length: full +name: HidListenerBindingsLinux +description: | + Bindings for 'linux/hid_listener_linux.h' +output: "lib/src/linux/hid_listener_bindings_linux.dart" +compiler-opts: + - "-Ishared/" +headers: + entry-points: + - "linux/hid_listener_linux.h" + include-directives: + - "**hid_listener**.h" +structs: + include: + - LinuxKeyboardEventType + - LinuxKeyboardEvent +enums: + include: + - None +preamble: | + // ignore_for_file: always_specify_types + // ignore_for_file: camel_case_types + // ignore_for_file: non_constant_identifier_names + // ignore_for_file: constant_identifier_names +comments: + style: any + length: full diff --git a/ffigen_macos.yaml b/ffigen_macos.yaml index e638b44..8c4ae82 100644 --- a/ffigen_macos.yaml +++ b/ffigen_macos.yaml @@ -1,29 +1,29 @@ -name: HidListenerBindingsSwift -description: | - Bindings for 'macos/Bindings/HidListener.h' -output: "lib/src/macos/hid_listener_bindings_macos.dart" -language: objc -exclude-all-by-default: true -objc-interfaces: - include: - - "HidListenerBindings" - - "MacOsKeyboardEventType" - - "MacOsKeyboardEvent" - module: - "HidListenerBindings": "hid_listener" - "MacOsKeyboardEventType": "hid_listener" - "MacOsKeyboardEvent": "hid_listener" -headers: - entry-points: - - "macos/Bindings/HidListener.h" -preamble: | - // ignore_for_file: always_specify_types - // ignore_for_file: camel_case_types - // ignore_for_file: non_constant_identifier_names - // ignore_for_file: constant_identifier_names - // ignore_for_file: no_leading_underscores_for_local_identifiers - // ignore_for_file: library_private_types_in_public_api -comments: - style: any - length: full - +name: HidListenerBindingsSwift +description: | + Bindings for 'macos/Bindings/HidListener.h' +output: "lib/src/macos/hid_listener_bindings_macos.dart" +language: objc +exclude-all-by-default: true +objc-interfaces: + include: + - "HidListenerBindings" + - "MacOsKeyboardEventType" + - "MacOsKeyboardEvent" + module: + "HidListenerBindings": "hid_listener" + "MacOsKeyboardEventType": "hid_listener" + "MacOsKeyboardEvent": "hid_listener" +headers: + entry-points: + - "macos/Bindings/HidListener.h" +preamble: | + // ignore_for_file: always_specify_types + // ignore_for_file: camel_case_types + // ignore_for_file: non_constant_identifier_names + // ignore_for_file: constant_identifier_names + // ignore_for_file: no_leading_underscores_for_local_identifiers + // ignore_for_file: library_private_types_in_public_api +comments: + style: any + length: full + diff --git a/ffigen_shared.yaml b/ffigen_shared.yaml index cb56544..c06e391 100644 --- a/ffigen_shared.yaml +++ b/ffigen_shared.yaml @@ -1,18 +1,18 @@ -# Run with `flutter pub run ffigen --config ffigen.yaml`. -name: HidListenerBindings -description: | - Bindings for `shared/hid_listener_shared.h`. -output: "lib/src/shared/hid_listener_bindings_shared.dart" -headers: - entry-points: - - "shared/hid_listener_shared.h" - include-directives: - - "**hid_listener**.h" -preamble: | - // ignore_for_file: always_specify_types - // ignore_for_file: camel_case_types - // ignore_for_file: non_constant_identifier_names - // ignore_for_file: constant_identifier_names -comments: - style: any - length: full +# Run with `flutter pub run ffigen --config ffigen.yaml`. +name: HidListenerBindings +description: | + Bindings for `shared/hid_listener_shared.h`. +output: "lib/src/shared/hid_listener_bindings_shared.dart" +headers: + entry-points: + - "shared/hid_listener_shared.h" + include-directives: + - "**hid_listener**.h" +preamble: | + // ignore_for_file: always_specify_types + // ignore_for_file: camel_case_types + // ignore_for_file: non_constant_identifier_names + // ignore_for_file: constant_identifier_names +comments: + style: any + length: full diff --git a/ffigen_windows.yaml b/ffigen_windows.yaml index 5357a8c..0b327fb 100644 --- a/ffigen_windows.yaml +++ b/ffigen_windows.yaml @@ -1,26 +1,26 @@ -name: HidListenerBindingsWindows -description: | - Bindings for 'windows/hid_listener_windows.h' -output: "lib/src/windows/hid_listener_bindings_windows.dart" -compiler-opts: - - "-Ishared/" -headers: - entry-points: - - "windows/hid_listener_windows.h" - include-directives: - - "**hid_listener**.h" -structs: - include: - - WindowsKeyboardEventType - - WindowsKeyboardEvent -enums: - include: - - None -preamble: | - // ignore_for_file: always_specify_types - // ignore_for_file: camel_case_types - // ignore_for_file: non_constant_identifier_names - // ignore_for_file: constant_identifier_names -comments: - style: any - length: full +name: HidListenerBindingsWindows +description: | + Bindings for 'windows/hid_listener_windows.h' +output: "lib/src/windows/hid_listener_bindings_windows.dart" +compiler-opts: + - "-Ishared/" +headers: + entry-points: + - "windows/hid_listener_windows.h" + include-directives: + - "**hid_listener**.h" +structs: + include: + - WindowsKeyboardEventType + - WindowsKeyboardEvent +enums: + include: + - None +preamble: | + // ignore_for_file: always_specify_types + // ignore_for_file: camel_case_types + // ignore_for_file: non_constant_identifier_names + // ignore_for_file: constant_identifier_names +comments: + style: any + length: full diff --git a/lib/hid_listener.dart b/lib/hid_listener.dart index 8e25a82..05c2b93 100644 --- a/lib/hid_listener.dart +++ b/lib/hid_listener.dart @@ -1 +1 @@ -export 'src/hid_listener.dart'; +export 'src/hid_listener.dart'; diff --git a/lib/src/hid_listener.dart b/lib/src/hid_listener.dart index 7bfa7e0..95179ef 100644 --- a/lib/src/hid_listener.dart +++ b/lib/src/hid_listener.dart @@ -1,93 +1,94 @@ -import 'dart:collection'; -import 'dart:ffi' as ffi; -import 'dart:io'; - -import 'package:flutter/foundation.dart'; -import 'package:flutter/services.dart'; - -import 'package:hid_listener/src/macos/hid_listener_macos.dart'; -import 'package:hid_listener/src/windows/hid_listener_windows.dart'; -import 'package:hid_listener/src/linux/hid_listener_linux.dart'; - -import 'hid_listener_types.dart'; -export 'hid_listener_types.dart' - show - MouseEvent, - MouseButtonEventType, - MouseButtonEvent, - MouseMoveEvent, - MouseWheelEvent; - -const String _libName = 'hid_listener'; - -final ffi.DynamicLibrary _dylib = () { - if (Platform.isMacOS || Platform.isIOS) { - return ffi.DynamicLibrary.open('$_libName.framework/$_libName'); - } - if (Platform.isAndroid || Platform.isLinux) { - return ffi.DynamicLibrary.open('lib$_libName.so'); - } - if (Platform.isWindows) { - return ffi.DynamicLibrary.open('$_libName.dll'); - } - throw UnsupportedError('Unknown platform: ${Platform.operatingSystem}'); -}(); - -abstract class HidListenerBackend { - int? addKeyboardListener(void Function(RawKeyEvent) listener) { - if (!_keyboardRegistered) { - if (!registerKeyboard()) return null; - _keyboardRegistered = true; - } - - keyboardListeners.addAll({_lastKeyboardListenerId: listener}); - return _lastKeyboardListenerId++; - } - - void removeKeyboardListener(int listenerId) { - keyboardListeners.remove(listenerId); - } - - int? addMouseListener(void Function(MouseEvent) listener) { - if (!_mouseRegistered) { - if (!registerMouse()) return null; - _mouseRegistered = true; - } - - mouseListeners.addAll({_lastMouseListenerId: listener}); - return _lastMouseListenerId++; - } - - void removeMouseListener(int listenerId) { - mouseListeners.remove(listenerId); - } - - bool initialize(); - bool registerKeyboard(); - bool registerMouse(); - - @protected - HashMap keyboardListeners = - HashMap.identity(); - @protected - HashMap mouseListeners = HashMap.identity(); - - int _lastKeyboardListenerId = 0; - int _lastMouseListenerId = 0; - - bool _keyboardRegistered = false; - bool _mouseRegistered = false; -} - -HidListenerBackend? _createPlatformBackend() { - if (Platform.isWindows) return WindowsHidListenerBackend(_dylib); - if (Platform.isMacOS) return MacOsHidListenerBackend(_dylib); - if (Platform.isLinux) return LinuxHidListenerBackend(_dylib); - return null; -} - -HidListenerBackend? _backend = _createPlatformBackend(); - -HidListenerBackend? getListenerBackend() { - return _backend; -} +import 'dart:collection'; +import 'dart:ffi' as ffi; +import 'dart:io'; + +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; +import 'package:meta/meta.dart'; + +import 'package:hid_listener/src/macos/hid_listener_macos.dart'; +import 'package:hid_listener/src/windows/hid_listener_windows.dart'; +import 'package:hid_listener/src/linux/hid_listener_linux.dart'; + +import 'hid_listener_types.dart'; +export 'hid_listener_types.dart' + show + MouseEvent, + MouseButtonEventType, + MouseButtonEvent, + MouseMoveEvent, + MouseWheelEvent; + +const String _libName = 'hid_listener'; + +final ffi.DynamicLibrary _dylib = () { + if (Platform.isMacOS || Platform.isIOS) { + return ffi.DynamicLibrary.open('$_libName.framework/$_libName'); + } + if (Platform.isAndroid || Platform.isLinux) { + return ffi.DynamicLibrary.open('lib$_libName.so'); + } + if (Platform.isWindows) { + return ffi.DynamicLibrary.open('$_libName.dll'); + } + throw UnsupportedError('Unknown platform: ${Platform.operatingSystem}'); +}(); + +abstract class HidListenerBackend { + int? addKeyboardListener(void Function(RawKeyEvent) listener) { + if (!_keyboardRegistered) { + if (!registerKeyboard()) return null; + _keyboardRegistered = true; + } + + keyboardListeners.addAll({_lastKeyboardListenerId: listener}); + return _lastKeyboardListenerId++; + } + + void removeKeyboardListener(int listenerId) { + keyboardListeners.remove(listenerId); + } + + int? addMouseListener(void Function(MouseEvent) listener) { + if (!_mouseRegistered) { + if (!registerMouse()) return null; + _mouseRegistered = true; + } + + mouseListeners.addAll({_lastMouseListenerId: listener}); + return _lastMouseListenerId++; + } + + void removeMouseListener(int listenerId) { + mouseListeners.remove(listenerId); + } + + bool initialize(); + bool registerKeyboard(); + bool registerMouse(); + + @protected + HashMap keyboardListeners = + HashMap.identity(); + @protected + HashMap mouseListeners = HashMap.identity(); + + int _lastKeyboardListenerId = 0; + int _lastMouseListenerId = 0; + + bool _keyboardRegistered = false; + bool _mouseRegistered = false; +} + +HidListenerBackend? _createPlatformBackend() { + if (Platform.isWindows) return WindowsHidListenerBackend(_dylib); + if (Platform.isMacOS) return MacOsHidListenerBackend(_dylib); + if (Platform.isLinux) return LinuxHidListenerBackend(_dylib); + return null; +} + +HidListenerBackend? _backend = _createPlatformBackend(); + +HidListenerBackend? getListenerBackend() { + return _backend; +} diff --git a/lib/src/hid_listener_types.dart b/lib/src/hid_listener_types.dart index 1b762c9..0e9f648 100644 --- a/lib/src/hid_listener_types.dart +++ b/lib/src/hid_listener_types.dart @@ -1,33 +1,35 @@ -class MouseEvent { - MouseEvent({required this.x, required this.y}); - double x; - double y; -} - -enum MouseButtonEventType { - leftButtonUp, - leftButtonDown, - rightButtonUp, - rightButtonDown, -} - -class MouseButtonEvent extends MouseEvent { - MouseButtonEvent({required super.x, required super.y, required this.type}); - - MouseButtonEventType type; -} - -class MouseMoveEvent extends MouseEvent { - MouseMoveEvent({required super.x, required super.y}); -} - -class MouseWheelEvent extends MouseEvent { - MouseWheelEvent( - {required super.x, - required super.y, - required this.wheelDelta, - required this.isHorizontal}); - - int wheelDelta; - bool isHorizontal; -} +class MouseEvent { + MouseEvent({required this.x, required this.y}); + double x; + double y; +} + +enum MouseButtonEventType { + leftButtonUp, + leftButtonDown, + middleButtonUp, + middleButtonDown, + rightButtonUp, + rightButtonDown, +} + +class MouseButtonEvent extends MouseEvent { + MouseButtonEvent({required super.x, required super.y, required this.type}); + + MouseButtonEventType type; +} + +class MouseMoveEvent extends MouseEvent { + MouseMoveEvent({required super.x, required super.y}); +} + +class MouseWheelEvent extends MouseEvent { + MouseWheelEvent( + {required super.x, + required super.y, + required this.wheelDelta, + required this.isHorizontal}); + + int wheelDelta; + bool isHorizontal; +} diff --git a/lib/src/linux/hid_listener_linux.dart b/lib/src/linux/hid_listener_linux.dart index 78ebd21..2b96fe6 100644 --- a/lib/src/linux/hid_listener_linux.dart +++ b/lib/src/linux/hid_listener_linux.dart @@ -1,121 +1,121 @@ -import 'dart:ffi' as ffi; -import 'dart:isolate'; - -import 'package:flutter/services.dart'; -import 'package:hid_listener/src/hid_listener.dart'; -import 'package:hid_listener/src/shared/hid_listener_shared.dart' as shared; - -import 'hid_listener_bindings_linux.dart' as bindings; - -class LinuxHidListenerBackend extends HidListenerBackend { - LinuxHidListenerBackend(ffi.DynamicLibrary library) - : _bindings = bindings.HidListenerBindingsLinux(library) { - _bindings.InitializeDartAPI(ffi.NativeApi.initializeApiDLData); - } - - @override - bool initialize() { - return _bindings.InitializeListeners(); - } - - @override - bool registerKeyboard() { - final requests = ReceivePort()..listen(_keyboardProc); - final int nativePort = requests.sendPort.nativePort; - - return _bindings.SetKeyboardListener(nativePort); - } - - @override - bool registerMouse() { - final requests = ReceivePort()..listen(_mouseProc); - final int nativePort = requests.sendPort.nativePort; - - return _bindings.SetMouseListener(nativePort); - } - - void _keyboardProc(dynamic e) { - final eventAddr = ffi.Pointer.fromAddress(e); - - final pressed = - eventAddr.ref.eventType == bindings.LinuxKeyboardEventType.LKE_KeyDown - ? 0xffffffff - : 0x0; - - final keyHelper = GtkKeyHelper(); - final firstEventData = RawKeyEventDataLinux( - keyHelper: keyHelper, - unicodeScalarValues: eventAddr.ref.unicodeScalarValues, - scanCode: eventAddr.ref.scanCode, - keyCode: eventAddr.ref.keyCode, - isDown: pressed == 0xffffffff, - modifiers: 0); - - if (firstEventData.logicalKey == LogicalKeyboardKey.capsLock) { - _capslockEnabled = ~_capslockEnabled; - } - - if (firstEventData.logicalKey == LogicalKeyboardKey.altLeft || - firstEventData.logicalKey == LogicalKeyboardKey.altRight) { - _altPressed = pressed; - } - - if (firstEventData.logicalKey == LogicalKeyboardKey.controlLeft || - firstEventData.logicalKey == LogicalKeyboardKey.controlRight) { - _controlPressed = pressed; - } - - if (firstEventData.logicalKey == LogicalKeyboardKey.metaLeft || - firstEventData.logicalKey == LogicalKeyboardKey.metaRight) { - _metaPressed = pressed; - } - - if (firstEventData.logicalKey == LogicalKeyboardKey.shiftLeft || - firstEventData.logicalKey == LogicalKeyboardKey.shiftRight) { - _shiftPressed = pressed; - } - - final modifiers = (GtkKeyHelper.modifierCapsLock & _capslockEnabled) | - (GtkKeyHelper.modifierMod1 & _altPressed) | - (GtkKeyHelper.modifierControl & _controlPressed) | - (GtkKeyHelper.modifierMeta & _metaPressed) | - (GtkKeyHelper.modifierShift & _shiftPressed); - - final eventData = RawKeyEventDataLinux( - keyHelper: keyHelper, - unicodeScalarValues: eventAddr.ref.unicodeScalarValues, - scanCode: eventAddr.ref.scanCode, - keyCode: eventAddr.ref.keyCode, - isDown: pressed == 0xffffffff, - modifiers: modifiers); - - final RawKeyEvent event; - - if (pressed == 0xffffffff) { - event = RawKeyDownEvent(data: eventData); - } else { - event = RawKeyUpEvent(data: eventData); - } - - for (final listener in keyboardListeners.values) { - listener(event); - } - } - - void _mouseProc(dynamic e) { - final event = shared.mouseProc(e); - if (event == null) return; - - for (final listener in mouseListeners.values) { - listener(event); - } - } - - final bindings.HidListenerBindingsLinux _bindings; - - int _capslockEnabled = 0; - int _altPressed = 0; - int _controlPressed = 0; - int _metaPressed = 0; - int _shiftPressed = 0; -} +import 'dart:ffi' as ffi; +import 'dart:isolate'; + +import 'package:flutter/services.dart'; +import 'package:hid_listener/src/hid_listener.dart'; +import 'package:hid_listener/src/shared/hid_listener_shared.dart' as shared; + +import 'hid_listener_bindings_linux.dart' as bindings; + +class LinuxHidListenerBackend extends HidListenerBackend { + LinuxHidListenerBackend(ffi.DynamicLibrary library) + : _bindings = bindings.HidListenerBindingsLinux(library) { + _bindings.InitializeDartAPI(ffi.NativeApi.initializeApiDLData); + } + + @override + bool initialize() { + return _bindings.InitializeListeners(); + } + + @override + bool registerKeyboard() { + final requests = ReceivePort()..listen(_keyboardProc); + final int nativePort = requests.sendPort.nativePort; + + return _bindings.SetKeyboardListener(nativePort); + } + + @override + bool registerMouse() { + final requests = ReceivePort()..listen(_mouseProc); + final int nativePort = requests.sendPort.nativePort; + + return _bindings.SetMouseListener(nativePort); + } + + void _keyboardProc(dynamic e) { + final eventAddr = ffi.Pointer.fromAddress(e); + + final pressed = + eventAddr.ref.eventType == bindings.LinuxKeyboardEventType.LKE_KeyDown + ? 0xffffffff + : 0x0; + + final keyHelper = GtkKeyHelper(); + final firstEventData = RawKeyEventDataLinux( + keyHelper: keyHelper, + unicodeScalarValues: eventAddr.ref.unicodeScalarValues, + scanCode: eventAddr.ref.scanCode, + keyCode: eventAddr.ref.keyCode, + isDown: pressed == 0xffffffff, + modifiers: 0); + + if (firstEventData.logicalKey == LogicalKeyboardKey.capsLock) { + _capslockEnabled = ~_capslockEnabled; + } + + if (firstEventData.logicalKey == LogicalKeyboardKey.altLeft || + firstEventData.logicalKey == LogicalKeyboardKey.altRight) { + _altPressed = pressed; + } + + if (firstEventData.logicalKey == LogicalKeyboardKey.controlLeft || + firstEventData.logicalKey == LogicalKeyboardKey.controlRight) { + _controlPressed = pressed; + } + + if (firstEventData.logicalKey == LogicalKeyboardKey.metaLeft || + firstEventData.logicalKey == LogicalKeyboardKey.metaRight) { + _metaPressed = pressed; + } + + if (firstEventData.logicalKey == LogicalKeyboardKey.shiftLeft || + firstEventData.logicalKey == LogicalKeyboardKey.shiftRight) { + _shiftPressed = pressed; + } + + final modifiers = (GtkKeyHelper.modifierCapsLock & _capslockEnabled) | + (GtkKeyHelper.modifierMod1 & _altPressed) | + (GtkKeyHelper.modifierControl & _controlPressed) | + (GtkKeyHelper.modifierMeta & _metaPressed) | + (GtkKeyHelper.modifierShift & _shiftPressed); + + final eventData = RawKeyEventDataLinux( + keyHelper: keyHelper, + unicodeScalarValues: eventAddr.ref.unicodeScalarValues, + scanCode: eventAddr.ref.scanCode, + keyCode: eventAddr.ref.keyCode, + isDown: pressed == 0xffffffff, + modifiers: modifiers); + + final RawKeyEvent event; + + if (pressed == 0xffffffff) { + event = RawKeyDownEvent(data: eventData); + } else { + event = RawKeyUpEvent(data: eventData); + } + + for (final listener in keyboardListeners.values) { + listener(event); + } + } + + void _mouseProc(dynamic e) { + final event = shared.mouseProc(e); + if (event == null) return; + + for (final listener in mouseListeners.values) { + listener(event); + } + } + + final bindings.HidListenerBindingsLinux _bindings; + + int _capslockEnabled = 0; + int _altPressed = 0; + int _controlPressed = 0; + int _metaPressed = 0; + int _shiftPressed = 0; +} diff --git a/lib/src/macos/hid_listener_bindings_macos.dart b/lib/src/macos/hid_listener_bindings_macos.dart index 786db53..318a863 100644 --- a/lib/src/macos/hid_listener_bindings_macos.dart +++ b/lib/src/macos/hid_listener_bindings_macos.dart @@ -1,68015 +1,68015 @@ -// ignore_for_file: always_specify_types -// ignore_for_file: camel_case_types -// ignore_for_file: non_constant_identifier_names -// ignore_for_file: constant_identifier_names -// ignore_for_file: no_leading_underscores_for_local_identifiers -// ignore_for_file: library_private_types_in_public_api - -// AUTO GENERATED FILE, DO NOT EDIT. -// -// Generated by `package:ffigen`. -// ignore_for_file: type=lint -import 'dart:ffi' as ffi; -import 'package:ffi/ffi.dart' as pkg_ffi; - -/// Bindings for 'macos/Bindings/HidListener.h' -/// -class HidListenerBindingsSwift { - /// Holds the symbol lookup function. - final ffi.Pointer Function(String symbolName) - _lookup; - - /// The symbols are looked up in [dynamicLibrary]. - HidListenerBindingsSwift(ffi.DynamicLibrary dynamicLibrary) - : _lookup = dynamicLibrary.lookup; - - /// The symbols are looked up with [lookup]. - HidListenerBindingsSwift.fromLookup( - ffi.Pointer Function(String symbolName) - lookup) - : _lookup = lookup; - - ffi.Pointer _registerName1(String name) { - final cstr = name.toNativeUtf8(); - final sel = _sel_registerName(cstr.cast()); - pkg_ffi.calloc.free(cstr); - return sel; - } - - ffi.Pointer _sel_registerName( - ffi.Pointer str, - ) { - return __sel_registerName( - str, - ); - } - - late final __sel_registerNamePtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('sel_registerName'); - late final __sel_registerName = __sel_registerNamePtr - .asFunction Function(ffi.Pointer)>(); - - ffi.Pointer _getClass1(String name) { - final cstr = name.toNativeUtf8(); - final clazz = _objc_getClass(cstr.cast()); - pkg_ffi.calloc.free(cstr); - if (clazz == ffi.nullptr) { - throw Exception('Failed to load Objective-C class: $name'); - } - return clazz; - } - - ffi.Pointer _objc_getClass( - ffi.Pointer str, - ) { - return __objc_getClass( - str, - ); - } - - late final __objc_getClassPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('objc_getClass'); - late final __objc_getClass = __objc_getClassPtr - .asFunction Function(ffi.Pointer)>(); - - ffi.Pointer _objc_retain( - ffi.Pointer value, - ) { - return __objc_retain( - value, - ); - } - - late final __objc_retainPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('objc_retain'); - late final __objc_retain = __objc_retainPtr - .asFunction Function(ffi.Pointer)>(); - - void _objc_release( - ffi.Pointer value, - ) { - return __objc_release( - value, - ); - } - - late final __objc_releasePtr = - _lookup)>>( - 'objc_release'); - late final __objc_release = - __objc_releasePtr.asFunction)>(); - - late final _objc_releaseFinalizer2 = - ffi.NativeFinalizer(__objc_releasePtr.cast()); - late final _class_NSObject1 = _getClass1("NSObject"); - late final _sel_load1 = _registerName1("load"); - void _objc_msgSend_1( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_1( - obj, - sel, - ); - } - - late final __objc_msgSend_1Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1 = __objc_msgSend_1Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_initialize1 = _registerName1("initialize"); - late final _sel_init1 = _registerName1("init"); - instancetype _objc_msgSend_2( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_2( - obj, - sel, - ); - } - - late final __objc_msgSend_2Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_2 = __objc_msgSend_2Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_new1 = _registerName1("new"); - late final _sel_allocWithZone_1 = _registerName1("allocWithZone:"); - instancetype _objc_msgSend_3( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_NSZone> zone, - ) { - return __objc_msgSend_3( - obj, - sel, - zone, - ); - } - - late final __objc_msgSend_3Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_NSZone>)>>('objc_msgSend'); - late final __objc_msgSend_3 = __objc_msgSend_3Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_NSZone>)>(); - - late final _sel_alloc1 = _registerName1("alloc"); - late final _sel_dealloc1 = _registerName1("dealloc"); - late final _sel_finalize1 = _registerName1("finalize"); - late final _sel_copy1 = _registerName1("copy"); - late final _sel_mutableCopy1 = _registerName1("mutableCopy"); - late final _sel_copyWithZone_1 = _registerName1("copyWithZone:"); - late final _sel_mutableCopyWithZone_1 = - _registerName1("mutableCopyWithZone:"); - late final _sel_instancesRespondToSelector_1 = - _registerName1("instancesRespondToSelector:"); - bool _objc_msgSend_4( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aSelector, - ) { - return __objc_msgSend_4( - obj, - sel, - aSelector, - ); - } - - late final __objc_msgSend_4Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_4 = __objc_msgSend_4Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - bool _objc_msgSend_0( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer clazz, - ) { - return __objc_msgSend_0( - obj, - sel, - clazz, - ); - } - - late final __objc_msgSend_0Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_0 = __objc_msgSend_0Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_isKindOfClass_1 = _registerName1("isKindOfClass:"); - late final _class_Protocol1 = _getClass1("Protocol"); - late final _sel_conformsToProtocol_1 = _registerName1("conformsToProtocol:"); - bool _objc_msgSend_5( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer protocol, - ) { - return __objc_msgSend_5( - obj, - sel, - protocol, - ); - } - - late final __objc_msgSend_5Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_5 = __objc_msgSend_5Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_methodForSelector_1 = _registerName1("methodForSelector:"); - ffi.Pointer> _objc_msgSend_6( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aSelector, - ) { - return __objc_msgSend_6( - obj, - sel, - aSelector, - ); - } - - late final __objc_msgSend_6Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer> Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_6 = __objc_msgSend_6Ptr.asFunction< - ffi.Pointer> Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_instanceMethodForSelector_1 = - _registerName1("instanceMethodForSelector:"); - late final _sel_doesNotRecognizeSelector_1 = - _registerName1("doesNotRecognizeSelector:"); - void _objc_msgSend_7( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aSelector, - ) { - return __objc_msgSend_7( - obj, - sel, - aSelector, - ); - } - - late final __objc_msgSend_7Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_7 = __objc_msgSend_7Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_forwardingTargetForSelector_1 = - _registerName1("forwardingTargetForSelector:"); - ffi.Pointer _objc_msgSend_8( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aSelector, - ) { - return __objc_msgSend_8( - obj, - sel, - aSelector, - ); - } - - late final __objc_msgSend_8Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_8 = __objc_msgSend_8Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _class_NSInvocation1 = _getClass1("NSInvocation"); - late final _class_NSMethodSignature1 = _getClass1("NSMethodSignature"); - late final _sel_signatureWithObjCTypes_1 = - _registerName1("signatureWithObjCTypes:"); - ffi.Pointer _objc_msgSend_9( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer types, - ) { - return __objc_msgSend_9( - obj, - sel, - types, - ); - } - - late final __objc_msgSend_9Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_9 = __objc_msgSend_9Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_numberOfArguments1 = _registerName1("numberOfArguments"); - int _objc_msgSend_10( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_10( - obj, - sel, - ); - } - - late final __objc_msgSend_10Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_10 = __objc_msgSend_10Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_getArgumentTypeAtIndex_1 = - _registerName1("getArgumentTypeAtIndex:"); - ffi.Pointer _objc_msgSend_11( - ffi.Pointer obj, - ffi.Pointer sel, - int idx, - ) { - return __objc_msgSend_11( - obj, - sel, - idx, - ); - } - - late final __objc_msgSend_11Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_11 = __objc_msgSend_11Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_frameLength1 = _registerName1("frameLength"); - late final _sel_isOneway1 = _registerName1("isOneway"); - bool _objc_msgSend_12( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_12( - obj, - sel, - ); - } - - late final __objc_msgSend_12Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_12 = __objc_msgSend_12Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_methodReturnType1 = _registerName1("methodReturnType"); - ffi.Pointer _objc_msgSend_13( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_13( - obj, - sel, - ); - } - - late final __objc_msgSend_13Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_13 = __objc_msgSend_13Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_methodReturnLength1 = _registerName1("methodReturnLength"); - late final _sel_cancelPreviousPerformRequestsWithTarget_selector_object_1 = - _registerName1( - "cancelPreviousPerformRequestsWithTarget:selector:object:"); - void _objc_msgSend_14( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aTarget, - ffi.Pointer aSelector, - ffi.Pointer anArgument, - ) { - return __objc_msgSend_14( - obj, - sel, - aTarget, - aSelector, - anArgument, - ); - } - - late final __objc_msgSend_14Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_14 = __objc_msgSend_14Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_cancelPreviousPerformRequestsWithTarget_1 = - _registerName1("cancelPreviousPerformRequestsWithTarget:"); - void _objc_msgSend_15( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aTarget, - ) { - return __objc_msgSend_15( - obj, - sel, - aTarget, - ); - } - - late final __objc_msgSend_15Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_15 = __objc_msgSend_15Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_accessInstanceVariablesDirectly1 = - _registerName1("accessInstanceVariablesDirectly"); - late final _sel_useStoredAccessor1 = _registerName1("useStoredAccessor"); - late final _class_NSSet1 = _getClass1("NSSet"); - late final _sel_count1 = _registerName1("count"); - late final _sel_member_1 = _registerName1("member:"); - ffi.Pointer _objc_msgSend_16( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer object, - ) { - return __objc_msgSend_16( - obj, - sel, - object, - ); - } - - late final __objc_msgSend_16Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_16 = __objc_msgSend_16Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _class_NSEnumerator1 = _getClass1("NSEnumerator"); - late final _sel_nextObject1 = _registerName1("nextObject"); - late final _sel_allObjects1 = _registerName1("allObjects"); - late final _class_NSString1 = _getClass1("NSString"); - late final _sel_length1 = _registerName1("length"); - late final _sel_characterAtIndex_1 = _registerName1("characterAtIndex:"); - int _objc_msgSend_17( - ffi.Pointer obj, - ffi.Pointer sel, - int index, - ) { - return __objc_msgSend_17( - obj, - sel, - index, - ); - } - - late final __objc_msgSend_17Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedShort Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_17 = __objc_msgSend_17Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _class_NSCoder1 = _getClass1("NSCoder"); - late final _sel_encodeValueOfObjCType_at_1 = - _registerName1("encodeValueOfObjCType:at:"); - void _objc_msgSend_18( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer type, - ffi.Pointer addr, - ) { - return __objc_msgSend_18( - obj, - sel, - type, - addr, - ); - } - - late final __objc_msgSend_18Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_18 = __objc_msgSend_18Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _class_NSData1 = _getClass1("NSData"); - late final _sel_bytes1 = _registerName1("bytes"); - ffi.Pointer _objc_msgSend_19( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_19( - obj, - sel, - ); - } - - late final __objc_msgSend_19Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_19 = __objc_msgSend_19Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_description1 = _registerName1("description"); - ffi.Pointer _objc_msgSend_20( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_20( - obj, - sel, - ); - } - - late final __objc_msgSend_20Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_20 = __objc_msgSend_20Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_getBytes_length_1 = _registerName1("getBytes:length:"); - void _objc_msgSend_21( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer buffer, - int length, - ) { - return __objc_msgSend_21( - obj, - sel, - buffer, - length, - ); - } - - late final __objc_msgSend_21Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_21 = __objc_msgSend_21Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_getBytes_range_1 = _registerName1("getBytes:range:"); - void _objc_msgSend_22( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer buffer, - _NSRange range, - ) { - return __objc_msgSend_22( - obj, - sel, - buffer, - range, - ); - } - - late final __objc_msgSend_22Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_22 = __objc_msgSend_22Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>(); - - late final _sel_isEqualToData_1 = _registerName1("isEqualToData:"); - bool _objc_msgSend_23( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer other, - ) { - return __objc_msgSend_23( - obj, - sel, - other, - ); - } - - late final __objc_msgSend_23Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_23 = __objc_msgSend_23Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_subdataWithRange_1 = _registerName1("subdataWithRange:"); - ffi.Pointer _objc_msgSend_24( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ) { - return __objc_msgSend_24( - obj, - sel, - range, - ); - } - - late final __objc_msgSend_24Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_24 = __objc_msgSend_24Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, _NSRange)>(); - - late final _sel_writeToFile_atomically_1 = - _registerName1("writeToFile:atomically:"); - bool _objc_msgSend_25( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - bool useAuxiliaryFile, - ) { - return __objc_msgSend_25( - obj, - sel, - path, - useAuxiliaryFile, - ); - } - - late final __objc_msgSend_25Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_25 = __objc_msgSend_25Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); - - late final _class_NSURL1 = _getClass1("NSURL"); - late final _sel_initWithScheme_host_path_1 = - _registerName1("initWithScheme:host:path:"); - instancetype _objc_msgSend_26( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer scheme, - ffi.Pointer host, - ffi.Pointer path, - ) { - return __objc_msgSend_26( - obj, - sel, - scheme, - host, - path, - ); - } - - late final __objc_msgSend_26Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_26 = __objc_msgSend_26Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_initFileURLWithPath_isDirectory_relativeToURL_1 = - _registerName1("initFileURLWithPath:isDirectory:relativeToURL:"); - instancetype _objc_msgSend_27( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - bool isDir, - ffi.Pointer baseURL, - ) { - return __objc_msgSend_27( - obj, - sel, - path, - isDir, - baseURL, - ); - } - - late final __objc_msgSend_27Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_27 = __objc_msgSend_27Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool, ffi.Pointer)>(); - - late final _sel_initFileURLWithPath_relativeToURL_1 = - _registerName1("initFileURLWithPath:relativeToURL:"); - instancetype _objc_msgSend_28( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer baseURL, - ) { - return __objc_msgSend_28( - obj, - sel, - path, - baseURL, - ); - } - - late final __objc_msgSend_28Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_28 = __objc_msgSend_28Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_initFileURLWithPath_isDirectory_1 = - _registerName1("initFileURLWithPath:isDirectory:"); - instancetype _objc_msgSend_29( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - bool isDir, - ) { - return __objc_msgSend_29( - obj, - sel, - path, - isDir, - ); - } - - late final __objc_msgSend_29Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_29 = __objc_msgSend_29Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); - - late final _sel_initFileURLWithPath_1 = - _registerName1("initFileURLWithPath:"); - instancetype _objc_msgSend_30( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ) { - return __objc_msgSend_30( - obj, - sel, - path, - ); - } - - late final __objc_msgSend_30Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_30 = __objc_msgSend_30Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_fileURLWithPath_isDirectory_relativeToURL_1 = - _registerName1("fileURLWithPath:isDirectory:relativeToURL:"); - ffi.Pointer _objc_msgSend_31( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - bool isDir, - ffi.Pointer baseURL, - ) { - return __objc_msgSend_31( - obj, - sel, - path, - isDir, - baseURL, - ); - } - - late final __objc_msgSend_31Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_31 = __objc_msgSend_31Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer)>(); - - late final _sel_fileURLWithPath_relativeToURL_1 = - _registerName1("fileURLWithPath:relativeToURL:"); - ffi.Pointer _objc_msgSend_32( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer baseURL, - ) { - return __objc_msgSend_32( - obj, - sel, - path, - baseURL, - ); - } - - late final __objc_msgSend_32Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_32 = __objc_msgSend_32Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_fileURLWithPath_isDirectory_1 = - _registerName1("fileURLWithPath:isDirectory:"); - ffi.Pointer _objc_msgSend_33( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - bool isDir, - ) { - return __objc_msgSend_33( - obj, - sel, - path, - isDir, - ); - } - - late final __objc_msgSend_33Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_33 = __objc_msgSend_33Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, bool)>(); - - late final _sel_fileURLWithPath_1 = _registerName1("fileURLWithPath:"); - ffi.Pointer _objc_msgSend_34( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ) { - return __objc_msgSend_34( - obj, - sel, - path, - ); - } - - late final __objc_msgSend_34Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_34 = __objc_msgSend_34Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1 = - _registerName1( - "initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL:"); - instancetype _objc_msgSend_35( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - bool isDir, - ffi.Pointer baseURL, - ) { - return __objc_msgSend_35( - obj, - sel, - path, - isDir, - baseURL, - ); - } - - late final __objc_msgSend_35Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_35 = __objc_msgSend_35Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool, ffi.Pointer)>(); - - late final _sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1 = - _registerName1( - "fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:"); - ffi.Pointer _objc_msgSend_36( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - bool isDir, - ffi.Pointer baseURL, - ) { - return __objc_msgSend_36( - obj, - sel, - path, - isDir, - baseURL, - ); - } - - late final __objc_msgSend_36Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_36 = __objc_msgSend_36Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer)>(); - - late final _sel_initWithString_1 = _registerName1("initWithString:"); - late final _sel_initWithString_relativeToURL_1 = - _registerName1("initWithString:relativeToURL:"); - late final _sel_URLWithString_1 = _registerName1("URLWithString:"); - late final _sel_URLWithString_relativeToURL_1 = - _registerName1("URLWithString:relativeToURL:"); - late final _sel_initWithDataRepresentation_relativeToURL_1 = - _registerName1("initWithDataRepresentation:relativeToURL:"); - instancetype _objc_msgSend_37( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer data, - ffi.Pointer baseURL, - ) { - return __objc_msgSend_37( - obj, - sel, - data, - baseURL, - ); - } - - late final __objc_msgSend_37Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_37 = __objc_msgSend_37Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_URLWithDataRepresentation_relativeToURL_1 = - _registerName1("URLWithDataRepresentation:relativeToURL:"); - ffi.Pointer _objc_msgSend_38( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer data, - ffi.Pointer baseURL, - ) { - return __objc_msgSend_38( - obj, - sel, - data, - baseURL, - ); - } - - late final __objc_msgSend_38Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_38 = __objc_msgSend_38Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_initAbsoluteURLWithDataRepresentation_relativeToURL_1 = - _registerName1("initAbsoluteURLWithDataRepresentation:relativeToURL:"); - late final _sel_absoluteURLWithDataRepresentation_relativeToURL_1 = - _registerName1("absoluteURLWithDataRepresentation:relativeToURL:"); - late final _sel_dataRepresentation1 = _registerName1("dataRepresentation"); - ffi.Pointer _objc_msgSend_39( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_39( - obj, - sel, - ); - } - - late final __objc_msgSend_39Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_39 = __objc_msgSend_39Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_absoluteString1 = _registerName1("absoluteString"); - late final _sel_relativeString1 = _registerName1("relativeString"); - late final _sel_baseURL1 = _registerName1("baseURL"); - ffi.Pointer _objc_msgSend_40( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_40( - obj, - sel, - ); - } - - late final __objc_msgSend_40Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_40 = __objc_msgSend_40Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_absoluteURL1 = _registerName1("absoluteURL"); - late final _sel_scheme1 = _registerName1("scheme"); - late final _sel_resourceSpecifier1 = _registerName1("resourceSpecifier"); - late final _sel_host1 = _registerName1("host"); - late final _class_NSNumber1 = _getClass1("NSNumber"); - late final _class_NSValue1 = _getClass1("NSValue"); - late final _sel_getValue_size_1 = _registerName1("getValue:size:"); - late final _sel_objCType1 = _registerName1("objCType"); - late final _sel_initWithBytes_objCType_1 = - _registerName1("initWithBytes:objCType:"); - instancetype _objc_msgSend_41( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ffi.Pointer type, - ) { - return __objc_msgSend_41( - obj, - sel, - value, - type, - ); - } - - late final __objc_msgSend_41Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_41 = __objc_msgSend_41Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_initWithCoder_1 = _registerName1("initWithCoder:"); - instancetype _objc_msgSend_42( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer coder, - ) { - return __objc_msgSend_42( - obj, - sel, - coder, - ); - } - - late final __objc_msgSend_42Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_42 = __objc_msgSend_42Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_valueWithBytes_objCType_1 = - _registerName1("valueWithBytes:objCType:"); - ffi.Pointer _objc_msgSend_43( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ffi.Pointer type, - ) { - return __objc_msgSend_43( - obj, - sel, - value, - type, - ); - } - - late final __objc_msgSend_43Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_43 = __objc_msgSend_43Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_value_withObjCType_1 = _registerName1("value:withObjCType:"); - late final _sel_valueWithNonretainedObject_1 = - _registerName1("valueWithNonretainedObject:"); - ffi.Pointer _objc_msgSend_44( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anObject, - ) { - return __objc_msgSend_44( - obj, - sel, - anObject, - ); - } - - late final __objc_msgSend_44Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_44 = __objc_msgSend_44Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_nonretainedObjectValue1 = - _registerName1("nonretainedObjectValue"); - late final _sel_valueWithPointer_1 = _registerName1("valueWithPointer:"); - ffi.Pointer _objc_msgSend_45( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer pointer, - ) { - return __objc_msgSend_45( - obj, - sel, - pointer, - ); - } - - late final __objc_msgSend_45Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_45 = __objc_msgSend_45Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_pointerValue1 = _registerName1("pointerValue"); - late final _sel_isEqualToValue_1 = _registerName1("isEqualToValue:"); - bool _objc_msgSend_46( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_46( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_46Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_46 = __objc_msgSend_46Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_getValue_1 = _registerName1("getValue:"); - void _objc_msgSend_47( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_47( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_47Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_47 = __objc_msgSend_47Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_valueWithRange_1 = _registerName1("valueWithRange:"); - ffi.Pointer _objc_msgSend_48( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ) { - return __objc_msgSend_48( - obj, - sel, - range, - ); - } - - late final __objc_msgSend_48Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_48 = __objc_msgSend_48Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, _NSRange)>(); - - late final _sel_rangeValue1 = _registerName1("rangeValue"); - _NSRange _objc_msgSend_49( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_49( - obj, - sel, - ); - } - - late final __objc_msgSend_49Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_49 = __objc_msgSend_49Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_valueWithPoint_1 = _registerName1("valueWithPoint:"); - ffi.Pointer _objc_msgSend_50( - ffi.Pointer obj, - ffi.Pointer sel, - CGPoint point, - ) { - return __objc_msgSend_50( - obj, - sel, - point, - ); - } - - late final __objc_msgSend_50Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, CGPoint)>>('objc_msgSend'); - late final __objc_msgSend_50 = __objc_msgSend_50Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, CGPoint)>(); - - late final _sel_valueWithSize_1 = _registerName1("valueWithSize:"); - ffi.Pointer _objc_msgSend_51( - ffi.Pointer obj, - ffi.Pointer sel, - CGSize size, - ) { - return __objc_msgSend_51( - obj, - sel, - size, - ); - } - - late final __objc_msgSend_51Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, CGSize)>>('objc_msgSend'); - late final __objc_msgSend_51 = __objc_msgSend_51Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, CGSize)>(); - - late final _sel_valueWithRect_1 = _registerName1("valueWithRect:"); - ffi.Pointer _objc_msgSend_52( - ffi.Pointer obj, - ffi.Pointer sel, - CGRect rect, - ) { - return __objc_msgSend_52( - obj, - sel, - rect, - ); - } - - late final __objc_msgSend_52Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, CGRect)>>('objc_msgSend'); - late final __objc_msgSend_52 = __objc_msgSend_52Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, CGRect)>(); - - late final _sel_valueWithEdgeInsets_1 = - _registerName1("valueWithEdgeInsets:"); - ffi.Pointer _objc_msgSend_53( - ffi.Pointer obj, - ffi.Pointer sel, - NSEdgeInsets insets, - ) { - return __objc_msgSend_53( - obj, - sel, - insets, - ); - } - - late final __objc_msgSend_53Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, NSEdgeInsets)>>('objc_msgSend'); - late final __objc_msgSend_53 = __objc_msgSend_53Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, NSEdgeInsets)>(); - - late final _sel_pointValue1 = _registerName1("pointValue"); - CGPoint _objc_msgSend_54( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_54( - obj, - sel, - ); - } - - late final __objc_msgSend_54Ptr = _lookup< - ffi.NativeFunction< - CGPoint Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_54 = __objc_msgSend_54Ptr.asFunction< - CGPoint Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_sizeValue1 = _registerName1("sizeValue"); - CGSize _objc_msgSend_55( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_55( - obj, - sel, - ); - } - - late final __objc_msgSend_55Ptr = _lookup< - ffi.NativeFunction< - CGSize Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_55 = __objc_msgSend_55Ptr.asFunction< - CGSize Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_rectValue1 = _registerName1("rectValue"); - CGRect _objc_msgSend_56( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_56( - obj, - sel, - ); - } - - late final __objc_msgSend_56Ptr = _lookup< - ffi.NativeFunction< - CGRect Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_56 = __objc_msgSend_56Ptr.asFunction< - CGRect Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_edgeInsetsValue1 = _registerName1("edgeInsetsValue"); - NSEdgeInsets _objc_msgSend_57( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_57( - obj, - sel, - ); - } - - late final __objc_msgSend_57Ptr = _lookup< - ffi.NativeFunction< - NSEdgeInsets Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_57 = __objc_msgSend_57Ptr.asFunction< - NSEdgeInsets Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_keyPathsForValuesAffectingValueForKey_1 = - _registerName1("keyPathsForValuesAffectingValueForKey:"); - ffi.Pointer _objc_msgSend_58( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer key, - ) { - return __objc_msgSend_58( - obj, - sel, - key, - ); - } - - late final __objc_msgSend_58Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_58 = __objc_msgSend_58Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_automaticallyNotifiesObserversForKey_1 = - _registerName1("automaticallyNotifiesObserversForKey:"); - bool _objc_msgSend_59( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer key, - ) { - return __objc_msgSend_59( - obj, - sel, - key, - ); - } - - late final __objc_msgSend_59Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_59 = __objc_msgSend_59Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _class_NSArray1 = _getClass1("NSArray"); - late final _sel_objectAtIndex_1 = _registerName1("objectAtIndex:"); - ffi.Pointer _objc_msgSend_60( - ffi.Pointer obj, - ffi.Pointer sel, - int index, - ) { - return __objc_msgSend_60( - obj, - sel, - index, - ); - } - - late final __objc_msgSend_60Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_60 = __objc_msgSend_60Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_initWithObjects_count_1 = - _registerName1("initWithObjects:count:"); - instancetype _objc_msgSend_61( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> objects, - int cnt, - ) { - return __objc_msgSend_61( - obj, - sel, - objects, - cnt, - ); - } - - late final __objc_msgSend_61Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_61 = __objc_msgSend_61Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>, int)>(); - - late final _sel_arrayByAddingObject_1 = - _registerName1("arrayByAddingObject:"); - ffi.Pointer _objc_msgSend_62( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anObject, - ) { - return __objc_msgSend_62( - obj, - sel, - anObject, - ); - } - - late final __objc_msgSend_62Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_62 = __objc_msgSend_62Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_arrayByAddingObjectsFromArray_1 = - _registerName1("arrayByAddingObjectsFromArray:"); - ffi.Pointer _objc_msgSend_63( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer otherArray, - ) { - return __objc_msgSend_63( - obj, - sel, - otherArray, - ); - } - - late final __objc_msgSend_63Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_63 = __objc_msgSend_63Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_componentsJoinedByString_1 = - _registerName1("componentsJoinedByString:"); - ffi.Pointer _objc_msgSend_64( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer separator, - ) { - return __objc_msgSend_64( - obj, - sel, - separator, - ); - } - - late final __objc_msgSend_64Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_64 = __objc_msgSend_64Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_containsObject_1 = _registerName1("containsObject:"); - late final _sel_descriptionWithLocale_1 = - _registerName1("descriptionWithLocale:"); - ffi.Pointer _objc_msgSend_65( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer locale, - ) { - return __objc_msgSend_65( - obj, - sel, - locale, - ); - } - - late final __objc_msgSend_65Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_65 = __objc_msgSend_65Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_descriptionWithLocale_indent_1 = - _registerName1("descriptionWithLocale:indent:"); - ffi.Pointer _objc_msgSend_66( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer locale, - int level, - ) { - return __objc_msgSend_66( - obj, - sel, - locale, - level, - ); - } - - late final __objc_msgSend_66Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_66 = __objc_msgSend_66Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_firstObjectCommonWithArray_1 = - _registerName1("firstObjectCommonWithArray:"); - ffi.Pointer _objc_msgSend_67( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer otherArray, - ) { - return __objc_msgSend_67( - obj, - sel, - otherArray, - ); - } - - late final __objc_msgSend_67Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_67 = __objc_msgSend_67Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_getObjects_range_1 = _registerName1("getObjects:range:"); - void _objc_msgSend_68( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> objects, - _NSRange range, - ) { - return __objc_msgSend_68( - obj, - sel, - objects, - range, - ); - } - - late final __objc_msgSend_68Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_68 = __objc_msgSend_68Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>, _NSRange)>(); - - late final _sel_indexOfObject_1 = _registerName1("indexOfObject:"); - int _objc_msgSend_69( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anObject, - ) { - return __objc_msgSend_69( - obj, - sel, - anObject, - ); - } - - late final __objc_msgSend_69Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_69 = __objc_msgSend_69Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_indexOfObject_inRange_1 = - _registerName1("indexOfObject:inRange:"); - int _objc_msgSend_70( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anObject, - _NSRange range, - ) { - return __objc_msgSend_70( - obj, - sel, - anObject, - range, - ); - } - - late final __objc_msgSend_70Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_70 = __objc_msgSend_70Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>(); - - late final _sel_indexOfObjectIdenticalTo_1 = - _registerName1("indexOfObjectIdenticalTo:"); - late final _sel_indexOfObjectIdenticalTo_inRange_1 = - _registerName1("indexOfObjectIdenticalTo:inRange:"); - late final _sel_isEqualToArray_1 = _registerName1("isEqualToArray:"); - bool _objc_msgSend_71( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer otherArray, - ) { - return __objc_msgSend_71( - obj, - sel, - otherArray, - ); - } - - late final __objc_msgSend_71Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_71 = __objc_msgSend_71Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_firstObject1 = _registerName1("firstObject"); - late final _sel_lastObject1 = _registerName1("lastObject"); - late final _sel_objectEnumerator1 = _registerName1("objectEnumerator"); - ffi.Pointer _objc_msgSend_72( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_72( - obj, - sel, - ); - } - - late final __objc_msgSend_72Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_72 = __objc_msgSend_72Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_reverseObjectEnumerator1 = - _registerName1("reverseObjectEnumerator"); - late final _sel_sortedArrayHint1 = _registerName1("sortedArrayHint"); - late final _sel_sortedArrayUsingFunction_context_1 = - _registerName1("sortedArrayUsingFunction:context:"); - ffi.Pointer _objc_msgSend_73( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - comparator, - ffi.Pointer context, - ) { - return __objc_msgSend_73( - obj, - sel, - comparator, - context, - ); - } - - late final __objc_msgSend_73Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_73 = __objc_msgSend_73Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>, - ffi.Pointer)>(); - - late final _sel_sortedArrayUsingFunction_context_hint_1 = - _registerName1("sortedArrayUsingFunction:context:hint:"); - ffi.Pointer _objc_msgSend_74( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - comparator, - ffi.Pointer context, - ffi.Pointer hint, - ) { - return __objc_msgSend_74( - obj, - sel, - comparator, - context, - hint, - ); - } - - late final __objc_msgSend_74Ptr = _lookup< - 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)>>('objc_msgSend'); - late final __objc_msgSend_74 = __objc_msgSend_74Ptr.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)>(); - - late final _sel_sortedArrayUsingSelector_1 = - _registerName1("sortedArrayUsingSelector:"); - ffi.Pointer _objc_msgSend_75( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer comparator, - ) { - return __objc_msgSend_75( - obj, - sel, - comparator, - ); - } - - late final __objc_msgSend_75Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_75 = __objc_msgSend_75Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_subarrayWithRange_1 = _registerName1("subarrayWithRange:"); - ffi.Pointer _objc_msgSend_76( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ) { - return __objc_msgSend_76( - obj, - sel, - range, - ); - } - - late final __objc_msgSend_76Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_76 = __objc_msgSend_76Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, _NSRange)>(); - - late final _class_NSError1 = _getClass1("NSError"); - late final _sel_initWithDomain_code_userInfo_1 = - _registerName1("initWithDomain:code:userInfo:"); - instancetype _objc_msgSend_77( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer domain, - int code, - ffi.Pointer dict, - ) { - return __objc_msgSend_77( - obj, - sel, - domain, - code, - dict, - ); - } - - late final __objc_msgSend_77Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_77 = __objc_msgSend_77Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer)>(); - - late final _sel_errorWithDomain_code_userInfo_1 = - _registerName1("errorWithDomain:code:userInfo:"); - late final _sel_domain1 = _registerName1("domain"); - late final _sel_code1 = _registerName1("code"); - int _objc_msgSend_78( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_78( - obj, - sel, - ); - } - - late final __objc_msgSend_78Ptr = _lookup< - ffi.NativeFunction< - ffi.Long Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_78 = __objc_msgSend_78Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_userInfo1 = _registerName1("userInfo"); - late final _sel_localizedDescription1 = - _registerName1("localizedDescription"); - late final _sel_localizedFailureReason1 = - _registerName1("localizedFailureReason"); - late final _sel_localizedRecoverySuggestion1 = - _registerName1("localizedRecoverySuggestion"); - late final _sel_localizedRecoveryOptions1 = - _registerName1("localizedRecoveryOptions"); - ffi.Pointer _objc_msgSend_79( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_79( - obj, - sel, - ); - } - - late final __objc_msgSend_79Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_79 = __objc_msgSend_79Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_recoveryAttempter1 = _registerName1("recoveryAttempter"); - late final _sel_helpAnchor1 = _registerName1("helpAnchor"); - late final _sel_underlyingErrors1 = _registerName1("underlyingErrors"); - ffi.Pointer<_ObjCBlockDesc> _newBlockDesc1() { - final d = - pkg_ffi.calloc.allocate<_ObjCBlockDesc>(ffi.sizeOf<_ObjCBlockDesc>()); - d.ref.reserved = 0; - d.ref.size = ffi.sizeOf<_ObjCBlock>(); - d.ref.copy_helper = ffi.nullptr; - d.ref.dispose_helper = ffi.nullptr; - d.ref.signature = ffi.nullptr; - return d; - } - - late final _objc_block_desc1 = _newBlockDesc1(); - late final _objc_concrete_global_block1 = - _lookup('_NSConcreteGlobalBlock'); - ffi.Pointer<_ObjCBlock> _newBlock1( - ffi.Pointer invoke, ffi.Pointer target) { - final b = pkg_ffi.calloc.allocate<_ObjCBlock>(ffi.sizeOf<_ObjCBlock>()); - b.ref.isa = _objc_concrete_global_block1; - b.ref.flags = 0; - b.ref.reserved = 0; - b.ref.invoke = invoke; - b.ref.target = target; - b.ref.descriptor = _objc_block_desc1; - final copy = _Block_copy(b.cast()).cast<_ObjCBlock>(); - pkg_ffi.calloc.free(b); - return copy; - } - - ffi.Pointer _Block_copy( - ffi.Pointer value, - ) { - return __Block_copy( - value, - ); - } - - late final __Block_copyPtr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>('_Block_copy'); - late final __Block_copy = __Block_copyPtr - .asFunction Function(ffi.Pointer)>(); - - void _Block_release( - ffi.Pointer value, - ) { - return __Block_release( - value, - ); - } - - late final __Block_releasePtr = - _lookup)>>( - '_Block_release'); - late final __Block_release = - __Block_releasePtr.asFunction)>(); - - late final _objc_releaseFinalizer11 = - ffi.NativeFinalizer(__Block_releasePtr.cast()); - late final _sel_setUserInfoValueProviderForDomain_provider_1 = - _registerName1("setUserInfoValueProviderForDomain:provider:"); - void _objc_msgSend_80( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer errorDomain, - ffi.Pointer<_ObjCBlock> provider, - ) { - return __objc_msgSend_80( - obj, - sel, - errorDomain, - provider, - ); - } - - late final __objc_msgSend_80Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_80 = __objc_msgSend_80Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_userInfoValueProviderForDomain_1 = - _registerName1("userInfoValueProviderForDomain:"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_81( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer err, - ffi.Pointer userInfoKey, - ffi.Pointer errorDomain, - ) { - return __objc_msgSend_81( - obj, - sel, - err, - userInfoKey, - errorDomain, - ); - } - - late final __objc_msgSend_81Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_81 = __objc_msgSend_81Ptr.asFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_setKeys_triggerChangeNotificationsForDependentKey_1 = - _registerName1("setKeys:triggerChangeNotificationsForDependentKey:"); - void _objc_msgSend_82( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer keys, - ffi.Pointer dependentKey, - ) { - return __objc_msgSend_82( - obj, - sel, - keys, - dependentKey, - ); - } - - late final __objc_msgSend_82Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_82 = __objc_msgSend_82Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_classFallbacksForKeyedArchiver1 = - _registerName1("classFallbacksForKeyedArchiver"); - late final _sel_classForKeyedUnarchiver1 = - _registerName1("classForKeyedUnarchiver"); - late final _sel_writeToURL_error_1 = _registerName1("writeToURL:error:"); - bool _objc_msgSend_83( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer> error, - ) { - return __objc_msgSend_83( - obj, - sel, - url, - error, - ); - } - - late final __objc_msgSend_83Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_83 = __objc_msgSend_83Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer>)>(); - - late final _sel_makeObjectsPerformSelector_1 = - _registerName1("makeObjectsPerformSelector:"); - late final _sel_makeObjectsPerformSelector_withObject_1 = - _registerName1("makeObjectsPerformSelector:withObject:"); - void _objc_msgSend_84( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aSelector, - ffi.Pointer argument, - ) { - return __objc_msgSend_84( - obj, - sel, - aSelector, - argument, - ); - } - - late final __objc_msgSend_84Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_84 = __objc_msgSend_84Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _class_NSIndexSet1 = _getClass1("NSIndexSet"); - late final _sel_indexSet1 = _registerName1("indexSet"); - late final _sel_indexSetWithIndex_1 = _registerName1("indexSetWithIndex:"); - late final _sel_indexSetWithIndexesInRange_1 = - _registerName1("indexSetWithIndexesInRange:"); - instancetype _objc_msgSend_85( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ) { - return __objc_msgSend_85( - obj, - sel, - range, - ); - } - - late final __objc_msgSend_85Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_85 = __objc_msgSend_85Ptr.asFunction< - instancetype Function( - ffi.Pointer, ffi.Pointer, _NSRange)>(); - - late final _sel_initWithIndexesInRange_1 = - _registerName1("initWithIndexesInRange:"); - late final _sel_initWithIndexSet_1 = _registerName1("initWithIndexSet:"); - instancetype _objc_msgSend_86( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer indexSet, - ) { - return __objc_msgSend_86( - obj, - sel, - indexSet, - ); - } - - late final __objc_msgSend_86Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_86 = __objc_msgSend_86Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_initWithIndex_1 = _registerName1("initWithIndex:"); - late final _sel_isEqualToIndexSet_1 = _registerName1("isEqualToIndexSet:"); - bool _objc_msgSend_87( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer indexSet, - ) { - return __objc_msgSend_87( - obj, - sel, - indexSet, - ); - } - - late final __objc_msgSend_87Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_87 = __objc_msgSend_87Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_firstIndex1 = _registerName1("firstIndex"); - late final _sel_lastIndex1 = _registerName1("lastIndex"); - late final _sel_indexGreaterThanIndex_1 = - _registerName1("indexGreaterThanIndex:"); - int _objc_msgSend_88( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_88( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_88Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_88 = __objc_msgSend_88Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_indexLessThanIndex_1 = _registerName1("indexLessThanIndex:"); - late final _sel_indexGreaterThanOrEqualToIndex_1 = - _registerName1("indexGreaterThanOrEqualToIndex:"); - late final _sel_indexLessThanOrEqualToIndex_1 = - _registerName1("indexLessThanOrEqualToIndex:"); - late final _sel_getIndexes_maxCount_inIndexRange_1 = - _registerName1("getIndexes:maxCount:inIndexRange:"); - int _objc_msgSend_89( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer indexBuffer, - int bufferSize, - ffi.Pointer<_NSRange> range, - ) { - return __objc_msgSend_89( - obj, - sel, - indexBuffer, - bufferSize, - range, - ); - } - - late final __objc_msgSend_89Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_89 = __objc_msgSend_89Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_NSRange>)>(); - - late final _sel_countOfIndexesInRange_1 = - _registerName1("countOfIndexesInRange:"); - int _objc_msgSend_90( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ) { - return __objc_msgSend_90( - obj, - sel, - range, - ); - } - - late final __objc_msgSend_90Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_90 = __objc_msgSend_90Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, _NSRange)>(); - - late final _sel_containsIndex_1 = _registerName1("containsIndex:"); - bool _objc_msgSend_91( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_91( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_91Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_91 = __objc_msgSend_91Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_containsIndexesInRange_1 = - _registerName1("containsIndexesInRange:"); - bool _objc_msgSend_92( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ) { - return __objc_msgSend_92( - obj, - sel, - range, - ); - } - - late final __objc_msgSend_92Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_92 = __objc_msgSend_92Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, _NSRange)>(); - - late final _sel_containsIndexes_1 = _registerName1("containsIndexes:"); - late final _sel_intersectsIndexesInRange_1 = - _registerName1("intersectsIndexesInRange:"); - late final _sel_enumerateIndexesUsingBlock_1 = - _registerName1("enumerateIndexesUsingBlock:"); - void _objc_msgSend_93( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_93( - obj, - sel, - block, - ); - } - - late final __objc_msgSend_93Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_93 = __objc_msgSend_93Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_enumerateIndexesWithOptions_usingBlock_1 = - _registerName1("enumerateIndexesWithOptions:usingBlock:"); - void _objc_msgSend_94( - ffi.Pointer obj, - ffi.Pointer sel, - int opts, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_94( - obj, - sel, - opts, - block, - ); - } - - late final __objc_msgSend_94Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_94 = __objc_msgSend_94Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_enumerateIndexesInRange_options_usingBlock_1 = - _registerName1("enumerateIndexesInRange:options:usingBlock:"); - void _objc_msgSend_95( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - int opts, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_95( - obj, - sel, - range, - opts, - block, - ); - } - - late final __objc_msgSend_95Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_95 = __objc_msgSend_95Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, _NSRange, - int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexPassingTest_1 = _registerName1("indexPassingTest:"); - int _objc_msgSend_96( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> predicate, - ) { - return __objc_msgSend_96( - obj, - sel, - predicate, - ); - } - - late final __objc_msgSend_96Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_96 = __objc_msgSend_96Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexWithOptions_passingTest_1 = - _registerName1("indexWithOptions:passingTest:"); - int _objc_msgSend_97( - ffi.Pointer obj, - ffi.Pointer sel, - int opts, - ffi.Pointer<_ObjCBlock> predicate, - ) { - return __objc_msgSend_97( - obj, - sel, - opts, - predicate, - ); - } - - late final __objc_msgSend_97Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_97 = __objc_msgSend_97Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexInRange_options_passingTest_1 = - _registerName1("indexInRange:options:passingTest:"); - int _objc_msgSend_98( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - int opts, - ffi.Pointer<_ObjCBlock> predicate, - ) { - return __objc_msgSend_98( - obj, - sel, - range, - opts, - predicate, - ); - } - - late final __objc_msgSend_98Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_98 = __objc_msgSend_98Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, _NSRange, int, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexesPassingTest_1 = _registerName1("indexesPassingTest:"); - ffi.Pointer _objc_msgSend_99( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> predicate, - ) { - return __objc_msgSend_99( - obj, - sel, - predicate, - ); - } - - late final __objc_msgSend_99Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_99 = __objc_msgSend_99Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexesWithOptions_passingTest_1 = - _registerName1("indexesWithOptions:passingTest:"); - ffi.Pointer _objc_msgSend_100( - ffi.Pointer obj, - ffi.Pointer sel, - int opts, - ffi.Pointer<_ObjCBlock> predicate, - ) { - return __objc_msgSend_100( - obj, - sel, - opts, - predicate, - ); - } - - late final __objc_msgSend_100Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_100 = __objc_msgSend_100Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexesInRange_options_passingTest_1 = - _registerName1("indexesInRange:options:passingTest:"); - ffi.Pointer _objc_msgSend_101( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - int opts, - ffi.Pointer<_ObjCBlock> predicate, - ) { - return __objc_msgSend_101( - obj, - sel, - range, - opts, - predicate, - ); - } - - late final __objc_msgSend_101Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_101 = __objc_msgSend_101Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_enumerateRangesUsingBlock_1 = - _registerName1("enumerateRangesUsingBlock:"); - void _objc_msgSend_102( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_102( - obj, - sel, - block, - ); - } - - late final __objc_msgSend_102Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_102 = __objc_msgSend_102Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_enumerateRangesWithOptions_usingBlock_1 = - _registerName1("enumerateRangesWithOptions:usingBlock:"); - void _objc_msgSend_103( - ffi.Pointer obj, - ffi.Pointer sel, - int opts, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_103( - obj, - sel, - opts, - block, - ); - } - - late final __objc_msgSend_103Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_103 = __objc_msgSend_103Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_enumerateRangesInRange_options_usingBlock_1 = - _registerName1("enumerateRangesInRange:options:usingBlock:"); - void _objc_msgSend_104( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - int opts, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_104( - obj, - sel, - range, - opts, - block, - ); - } - - late final __objc_msgSend_104Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_104 = __objc_msgSend_104Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, _NSRange, - int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_objectsAtIndexes_1 = _registerName1("objectsAtIndexes:"); - ffi.Pointer _objc_msgSend_105( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer indexes, - ) { - return __objc_msgSend_105( - obj, - sel, - indexes, - ); - } - - late final __objc_msgSend_105Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_105 = __objc_msgSend_105Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_objectAtIndexedSubscript_1 = - _registerName1("objectAtIndexedSubscript:"); - late final _sel_enumerateObjectsUsingBlock_1 = - _registerName1("enumerateObjectsUsingBlock:"); - void _objc_msgSend_106( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_106( - obj, - sel, - block, - ); - } - - late final __objc_msgSend_106Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_106 = __objc_msgSend_106Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_enumerateObjectsWithOptions_usingBlock_1 = - _registerName1("enumerateObjectsWithOptions:usingBlock:"); - void _objc_msgSend_107( - ffi.Pointer obj, - ffi.Pointer sel, - int opts, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_107( - obj, - sel, - opts, - block, - ); - } - - late final __objc_msgSend_107Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_107 = __objc_msgSend_107Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_enumerateObjectsAtIndexes_options_usingBlock_1 = - _registerName1("enumerateObjectsAtIndexes:options:usingBlock:"); - void _objc_msgSend_108( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer s, - int opts, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_108( - obj, - sel, - s, - opts, - block, - ); - } - - late final __objc_msgSend_108Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_108 = __objc_msgSend_108Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexOfObjectPassingTest_1 = - _registerName1("indexOfObjectPassingTest:"); - int _objc_msgSend_109( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> predicate, - ) { - return __objc_msgSend_109( - obj, - sel, - predicate, - ); - } - - late final __objc_msgSend_109Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_109 = __objc_msgSend_109Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexOfObjectWithOptions_passingTest_1 = - _registerName1("indexOfObjectWithOptions:passingTest:"); - int _objc_msgSend_110( - ffi.Pointer obj, - ffi.Pointer sel, - int opts, - ffi.Pointer<_ObjCBlock> predicate, - ) { - return __objc_msgSend_110( - obj, - sel, - opts, - predicate, - ); - } - - late final __objc_msgSend_110Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_110 = __objc_msgSend_110Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexOfObjectAtIndexes_options_passingTest_1 = - _registerName1("indexOfObjectAtIndexes:options:passingTest:"); - int _objc_msgSend_111( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer s, - int opts, - ffi.Pointer<_ObjCBlock> predicate, - ) { - return __objc_msgSend_111( - obj, - sel, - s, - opts, - predicate, - ); - } - - late final __objc_msgSend_111Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_111 = __objc_msgSend_111Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexesOfObjectsPassingTest_1 = - _registerName1("indexesOfObjectsPassingTest:"); - ffi.Pointer _objc_msgSend_112( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> predicate, - ) { - return __objc_msgSend_112( - obj, - sel, - predicate, - ); - } - - late final __objc_msgSend_112Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_112 = __objc_msgSend_112Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexesOfObjectsWithOptions_passingTest_1 = - _registerName1("indexesOfObjectsWithOptions:passingTest:"); - ffi.Pointer _objc_msgSend_113( - ffi.Pointer obj, - ffi.Pointer sel, - int opts, - ffi.Pointer<_ObjCBlock> predicate, - ) { - return __objc_msgSend_113( - obj, - sel, - opts, - predicate, - ); - } - - late final __objc_msgSend_113Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_113 = __objc_msgSend_113Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexesOfObjectsAtIndexes_options_passingTest_1 = - _registerName1("indexesOfObjectsAtIndexes:options:passingTest:"); - ffi.Pointer _objc_msgSend_114( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer s, - int opts, - ffi.Pointer<_ObjCBlock> predicate, - ) { - return __objc_msgSend_114( - obj, - sel, - s, - opts, - predicate, - ); - } - - late final __objc_msgSend_114Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_114 = __objc_msgSend_114Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_sortedArrayUsingComparator_1 = - _registerName1("sortedArrayUsingComparator:"); - ffi.Pointer _objc_msgSend_115( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> cmptr, - ) { - return __objc_msgSend_115( - obj, - sel, - cmptr, - ); - } - - late final __objc_msgSend_115Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_115 = __objc_msgSend_115Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_sortedArrayWithOptions_usingComparator_1 = - _registerName1("sortedArrayWithOptions:usingComparator:"); - ffi.Pointer _objc_msgSend_116( - ffi.Pointer obj, - ffi.Pointer sel, - int opts, - ffi.Pointer<_ObjCBlock> cmptr, - ) { - return __objc_msgSend_116( - obj, - sel, - opts, - cmptr, - ); - } - - late final __objc_msgSend_116Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_116 = __objc_msgSend_116Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_indexOfObject_inSortedRange_options_usingComparator_1 = - _registerName1("indexOfObject:inSortedRange:options:usingComparator:"); - int _objc_msgSend_117( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer obj1, - _NSRange r, - int opts, - ffi.Pointer<_ObjCBlock> cmp, - ) { - return __objc_msgSend_117( - obj, - sel, - obj1, - r, - opts, - cmp, - ); - } - - late final __objc_msgSend_117Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_117 = __objc_msgSend_117Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_array1 = _registerName1("array"); - late final _sel_arrayWithObject_1 = _registerName1("arrayWithObject:"); - late final _sel_arrayWithObjects_count_1 = - _registerName1("arrayWithObjects:count:"); - late final _sel_arrayWithObjects_1 = _registerName1("arrayWithObjects:"); - late final _sel_arrayWithArray_1 = _registerName1("arrayWithArray:"); - late final _sel_initWithObjects_1 = _registerName1("initWithObjects:"); - late final _sel_initWithArray_1 = _registerName1("initWithArray:"); - late final _sel_initWithArray_copyItems_1 = - _registerName1("initWithArray:copyItems:"); - instancetype _objc_msgSend_118( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer array, - bool flag, - ) { - return __objc_msgSend_118( - obj, - sel, - array, - flag, - ); - } - - late final __objc_msgSend_118Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_118 = __objc_msgSend_118Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); - - late final _sel_initWithContentsOfURL_error_1 = - _registerName1("initWithContentsOfURL:error:"); - ffi.Pointer _objc_msgSend_119( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer> error, - ) { - return __objc_msgSend_119( - obj, - sel, - url, - error, - ); - } - - late final __objc_msgSend_119Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_119 = __objc_msgSend_119Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_arrayWithContentsOfURL_error_1 = - _registerName1("arrayWithContentsOfURL:error:"); - late final _sel_differenceFromArray_withOptions_usingEquivalenceTest_1 = - _registerName1("differenceFromArray:withOptions:usingEquivalenceTest:"); - ffi.Pointer _objc_msgSend_120( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer other, - int options, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_120( - obj, - sel, - other, - options, - block, - ); - } - - late final __objc_msgSend_120Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_120 = __objc_msgSend_120Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_differenceFromArray_withOptions_1 = - _registerName1("differenceFromArray:withOptions:"); - ffi.Pointer _objc_msgSend_121( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer other, - int options, - ) { - return __objc_msgSend_121( - obj, - sel, - other, - options, - ); - } - - late final __objc_msgSend_121Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_121 = __objc_msgSend_121Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_differenceFromArray_1 = - _registerName1("differenceFromArray:"); - late final _sel_arrayByApplyingDifference_1 = - _registerName1("arrayByApplyingDifference:"); - late final _sel_getObjects_1 = _registerName1("getObjects:"); - void _objc_msgSend_122( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> objects, - ) { - return __objc_msgSend_122( - obj, - sel, - objects, - ); - } - - late final __objc_msgSend_122Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_122 = __objc_msgSend_122Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_arrayWithContentsOfFile_1 = - _registerName1("arrayWithContentsOfFile:"); - ffi.Pointer _objc_msgSend_123( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ) { - return __objc_msgSend_123( - obj, - sel, - path, - ); - } - - late final __objc_msgSend_123Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_123 = __objc_msgSend_123Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_arrayWithContentsOfURL_1 = - _registerName1("arrayWithContentsOfURL:"); - ffi.Pointer _objc_msgSend_124( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ) { - return __objc_msgSend_124( - obj, - sel, - url, - ); - } - - late final __objc_msgSend_124Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_124 = __objc_msgSend_124Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_initWithContentsOfFile_1 = - _registerName1("initWithContentsOfFile:"); - late final _sel_initWithContentsOfURL_1 = - _registerName1("initWithContentsOfURL:"); - late final _sel_writeToURL_atomically_1 = - _registerName1("writeToURL:atomically:"); - bool _objc_msgSend_125( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - bool atomically, - ) { - return __objc_msgSend_125( - obj, - sel, - url, - atomically, - ); - } - - late final __objc_msgSend_125Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_125 = __objc_msgSend_125Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); - - late final _sel_pathsMatchingExtensions_1 = - _registerName1("pathsMatchingExtensions:"); - late final _sel_valueForKey_1 = _registerName1("valueForKey:"); - late final _sel_setValue_forKey_1 = _registerName1("setValue:forKey:"); - void _objc_msgSend_126( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ffi.Pointer key, - ) { - return __objc_msgSend_126( - obj, - sel, - value, - key, - ); - } - - late final __objc_msgSend_126Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_126 = __objc_msgSend_126Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_addObserver_toObjectsAtIndexes_forKeyPath_options_context_1 = - _registerName1( - "addObserver:toObjectsAtIndexes:forKeyPath:options:context:"); - void _objc_msgSend_127( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer observer, - ffi.Pointer indexes, - ffi.Pointer keyPath, - int options, - ffi.Pointer context, - ) { - return __objc_msgSend_127( - obj, - sel, - observer, - indexes, - keyPath, - options, - context, - ); - } - - late final __objc_msgSend_127Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_127 = __objc_msgSend_127Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>(); - - late final _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_context_1 = - _registerName1("removeObserver:fromObjectsAtIndexes:forKeyPath:context:"); - void _objc_msgSend_128( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer observer, - ffi.Pointer indexes, - ffi.Pointer keyPath, - ffi.Pointer context, - ) { - return __objc_msgSend_128( - obj, - sel, - observer, - indexes, - keyPath, - context, - ); - } - - late final __objc_msgSend_128Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_128 = __objc_msgSend_128Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_1 = - _registerName1("removeObserver:fromObjectsAtIndexes:forKeyPath:"); - void _objc_msgSend_129( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer observer, - ffi.Pointer indexes, - ffi.Pointer keyPath, - ) { - return __objc_msgSend_129( - obj, - sel, - observer, - indexes, - keyPath, - ); - } - - late final __objc_msgSend_129Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_129 = __objc_msgSend_129Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_addObserver_forKeyPath_options_context_1 = - _registerName1("addObserver:forKeyPath:options:context:"); - void _objc_msgSend_130( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer observer, - ffi.Pointer keyPath, - int options, - ffi.Pointer context, - ) { - return __objc_msgSend_130( - obj, - sel, - observer, - keyPath, - options, - context, - ); - } - - late final __objc_msgSend_130Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_130 = __objc_msgSend_130Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>(); - - late final _sel_removeObserver_forKeyPath_context_1 = - _registerName1("removeObserver:forKeyPath:context:"); - void _objc_msgSend_131( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer observer, - ffi.Pointer keyPath, - ffi.Pointer context, - ) { - return __objc_msgSend_131( - obj, - sel, - observer, - keyPath, - context, - ); - } - - late final __objc_msgSend_131Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_131 = __objc_msgSend_131Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_removeObserver_forKeyPath_1 = - _registerName1("removeObserver:forKeyPath:"); - void _objc_msgSend_132( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer observer, - ffi.Pointer keyPath, - ) { - return __objc_msgSend_132( - obj, - sel, - observer, - keyPath, - ); - } - - late final __objc_msgSend_132Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_132 = __objc_msgSend_132Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_sortedArrayUsingDescriptors_1 = - _registerName1("sortedArrayUsingDescriptors:"); - late final _class_NSPredicate1 = _getClass1("NSPredicate"); - late final _sel_predicateWithFormat_argumentArray_1 = - _registerName1("predicateWithFormat:argumentArray:"); - ffi.Pointer _objc_msgSend_133( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer predicateFormat, - ffi.Pointer arguments, - ) { - return __objc_msgSend_133( - obj, - sel, - predicateFormat, - arguments, - ); - } - - late final __objc_msgSend_133Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_133 = __objc_msgSend_133Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_predicateWithFormat_1 = - _registerName1("predicateWithFormat:"); - ffi.Pointer _objc_msgSend_134( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer predicateFormat, - ) { - return __objc_msgSend_134( - obj, - sel, - predicateFormat, - ); - } - - late final __objc_msgSend_134Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_134 = __objc_msgSend_134Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_predicateWithFormat_arguments_1 = - _registerName1("predicateWithFormat:arguments:"); - ffi.Pointer _objc_msgSend_135( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer predicateFormat, - ffi.Pointer<__va_list_tag> argList, - ) { - return __objc_msgSend_135( - obj, - sel, - predicateFormat, - argList, - ); - } - - late final __objc_msgSend_135Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); - late final __objc_msgSend_135 = __objc_msgSend_135Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__va_list_tag>)>(); - - late final _sel_predicateFromMetadataQueryString_1 = - _registerName1("predicateFromMetadataQueryString:"); - late final _sel_predicateWithValue_1 = _registerName1("predicateWithValue:"); - ffi.Pointer _objc_msgSend_136( - ffi.Pointer obj, - ffi.Pointer sel, - bool value, - ) { - return __objc_msgSend_136( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_136Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_136 = __objc_msgSend_136Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, bool)>(); - - late final _class_NSDictionary1 = _getClass1("NSDictionary"); - late final _sel_objectForKey_1 = _registerName1("objectForKey:"); - late final _sel_keyEnumerator1 = _registerName1("keyEnumerator"); - late final _sel_initWithObjects_forKeys_count_1 = - _registerName1("initWithObjects:forKeys:count:"); - instancetype _objc_msgSend_137( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt, - ) { - return __objc_msgSend_137( - obj, - sel, - objects, - keys, - cnt, - ); - } - - late final __objc_msgSend_137Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_137 = __objc_msgSend_137Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - int)>(); - - late final _sel_allKeys1 = _registerName1("allKeys"); - late final _sel_allKeysForObject_1 = _registerName1("allKeysForObject:"); - late final _sel_allValues1 = _registerName1("allValues"); - late final _sel_descriptionInStringsFileFormat1 = - _registerName1("descriptionInStringsFileFormat"); - late final _sel_isEqualToDictionary_1 = - _registerName1("isEqualToDictionary:"); - bool _objc_msgSend_138( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer otherDictionary, - ) { - return __objc_msgSend_138( - obj, - sel, - otherDictionary, - ); - } - - late final __objc_msgSend_138Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_138 = __objc_msgSend_138Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_objectsForKeys_notFoundMarker_1 = - _registerName1("objectsForKeys:notFoundMarker:"); - ffi.Pointer _objc_msgSend_139( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer keys, - ffi.Pointer marker, - ) { - return __objc_msgSend_139( - obj, - sel, - keys, - marker, - ); - } - - late final __objc_msgSend_139Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_139 = __objc_msgSend_139Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_keysSortedByValueUsingSelector_1 = - _registerName1("keysSortedByValueUsingSelector:"); - late final _sel_getObjects_andKeys_count_1 = - _registerName1("getObjects:andKeys:count:"); - void _objc_msgSend_140( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> objects, - ffi.Pointer> keys, - int count, - ) { - return __objc_msgSend_140( - obj, - sel, - objects, - keys, - count, - ); - } - - late final __objc_msgSend_140Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_140 = __objc_msgSend_140Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>, - int)>(); - - late final _sel_objectForKeyedSubscript_1 = - _registerName1("objectForKeyedSubscript:"); - late final _sel_enumerateKeysAndObjectsUsingBlock_1 = - _registerName1("enumerateKeysAndObjectsUsingBlock:"); - void _objc_msgSend_141( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_141( - obj, - sel, - block, - ); - } - - late final __objc_msgSend_141Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_141 = __objc_msgSend_141Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_enumerateKeysAndObjectsWithOptions_usingBlock_1 = - _registerName1("enumerateKeysAndObjectsWithOptions:usingBlock:"); - void _objc_msgSend_142( - ffi.Pointer obj, - ffi.Pointer sel, - int opts, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_142( - obj, - sel, - opts, - block, - ); - } - - late final __objc_msgSend_142Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_142 = __objc_msgSend_142Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_keysSortedByValueUsingComparator_1 = - _registerName1("keysSortedByValueUsingComparator:"); - late final _sel_keysSortedByValueWithOptions_usingComparator_1 = - _registerName1("keysSortedByValueWithOptions:usingComparator:"); - late final _sel_keysOfEntriesPassingTest_1 = - _registerName1("keysOfEntriesPassingTest:"); - ffi.Pointer _objc_msgSend_143( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> predicate, - ) { - return __objc_msgSend_143( - obj, - sel, - predicate, - ); - } - - late final __objc_msgSend_143Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_143 = __objc_msgSend_143Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_keysOfEntriesWithOptions_passingTest_1 = - _registerName1("keysOfEntriesWithOptions:passingTest:"); - ffi.Pointer _objc_msgSend_144( - ffi.Pointer obj, - ffi.Pointer sel, - int opts, - ffi.Pointer<_ObjCBlock> predicate, - ) { - return __objc_msgSend_144( - obj, - sel, - opts, - predicate, - ); - } - - late final __objc_msgSend_144Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_144 = __objc_msgSend_144Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_getObjects_andKeys_1 = _registerName1("getObjects:andKeys:"); - void _objc_msgSend_145( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> objects, - ffi.Pointer> keys, - ) { - return __objc_msgSend_145( - obj, - sel, - objects, - keys, - ); - } - - late final __objc_msgSend_145Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_145 = __objc_msgSend_145Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>)>(); - - late final _sel_dictionaryWithContentsOfFile_1 = - _registerName1("dictionaryWithContentsOfFile:"); - ffi.Pointer _objc_msgSend_146( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ) { - return __objc_msgSend_146( - obj, - sel, - path, - ); - } - - late final __objc_msgSend_146Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_146 = __objc_msgSend_146Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_dictionaryWithContentsOfURL_1 = - _registerName1("dictionaryWithContentsOfURL:"); - ffi.Pointer _objc_msgSend_147( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ) { - return __objc_msgSend_147( - obj, - sel, - url, - ); - } - - late final __objc_msgSend_147Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_147 = __objc_msgSend_147Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_dictionary1 = _registerName1("dictionary"); - late final _sel_dictionaryWithObject_forKey_1 = - _registerName1("dictionaryWithObject:forKey:"); - instancetype _objc_msgSend_148( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer object, - ffi.Pointer key, - ) { - return __objc_msgSend_148( - obj, - sel, - object, - key, - ); - } - - late final __objc_msgSend_148Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_148 = __objc_msgSend_148Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_dictionaryWithObjects_forKeys_count_1 = - _registerName1("dictionaryWithObjects:forKeys:count:"); - late final _sel_dictionaryWithObjectsAndKeys_1 = - _registerName1("dictionaryWithObjectsAndKeys:"); - late final _sel_dictionaryWithDictionary_1 = - _registerName1("dictionaryWithDictionary:"); - instancetype _objc_msgSend_149( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer dict, - ) { - return __objc_msgSend_149( - obj, - sel, - dict, - ); - } - - late final __objc_msgSend_149Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_149 = __objc_msgSend_149Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_dictionaryWithObjects_forKeys_1 = - _registerName1("dictionaryWithObjects:forKeys:"); - instancetype _objc_msgSend_150( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer objects, - ffi.Pointer keys, - ) { - return __objc_msgSend_150( - obj, - sel, - objects, - keys, - ); - } - - late final __objc_msgSend_150Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_150 = __objc_msgSend_150Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_initWithObjectsAndKeys_1 = - _registerName1("initWithObjectsAndKeys:"); - late final _sel_initWithDictionary_1 = _registerName1("initWithDictionary:"); - late final _sel_initWithDictionary_copyItems_1 = - _registerName1("initWithDictionary:copyItems:"); - instancetype _objc_msgSend_151( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer otherDictionary, - bool flag, - ) { - return __objc_msgSend_151( - obj, - sel, - otherDictionary, - flag, - ); - } - - late final __objc_msgSend_151Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_151 = __objc_msgSend_151Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); - - late final _sel_initWithObjects_forKeys_1 = - _registerName1("initWithObjects:forKeys:"); - ffi.Pointer _objc_msgSend_152( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer> error, - ) { - return __objc_msgSend_152( - obj, - sel, - url, - error, - ); - } - - late final __objc_msgSend_152Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_152 = __objc_msgSend_152Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_dictionaryWithContentsOfURL_error_1 = - _registerName1("dictionaryWithContentsOfURL:error:"); - late final _sel_sharedKeySetForKeys_1 = - _registerName1("sharedKeySetForKeys:"); - late final _sel_countByEnumeratingWithState_objects_count_1 = - _registerName1("countByEnumeratingWithState:objects:count:"); - int _objc_msgSend_153( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer state, - ffi.Pointer> buffer, - int len, - ) { - return __objc_msgSend_153( - obj, - sel, - state, - buffer, - len, - ); - } - - late final __objc_msgSend_153Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_153 = __objc_msgSend_153Ptr.asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - int)>(); - - late final _sel_fileSize1 = _registerName1("fileSize"); - int _objc_msgSend_154( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_154( - obj, - sel, - ); - } - - late final __objc_msgSend_154Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLongLong Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_154 = __objc_msgSend_154Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _class_NSDate1 = _getClass1("NSDate"); - late final _sel_timeIntervalSinceReferenceDate1 = - _registerName1("timeIntervalSinceReferenceDate"); - double _objc_msgSend_155( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_155( - obj, - sel, - ); - } - - late final __objc_msgSend_155Ptr = _lookup< - ffi.NativeFunction< - ffi.Double Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_155 = __objc_msgSend_155Ptr.asFunction< - double Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_initWithTimeIntervalSinceReferenceDate_1 = - _registerName1("initWithTimeIntervalSinceReferenceDate:"); - instancetype _objc_msgSend_156( - ffi.Pointer obj, - ffi.Pointer sel, - double ti, - ) { - return __objc_msgSend_156( - obj, - sel, - ti, - ); - } - - late final __objc_msgSend_156Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_156 = __objc_msgSend_156Ptr.asFunction< - instancetype Function( - ffi.Pointer, ffi.Pointer, double)>(); - - late final _sel_timeIntervalSinceDate_1 = - _registerName1("timeIntervalSinceDate:"); - double _objc_msgSend_157( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anotherDate, - ) { - return __objc_msgSend_157( - obj, - sel, - anotherDate, - ); - } - - late final __objc_msgSend_157Ptr = _lookup< - ffi.NativeFunction< - ffi.Double Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_157 = __objc_msgSend_157Ptr.asFunction< - double Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_timeIntervalSinceNow1 = - _registerName1("timeIntervalSinceNow"); - late final _sel_timeIntervalSince19701 = - _registerName1("timeIntervalSince1970"); - late final _sel_addTimeInterval_1 = _registerName1("addTimeInterval:"); - late final _sel_dateByAddingTimeInterval_1 = - _registerName1("dateByAddingTimeInterval:"); - late final _sel_earlierDate_1 = _registerName1("earlierDate:"); - ffi.Pointer _objc_msgSend_158( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anotherDate, - ) { - return __objc_msgSend_158( - obj, - sel, - anotherDate, - ); - } - - late final __objc_msgSend_158Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_158 = __objc_msgSend_158Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_laterDate_1 = _registerName1("laterDate:"); - late final _sel_compare_1 = _registerName1("compare:"); - int _objc_msgSend_159( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer other, - ) { - return __objc_msgSend_159( - obj, - sel, - other, - ); - } - - late final __objc_msgSend_159Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_159 = __objc_msgSend_159Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_isEqualToDate_1 = _registerName1("isEqualToDate:"); - bool _objc_msgSend_160( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer otherDate, - ) { - return __objc_msgSend_160( - obj, - sel, - otherDate, - ); - } - - late final __objc_msgSend_160Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_160 = __objc_msgSend_160Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_date1 = _registerName1("date"); - late final _sel_dateWithTimeIntervalSinceNow_1 = - _registerName1("dateWithTimeIntervalSinceNow:"); - late final _sel_dateWithTimeIntervalSinceReferenceDate_1 = - _registerName1("dateWithTimeIntervalSinceReferenceDate:"); - late final _sel_dateWithTimeIntervalSince1970_1 = - _registerName1("dateWithTimeIntervalSince1970:"); - late final _sel_dateWithTimeInterval_sinceDate_1 = - _registerName1("dateWithTimeInterval:sinceDate:"); - instancetype _objc_msgSend_161( - ffi.Pointer obj, - ffi.Pointer sel, - double secsToBeAdded, - ffi.Pointer date, - ) { - return __objc_msgSend_161( - obj, - sel, - secsToBeAdded, - date, - ); - } - - late final __objc_msgSend_161Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Double, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_161 = __objc_msgSend_161Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - double, ffi.Pointer)>(); - - late final _sel_distantFuture1 = _registerName1("distantFuture"); - ffi.Pointer _objc_msgSend_162( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_162( - obj, - sel, - ); - } - - late final __objc_msgSend_162Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_162 = __objc_msgSend_162Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_distantPast1 = _registerName1("distantPast"); - late final _sel_now1 = _registerName1("now"); - late final _sel_initWithTimeIntervalSinceNow_1 = - _registerName1("initWithTimeIntervalSinceNow:"); - late final _sel_initWithTimeIntervalSince1970_1 = - _registerName1("initWithTimeIntervalSince1970:"); - late final _sel_initWithTimeInterval_sinceDate_1 = - _registerName1("initWithTimeInterval:sinceDate:"); - late final _sel_dateWithNaturalLanguageString_locale_1 = - _registerName1("dateWithNaturalLanguageString:locale:"); - ffi.Pointer _objc_msgSend_163( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer string, - ffi.Pointer locale, - ) { - return __objc_msgSend_163( - obj, - sel, - string, - locale, - ); - } - - late final __objc_msgSend_163Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_163 = __objc_msgSend_163Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_dateWithNaturalLanguageString_1 = - _registerName1("dateWithNaturalLanguageString:"); - late final _sel_dateWithString_1 = _registerName1("dateWithString:"); - late final _class_NSCalendarDate1 = _getClass1("NSCalendarDate"); - late final _sel_calendarDate1 = _registerName1("calendarDate"); - late final _sel_dateWithString_calendarFormat_locale_1 = - _registerName1("dateWithString:calendarFormat:locale:"); - ffi.Pointer _objc_msgSend_164( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer description, - ffi.Pointer format, - ffi.Pointer locale, - ) { - return __objc_msgSend_164( - obj, - sel, - description, - format, - locale, - ); - } - - late final __objc_msgSend_164Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_164 = __objc_msgSend_164Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_dateWithString_calendarFormat_1 = - _registerName1("dateWithString:calendarFormat:"); - ffi.Pointer _objc_msgSend_165( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer description, - ffi.Pointer format, - ) { - return __objc_msgSend_165( - obj, - sel, - description, - format, - ); - } - - late final __objc_msgSend_165Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_165 = __objc_msgSend_165Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _class_NSTimeZone1 = _getClass1("NSTimeZone"); - late final _sel_name1 = _registerName1("name"); - late final _sel_data1 = _registerName1("data"); - late final _sel_secondsFromGMTForDate_1 = - _registerName1("secondsFromGMTForDate:"); - int _objc_msgSend_166( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aDate, - ) { - return __objc_msgSend_166( - obj, - sel, - aDate, - ); - } - - late final __objc_msgSend_166Ptr = _lookup< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_166 = __objc_msgSend_166Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_abbreviationForDate_1 = - _registerName1("abbreviationForDate:"); - ffi.Pointer _objc_msgSend_167( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aDate, - ) { - return __objc_msgSend_167( - obj, - sel, - aDate, - ); - } - - late final __objc_msgSend_167Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_167 = __objc_msgSend_167Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_isDaylightSavingTimeForDate_1 = - _registerName1("isDaylightSavingTimeForDate:"); - late final _sel_daylightSavingTimeOffsetForDate_1 = - _registerName1("daylightSavingTimeOffsetForDate:"); - late final _sel_nextDaylightSavingTimeTransitionAfterDate_1 = - _registerName1("nextDaylightSavingTimeTransitionAfterDate:"); - late final _sel_systemTimeZone1 = _registerName1("systemTimeZone"); - ffi.Pointer _objc_msgSend_168( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_168( - obj, - sel, - ); - } - - late final __objc_msgSend_168Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_168 = __objc_msgSend_168Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_resetSystemTimeZone1 = _registerName1("resetSystemTimeZone"); - late final _sel_defaultTimeZone1 = _registerName1("defaultTimeZone"); - late final _sel_setDefaultTimeZone_1 = _registerName1("setDefaultTimeZone:"); - void _objc_msgSend_169( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_169( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_169Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_169 = __objc_msgSend_169Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_localTimeZone1 = _registerName1("localTimeZone"); - late final _sel_knownTimeZoneNames1 = _registerName1("knownTimeZoneNames"); - late final _sel_abbreviationDictionary1 = - _registerName1("abbreviationDictionary"); - ffi.Pointer _objc_msgSend_170( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_170( - obj, - sel, - ); - } - - late final __objc_msgSend_170Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_170 = __objc_msgSend_170Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setAbbreviationDictionary_1 = - _registerName1("setAbbreviationDictionary:"); - void _objc_msgSend_171( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_171( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_171Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_171 = __objc_msgSend_171Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_timeZoneDataVersion1 = _registerName1("timeZoneDataVersion"); - late final _sel_secondsFromGMT1 = _registerName1("secondsFromGMT"); - late final _sel_abbreviation1 = _registerName1("abbreviation"); - late final _sel_isDaylightSavingTime1 = - _registerName1("isDaylightSavingTime"); - late final _sel_daylightSavingTimeOffset1 = - _registerName1("daylightSavingTimeOffset"); - late final _sel_nextDaylightSavingTimeTransition1 = - _registerName1("nextDaylightSavingTimeTransition"); - late final _sel_isEqualToTimeZone_1 = _registerName1("isEqualToTimeZone:"); - bool _objc_msgSend_172( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aTimeZone, - ) { - return __objc_msgSend_172( - obj, - sel, - aTimeZone, - ); - } - - late final __objc_msgSend_172Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_172 = __objc_msgSend_172Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _class_NSLocale1 = _getClass1("NSLocale"); - late final _sel_displayNameForKey_value_1 = - _registerName1("displayNameForKey:value:"); - ffi.Pointer _objc_msgSend_173( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer key, - ffi.Pointer value, - ) { - return __objc_msgSend_173( - obj, - sel, - key, - value, - ); - } - - late final __objc_msgSend_173Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_173 = __objc_msgSend_173Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_initWithLocaleIdentifier_1 = - _registerName1("initWithLocaleIdentifier:"); - late final _sel_localeIdentifier1 = _registerName1("localeIdentifier"); - late final _sel_localizedStringForLocaleIdentifier_1 = - _registerName1("localizedStringForLocaleIdentifier:"); - late final _sel_languageCode1 = _registerName1("languageCode"); - late final _sel_localizedStringForLanguageCode_1 = - _registerName1("localizedStringForLanguageCode:"); - late final _sel_countryCode1 = _registerName1("countryCode"); - late final _sel_localizedStringForCountryCode_1 = - _registerName1("localizedStringForCountryCode:"); - late final _sel_scriptCode1 = _registerName1("scriptCode"); - late final _sel_localizedStringForScriptCode_1 = - _registerName1("localizedStringForScriptCode:"); - late final _sel_variantCode1 = _registerName1("variantCode"); - late final _sel_localizedStringForVariantCode_1 = - _registerName1("localizedStringForVariantCode:"); - late final _class_NSCharacterSet1 = _getClass1("NSCharacterSet"); - late final _sel_controlCharacterSet1 = _registerName1("controlCharacterSet"); - ffi.Pointer _objc_msgSend_174( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_174( - obj, - sel, - ); - } - - late final __objc_msgSend_174Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_174 = __objc_msgSend_174Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_whitespaceCharacterSet1 = - _registerName1("whitespaceCharacterSet"); - late final _sel_whitespaceAndNewlineCharacterSet1 = - _registerName1("whitespaceAndNewlineCharacterSet"); - late final _sel_decimalDigitCharacterSet1 = - _registerName1("decimalDigitCharacterSet"); - late final _sel_letterCharacterSet1 = _registerName1("letterCharacterSet"); - late final _sel_lowercaseLetterCharacterSet1 = - _registerName1("lowercaseLetterCharacterSet"); - late final _sel_uppercaseLetterCharacterSet1 = - _registerName1("uppercaseLetterCharacterSet"); - late final _sel_nonBaseCharacterSet1 = _registerName1("nonBaseCharacterSet"); - late final _sel_alphanumericCharacterSet1 = - _registerName1("alphanumericCharacterSet"); - late final _sel_decomposableCharacterSet1 = - _registerName1("decomposableCharacterSet"); - late final _sel_illegalCharacterSet1 = _registerName1("illegalCharacterSet"); - late final _sel_punctuationCharacterSet1 = - _registerName1("punctuationCharacterSet"); - late final _sel_capitalizedLetterCharacterSet1 = - _registerName1("capitalizedLetterCharacterSet"); - late final _sel_symbolCharacterSet1 = _registerName1("symbolCharacterSet"); - late final _sel_newlineCharacterSet1 = _registerName1("newlineCharacterSet"); - late final _sel_characterSetWithRange_1 = - _registerName1("characterSetWithRange:"); - ffi.Pointer _objc_msgSend_175( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange aRange, - ) { - return __objc_msgSend_175( - obj, - sel, - aRange, - ); - } - - late final __objc_msgSend_175Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_175 = __objc_msgSend_175Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, _NSRange)>(); - - late final _sel_characterSetWithCharactersInString_1 = - _registerName1("characterSetWithCharactersInString:"); - ffi.Pointer _objc_msgSend_176( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aString, - ) { - return __objc_msgSend_176( - obj, - sel, - aString, - ); - } - - late final __objc_msgSend_176Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_176 = __objc_msgSend_176Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_characterSetWithBitmapRepresentation_1 = - _registerName1("characterSetWithBitmapRepresentation:"); - ffi.Pointer _objc_msgSend_177( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer data, - ) { - return __objc_msgSend_177( - obj, - sel, - data, - ); - } - - late final __objc_msgSend_177Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_177 = __objc_msgSend_177Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_characterSetWithContentsOfFile_1 = - _registerName1("characterSetWithContentsOfFile:"); - late final _sel_characterIsMember_1 = _registerName1("characterIsMember:"); - bool _objc_msgSend_178( - ffi.Pointer obj, - ffi.Pointer sel, - int aCharacter, - ) { - return __objc_msgSend_178( - obj, - sel, - aCharacter, - ); - } - - late final __objc_msgSend_178Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedShort)>>('objc_msgSend'); - late final __objc_msgSend_178 = __objc_msgSend_178Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_bitmapRepresentation1 = - _registerName1("bitmapRepresentation"); - late final _sel_invertedSet1 = _registerName1("invertedSet"); - late final _sel_longCharacterIsMember_1 = - _registerName1("longCharacterIsMember:"); - bool _objc_msgSend_179( - ffi.Pointer obj, - ffi.Pointer sel, - int theLongChar, - ) { - return __objc_msgSend_179( - obj, - sel, - theLongChar, - ); - } - - late final __objc_msgSend_179Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedInt)>>('objc_msgSend'); - late final __objc_msgSend_179 = __objc_msgSend_179Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_isSupersetOfSet_1 = _registerName1("isSupersetOfSet:"); - bool _objc_msgSend_180( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer theOtherSet, - ) { - return __objc_msgSend_180( - obj, - sel, - theOtherSet, - ); - } - - late final __objc_msgSend_180Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_180 = __objc_msgSend_180Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_hasMemberInPlane_1 = _registerName1("hasMemberInPlane:"); - bool _objc_msgSend_181( - ffi.Pointer obj, - ffi.Pointer sel, - int thePlane, - ) { - return __objc_msgSend_181( - obj, - sel, - thePlane, - ); - } - - late final __objc_msgSend_181Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Uint8)>>('objc_msgSend'); - late final __objc_msgSend_181 = __objc_msgSend_181Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_URLUserAllowedCharacterSet1 = - _registerName1("URLUserAllowedCharacterSet"); - late final _sel_URLPasswordAllowedCharacterSet1 = - _registerName1("URLPasswordAllowedCharacterSet"); - late final _sel_URLHostAllowedCharacterSet1 = - _registerName1("URLHostAllowedCharacterSet"); - late final _sel_URLPathAllowedCharacterSet1 = - _registerName1("URLPathAllowedCharacterSet"); - late final _sel_URLQueryAllowedCharacterSet1 = - _registerName1("URLQueryAllowedCharacterSet"); - late final _sel_URLFragmentAllowedCharacterSet1 = - _registerName1("URLFragmentAllowedCharacterSet"); - late final _sel_exemplarCharacterSet1 = - _registerName1("exemplarCharacterSet"); - late final _sel_calendarIdentifier1 = _registerName1("calendarIdentifier"); - late final _sel_localizedStringForCalendarIdentifier_1 = - _registerName1("localizedStringForCalendarIdentifier:"); - late final _sel_collationIdentifier1 = _registerName1("collationIdentifier"); - late final _sel_localizedStringForCollationIdentifier_1 = - _registerName1("localizedStringForCollationIdentifier:"); - late final _sel_usesMetricSystem1 = _registerName1("usesMetricSystem"); - late final _sel_decimalSeparator1 = _registerName1("decimalSeparator"); - late final _sel_groupingSeparator1 = _registerName1("groupingSeparator"); - late final _sel_currencySymbol1 = _registerName1("currencySymbol"); - late final _sel_currencyCode1 = _registerName1("currencyCode"); - late final _sel_localizedStringForCurrencyCode_1 = - _registerName1("localizedStringForCurrencyCode:"); - late final _sel_collatorIdentifier1 = _registerName1("collatorIdentifier"); - late final _sel_localizedStringForCollatorIdentifier_1 = - _registerName1("localizedStringForCollatorIdentifier:"); - late final _sel_quotationBeginDelimiter1 = - _registerName1("quotationBeginDelimiter"); - late final _sel_quotationEndDelimiter1 = - _registerName1("quotationEndDelimiter"); - late final _sel_alternateQuotationBeginDelimiter1 = - _registerName1("alternateQuotationBeginDelimiter"); - late final _sel_alternateQuotationEndDelimiter1 = - _registerName1("alternateQuotationEndDelimiter"); - late final _sel_autoupdatingCurrentLocale1 = - _registerName1("autoupdatingCurrentLocale"); - ffi.Pointer _objc_msgSend_182( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_182( - obj, - sel, - ); - } - - late final __objc_msgSend_182Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_182 = __objc_msgSend_182Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_currentLocale1 = _registerName1("currentLocale"); - late final _sel_systemLocale1 = _registerName1("systemLocale"); - late final _sel_localeWithLocaleIdentifier_1 = - _registerName1("localeWithLocaleIdentifier:"); - late final _sel_availableLocaleIdentifiers1 = - _registerName1("availableLocaleIdentifiers"); - late final _sel_ISOLanguageCodes1 = _registerName1("ISOLanguageCodes"); - late final _sel_ISOCountryCodes1 = _registerName1("ISOCountryCodes"); - late final _sel_ISOCurrencyCodes1 = _registerName1("ISOCurrencyCodes"); - late final _sel_commonISOCurrencyCodes1 = - _registerName1("commonISOCurrencyCodes"); - late final _sel_preferredLanguages1 = _registerName1("preferredLanguages"); - late final _sel_componentsFromLocaleIdentifier_1 = - _registerName1("componentsFromLocaleIdentifier:"); - late final _sel_localeIdentifierFromComponents_1 = - _registerName1("localeIdentifierFromComponents:"); - ffi.Pointer _objc_msgSend_183( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer dict, - ) { - return __objc_msgSend_183( - obj, - sel, - dict, - ); - } - - late final __objc_msgSend_183Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_183 = __objc_msgSend_183Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_canonicalLocaleIdentifierFromString_1 = - _registerName1("canonicalLocaleIdentifierFromString:"); - late final _sel_canonicalLanguageIdentifierFromString_1 = - _registerName1("canonicalLanguageIdentifierFromString:"); - late final _sel_localeIdentifierFromWindowsLocaleCode_1 = - _registerName1("localeIdentifierFromWindowsLocaleCode:"); - ffi.Pointer _objc_msgSend_184( - ffi.Pointer obj, - ffi.Pointer sel, - int lcid, - ) { - return __objc_msgSend_184( - obj, - sel, - lcid, - ); - } - - late final __objc_msgSend_184Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Uint32)>>('objc_msgSend'); - late final __objc_msgSend_184 = __objc_msgSend_184Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_windowsLocaleCodeFromLocaleIdentifier_1 = - _registerName1("windowsLocaleCodeFromLocaleIdentifier:"); - int _objc_msgSend_185( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer localeIdentifier, - ) { - return __objc_msgSend_185( - obj, - sel, - localeIdentifier, - ); - } - - late final __objc_msgSend_185Ptr = _lookup< - ffi.NativeFunction< - ffi.Uint32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_185 = __objc_msgSend_185Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_characterDirectionForLanguage_1 = - _registerName1("characterDirectionForLanguage:"); - int _objc_msgSend_186( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer isoLangCode, - ) { - return __objc_msgSend_186( - obj, - sel, - isoLangCode, - ); - } - - late final __objc_msgSend_186Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_186 = __objc_msgSend_186Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_lineDirectionForLanguage_1 = - _registerName1("lineDirectionForLanguage:"); - late final _sel_localizedName_locale_1 = - _registerName1("localizedName:locale:"); - ffi.Pointer _objc_msgSend_187( - ffi.Pointer obj, - ffi.Pointer sel, - int style, - ffi.Pointer locale, - ) { - return __objc_msgSend_187( - obj, - sel, - style, - locale, - ); - } - - late final __objc_msgSend_187Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_187 = __objc_msgSend_187Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer)>(); - - late final _sel_timeZoneWithName_1 = _registerName1("timeZoneWithName:"); - late final _sel_timeZoneWithName_data_1 = - _registerName1("timeZoneWithName:data:"); - instancetype _objc_msgSend_188( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer tzName, - ffi.Pointer aData, - ) { - return __objc_msgSend_188( - obj, - sel, - tzName, - aData, - ); - } - - late final __objc_msgSend_188Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_188 = __objc_msgSend_188Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_initWithName_1 = _registerName1("initWithName:"); - late final _sel_initWithName_data_1 = _registerName1("initWithName:data:"); - late final _sel_timeZoneForSecondsFromGMT_1 = - _registerName1("timeZoneForSecondsFromGMT:"); - instancetype _objc_msgSend_189( - ffi.Pointer obj, - ffi.Pointer sel, - int seconds, - ) { - return __objc_msgSend_189( - obj, - sel, - seconds, - ); - } - - late final __objc_msgSend_189Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_189 = __objc_msgSend_189Ptr.asFunction< - instancetype Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_timeZoneWithAbbreviation_1 = - _registerName1("timeZoneWithAbbreviation:"); - late final _sel_dateWithYear_month_day_hour_minute_second_timeZone_1 = - _registerName1("dateWithYear:month:day:hour:minute:second:timeZone:"); - ffi.Pointer _objc_msgSend_190( - ffi.Pointer obj, - ffi.Pointer sel, - int year, - int month, - int day, - int hour, - int minute, - int second, - ffi.Pointer aTimeZone, - ) { - return __objc_msgSend_190( - obj, - sel, - year, - month, - day, - hour, - minute, - second, - aTimeZone, - ); - } - - late final __objc_msgSend_190Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.UnsignedLong, - ffi.UnsignedLong, - ffi.UnsignedLong, - ffi.UnsignedLong, - ffi.UnsignedLong, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_190 = __objc_msgSend_190Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - int, - int, - int, - int, - ffi.Pointer)>(); - - late final _sel_dateByAddingYears_months_days_hours_minutes_seconds_1 = - _registerName1("dateByAddingYears:months:days:hours:minutes:seconds:"); - ffi.Pointer _objc_msgSend_191( - ffi.Pointer obj, - ffi.Pointer sel, - int year, - int month, - int day, - int hour, - int minute, - int second, - ) { - return __objc_msgSend_191( - obj, - sel, - year, - month, - day, - hour, - minute, - second, - ); - } - - late final __objc_msgSend_191Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Long, - ffi.Long, - ffi.Long, - ffi.Long, - ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_191 = __objc_msgSend_191Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, int, int, int, int, int)>(); - - late final _sel_dayOfCommonEra1 = _registerName1("dayOfCommonEra"); - late final _sel_dayOfMonth1 = _registerName1("dayOfMonth"); - late final _sel_dayOfWeek1 = _registerName1("dayOfWeek"); - late final _sel_dayOfYear1 = _registerName1("dayOfYear"); - late final _sel_hourOfDay1 = _registerName1("hourOfDay"); - late final _sel_minuteOfHour1 = _registerName1("minuteOfHour"); - late final _sel_monthOfYear1 = _registerName1("monthOfYear"); - late final _sel_secondOfMinute1 = _registerName1("secondOfMinute"); - late final _sel_yearOfCommonEra1 = _registerName1("yearOfCommonEra"); - late final _sel_calendarFormat1 = _registerName1("calendarFormat"); - late final _sel_descriptionWithCalendarFormat_locale_1 = - _registerName1("descriptionWithCalendarFormat:locale:"); - late final _sel_descriptionWithCalendarFormat_1 = - _registerName1("descriptionWithCalendarFormat:"); - late final _sel_timeZone1 = _registerName1("timeZone"); - late final _sel_initWithString_calendarFormat_locale_1 = - _registerName1("initWithString:calendarFormat:locale:"); - late final _sel_initWithString_calendarFormat_1 = - _registerName1("initWithString:calendarFormat:"); - late final _sel_initWithYear_month_day_hour_minute_second_timeZone_1 = - _registerName1("initWithYear:month:day:hour:minute:second:timeZone:"); - late final _sel_setCalendarFormat_1 = _registerName1("setCalendarFormat:"); - void _objc_msgSend_192( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer format, - ) { - return __objc_msgSend_192( - obj, - sel, - format, - ); - } - - late final __objc_msgSend_192Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_192 = __objc_msgSend_192Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_setTimeZone_1 = _registerName1("setTimeZone:"); - void _objc_msgSend_193( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aTimeZone, - ) { - return __objc_msgSend_193( - obj, - sel, - aTimeZone, - ); - } - - late final __objc_msgSend_193Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_193 = __objc_msgSend_193Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_years_months_days_hours_minutes_seconds_sinceDate_1 = - _registerName1("years:months:days:hours:minutes:seconds:sinceDate:"); - void _objc_msgSend_194( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer yp, - ffi.Pointer mop, - ffi.Pointer dp, - ffi.Pointer hp, - ffi.Pointer mip, - ffi.Pointer sp, - ffi.Pointer date, - ) { - return __objc_msgSend_194( - obj, - sel, - yp, - mop, - dp, - hp, - mip, - sp, - date, - ); - } - - late final __objc_msgSend_194Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_194 = __objc_msgSend_194Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_dateWithCalendarFormat_timeZone_1 = - _registerName1("dateWithCalendarFormat:timeZone:"); - ffi.Pointer _objc_msgSend_195( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer format, - ffi.Pointer aTimeZone, - ) { - return __objc_msgSend_195( - obj, - sel, - format, - aTimeZone, - ); - } - - late final __objc_msgSend_195Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_195 = __objc_msgSend_195Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_descriptionWithCalendarFormat_timeZone_locale_1 = - _registerName1("descriptionWithCalendarFormat:timeZone:locale:"); - ffi.Pointer _objc_msgSend_196( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer format, - ffi.Pointer aTimeZone, - ffi.Pointer locale, - ) { - return __objc_msgSend_196( - obj, - sel, - format, - aTimeZone, - locale, - ); - } - - late final __objc_msgSend_196Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_196 = __objc_msgSend_196Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_fileModificationDate1 = - _registerName1("fileModificationDate"); - late final _sel_fileType1 = _registerName1("fileType"); - late final _sel_filePosixPermissions1 = - _registerName1("filePosixPermissions"); - late final _sel_fileOwnerAccountName1 = - _registerName1("fileOwnerAccountName"); - late final _sel_fileGroupOwnerAccountName1 = - _registerName1("fileGroupOwnerAccountName"); - late final _sel_fileSystemNumber1 = _registerName1("fileSystemNumber"); - late final _sel_fileSystemFileNumber1 = - _registerName1("fileSystemFileNumber"); - late final _sel_fileExtensionHidden1 = _registerName1("fileExtensionHidden"); - late final _sel_fileHFSCreatorCode1 = _registerName1("fileHFSCreatorCode"); - int _objc_msgSend_197( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_197( - obj, - sel, - ); - } - - late final __objc_msgSend_197Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_197 = __objc_msgSend_197Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_fileHFSTypeCode1 = _registerName1("fileHFSTypeCode"); - late final _sel_fileIsImmutable1 = _registerName1("fileIsImmutable"); - late final _sel_fileIsAppendOnly1 = _registerName1("fileIsAppendOnly"); - late final _sel_fileCreationDate1 = _registerName1("fileCreationDate"); - late final _sel_fileOwnerAccountID1 = _registerName1("fileOwnerAccountID"); - ffi.Pointer _objc_msgSend_198( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_198( - obj, - sel, - ); - } - - late final __objc_msgSend_198Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_198 = __objc_msgSend_198Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_fileGroupOwnerAccountID1 = - _registerName1("fileGroupOwnerAccountID"); - late final _sel_predicateWithBlock_1 = _registerName1("predicateWithBlock:"); - ffi.Pointer _objc_msgSend_199( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_199( - obj, - sel, - block, - ); - } - - late final __objc_msgSend_199Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_199 = __objc_msgSend_199Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_predicateFormat1 = _registerName1("predicateFormat"); - late final _sel_predicateWithSubstitutionVariables_1 = - _registerName1("predicateWithSubstitutionVariables:"); - late final _sel_evaluateWithObject_1 = _registerName1("evaluateWithObject:"); - late final _sel_evaluateWithObject_substitutionVariables_1 = - _registerName1("evaluateWithObject:substitutionVariables:"); - bool _objc_msgSend_200( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer object, - ffi.Pointer bindings, - ) { - return __objc_msgSend_200( - obj, - sel, - object, - bindings, - ); - } - - late final __objc_msgSend_200Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_200 = __objc_msgSend_200Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_allowEvaluation1 = _registerName1("allowEvaluation"); - late final _sel_filteredArrayUsingPredicate_1 = - _registerName1("filteredArrayUsingPredicate:"); - ffi.Pointer _objc_msgSend_201( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer predicate, - ) { - return __objc_msgSend_201( - obj, - sel, - predicate, - ); - } - - late final __objc_msgSend_201Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_201 = __objc_msgSend_201Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_initWithChar_1 = _registerName1("initWithChar:"); - ffi.Pointer _objc_msgSend_202( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_202( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_202Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Char)>>('objc_msgSend'); - late final __objc_msgSend_202 = __objc_msgSend_202Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_initWithUnsignedChar_1 = - _registerName1("initWithUnsignedChar:"); - ffi.Pointer _objc_msgSend_203( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_203( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_203Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedChar)>>('objc_msgSend'); - late final __objc_msgSend_203 = __objc_msgSend_203Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_initWithShort_1 = _registerName1("initWithShort:"); - ffi.Pointer _objc_msgSend_204( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_204( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_204Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Short)>>('objc_msgSend'); - late final __objc_msgSend_204 = __objc_msgSend_204Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_initWithUnsignedShort_1 = - _registerName1("initWithUnsignedShort:"); - ffi.Pointer _objc_msgSend_205( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_205( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_205Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedShort)>>('objc_msgSend'); - late final __objc_msgSend_205 = __objc_msgSend_205Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_initWithInt_1 = _registerName1("initWithInt:"); - ffi.Pointer _objc_msgSend_206( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_206( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_206Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_206 = __objc_msgSend_206Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_initWithUnsignedInt_1 = - _registerName1("initWithUnsignedInt:"); - ffi.Pointer _objc_msgSend_207( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_207( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_207Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); - late final __objc_msgSend_207 = __objc_msgSend_207Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_initWithLong_1 = _registerName1("initWithLong:"); - ffi.Pointer _objc_msgSend_208( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_208( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_208Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_208 = __objc_msgSend_208Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_initWithUnsignedLong_1 = - _registerName1("initWithUnsignedLong:"); - ffi.Pointer _objc_msgSend_209( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_209( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_209Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_209 = __objc_msgSend_209Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_initWithLongLong_1 = _registerName1("initWithLongLong:"); - ffi.Pointer _objc_msgSend_210( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_210( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_210Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.LongLong)>>('objc_msgSend'); - late final __objc_msgSend_210 = __objc_msgSend_210Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_initWithUnsignedLongLong_1 = - _registerName1("initWithUnsignedLongLong:"); - ffi.Pointer _objc_msgSend_211( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_211( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_211Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLongLong)>>('objc_msgSend'); - late final __objc_msgSend_211 = __objc_msgSend_211Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_initWithFloat_1 = _registerName1("initWithFloat:"); - ffi.Pointer _objc_msgSend_212( - ffi.Pointer obj, - ffi.Pointer sel, - double value, - ) { - return __objc_msgSend_212( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_212Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Float)>>('objc_msgSend'); - late final __objc_msgSend_212 = __objc_msgSend_212Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, double)>(); - - late final _sel_initWithDouble_1 = _registerName1("initWithDouble:"); - ffi.Pointer _objc_msgSend_213( - ffi.Pointer obj, - ffi.Pointer sel, - double value, - ) { - return __objc_msgSend_213( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_213Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_213 = __objc_msgSend_213Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, double)>(); - - late final _sel_initWithBool_1 = _registerName1("initWithBool:"); - ffi.Pointer _objc_msgSend_214( - ffi.Pointer obj, - ffi.Pointer sel, - bool value, - ) { - return __objc_msgSend_214( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_214Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_214 = __objc_msgSend_214Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, bool)>(); - - late final _sel_initWithInteger_1 = _registerName1("initWithInteger:"); - late final _sel_initWithUnsignedInteger_1 = - _registerName1("initWithUnsignedInteger:"); - late final _sel_charValue1 = _registerName1("charValue"); - int _objc_msgSend_215( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_215( - obj, - sel, - ); - } - - late final __objc_msgSend_215Ptr = _lookup< - ffi.NativeFunction< - ffi.Char Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_215 = __objc_msgSend_215Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_unsignedCharValue1 = _registerName1("unsignedCharValue"); - int _objc_msgSend_216( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_216( - obj, - sel, - ); - } - - late final __objc_msgSend_216Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedChar Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_216 = __objc_msgSend_216Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_shortValue1 = _registerName1("shortValue"); - int _objc_msgSend_217( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_217( - obj, - sel, - ); - } - - late final __objc_msgSend_217Ptr = _lookup< - ffi.NativeFunction< - ffi.Short Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_217 = __objc_msgSend_217Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_unsignedShortValue1 = _registerName1("unsignedShortValue"); - int _objc_msgSend_218( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_218( - obj, - sel, - ); - } - - late final __objc_msgSend_218Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedShort Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_218 = __objc_msgSend_218Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_intValue1 = _registerName1("intValue"); - int _objc_msgSend_219( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_219( - obj, - sel, - ); - } - - late final __objc_msgSend_219Ptr = _lookup< - ffi.NativeFunction< - ffi.Int Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_219 = __objc_msgSend_219Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_unsignedIntValue1 = _registerName1("unsignedIntValue"); - late final _sel_longValue1 = _registerName1("longValue"); - late final _sel_unsignedLongValue1 = _registerName1("unsignedLongValue"); - late final _sel_longLongValue1 = _registerName1("longLongValue"); - int _objc_msgSend_220( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_220( - obj, - sel, - ); - } - - late final __objc_msgSend_220Ptr = _lookup< - ffi.NativeFunction< - ffi.LongLong Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_220 = __objc_msgSend_220Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_unsignedLongLongValue1 = - _registerName1("unsignedLongLongValue"); - late final _sel_floatValue1 = _registerName1("floatValue"); - double _objc_msgSend_221( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_221( - obj, - sel, - ); - } - - late final __objc_msgSend_221Ptr = _lookup< - ffi.NativeFunction< - ffi.Float Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_221 = __objc_msgSend_221Ptr.asFunction< - double Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_doubleValue1 = _registerName1("doubleValue"); - late final _sel_boolValue1 = _registerName1("boolValue"); - late final _sel_integerValue1 = _registerName1("integerValue"); - late final _sel_unsignedIntegerValue1 = - _registerName1("unsignedIntegerValue"); - late final _sel_stringValue1 = _registerName1("stringValue"); - int _objc_msgSend_222( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer otherNumber, - ) { - return __objc_msgSend_222( - obj, - sel, - otherNumber, - ); - } - - late final __objc_msgSend_222Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_222 = __objc_msgSend_222Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_isEqualToNumber_1 = _registerName1("isEqualToNumber:"); - bool _objc_msgSend_223( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer number, - ) { - return __objc_msgSend_223( - obj, - sel, - number, - ); - } - - late final __objc_msgSend_223Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_223 = __objc_msgSend_223Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_numberWithChar_1 = _registerName1("numberWithChar:"); - late final _sel_numberWithUnsignedChar_1 = - _registerName1("numberWithUnsignedChar:"); - late final _sel_numberWithShort_1 = _registerName1("numberWithShort:"); - late final _sel_numberWithUnsignedShort_1 = - _registerName1("numberWithUnsignedShort:"); - late final _sel_numberWithInt_1 = _registerName1("numberWithInt:"); - late final _sel_numberWithUnsignedInt_1 = - _registerName1("numberWithUnsignedInt:"); - late final _sel_numberWithLong_1 = _registerName1("numberWithLong:"); - late final _sel_numberWithUnsignedLong_1 = - _registerName1("numberWithUnsignedLong:"); - late final _sel_numberWithLongLong_1 = _registerName1("numberWithLongLong:"); - late final _sel_numberWithUnsignedLongLong_1 = - _registerName1("numberWithUnsignedLongLong:"); - late final _sel_numberWithFloat_1 = _registerName1("numberWithFloat:"); - late final _sel_numberWithDouble_1 = _registerName1("numberWithDouble:"); - late final _sel_numberWithBool_1 = _registerName1("numberWithBool:"); - late final _sel_numberWithInteger_1 = _registerName1("numberWithInteger:"); - late final _sel_numberWithUnsignedInteger_1 = - _registerName1("numberWithUnsignedInteger:"); - late final _sel_port1 = _registerName1("port"); - late final _sel_user1 = _registerName1("user"); - late final _sel_password1 = _registerName1("password"); - late final _sel_path1 = _registerName1("path"); - late final _sel_fragment1 = _registerName1("fragment"); - late final _sel_parameterString1 = _registerName1("parameterString"); - late final _sel_query1 = _registerName1("query"); - late final _sel_relativePath1 = _registerName1("relativePath"); - late final _sel_hasDirectoryPath1 = _registerName1("hasDirectoryPath"); - late final _sel_getFileSystemRepresentation_maxLength_1 = - _registerName1("getFileSystemRepresentation:maxLength:"); - bool _objc_msgSend_224( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer buffer, - int maxBufferLength, - ) { - return __objc_msgSend_224( - obj, - sel, - buffer, - maxBufferLength, - ); - } - - late final __objc_msgSend_224Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_224 = __objc_msgSend_224Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_fileSystemRepresentation1 = - _registerName1("fileSystemRepresentation"); - late final _sel_isFileURL1 = _registerName1("isFileURL"); - late final _sel_standardizedURL1 = _registerName1("standardizedURL"); - late final _sel_checkResourceIsReachableAndReturnError_1 = - _registerName1("checkResourceIsReachableAndReturnError:"); - bool _objc_msgSend_225( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> error, - ) { - return __objc_msgSend_225( - obj, - sel, - error, - ); - } - - late final __objc_msgSend_225Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_225 = __objc_msgSend_225Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_isFileReferenceURL1 = _registerName1("isFileReferenceURL"); - late final _sel_fileReferenceURL1 = _registerName1("fileReferenceURL"); - late final _sel_filePathURL1 = _registerName1("filePathURL"); - late final _sel_getResourceValue_forKey_error_1 = - _registerName1("getResourceValue:forKey:error:"); - bool _objc_msgSend_226( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> value, - ffi.Pointer key, - ffi.Pointer> error, - ) { - return __objc_msgSend_226( - obj, - sel, - value, - key, - error, - ); - } - - late final __objc_msgSend_226Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_226 = __objc_msgSend_226Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_resourceValuesForKeys_error_1 = - _registerName1("resourceValuesForKeys:error:"); - ffi.Pointer _objc_msgSend_227( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer keys, - ffi.Pointer> error, - ) { - return __objc_msgSend_227( - obj, - sel, - keys, - error, - ); - } - - late final __objc_msgSend_227Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_227 = __objc_msgSend_227Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_setResourceValue_forKey_error_1 = - _registerName1("setResourceValue:forKey:error:"); - bool _objc_msgSend_228( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ffi.Pointer key, - ffi.Pointer> error, - ) { - return __objc_msgSend_228( - obj, - sel, - value, - key, - error, - ); - } - - late final __objc_msgSend_228Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_228 = __objc_msgSend_228Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_setResourceValues_error_1 = - _registerName1("setResourceValues:error:"); - bool _objc_msgSend_229( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer keyedValues, - ffi.Pointer> error, - ) { - return __objc_msgSend_229( - obj, - sel, - keyedValues, - error, - ); - } - - late final __objc_msgSend_229Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_229 = __objc_msgSend_229Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer>)>(); - - late final _sel_removeCachedResourceValueForKey_1 = - _registerName1("removeCachedResourceValueForKey:"); - late final _sel_removeAllCachedResourceValues1 = - _registerName1("removeAllCachedResourceValues"); - late final _sel_setTemporaryResourceValue_forKey_1 = - _registerName1("setTemporaryResourceValue:forKey:"); - late final _sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_1 = - _registerName1( - "bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:"); - ffi.Pointer _objc_msgSend_230( - ffi.Pointer obj, - ffi.Pointer sel, - int options, - ffi.Pointer keys, - ffi.Pointer relativeURL, - ffi.Pointer> error, - ) { - return __objc_msgSend_230( - obj, - sel, - options, - keys, - relativeURL, - error, - ); - } - - late final __objc_msgSend_230Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_230 = __objc_msgSend_230Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1 = - _registerName1( - "initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:"); - instancetype _objc_msgSend_231( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer bookmarkData, - int options, - ffi.Pointer relativeURL, - ffi.Pointer isStale, - ffi.Pointer> error, - ) { - return __objc_msgSend_231( - obj, - sel, - bookmarkData, - options, - relativeURL, - isStale, - error, - ); - } - - late final __objc_msgSend_231Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_231 = __objc_msgSend_231Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1 = - _registerName1( - "URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:"); - late final _sel_resourceValuesForKeys_fromBookmarkData_1 = - _registerName1("resourceValuesForKeys:fromBookmarkData:"); - ffi.Pointer _objc_msgSend_232( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer keys, - ffi.Pointer bookmarkData, - ) { - return __objc_msgSend_232( - obj, - sel, - keys, - bookmarkData, - ); - } - - late final __objc_msgSend_232Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_232 = __objc_msgSend_232Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_writeBookmarkData_toURL_options_error_1 = - _registerName1("writeBookmarkData:toURL:options:error:"); - bool _objc_msgSend_233( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer bookmarkData, - ffi.Pointer bookmarkFileURL, - int options, - ffi.Pointer> error, - ) { - return __objc_msgSend_233( - obj, - sel, - bookmarkData, - bookmarkFileURL, - options, - error, - ); - } - - late final __objc_msgSend_233Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_233 = __objc_msgSend_233Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); - - late final _sel_bookmarkDataWithContentsOfURL_error_1 = - _registerName1("bookmarkDataWithContentsOfURL:error:"); - ffi.Pointer _objc_msgSend_234( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer bookmarkFileURL, - ffi.Pointer> error, - ) { - return __objc_msgSend_234( - obj, - sel, - bookmarkFileURL, - error, - ); - } - - late final __objc_msgSend_234Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_234 = __objc_msgSend_234Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_URLByResolvingAliasFileAtURL_options_error_1 = - _registerName1("URLByResolvingAliasFileAtURL:options:error:"); - instancetype _objc_msgSend_235( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - int options, - ffi.Pointer> error, - ) { - return __objc_msgSend_235( - obj, - sel, - url, - options, - error, - ); - } - - late final __objc_msgSend_235Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_235 = __objc_msgSend_235Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); - - late final _sel_startAccessingSecurityScopedResource1 = - _registerName1("startAccessingSecurityScopedResource"); - late final _sel_stopAccessingSecurityScopedResource1 = - _registerName1("stopAccessingSecurityScopedResource"); - late final _sel_getPromisedItemResourceValue_forKey_error_1 = - _registerName1("getPromisedItemResourceValue:forKey:error:"); - late final _sel_promisedItemResourceValuesForKeys_error_1 = - _registerName1("promisedItemResourceValuesForKeys:error:"); - ffi.Pointer _objc_msgSend_236( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer keys, - ffi.Pointer> error, - ) { - return __objc_msgSend_236( - obj, - sel, - keys, - error, - ); - } - - late final __objc_msgSend_236Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_236 = __objc_msgSend_236Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_checkPromisedItemIsReachableAndReturnError_1 = - _registerName1("checkPromisedItemIsReachableAndReturnError:"); - late final _sel_fileURLWithPathComponents_1 = - _registerName1("fileURLWithPathComponents:"); - ffi.Pointer _objc_msgSend_237( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer components, - ) { - return __objc_msgSend_237( - obj, - sel, - components, - ); - } - - late final __objc_msgSend_237Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_237 = __objc_msgSend_237Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_pathComponents1 = _registerName1("pathComponents"); - late final _sel_lastPathComponent1 = _registerName1("lastPathComponent"); - late final _sel_pathExtension1 = _registerName1("pathExtension"); - late final _sel_URLByAppendingPathComponent_1 = - _registerName1("URLByAppendingPathComponent:"); - late final _sel_URLByAppendingPathComponent_isDirectory_1 = - _registerName1("URLByAppendingPathComponent:isDirectory:"); - late final _sel_URLByDeletingLastPathComponent1 = - _registerName1("URLByDeletingLastPathComponent"); - late final _sel_URLByAppendingPathExtension_1 = - _registerName1("URLByAppendingPathExtension:"); - late final _sel_URLByDeletingPathExtension1 = - _registerName1("URLByDeletingPathExtension"); - late final _sel_URLByStandardizingPath1 = - _registerName1("URLByStandardizingPath"); - late final _sel_URLByResolvingSymlinksInPath1 = - _registerName1("URLByResolvingSymlinksInPath"); - late final _sel_resourceDataUsingCache_1 = - _registerName1("resourceDataUsingCache:"); - ffi.Pointer _objc_msgSend_238( - ffi.Pointer obj, - ffi.Pointer sel, - bool shouldUseCache, - ) { - return __objc_msgSend_238( - obj, - sel, - shouldUseCache, - ); - } - - late final __objc_msgSend_238Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_238 = __objc_msgSend_238Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, bool)>(); - - late final _sel_loadResourceDataNotifyingClient_usingCache_1 = - _registerName1("loadResourceDataNotifyingClient:usingCache:"); - void _objc_msgSend_239( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer client, - bool shouldUseCache, - ) { - return __objc_msgSend_239( - obj, - sel, - client, - shouldUseCache, - ); - } - - late final __objc_msgSend_239Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_239 = __objc_msgSend_239Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); - - late final _sel_propertyForKey_1 = _registerName1("propertyForKey:"); - late final _sel_setResourceData_1 = _registerName1("setResourceData:"); - late final _sel_setProperty_forKey_1 = _registerName1("setProperty:forKey:"); - bool _objc_msgSend_240( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer property, - ffi.Pointer propertyKey, - ) { - return __objc_msgSend_240( - obj, - sel, - property, - propertyKey, - ); - } - - late final __objc_msgSend_240Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_240 = __objc_msgSend_240Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _class_NSURLHandle1 = _getClass1("NSURLHandle"); - late final _sel_registerURLHandleClass_1 = - _registerName1("registerURLHandleClass:"); - late final _sel_URLHandleClassForURL_1 = - _registerName1("URLHandleClassForURL:"); - ffi.Pointer _objc_msgSend_241( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anURL, - ) { - return __objc_msgSend_241( - obj, - sel, - anURL, - ); - } - - late final __objc_msgSend_241Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_241 = __objc_msgSend_241Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_status1 = _registerName1("status"); - int _objc_msgSend_242( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_242( - obj, - sel, - ); - } - - late final __objc_msgSend_242Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_242 = __objc_msgSend_242Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_failureReason1 = _registerName1("failureReason"); - late final _sel_addClient_1 = _registerName1("addClient:"); - late final _sel_removeClient_1 = _registerName1("removeClient:"); - late final _sel_loadInBackground1 = _registerName1("loadInBackground"); - late final _sel_cancelLoadInBackground1 = - _registerName1("cancelLoadInBackground"); - late final _sel_resourceData1 = _registerName1("resourceData"); - late final _sel_availableResourceData1 = - _registerName1("availableResourceData"); - late final _sel_expectedResourceDataSize1 = - _registerName1("expectedResourceDataSize"); - late final _sel_flushCachedData1 = _registerName1("flushCachedData"); - late final _sel_backgroundLoadDidFailWithReason_1 = - _registerName1("backgroundLoadDidFailWithReason:"); - late final _sel_didLoadBytes_loadComplete_1 = - _registerName1("didLoadBytes:loadComplete:"); - void _objc_msgSend_243( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer newBytes, - bool yorn, - ) { - return __objc_msgSend_243( - obj, - sel, - newBytes, - yorn, - ); - } - - late final __objc_msgSend_243Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_243 = __objc_msgSend_243Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); - - late final _sel_canInitWithURL_1 = _registerName1("canInitWithURL:"); - bool _objc_msgSend_244( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anURL, - ) { - return __objc_msgSend_244( - obj, - sel, - anURL, - ); - } - - late final __objc_msgSend_244Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_244 = __objc_msgSend_244Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_cachedHandleForURL_1 = _registerName1("cachedHandleForURL:"); - ffi.Pointer _objc_msgSend_245( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anURL, - ) { - return __objc_msgSend_245( - obj, - sel, - anURL, - ); - } - - late final __objc_msgSend_245Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_245 = __objc_msgSend_245Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_initWithURL_cached_1 = _registerName1("initWithURL:cached:"); - ffi.Pointer _objc_msgSend_246( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anURL, - bool willCache, - ) { - return __objc_msgSend_246( - obj, - sel, - anURL, - willCache, - ); - } - - late final __objc_msgSend_246Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_246 = __objc_msgSend_246Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, bool)>(); - - late final _sel_propertyForKeyIfAvailable_1 = - _registerName1("propertyForKeyIfAvailable:"); - late final _sel_writeProperty_forKey_1 = - _registerName1("writeProperty:forKey:"); - late final _sel_writeData_1 = _registerName1("writeData:"); - late final _sel_loadInForeground1 = _registerName1("loadInForeground"); - late final _sel_beginLoadInBackground1 = - _registerName1("beginLoadInBackground"); - late final _sel_endLoadInBackground1 = _registerName1("endLoadInBackground"); - late final _sel_URLHandleUsingCache_1 = - _registerName1("URLHandleUsingCache:"); - ffi.Pointer _objc_msgSend_247( - ffi.Pointer obj, - ffi.Pointer sel, - bool shouldUseCache, - ) { - return __objc_msgSend_247( - obj, - sel, - shouldUseCache, - ); - } - - late final __objc_msgSend_247Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_247 = __objc_msgSend_247Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, bool)>(); - - late final _sel_writeToFile_options_error_1 = - _registerName1("writeToFile:options:error:"); - bool _objc_msgSend_248( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - int writeOptionsMask, - ffi.Pointer> errorPtr, - ) { - return __objc_msgSend_248( - obj, - sel, - path, - writeOptionsMask, - errorPtr, - ); - } - - late final __objc_msgSend_248Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_248 = __objc_msgSend_248Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); - - late final _sel_writeToURL_options_error_1 = - _registerName1("writeToURL:options:error:"); - bool _objc_msgSend_249( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - int writeOptionsMask, - ffi.Pointer> errorPtr, - ) { - return __objc_msgSend_249( - obj, - sel, - url, - writeOptionsMask, - errorPtr, - ); - } - - late final __objc_msgSend_249Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_249 = __objc_msgSend_249Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); - - late final _sel_rangeOfData_options_range_1 = - _registerName1("rangeOfData:options:range:"); - _NSRange _objc_msgSend_250( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer dataToFind, - int mask, - _NSRange searchRange, - ) { - return __objc_msgSend_250( - obj, - sel, - dataToFind, - mask, - searchRange, - ); - } - - late final __objc_msgSend_250Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_250 = __objc_msgSend_250Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange)>(); - - late final _sel_enumerateByteRangesUsingBlock_1 = - _registerName1("enumerateByteRangesUsingBlock:"); - void _objc_msgSend_251( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_251( - obj, - sel, - block, - ); - } - - late final __objc_msgSend_251Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_251 = __objc_msgSend_251Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_dataWithBytes_length_1 = - _registerName1("dataWithBytes:length:"); - instancetype _objc_msgSend_252( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer bytes, - int length, - ) { - return __objc_msgSend_252( - obj, - sel, - bytes, - length, - ); - } - - late final __objc_msgSend_252Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_252 = __objc_msgSend_252Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_dataWithBytesNoCopy_length_1 = - _registerName1("dataWithBytesNoCopy:length:"); - late final _sel_dataWithBytesNoCopy_length_freeWhenDone_1 = - _registerName1("dataWithBytesNoCopy:length:freeWhenDone:"); - instancetype _objc_msgSend_253( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer bytes, - int length, - bool b, - ) { - return __objc_msgSend_253( - obj, - sel, - bytes, - length, - b, - ); - } - - late final __objc_msgSend_253Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_253 = __objc_msgSend_253Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, bool)>(); - - late final _sel_dataWithContentsOfFile_options_error_1 = - _registerName1("dataWithContentsOfFile:options:error:"); - instancetype _objc_msgSend_254( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - int readOptionsMask, - ffi.Pointer> errorPtr, - ) { - return __objc_msgSend_254( - obj, - sel, - path, - readOptionsMask, - errorPtr, - ); - } - - late final __objc_msgSend_254Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_254 = __objc_msgSend_254Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); - - late final _sel_dataWithContentsOfURL_options_error_1 = - _registerName1("dataWithContentsOfURL:options:error:"); - instancetype _objc_msgSend_255( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - int readOptionsMask, - ffi.Pointer> errorPtr, - ) { - return __objc_msgSend_255( - obj, - sel, - url, - readOptionsMask, - errorPtr, - ); - } - - late final __objc_msgSend_255Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_255 = __objc_msgSend_255Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); - - late final _sel_dataWithContentsOfFile_1 = - _registerName1("dataWithContentsOfFile:"); - late final _sel_dataWithContentsOfURL_1 = - _registerName1("dataWithContentsOfURL:"); - late final _sel_initWithBytes_length_1 = - _registerName1("initWithBytes:length:"); - late final _sel_initWithBytesNoCopy_length_1 = - _registerName1("initWithBytesNoCopy:length:"); - late final _sel_initWithBytesNoCopy_length_freeWhenDone_1 = - _registerName1("initWithBytesNoCopy:length:freeWhenDone:"); - late final _sel_initWithBytesNoCopy_length_deallocator_1 = - _registerName1("initWithBytesNoCopy:length:deallocator:"); - instancetype _objc_msgSend_256( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer bytes, - int length, - ffi.Pointer<_ObjCBlock> deallocator, - ) { - return __objc_msgSend_256( - obj, - sel, - bytes, - length, - deallocator, - ); - } - - late final __objc_msgSend_256Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_256 = __objc_msgSend_256Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_initWithContentsOfFile_options_error_1 = - _registerName1("initWithContentsOfFile:options:error:"); - late final _sel_initWithContentsOfURL_options_error_1 = - _registerName1("initWithContentsOfURL:options:error:"); - late final _sel_initWithData_1 = _registerName1("initWithData:"); - instancetype _objc_msgSend_257( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer data, - ) { - return __objc_msgSend_257( - obj, - sel, - data, - ); - } - - late final __objc_msgSend_257Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_257 = __objc_msgSend_257Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_dataWithData_1 = _registerName1("dataWithData:"); - late final _sel_initWithBase64EncodedString_options_1 = - _registerName1("initWithBase64EncodedString:options:"); - instancetype _objc_msgSend_258( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer base64String, - int options, - ) { - return __objc_msgSend_258( - obj, - sel, - base64String, - options, - ); - } - - late final __objc_msgSend_258Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_258 = __objc_msgSend_258Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_base64EncodedStringWithOptions_1 = - _registerName1("base64EncodedStringWithOptions:"); - ffi.Pointer _objc_msgSend_259( - ffi.Pointer obj, - ffi.Pointer sel, - int options, - ) { - return __objc_msgSend_259( - obj, - sel, - options, - ); - } - - late final __objc_msgSend_259Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_259 = __objc_msgSend_259Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_initWithBase64EncodedData_options_1 = - _registerName1("initWithBase64EncodedData:options:"); - instancetype _objc_msgSend_260( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer base64Data, - int options, - ) { - return __objc_msgSend_260( - obj, - sel, - base64Data, - options, - ); - } - - late final __objc_msgSend_260Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_260 = __objc_msgSend_260Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_base64EncodedDataWithOptions_1 = - _registerName1("base64EncodedDataWithOptions:"); - ffi.Pointer _objc_msgSend_261( - ffi.Pointer obj, - ffi.Pointer sel, - int options, - ) { - return __objc_msgSend_261( - obj, - sel, - options, - ); - } - - late final __objc_msgSend_261Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_261 = __objc_msgSend_261Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_decompressedDataUsingAlgorithm_error_1 = - _registerName1("decompressedDataUsingAlgorithm:error:"); - instancetype _objc_msgSend_262( - ffi.Pointer obj, - ffi.Pointer sel, - int algorithm, - ffi.Pointer> error, - ) { - return __objc_msgSend_262( - obj, - sel, - algorithm, - error, - ); - } - - late final __objc_msgSend_262Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_262 = __objc_msgSend_262Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer>)>(); - - late final _sel_compressedDataUsingAlgorithm_error_1 = - _registerName1("compressedDataUsingAlgorithm:error:"); - late final _sel_getBytes_1 = _registerName1("getBytes:"); - late final _sel_dataWithContentsOfMappedFile_1 = - _registerName1("dataWithContentsOfMappedFile:"); - late final _sel_initWithContentsOfMappedFile_1 = - _registerName1("initWithContentsOfMappedFile:"); - late final _sel_initWithBase64Encoding_1 = - _registerName1("initWithBase64Encoding:"); - late final _sel_base64Encoding1 = _registerName1("base64Encoding"); - late final _sel_encodeDataObject_1 = _registerName1("encodeDataObject:"); - void _objc_msgSend_263( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer data, - ) { - return __objc_msgSend_263( - obj, - sel, - data, - ); - } - - late final __objc_msgSend_263Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_263 = __objc_msgSend_263Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_decodeDataObject1 = _registerName1("decodeDataObject"); - late final _sel_decodeValueOfObjCType_at_size_1 = - _registerName1("decodeValueOfObjCType:at:size:"); - void _objc_msgSend_264( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer type, - ffi.Pointer data, - int size, - ) { - return __objc_msgSend_264( - obj, - sel, - type, - data, - size, - ); - } - - late final __objc_msgSend_264Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_264 = __objc_msgSend_264Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_versionForClassName_1 = - _registerName1("versionForClassName:"); - int _objc_msgSend_265( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer className, - ) { - return __objc_msgSend_265( - obj, - sel, - className, - ); - } - - late final __objc_msgSend_265Ptr = _lookup< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_265 = __objc_msgSend_265Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_encodeObject_1 = _registerName1("encodeObject:"); - late final _sel_encodeRootObject_1 = _registerName1("encodeRootObject:"); - late final _sel_encodeBycopyObject_1 = _registerName1("encodeBycopyObject:"); - late final _sel_encodeByrefObject_1 = _registerName1("encodeByrefObject:"); - late final _sel_encodeConditionalObject_1 = - _registerName1("encodeConditionalObject:"); - late final _sel_encodeValuesOfObjCTypes_1 = - _registerName1("encodeValuesOfObjCTypes:"); - void _objc_msgSend_266( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer types, - ) { - return __objc_msgSend_266( - obj, - sel, - types, - ); - } - - late final __objc_msgSend_266Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_266 = __objc_msgSend_266Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_encodeArrayOfObjCType_count_at_1 = - _registerName1("encodeArrayOfObjCType:count:at:"); - void _objc_msgSend_267( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer type, - int count, - ffi.Pointer array, - ) { - return __objc_msgSend_267( - obj, - sel, - type, - count, - array, - ); - } - - late final __objc_msgSend_267Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_267 = __objc_msgSend_267Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer)>(); - - late final _sel_encodeBytes_length_1 = _registerName1("encodeBytes:length:"); - late final _sel_decodeObject1 = _registerName1("decodeObject"); - late final _sel_decodeTopLevelObjectAndReturnError_1 = - _registerName1("decodeTopLevelObjectAndReturnError:"); - ffi.Pointer _objc_msgSend_268( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> error, - ) { - return __objc_msgSend_268( - obj, - sel, - error, - ); - } - - late final __objc_msgSend_268Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_268 = __objc_msgSend_268Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer>)>(); - - late final _sel_decodeValuesOfObjCTypes_1 = - _registerName1("decodeValuesOfObjCTypes:"); - late final _sel_decodeArrayOfObjCType_count_at_1 = - _registerName1("decodeArrayOfObjCType:count:at:"); - late final _sel_decodeBytesWithReturnedLength_1 = - _registerName1("decodeBytesWithReturnedLength:"); - ffi.Pointer _objc_msgSend_269( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer lengthp, - ) { - return __objc_msgSend_269( - obj, - sel, - lengthp, - ); - } - - late final __objc_msgSend_269Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_269 = __objc_msgSend_269Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_encodePropertyList_1 = _registerName1("encodePropertyList:"); - late final _sel_decodePropertyList1 = _registerName1("decodePropertyList"); - late final _sel_setObjectZone_1 = _registerName1("setObjectZone:"); - void _objc_msgSend_270( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_NSZone> zone, - ) { - return __objc_msgSend_270( - obj, - sel, - zone, - ); - } - - late final __objc_msgSend_270Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_NSZone>)>>('objc_msgSend'); - late final __objc_msgSend_270 = __objc_msgSend_270Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_NSZone>)>(); - - late final _sel_objectZone1 = _registerName1("objectZone"); - ffi.Pointer<_NSZone> _objc_msgSend_271( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_271( - obj, - sel, - ); - } - - late final __objc_msgSend_271Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer<_NSZone> Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_271 = __objc_msgSend_271Ptr.asFunction< - ffi.Pointer<_NSZone> Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_systemVersion1 = _registerName1("systemVersion"); - late final _sel_allowsKeyedCoding1 = _registerName1("allowsKeyedCoding"); - late final _sel_encodeObject_forKey_1 = - _registerName1("encodeObject:forKey:"); - late final _sel_encodeConditionalObject_forKey_1 = - _registerName1("encodeConditionalObject:forKey:"); - late final _sel_encodeBool_forKey_1 = _registerName1("encodeBool:forKey:"); - void _objc_msgSend_272( - ffi.Pointer obj, - ffi.Pointer sel, - bool value, - ffi.Pointer key, - ) { - return __objc_msgSend_272( - obj, - sel, - value, - key, - ); - } - - late final __objc_msgSend_272Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_272 = __objc_msgSend_272Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, bool, - ffi.Pointer)>(); - - late final _sel_encodeInt_forKey_1 = _registerName1("encodeInt:forKey:"); - void _objc_msgSend_273( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ffi.Pointer key, - ) { - return __objc_msgSend_273( - obj, - sel, - value, - key, - ); - } - - late final __objc_msgSend_273Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_273 = __objc_msgSend_273Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer)>(); - - late final _sel_encodeInt32_forKey_1 = _registerName1("encodeInt32:forKey:"); - void _objc_msgSend_274( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ffi.Pointer key, - ) { - return __objc_msgSend_274( - obj, - sel, - value, - key, - ); - } - - late final __objc_msgSend_274Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_274 = __objc_msgSend_274Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer)>(); - - late final _sel_encodeInt64_forKey_1 = _registerName1("encodeInt64:forKey:"); - void _objc_msgSend_275( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ffi.Pointer key, - ) { - return __objc_msgSend_275( - obj, - sel, - value, - key, - ); - } - - late final __objc_msgSend_275Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int64, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_275 = __objc_msgSend_275Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer)>(); - - late final _sel_encodeFloat_forKey_1 = _registerName1("encodeFloat:forKey:"); - void _objc_msgSend_276( - ffi.Pointer obj, - ffi.Pointer sel, - double value, - ffi.Pointer key, - ) { - return __objc_msgSend_276( - obj, - sel, - value, - key, - ); - } - - late final __objc_msgSend_276Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Float, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_276 = __objc_msgSend_276Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, double, - ffi.Pointer)>(); - - late final _sel_encodeDouble_forKey_1 = - _registerName1("encodeDouble:forKey:"); - void _objc_msgSend_277( - ffi.Pointer obj, - ffi.Pointer sel, - double value, - ffi.Pointer key, - ) { - return __objc_msgSend_277( - obj, - sel, - value, - key, - ); - } - - late final __objc_msgSend_277Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Double, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_277 = __objc_msgSend_277Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, double, - ffi.Pointer)>(); - - late final _sel_encodeBytes_length_forKey_1 = - _registerName1("encodeBytes:length:forKey:"); - void _objc_msgSend_278( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer bytes, - int length, - ffi.Pointer key, - ) { - return __objc_msgSend_278( - obj, - sel, - bytes, - length, - key, - ); - } - - late final __objc_msgSend_278Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_278 = __objc_msgSend_278Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer)>(); - - late final _sel_containsValueForKey_1 = - _registerName1("containsValueForKey:"); - late final _sel_decodeObjectForKey_1 = _registerName1("decodeObjectForKey:"); - late final _sel_decodeTopLevelObjectForKey_error_1 = - _registerName1("decodeTopLevelObjectForKey:error:"); - ffi.Pointer _objc_msgSend_279( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer key, - ffi.Pointer> error, - ) { - return __objc_msgSend_279( - obj, - sel, - key, - error, - ); - } - - late final __objc_msgSend_279Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_279 = __objc_msgSend_279Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_decodeBoolForKey_1 = _registerName1("decodeBoolForKey:"); - late final _sel_decodeIntForKey_1 = _registerName1("decodeIntForKey:"); - int _objc_msgSend_280( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer key, - ) { - return __objc_msgSend_280( - obj, - sel, - key, - ); - } - - late final __objc_msgSend_280Ptr = _lookup< - ffi.NativeFunction< - ffi.Int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_280 = __objc_msgSend_280Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_decodeInt32ForKey_1 = _registerName1("decodeInt32ForKey:"); - int _objc_msgSend_281( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer key, - ) { - return __objc_msgSend_281( - obj, - sel, - key, - ); - } - - late final __objc_msgSend_281Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_281 = __objc_msgSend_281Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_decodeInt64ForKey_1 = _registerName1("decodeInt64ForKey:"); - int _objc_msgSend_282( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer key, - ) { - return __objc_msgSend_282( - obj, - sel, - key, - ); - } - - late final __objc_msgSend_282Ptr = _lookup< - ffi.NativeFunction< - ffi.Int64 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_282 = __objc_msgSend_282Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_decodeFloatForKey_1 = _registerName1("decodeFloatForKey:"); - double _objc_msgSend_283( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer key, - ) { - return __objc_msgSend_283( - obj, - sel, - key, - ); - } - - late final __objc_msgSend_283Ptr = _lookup< - ffi.NativeFunction< - ffi.Float Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_283 = __objc_msgSend_283Ptr.asFunction< - double Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_decodeDoubleForKey_1 = _registerName1("decodeDoubleForKey:"); - double _objc_msgSend_284( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer key, - ) { - return __objc_msgSend_284( - obj, - sel, - key, - ); - } - - late final __objc_msgSend_284Ptr = _lookup< - ffi.NativeFunction< - ffi.Double Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_284 = __objc_msgSend_284Ptr.asFunction< - double Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_decodeBytesForKey_returnedLength_1 = - _registerName1("decodeBytesForKey:returnedLength:"); - ffi.Pointer _objc_msgSend_285( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer key, - ffi.Pointer lengthp, - ) { - return __objc_msgSend_285( - obj, - sel, - key, - lengthp, - ); - } - - late final __objc_msgSend_285Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_285 = __objc_msgSend_285Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_encodeInteger_forKey_1 = - _registerName1("encodeInteger:forKey:"); - void _objc_msgSend_286( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ffi.Pointer key, - ) { - return __objc_msgSend_286( - obj, - sel, - value, - key, - ); - } - - late final __objc_msgSend_286Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Long, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_286 = __objc_msgSend_286Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer)>(); - - late final _sel_decodeIntegerForKey_1 = - _registerName1("decodeIntegerForKey:"); - late final _sel_requiresSecureCoding1 = - _registerName1("requiresSecureCoding"); - late final _sel_decodeObjectOfClass_forKey_1 = - _registerName1("decodeObjectOfClass:forKey:"); - ffi.Pointer _objc_msgSend_287( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aClass, - ffi.Pointer key, - ) { - return __objc_msgSend_287( - obj, - sel, - aClass, - key, - ); - } - - late final __objc_msgSend_287Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_287 = __objc_msgSend_287Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_decodeTopLevelObjectOfClass_forKey_error_1 = - _registerName1("decodeTopLevelObjectOfClass:forKey:error:"); - ffi.Pointer _objc_msgSend_288( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aClass, - ffi.Pointer key, - ffi.Pointer> error, - ) { - return __objc_msgSend_288( - obj, - sel, - aClass, - key, - error, - ); - } - - late final __objc_msgSend_288Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_288 = __objc_msgSend_288Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_decodeArrayOfObjectsOfClass_forKey_1 = - _registerName1("decodeArrayOfObjectsOfClass:forKey:"); - ffi.Pointer _objc_msgSend_289( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer cls, - ffi.Pointer key, - ) { - return __objc_msgSend_289( - obj, - sel, - cls, - key, - ); - } - - late final __objc_msgSend_289Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_289 = __objc_msgSend_289Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_1 = - _registerName1("decodeDictionaryWithKeysOfClass:objectsOfClass:forKey:"); - ffi.Pointer _objc_msgSend_290( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer keyCls, - ffi.Pointer objectCls, - ffi.Pointer key, - ) { - return __objc_msgSend_290( - obj, - sel, - keyCls, - objectCls, - key, - ); - } - - late final __objc_msgSend_290Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_290 = __objc_msgSend_290Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_decodeObjectOfClasses_forKey_1 = - _registerName1("decodeObjectOfClasses:forKey:"); - ffi.Pointer _objc_msgSend_291( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer classes, - ffi.Pointer key, - ) { - return __objc_msgSend_291( - obj, - sel, - classes, - key, - ); - } - - late final __objc_msgSend_291Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_291 = __objc_msgSend_291Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_decodeTopLevelObjectOfClasses_forKey_error_1 = - _registerName1("decodeTopLevelObjectOfClasses:forKey:error:"); - ffi.Pointer _objc_msgSend_292( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer classes, - ffi.Pointer key, - ffi.Pointer> error, - ) { - return __objc_msgSend_292( - obj, - sel, - classes, - key, - error, - ); - } - - late final __objc_msgSend_292Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_292 = __objc_msgSend_292Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_decodeArrayOfObjectsOfClasses_forKey_1 = - _registerName1("decodeArrayOfObjectsOfClasses:forKey:"); - ffi.Pointer _objc_msgSend_293( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer classes, - ffi.Pointer key, - ) { - return __objc_msgSend_293( - obj, - sel, - classes, - key, - ); - } - - late final __objc_msgSend_293Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_293 = __objc_msgSend_293Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_1 = - _registerName1( - "decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey:"); - ffi.Pointer _objc_msgSend_294( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer keyClasses, - ffi.Pointer objectClasses, - ffi.Pointer key, - ) { - return __objc_msgSend_294( - obj, - sel, - keyClasses, - objectClasses, - key, - ); - } - - late final __objc_msgSend_294Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_294 = __objc_msgSend_294Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_decodePropertyListForKey_1 = - _registerName1("decodePropertyListForKey:"); - late final _sel_allowedClasses1 = _registerName1("allowedClasses"); - ffi.Pointer _objc_msgSend_295( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_295( - obj, - sel, - ); - } - - late final __objc_msgSend_295Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_295 = __objc_msgSend_295Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_failWithError_1 = _registerName1("failWithError:"); - void _objc_msgSend_296( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer error, - ) { - return __objc_msgSend_296( - obj, - sel, - error, - ); - } - - late final __objc_msgSend_296Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_296 = __objc_msgSend_296Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_decodingFailurePolicy1 = - _registerName1("decodingFailurePolicy"); - int _objc_msgSend_297( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_297( - obj, - sel, - ); - } - - late final __objc_msgSend_297Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_297 = __objc_msgSend_297Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_error1 = _registerName1("error"); - ffi.Pointer _objc_msgSend_298( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_298( - obj, - sel, - ); - } - - late final __objc_msgSend_298Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_298 = __objc_msgSend_298Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_encodeNXObject_1 = _registerName1("encodeNXObject:"); - late final _sel_decodeNXObject1 = _registerName1("decodeNXObject"); - late final _sel_decodeValueOfObjCType_at_1 = - _registerName1("decodeValueOfObjCType:at:"); - late final _sel_encodePoint_1 = _registerName1("encodePoint:"); - void _objc_msgSend_299( - ffi.Pointer obj, - ffi.Pointer sel, - CGPoint point, - ) { - return __objc_msgSend_299( - obj, - sel, - point, - ); - } - - late final __objc_msgSend_299Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - CGPoint)>>('objc_msgSend'); - late final __objc_msgSend_299 = __objc_msgSend_299Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, CGPoint)>(); - - late final _sel_decodePoint1 = _registerName1("decodePoint"); - late final _sel_encodeSize_1 = _registerName1("encodeSize:"); - void _objc_msgSend_300( - ffi.Pointer obj, - ffi.Pointer sel, - CGSize size, - ) { - return __objc_msgSend_300( - obj, - sel, - size, - ); - } - - late final __objc_msgSend_300Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - CGSize)>>('objc_msgSend'); - late final __objc_msgSend_300 = __objc_msgSend_300Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, CGSize)>(); - - late final _sel_decodeSize1 = _registerName1("decodeSize"); - late final _sel_encodeRect_1 = _registerName1("encodeRect:"); - void _objc_msgSend_301( - ffi.Pointer obj, - ffi.Pointer sel, - CGRect rect, - ) { - return __objc_msgSend_301( - obj, - sel, - rect, - ); - } - - late final __objc_msgSend_301Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - CGRect)>>('objc_msgSend'); - late final __objc_msgSend_301 = __objc_msgSend_301Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, CGRect)>(); - - late final _sel_decodeRect1 = _registerName1("decodeRect"); - late final _sel_encodePoint_forKey_1 = _registerName1("encodePoint:forKey:"); - void _objc_msgSend_302( - ffi.Pointer obj, - ffi.Pointer sel, - CGPoint point, - ffi.Pointer key, - ) { - return __objc_msgSend_302( - obj, - sel, - point, - key, - ); - } - - late final __objc_msgSend_302Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - CGPoint, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_302 = __objc_msgSend_302Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, CGPoint, - ffi.Pointer)>(); - - late final _sel_encodeSize_forKey_1 = _registerName1("encodeSize:forKey:"); - void _objc_msgSend_303( - ffi.Pointer obj, - ffi.Pointer sel, - CGSize size, - ffi.Pointer key, - ) { - return __objc_msgSend_303( - obj, - sel, - size, - key, - ); - } - - late final __objc_msgSend_303Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - CGSize, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_303 = __objc_msgSend_303Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, CGSize, - ffi.Pointer)>(); - - late final _sel_encodeRect_forKey_1 = _registerName1("encodeRect:forKey:"); - void _objc_msgSend_304( - ffi.Pointer obj, - ffi.Pointer sel, - CGRect rect, - ffi.Pointer key, - ) { - return __objc_msgSend_304( - obj, - sel, - rect, - key, - ); - } - - late final __objc_msgSend_304Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - CGRect, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_304 = __objc_msgSend_304Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, CGRect, - ffi.Pointer)>(); - - late final _sel_decodePointForKey_1 = _registerName1("decodePointForKey:"); - CGPoint _objc_msgSend_305( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer key, - ) { - return __objc_msgSend_305( - obj, - sel, - key, - ); - } - - late final __objc_msgSend_305Ptr = _lookup< - ffi.NativeFunction< - CGPoint Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_305 = __objc_msgSend_305Ptr.asFunction< - CGPoint Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_decodeSizeForKey_1 = _registerName1("decodeSizeForKey:"); - CGSize _objc_msgSend_306( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer key, - ) { - return __objc_msgSend_306( - obj, - sel, - key, - ); - } - - late final __objc_msgSend_306Ptr = _lookup< - ffi.NativeFunction< - CGSize Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_306 = __objc_msgSend_306Ptr.asFunction< - CGSize Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_decodeRectForKey_1 = _registerName1("decodeRectForKey:"); - CGRect _objc_msgSend_307( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer key, - ) { - return __objc_msgSend_307( - obj, - sel, - key, - ); - } - - late final __objc_msgSend_307Ptr = _lookup< - ffi.NativeFunction< - CGRect Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_307 = __objc_msgSend_307Ptr.asFunction< - CGRect Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_substringFromIndex_1 = _registerName1("substringFromIndex:"); - ffi.Pointer _objc_msgSend_308( - ffi.Pointer obj, - ffi.Pointer sel, - int from, - ) { - return __objc_msgSend_308( - obj, - sel, - from, - ); - } - - late final __objc_msgSend_308Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_308 = __objc_msgSend_308Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_substringToIndex_1 = _registerName1("substringToIndex:"); - late final _sel_substringWithRange_1 = _registerName1("substringWithRange:"); - ffi.Pointer _objc_msgSend_309( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ) { - return __objc_msgSend_309( - obj, - sel, - range, - ); - } - - late final __objc_msgSend_309Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_309 = __objc_msgSend_309Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, _NSRange)>(); - - late final _sel_getCharacters_range_1 = - _registerName1("getCharacters:range:"); - void _objc_msgSend_310( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer buffer, - _NSRange range, - ) { - return __objc_msgSend_310( - obj, - sel, - buffer, - range, - ); - } - - late final __objc_msgSend_310Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_310 = __objc_msgSend_310Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>(); - - int _objc_msgSend_311( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer string, - ) { - return __objc_msgSend_311( - obj, - sel, - string, - ); - } - - late final __objc_msgSend_311Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_311 = __objc_msgSend_311Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_compare_options_1 = _registerName1("compare:options:"); - int _objc_msgSend_312( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer string, - int mask, - ) { - return __objc_msgSend_312( - obj, - sel, - string, - mask, - ); - } - - late final __objc_msgSend_312Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_312 = __objc_msgSend_312Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_compare_options_range_1 = - _registerName1("compare:options:range:"); - int _objc_msgSend_313( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer string, - int mask, - _NSRange rangeOfReceiverToCompare, - ) { - return __objc_msgSend_313( - obj, - sel, - string, - mask, - rangeOfReceiverToCompare, - ); - } - - late final __objc_msgSend_313Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_313 = __objc_msgSend_313Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange)>(); - - late final _sel_compare_options_range_locale_1 = - _registerName1("compare:options:range:locale:"); - int _objc_msgSend_314( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer string, - int mask, - _NSRange rangeOfReceiverToCompare, - ffi.Pointer locale, - ) { - return __objc_msgSend_314( - obj, - sel, - string, - mask, - rangeOfReceiverToCompare, - locale, - ); - } - - late final __objc_msgSend_314Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - _NSRange, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_314 = __objc_msgSend_314Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange, ffi.Pointer)>(); - - late final _sel_caseInsensitiveCompare_1 = - _registerName1("caseInsensitiveCompare:"); - late final _sel_localizedCompare_1 = _registerName1("localizedCompare:"); - late final _sel_localizedCaseInsensitiveCompare_1 = - _registerName1("localizedCaseInsensitiveCompare:"); - late final _sel_localizedStandardCompare_1 = - _registerName1("localizedStandardCompare:"); - late final _sel_isEqualToString_1 = _registerName1("isEqualToString:"); - late final _sel_hasPrefix_1 = _registerName1("hasPrefix:"); - late final _sel_hasSuffix_1 = _registerName1("hasSuffix:"); - late final _sel_commonPrefixWithString_options_1 = - _registerName1("commonPrefixWithString:options:"); - ffi.Pointer _objc_msgSend_315( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer str, - int mask, - ) { - return __objc_msgSend_315( - obj, - sel, - str, - mask, - ); - } - - late final __objc_msgSend_315Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_315 = __objc_msgSend_315Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_containsString_1 = _registerName1("containsString:"); - late final _sel_localizedCaseInsensitiveContainsString_1 = - _registerName1("localizedCaseInsensitiveContainsString:"); - late final _sel_localizedStandardContainsString_1 = - _registerName1("localizedStandardContainsString:"); - late final _sel_localizedStandardRangeOfString_1 = - _registerName1("localizedStandardRangeOfString:"); - _NSRange _objc_msgSend_316( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer str, - ) { - return __objc_msgSend_316( - obj, - sel, - str, - ); - } - - late final __objc_msgSend_316Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_316 = __objc_msgSend_316Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_rangeOfString_1 = _registerName1("rangeOfString:"); - late final _sel_rangeOfString_options_1 = - _registerName1("rangeOfString:options:"); - _NSRange _objc_msgSend_317( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer searchString, - int mask, - ) { - return __objc_msgSend_317( - obj, - sel, - searchString, - mask, - ); - } - - late final __objc_msgSend_317Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_317 = __objc_msgSend_317Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_rangeOfString_options_range_1 = - _registerName1("rangeOfString:options:range:"); - _NSRange _objc_msgSend_318( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer searchString, - int mask, - _NSRange rangeOfReceiverToSearch, - ) { - return __objc_msgSend_318( - obj, - sel, - searchString, - mask, - rangeOfReceiverToSearch, - ); - } - - late final __objc_msgSend_318Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_318 = __objc_msgSend_318Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange)>(); - - late final _sel_rangeOfString_options_range_locale_1 = - _registerName1("rangeOfString:options:range:locale:"); - _NSRange _objc_msgSend_319( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer searchString, - int mask, - _NSRange rangeOfReceiverToSearch, - ffi.Pointer locale, - ) { - return __objc_msgSend_319( - obj, - sel, - searchString, - mask, - rangeOfReceiverToSearch, - locale, - ); - } - - late final __objc_msgSend_319Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - _NSRange, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_319 = __objc_msgSend_319Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange, ffi.Pointer)>(); - - late final _sel_rangeOfCharacterFromSet_1 = - _registerName1("rangeOfCharacterFromSet:"); - _NSRange _objc_msgSend_320( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer searchSet, - ) { - return __objc_msgSend_320( - obj, - sel, - searchSet, - ); - } - - late final __objc_msgSend_320Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_320 = __objc_msgSend_320Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_rangeOfCharacterFromSet_options_1 = - _registerName1("rangeOfCharacterFromSet:options:"); - _NSRange _objc_msgSend_321( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer searchSet, - int mask, - ) { - return __objc_msgSend_321( - obj, - sel, - searchSet, - mask, - ); - } - - late final __objc_msgSend_321Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_321 = __objc_msgSend_321Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_rangeOfCharacterFromSet_options_range_1 = - _registerName1("rangeOfCharacterFromSet:options:range:"); - _NSRange _objc_msgSend_322( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer searchSet, - int mask, - _NSRange rangeOfReceiverToSearch, - ) { - return __objc_msgSend_322( - obj, - sel, - searchSet, - mask, - rangeOfReceiverToSearch, - ); - } - - late final __objc_msgSend_322Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_322 = __objc_msgSend_322Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange)>(); - - late final _sel_rangeOfComposedCharacterSequenceAtIndex_1 = - _registerName1("rangeOfComposedCharacterSequenceAtIndex:"); - _NSRange _objc_msgSend_323( - ffi.Pointer obj, - ffi.Pointer sel, - int index, - ) { - return __objc_msgSend_323( - obj, - sel, - index, - ); - } - - late final __objc_msgSend_323Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_323 = __objc_msgSend_323Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_rangeOfComposedCharacterSequencesForRange_1 = - _registerName1("rangeOfComposedCharacterSequencesForRange:"); - _NSRange _objc_msgSend_324( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ) { - return __objc_msgSend_324( - obj, - sel, - range, - ); - } - - late final __objc_msgSend_324Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_324 = __objc_msgSend_324Ptr.asFunction< - _NSRange Function( - ffi.Pointer, ffi.Pointer, _NSRange)>(); - - late final _sel_stringByAppendingString_1 = - _registerName1("stringByAppendingString:"); - late final _sel_stringByAppendingFormat_1 = - _registerName1("stringByAppendingFormat:"); - late final _sel_uppercaseString1 = _registerName1("uppercaseString"); - late final _sel_lowercaseString1 = _registerName1("lowercaseString"); - late final _sel_capitalizedString1 = _registerName1("capitalizedString"); - late final _sel_localizedUppercaseString1 = - _registerName1("localizedUppercaseString"); - late final _sel_localizedLowercaseString1 = - _registerName1("localizedLowercaseString"); - late final _sel_localizedCapitalizedString1 = - _registerName1("localizedCapitalizedString"); - late final _sel_uppercaseStringWithLocale_1 = - _registerName1("uppercaseStringWithLocale:"); - ffi.Pointer _objc_msgSend_325( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer locale, - ) { - return __objc_msgSend_325( - obj, - sel, - locale, - ); - } - - late final __objc_msgSend_325Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_325 = __objc_msgSend_325Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_lowercaseStringWithLocale_1 = - _registerName1("lowercaseStringWithLocale:"); - late final _sel_capitalizedStringWithLocale_1 = - _registerName1("capitalizedStringWithLocale:"); - late final _sel_getLineStart_end_contentsEnd_forRange_1 = - _registerName1("getLineStart:end:contentsEnd:forRange:"); - void _objc_msgSend_326( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer startPtr, - ffi.Pointer lineEndPtr, - ffi.Pointer contentsEndPtr, - _NSRange range, - ) { - return __objc_msgSend_326( - obj, - sel, - startPtr, - lineEndPtr, - contentsEndPtr, - range, - ); - } - - late final __objc_msgSend_326Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_326 = __objc_msgSend_326Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - _NSRange)>(); - - late final _sel_lineRangeForRange_1 = _registerName1("lineRangeForRange:"); - late final _sel_getParagraphStart_end_contentsEnd_forRange_1 = - _registerName1("getParagraphStart:end:contentsEnd:forRange:"); - late final _sel_paragraphRangeForRange_1 = - _registerName1("paragraphRangeForRange:"); - late final _sel_enumerateSubstringsInRange_options_usingBlock_1 = - _registerName1("enumerateSubstringsInRange:options:usingBlock:"); - void _objc_msgSend_327( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - int opts, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_327( - obj, - sel, - range, - opts, - block, - ); - } - - late final __objc_msgSend_327Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_327 = __objc_msgSend_327Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, _NSRange, - int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_enumerateLinesUsingBlock_1 = - _registerName1("enumerateLinesUsingBlock:"); - void _objc_msgSend_328( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_328( - obj, - sel, - block, - ); - } - - late final __objc_msgSend_328Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_328 = __objc_msgSend_328Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_UTF8String1 = _registerName1("UTF8String"); - late final _sel_fastestEncoding1 = _registerName1("fastestEncoding"); - late final _sel_smallestEncoding1 = _registerName1("smallestEncoding"); - late final _sel_dataUsingEncoding_allowLossyConversion_1 = - _registerName1("dataUsingEncoding:allowLossyConversion:"); - ffi.Pointer _objc_msgSend_329( - ffi.Pointer obj, - ffi.Pointer sel, - int encoding, - bool lossy, - ) { - return __objc_msgSend_329( - obj, - sel, - encoding, - lossy, - ); - } - - late final __objc_msgSend_329Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_329 = __objc_msgSend_329Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int, bool)>(); - - late final _sel_dataUsingEncoding_1 = _registerName1("dataUsingEncoding:"); - ffi.Pointer _objc_msgSend_330( - ffi.Pointer obj, - ffi.Pointer sel, - int encoding, - ) { - return __objc_msgSend_330( - obj, - sel, - encoding, - ); - } - - late final __objc_msgSend_330Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_330 = __objc_msgSend_330Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_canBeConvertedToEncoding_1 = - _registerName1("canBeConvertedToEncoding:"); - late final _sel_cStringUsingEncoding_1 = - _registerName1("cStringUsingEncoding:"); - late final _sel_getCString_maxLength_encoding_1 = - _registerName1("getCString:maxLength:encoding:"); - bool _objc_msgSend_331( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer buffer, - int maxBufferCount, - int encoding, - ) { - return __objc_msgSend_331( - obj, - sel, - buffer, - maxBufferCount, - encoding, - ); - } - - late final __objc_msgSend_331Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_331 = __objc_msgSend_331Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, int)>(); - - late final _sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_1 = - _registerName1( - "getBytes:maxLength:usedLength:encoding:options:range:remainingRange:"); - bool _objc_msgSend_332( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer buffer, - int maxBufferCount, - ffi.Pointer usedBufferCount, - int encoding, - int options, - _NSRange range, - ffi.Pointer<_NSRange> leftover, - ) { - return __objc_msgSend_332( - obj, - sel, - buffer, - maxBufferCount, - usedBufferCount, - encoding, - options, - range, - leftover, - ); - } - - late final __objc_msgSend_332Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Int32, - _NSRange, - ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_332 = __objc_msgSend_332Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - int, - int, - _NSRange, - ffi.Pointer<_NSRange>)>(); - - late final _sel_maximumLengthOfBytesUsingEncoding_1 = - _registerName1("maximumLengthOfBytesUsingEncoding:"); - late final _sel_lengthOfBytesUsingEncoding_1 = - _registerName1("lengthOfBytesUsingEncoding:"); - late final _sel_availableStringEncodings1 = - _registerName1("availableStringEncodings"); - ffi.Pointer _objc_msgSend_333( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_333( - obj, - sel, - ); - } - - late final __objc_msgSend_333Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_333 = __objc_msgSend_333Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_localizedNameOfStringEncoding_1 = - _registerName1("localizedNameOfStringEncoding:"); - late final _sel_defaultCStringEncoding1 = - _registerName1("defaultCStringEncoding"); - late final _sel_decomposedStringWithCanonicalMapping1 = - _registerName1("decomposedStringWithCanonicalMapping"); - late final _sel_precomposedStringWithCanonicalMapping1 = - _registerName1("precomposedStringWithCanonicalMapping"); - late final _sel_decomposedStringWithCompatibilityMapping1 = - _registerName1("decomposedStringWithCompatibilityMapping"); - late final _sel_precomposedStringWithCompatibilityMapping1 = - _registerName1("precomposedStringWithCompatibilityMapping"); - late final _sel_componentsSeparatedByString_1 = - _registerName1("componentsSeparatedByString:"); - late final _sel_componentsSeparatedByCharactersInSet_1 = - _registerName1("componentsSeparatedByCharactersInSet:"); - ffi.Pointer _objc_msgSend_334( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer separator, - ) { - return __objc_msgSend_334( - obj, - sel, - separator, - ); - } - - late final __objc_msgSend_334Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_334 = __objc_msgSend_334Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_stringByTrimmingCharactersInSet_1 = - _registerName1("stringByTrimmingCharactersInSet:"); - ffi.Pointer _objc_msgSend_335( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer set1, - ) { - return __objc_msgSend_335( - obj, - sel, - set1, - ); - } - - late final __objc_msgSend_335Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_335 = __objc_msgSend_335Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_stringByPaddingToLength_withString_startingAtIndex_1 = - _registerName1("stringByPaddingToLength:withString:startingAtIndex:"); - ffi.Pointer _objc_msgSend_336( - ffi.Pointer obj, - ffi.Pointer sel, - int newLength, - ffi.Pointer padString, - int padIndex, - ) { - return __objc_msgSend_336( - obj, - sel, - newLength, - padString, - padIndex, - ); - } - - late final __objc_msgSend_336Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_336 = __objc_msgSend_336Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer, int)>(); - - late final _sel_stringByFoldingWithOptions_locale_1 = - _registerName1("stringByFoldingWithOptions:locale:"); - ffi.Pointer _objc_msgSend_337( - ffi.Pointer obj, - ffi.Pointer sel, - int options, - ffi.Pointer locale, - ) { - return __objc_msgSend_337( - obj, - sel, - options, - locale, - ); - } - - late final __objc_msgSend_337Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_337 = __objc_msgSend_337Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer)>(); - - late final _sel_stringByReplacingOccurrencesOfString_withString_options_range_1 = - _registerName1( - "stringByReplacingOccurrencesOfString:withString:options:range:"); - ffi.Pointer _objc_msgSend_338( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer target, - ffi.Pointer replacement, - int options, - _NSRange searchRange, - ) { - return __objc_msgSend_338( - obj, - sel, - target, - replacement, - options, - searchRange, - ); - } - - late final __objc_msgSend_338Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_338 = __objc_msgSend_338Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - _NSRange)>(); - - late final _sel_stringByReplacingOccurrencesOfString_withString_1 = - _registerName1("stringByReplacingOccurrencesOfString:withString:"); - ffi.Pointer _objc_msgSend_339( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer target, - ffi.Pointer replacement, - ) { - return __objc_msgSend_339( - obj, - sel, - target, - replacement, - ); - } - - late final __objc_msgSend_339Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_339 = __objc_msgSend_339Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_stringByReplacingCharactersInRange_withString_1 = - _registerName1("stringByReplacingCharactersInRange:withString:"); - ffi.Pointer _objc_msgSend_340( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ffi.Pointer replacement, - ) { - return __objc_msgSend_340( - obj, - sel, - range, - replacement, - ); - } - - late final __objc_msgSend_340Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_340 = __objc_msgSend_340Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange, ffi.Pointer)>(); - - late final _sel_stringByApplyingTransform_reverse_1 = - _registerName1("stringByApplyingTransform:reverse:"); - ffi.Pointer _objc_msgSend_341( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer transform, - bool reverse, - ) { - return __objc_msgSend_341( - obj, - sel, - transform, - reverse, - ); - } - - late final __objc_msgSend_341Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_341 = __objc_msgSend_341Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, bool)>(); - - late final _sel_writeToURL_atomically_encoding_error_1 = - _registerName1("writeToURL:atomically:encoding:error:"); - bool _objc_msgSend_342( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - bool useAuxiliaryFile, - int enc, - ffi.Pointer> error, - ) { - return __objc_msgSend_342( - obj, - sel, - url, - useAuxiliaryFile, - enc, - error, - ); - } - - late final __objc_msgSend_342Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.UnsignedLong, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_342 = __objc_msgSend_342Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - int, - ffi.Pointer>)>(); - - late final _sel_writeToFile_atomically_encoding_error_1 = - _registerName1("writeToFile:atomically:encoding:error:"); - bool _objc_msgSend_343( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - bool useAuxiliaryFile, - int enc, - ffi.Pointer> error, - ) { - return __objc_msgSend_343( - obj, - sel, - path, - useAuxiliaryFile, - enc, - error, - ); - } - - late final __objc_msgSend_343Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.UnsignedLong, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_343 = __objc_msgSend_343Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - int, - ffi.Pointer>)>(); - - late final _sel_hash1 = _registerName1("hash"); - late final _sel_initWithCharactersNoCopy_length_freeWhenDone_1 = - _registerName1("initWithCharactersNoCopy:length:freeWhenDone:"); - instancetype _objc_msgSend_344( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer characters, - int length, - bool freeBuffer, - ) { - return __objc_msgSend_344( - obj, - sel, - characters, - length, - freeBuffer, - ); - } - - late final __objc_msgSend_344Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_344 = __objc_msgSend_344Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, bool)>(); - - late final _sel_initWithCharactersNoCopy_length_deallocator_1 = - _registerName1("initWithCharactersNoCopy:length:deallocator:"); - instancetype _objc_msgSend_345( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer chars, - int len, - ffi.Pointer<_ObjCBlock> deallocator, - ) { - return __objc_msgSend_345( - obj, - sel, - chars, - len, - deallocator, - ); - } - - late final __objc_msgSend_345Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_345 = __objc_msgSend_345Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_initWithCharacters_length_1 = - _registerName1("initWithCharacters:length:"); - instancetype _objc_msgSend_346( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer characters, - int length, - ) { - return __objc_msgSend_346( - obj, - sel, - characters, - length, - ); - } - - late final __objc_msgSend_346Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_346 = __objc_msgSend_346Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_initWithUTF8String_1 = _registerName1("initWithUTF8String:"); - instancetype _objc_msgSend_347( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer nullTerminatedCString, - ) { - return __objc_msgSend_347( - obj, - sel, - nullTerminatedCString, - ); - } - - late final __objc_msgSend_347Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_347 = __objc_msgSend_347Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_initWithFormat_1 = _registerName1("initWithFormat:"); - late final _sel_initWithFormat_arguments_1 = - _registerName1("initWithFormat:arguments:"); - instancetype _objc_msgSend_348( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer format, - ffi.Pointer<__va_list_tag> argList, - ) { - return __objc_msgSend_348( - obj, - sel, - format, - argList, - ); - } - - late final __objc_msgSend_348Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); - late final __objc_msgSend_348 = __objc_msgSend_348Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer<__va_list_tag>)>(); - - late final _sel_initWithFormat_locale_1 = - _registerName1("initWithFormat:locale:"); - late final _sel_initWithFormat_locale_arguments_1 = - _registerName1("initWithFormat:locale:arguments:"); - instancetype _objc_msgSend_349( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer format, - ffi.Pointer locale, - ffi.Pointer<__va_list_tag> argList, - ) { - return __objc_msgSend_349( - obj, - sel, - format, - locale, - argList, - ); - } - - late final __objc_msgSend_349Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); - late final __objc_msgSend_349 = __objc_msgSend_349Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__va_list_tag>)>(); - - late final _sel_initWithValidatedFormat_validFormatSpecifiers_error_1 = - _registerName1("initWithValidatedFormat:validFormatSpecifiers:error:"); - instancetype _objc_msgSend_350( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer format, - ffi.Pointer validFormatSpecifiers, - ffi.Pointer> error, - ) { - return __objc_msgSend_350( - obj, - sel, - format, - validFormatSpecifiers, - error, - ); - } - - late final __objc_msgSend_350Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_350 = __objc_msgSend_350Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1 = - _registerName1( - "initWithValidatedFormat:validFormatSpecifiers:locale:error:"); - instancetype _objc_msgSend_351( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer format, - ffi.Pointer validFormatSpecifiers, - ffi.Pointer locale, - ffi.Pointer> error, - ) { - return __objc_msgSend_351( - obj, - sel, - format, - validFormatSpecifiers, - locale, - error, - ); - } - - late final __objc_msgSend_351Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_351 = __objc_msgSend_351Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1 = - _registerName1( - "initWithValidatedFormat:validFormatSpecifiers:arguments:error:"); - instancetype _objc_msgSend_352( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer format, - ffi.Pointer validFormatSpecifiers, - ffi.Pointer<__va_list_tag> argList, - ffi.Pointer> error, - ) { - return __objc_msgSend_352( - obj, - sel, - format, - validFormatSpecifiers, - argList, - error, - ); - } - - late final __objc_msgSend_352Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__va_list_tag>, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_352 = __objc_msgSend_352Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__va_list_tag>, - ffi.Pointer>)>(); - - late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1 = - _registerName1( - "initWithValidatedFormat:validFormatSpecifiers:locale:arguments:error:"); - instancetype _objc_msgSend_353( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer format, - ffi.Pointer validFormatSpecifiers, - ffi.Pointer locale, - ffi.Pointer<__va_list_tag> argList, - ffi.Pointer> error, - ) { - return __objc_msgSend_353( - obj, - sel, - format, - validFormatSpecifiers, - locale, - argList, - error, - ); - } - - late final __objc_msgSend_353Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__va_list_tag>, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_353 = __objc_msgSend_353Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__va_list_tag>, - ffi.Pointer>)>(); - - late final _sel_initWithData_encoding_1 = - _registerName1("initWithData:encoding:"); - instancetype _objc_msgSend_354( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer data, - int encoding, - ) { - return __objc_msgSend_354( - obj, - sel, - data, - encoding, - ); - } - - late final __objc_msgSend_354Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_354 = __objc_msgSend_354Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_initWithBytes_length_encoding_1 = - _registerName1("initWithBytes:length:encoding:"); - instancetype _objc_msgSend_355( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer bytes, - int len, - int encoding, - ) { - return __objc_msgSend_355( - obj, - sel, - bytes, - len, - encoding, - ); - } - - late final __objc_msgSend_355Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_355 = __objc_msgSend_355Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, int)>(); - - late final _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1 = - _registerName1("initWithBytesNoCopy:length:encoding:freeWhenDone:"); - instancetype _objc_msgSend_356( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer bytes, - int len, - int encoding, - bool freeBuffer, - ) { - return __objc_msgSend_356( - obj, - sel, - bytes, - len, - encoding, - freeBuffer, - ); - } - - late final __objc_msgSend_356Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_356 = __objc_msgSend_356Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, int, bool)>(); - - late final _sel_initWithBytesNoCopy_length_encoding_deallocator_1 = - _registerName1("initWithBytesNoCopy:length:encoding:deallocator:"); - instancetype _objc_msgSend_357( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer bytes, - int len, - int encoding, - ffi.Pointer<_ObjCBlock> deallocator, - ) { - return __objc_msgSend_357( - obj, - sel, - bytes, - len, - encoding, - deallocator, - ); - } - - late final __objc_msgSend_357Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_357 = __objc_msgSend_357Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_string1 = _registerName1("string"); - late final _sel_stringWithString_1 = _registerName1("stringWithString:"); - late final _sel_stringWithCharacters_length_1 = - _registerName1("stringWithCharacters:length:"); - late final _sel_stringWithUTF8String_1 = - _registerName1("stringWithUTF8String:"); - late final _sel_stringWithFormat_1 = _registerName1("stringWithFormat:"); - late final _sel_localizedStringWithFormat_1 = - _registerName1("localizedStringWithFormat:"); - late final _sel_stringWithValidatedFormat_validFormatSpecifiers_error_1 = - _registerName1("stringWithValidatedFormat:validFormatSpecifiers:error:"); - late final _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1 = - _registerName1( - "localizedStringWithValidatedFormat:validFormatSpecifiers:error:"); - late final _sel_initWithCString_encoding_1 = - _registerName1("initWithCString:encoding:"); - instancetype _objc_msgSend_358( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer nullTerminatedCString, - int encoding, - ) { - return __objc_msgSend_358( - obj, - sel, - nullTerminatedCString, - encoding, - ); - } - - late final __objc_msgSend_358Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_358 = __objc_msgSend_358Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_stringWithCString_encoding_1 = - _registerName1("stringWithCString:encoding:"); - late final _sel_initWithContentsOfURL_encoding_error_1 = - _registerName1("initWithContentsOfURL:encoding:error:"); - instancetype _objc_msgSend_359( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - int enc, - ffi.Pointer> error, - ) { - return __objc_msgSend_359( - obj, - sel, - url, - enc, - error, - ); - } - - late final __objc_msgSend_359Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_359 = __objc_msgSend_359Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); - - late final _sel_initWithContentsOfFile_encoding_error_1 = - _registerName1("initWithContentsOfFile:encoding:error:"); - instancetype _objc_msgSend_360( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - int enc, - ffi.Pointer> error, - ) { - return __objc_msgSend_360( - obj, - sel, - path, - enc, - error, - ); - } - - late final __objc_msgSend_360Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_360 = __objc_msgSend_360Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); - - late final _sel_stringWithContentsOfURL_encoding_error_1 = - _registerName1("stringWithContentsOfURL:encoding:error:"); - late final _sel_stringWithContentsOfFile_encoding_error_1 = - _registerName1("stringWithContentsOfFile:encoding:error:"); - late final _sel_initWithContentsOfURL_usedEncoding_error_1 = - _registerName1("initWithContentsOfURL:usedEncoding:error:"); - instancetype _objc_msgSend_361( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer enc, - ffi.Pointer> error, - ) { - return __objc_msgSend_361( - obj, - sel, - url, - enc, - error, - ); - } - - late final __objc_msgSend_361Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_361 = __objc_msgSend_361Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_initWithContentsOfFile_usedEncoding_error_1 = - _registerName1("initWithContentsOfFile:usedEncoding:error:"); - instancetype _objc_msgSend_362( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer enc, - ffi.Pointer> error, - ) { - return __objc_msgSend_362( - obj, - sel, - path, - enc, - error, - ); - } - - late final __objc_msgSend_362Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_362 = __objc_msgSend_362Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_stringWithContentsOfURL_usedEncoding_error_1 = - _registerName1("stringWithContentsOfURL:usedEncoding:error:"); - late final _sel_stringWithContentsOfFile_usedEncoding_error_1 = - _registerName1("stringWithContentsOfFile:usedEncoding:error:"); - late final _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1 = - _registerName1( - "stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:"); - int _objc_msgSend_363( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer data, - ffi.Pointer opts, - ffi.Pointer> string, - ffi.Pointer usedLossyConversion, - ) { - return __objc_msgSend_363( - obj, - sel, - data, - opts, - string, - usedLossyConversion, - ); - } - - late final __objc_msgSend_363Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_363 = __objc_msgSend_363Ptr.asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer)>(); - - late final _sel_propertyList1 = _registerName1("propertyList"); - late final _sel_propertyListFromStringsFileFormat1 = - _registerName1("propertyListFromStringsFileFormat"); - late final _sel_cString1 = _registerName1("cString"); - late final _sel_lossyCString1 = _registerName1("lossyCString"); - late final _sel_cStringLength1 = _registerName1("cStringLength"); - late final _sel_getCString_1 = _registerName1("getCString:"); - late final _sel_getCString_maxLength_1 = - _registerName1("getCString:maxLength:"); - void _objc_msgSend_364( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer bytes, - int maxLength, - ) { - return __objc_msgSend_364( - obj, - sel, - bytes, - maxLength, - ); - } - - late final __objc_msgSend_364Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_364 = __objc_msgSend_364Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_getCString_maxLength_range_remainingRange_1 = - _registerName1("getCString:maxLength:range:remainingRange:"); - void _objc_msgSend_365( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer bytes, - int maxLength, - _NSRange aRange, - ffi.Pointer<_NSRange> leftoverRange, - ) { - return __objc_msgSend_365( - obj, - sel, - bytes, - maxLength, - aRange, - leftoverRange, - ); - } - - late final __objc_msgSend_365Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - _NSRange, - ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_365 = __objc_msgSend_365Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange, ffi.Pointer<_NSRange>)>(); - - late final _sel_stringWithContentsOfFile_1 = - _registerName1("stringWithContentsOfFile:"); - late final _sel_stringWithContentsOfURL_1 = - _registerName1("stringWithContentsOfURL:"); - late final _sel_initWithCStringNoCopy_length_freeWhenDone_1 = - _registerName1("initWithCStringNoCopy:length:freeWhenDone:"); - ffi.Pointer _objc_msgSend_366( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer bytes, - int length, - bool freeBuffer, - ) { - return __objc_msgSend_366( - obj, - sel, - bytes, - length, - freeBuffer, - ); - } - - late final __objc_msgSend_366Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_366 = __objc_msgSend_366Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, bool)>(); - - late final _sel_initWithCString_length_1 = - _registerName1("initWithCString:length:"); - late final _sel_initWithCString_1 = _registerName1("initWithCString:"); - late final _sel_stringWithCString_length_1 = - _registerName1("stringWithCString:length:"); - late final _sel_stringWithCString_1 = _registerName1("stringWithCString:"); - late final _sel_getCharacters_1 = _registerName1("getCharacters:"); - void _objc_msgSend_367( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer buffer, - ) { - return __objc_msgSend_367( - obj, - sel, - buffer, - ); - } - - late final __objc_msgSend_367Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_367 = __objc_msgSend_367Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_variantFittingPresentationWidth_1 = - _registerName1("variantFittingPresentationWidth:"); - ffi.Pointer _objc_msgSend_368( - ffi.Pointer obj, - ffi.Pointer sel, - int width, - ) { - return __objc_msgSend_368( - obj, - sel, - width, - ); - } - - late final __objc_msgSend_368Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_368 = __objc_msgSend_368Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_pathWithComponents_1 = _registerName1("pathWithComponents:"); - ffi.Pointer _objc_msgSend_369( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer components, - ) { - return __objc_msgSend_369( - obj, - sel, - components, - ); - } - - late final __objc_msgSend_369Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_369 = __objc_msgSend_369Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_isAbsolutePath1 = _registerName1("isAbsolutePath"); - late final _sel_stringByDeletingLastPathComponent1 = - _registerName1("stringByDeletingLastPathComponent"); - late final _sel_stringByAppendingPathComponent_1 = - _registerName1("stringByAppendingPathComponent:"); - late final _sel_stringByDeletingPathExtension1 = - _registerName1("stringByDeletingPathExtension"); - late final _sel_stringByAppendingPathExtension_1 = - _registerName1("stringByAppendingPathExtension:"); - late final _sel_stringByAbbreviatingWithTildeInPath1 = - _registerName1("stringByAbbreviatingWithTildeInPath"); - late final _sel_stringByExpandingTildeInPath1 = - _registerName1("stringByExpandingTildeInPath"); - late final _sel_stringByStandardizingPath1 = - _registerName1("stringByStandardizingPath"); - late final _sel_stringByResolvingSymlinksInPath1 = - _registerName1("stringByResolvingSymlinksInPath"); - late final _sel_stringsByAppendingPaths_1 = - _registerName1("stringsByAppendingPaths:"); - late final _sel_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_1 = - _registerName1( - "completePathIntoString:caseSensitive:matchesIntoArray:filterTypes:"); - int _objc_msgSend_370( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> outputName, - bool flag, - ffi.Pointer> outputArray, - ffi.Pointer filterTypes, - ) { - return __objc_msgSend_370( - obj, - sel, - outputName, - flag, - outputArray, - filterTypes, - ); - } - - late final __objc_msgSend_370Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Bool, - ffi.Pointer>, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_370 = __objc_msgSend_370Ptr.asFunction< - int Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - bool, - ffi.Pointer>, - ffi.Pointer)>(); - - late final _sel_stringByAddingPercentEncodingWithAllowedCharacters_1 = - _registerName1("stringByAddingPercentEncodingWithAllowedCharacters:"); - late final _sel_stringByRemovingPercentEncoding1 = - _registerName1("stringByRemovingPercentEncoding"); - late final _sel_stringByAddingPercentEscapesUsingEncoding_1 = - _registerName1("stringByAddingPercentEscapesUsingEncoding:"); - late final _sel_stringByReplacingPercentEscapesUsingEncoding_1 = - _registerName1("stringByReplacingPercentEscapesUsingEncoding:"); - late final _class_NSOrthography1 = _getClass1("NSOrthography"); - late final _sel_dominantScript1 = _registerName1("dominantScript"); - late final _sel_languageMap1 = _registerName1("languageMap"); - late final _sel_initWithDominantScript_languageMap_1 = - _registerName1("initWithDominantScript:languageMap:"); - instancetype _objc_msgSend_371( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer script, - ffi.Pointer map, - ) { - return __objc_msgSend_371( - obj, - sel, - script, - map, - ); - } - - late final __objc_msgSend_371Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_371 = __objc_msgSend_371Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_languagesForScript_1 = _registerName1("languagesForScript:"); - late final _sel_dominantLanguageForScript_1 = - _registerName1("dominantLanguageForScript:"); - late final _sel_dominantLanguage1 = _registerName1("dominantLanguage"); - late final _sel_allScripts1 = _registerName1("allScripts"); - late final _sel_allLanguages1 = _registerName1("allLanguages"); - late final _sel_defaultOrthographyForLanguage_1 = - _registerName1("defaultOrthographyForLanguage:"); - late final _sel_orthographyWithDominantScript_languageMap_1 = - _registerName1("orthographyWithDominantScript:languageMap:"); - late final _sel_linguisticTagsInRange_scheme_options_orthography_tokenRanges_1 = - _registerName1( - "linguisticTagsInRange:scheme:options:orthography:tokenRanges:"); - ffi.Pointer _objc_msgSend_372( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ffi.Pointer scheme, - int options, - ffi.Pointer orthography, - ffi.Pointer> tokenRanges, - ) { - return __objc_msgSend_372( - obj, - sel, - range, - scheme, - options, - orthography, - tokenRanges, - ); - } - - late final __objc_msgSend_372Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Pointer, - ffi.Int32, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_372 = __objc_msgSend_372Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_1 = - _registerName1( - "enumerateLinguisticTagsInRange:scheme:options:orthography:usingBlock:"); - void _objc_msgSend_373( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ffi.Pointer scheme, - int options, - ffi.Pointer orthography, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_373( - obj, - sel, - range, - scheme, - options, - orthography, - block, - ); - } - - late final __objc_msgSend_373Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Pointer, - ffi.Int32, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_373 = __objc_msgSend_373Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_anyObject1 = _registerName1("anyObject"); - late final _sel_intersectsSet_1 = _registerName1("intersectsSet:"); - bool _objc_msgSend_374( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer otherSet, - ) { - return __objc_msgSend_374( - obj, - sel, - otherSet, - ); - } - - late final __objc_msgSend_374Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_374 = __objc_msgSend_374Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_isEqualToSet_1 = _registerName1("isEqualToSet:"); - late final _sel_isSubsetOfSet_1 = _registerName1("isSubsetOfSet:"); - late final _sel_setByAddingObject_1 = _registerName1("setByAddingObject:"); - ffi.Pointer _objc_msgSend_375( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anObject, - ) { - return __objc_msgSend_375( - obj, - sel, - anObject, - ); - } - - late final __objc_msgSend_375Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_375 = __objc_msgSend_375Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setByAddingObjectsFromSet_1 = - _registerName1("setByAddingObjectsFromSet:"); - ffi.Pointer _objc_msgSend_376( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer other, - ) { - return __objc_msgSend_376( - obj, - sel, - other, - ); - } - - late final __objc_msgSend_376Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_376 = __objc_msgSend_376Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setByAddingObjectsFromArray_1 = - _registerName1("setByAddingObjectsFromArray:"); - ffi.Pointer _objc_msgSend_377( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer other, - ) { - return __objc_msgSend_377( - obj, - sel, - other, - ); - } - - late final __objc_msgSend_377Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_377 = __objc_msgSend_377Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - void _objc_msgSend_378( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_378( - obj, - sel, - block, - ); - } - - late final __objc_msgSend_378Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_378 = __objc_msgSend_378Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - void _objc_msgSend_379( - ffi.Pointer obj, - ffi.Pointer sel, - int opts, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_379( - obj, - sel, - opts, - block, - ); - } - - late final __objc_msgSend_379Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_379 = __objc_msgSend_379Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_objectsPassingTest_1 = _registerName1("objectsPassingTest:"); - ffi.Pointer _objc_msgSend_380( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> predicate, - ) { - return __objc_msgSend_380( - obj, - sel, - predicate, - ); - } - - late final __objc_msgSend_380Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_380 = __objc_msgSend_380Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_objectsWithOptions_passingTest_1 = - _registerName1("objectsWithOptions:passingTest:"); - ffi.Pointer _objc_msgSend_381( - ffi.Pointer obj, - ffi.Pointer sel, - int opts, - ffi.Pointer<_ObjCBlock> predicate, - ) { - return __objc_msgSend_381( - obj, - sel, - opts, - predicate, - ); - } - - late final __objc_msgSend_381Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_381 = __objc_msgSend_381Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_set1 = _registerName1("set"); - late final _sel_setWithObject_1 = _registerName1("setWithObject:"); - late final _sel_setWithObjects_count_1 = - _registerName1("setWithObjects:count:"); - late final _sel_setWithObjects_1 = _registerName1("setWithObjects:"); - late final _sel_setWithSet_1 = _registerName1("setWithSet:"); - instancetype _objc_msgSend_382( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer set1, - ) { - return __objc_msgSend_382( - obj, - sel, - set1, - ); - } - - late final __objc_msgSend_382Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_382 = __objc_msgSend_382Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_setWithArray_1 = _registerName1("setWithArray:"); - late final _sel_initWithSet_1 = _registerName1("initWithSet:"); - late final _sel_initWithSet_copyItems_1 = - _registerName1("initWithSet:copyItems:"); - instancetype _objc_msgSend_383( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer set1, - bool flag, - ) { - return __objc_msgSend_383( - obj, - sel, - set1, - flag, - ); - } - - late final __objc_msgSend_383Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_383 = __objc_msgSend_383Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); - - late final _sel_filteredSetUsingPredicate_1 = - _registerName1("filteredSetUsingPredicate:"); - ffi.Pointer _objc_msgSend_384( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer predicate, - ) { - return __objc_msgSend_384( - obj, - sel, - predicate, - ); - } - - late final __objc_msgSend_384Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_384 = __objc_msgSend_384Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_invocationWithMethodSignature_1 = - _registerName1("invocationWithMethodSignature:"); - ffi.Pointer _objc_msgSend_385( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer sig, - ) { - return __objc_msgSend_385( - obj, - sel, - sig, - ); - } - - late final __objc_msgSend_385Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_385 = __objc_msgSend_385Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_methodSignature1 = _registerName1("methodSignature"); - ffi.Pointer _objc_msgSend_386( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_386( - obj, - sel, - ); - } - - late final __objc_msgSend_386Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_386 = __objc_msgSend_386Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_retainArguments1 = _registerName1("retainArguments"); - late final _sel_argumentsRetained1 = _registerName1("argumentsRetained"); - late final _sel_target1 = _registerName1("target"); - late final _sel_setTarget_1 = _registerName1("setTarget:"); - void _objc_msgSend_387( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_387( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_387Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_387 = __objc_msgSend_387Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_selector1 = _registerName1("selector"); - ffi.Pointer _objc_msgSend_388( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_388( - obj, - sel, - ); - } - - late final __objc_msgSend_388Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_388 = __objc_msgSend_388Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setSelector_1 = _registerName1("setSelector:"); - void _objc_msgSend_389( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_389( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_389Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_389 = __objc_msgSend_389Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_getReturnValue_1 = _registerName1("getReturnValue:"); - late final _sel_setReturnValue_1 = _registerName1("setReturnValue:"); - late final _sel_getArgument_atIndex_1 = - _registerName1("getArgument:atIndex:"); - void _objc_msgSend_390( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer argumentLocation, - int idx, - ) { - return __objc_msgSend_390( - obj, - sel, - argumentLocation, - idx, - ); - } - - late final __objc_msgSend_390Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_390 = __objc_msgSend_390Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_setArgument_atIndex_1 = - _registerName1("setArgument:atIndex:"); - late final _sel_invoke1 = _registerName1("invoke"); - late final _sel_invokeWithTarget_1 = _registerName1("invokeWithTarget:"); - late final _sel_invokeUsingIMP_1 = _registerName1("invokeUsingIMP:"); - void _objc_msgSend_391( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> imp, - ) { - return __objc_msgSend_391( - obj, - sel, - imp, - ); - } - - late final __objc_msgSend_391Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>( - 'objc_msgSend'); - late final __objc_msgSend_391 = __objc_msgSend_391Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_forwardInvocation_1 = _registerName1("forwardInvocation:"); - void _objc_msgSend_392( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anInvocation, - ) { - return __objc_msgSend_392( - obj, - sel, - anInvocation, - ); - } - - late final __objc_msgSend_392Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_392 = __objc_msgSend_392Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_methodSignatureForSelector_1 = - _registerName1("methodSignatureForSelector:"); - ffi.Pointer _objc_msgSend_393( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aSelector, - ) { - return __objc_msgSend_393( - obj, - sel, - aSelector, - ); - } - - late final __objc_msgSend_393Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_393 = __objc_msgSend_393Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_instanceMethodSignatureForSelector_1 = - _registerName1("instanceMethodSignatureForSelector:"); - late final _sel_allowsWeakReference1 = _registerName1("allowsWeakReference"); - late final _sel_retainWeakReference1 = _registerName1("retainWeakReference"); - late final _sel_isSubclassOfClass_1 = _registerName1("isSubclassOfClass:"); - late final _sel_resolveClassMethod_1 = _registerName1("resolveClassMethod:"); - late final _sel_resolveInstanceMethod_1 = - _registerName1("resolveInstanceMethod:"); - late final _sel_superclass1 = _registerName1("superclass"); - late final _sel_class1 = _registerName1("class"); - late final _sel_debugDescription1 = _registerName1("debugDescription"); - late final _sel_version1 = _registerName1("version"); - late final _sel_setVersion_1 = _registerName1("setVersion:"); - void _objc_msgSend_394( - ffi.Pointer obj, - ffi.Pointer sel, - int aVersion, - ) { - return __objc_msgSend_394( - obj, - sel, - aVersion, - ); - } - - late final __objc_msgSend_394Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_394 = __objc_msgSend_394Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_classForCoder1 = _registerName1("classForCoder"); - late final _sel_replacementObjectForCoder_1 = - _registerName1("replacementObjectForCoder:"); - late final _sel_awakeAfterUsingCoder_1 = - _registerName1("awakeAfterUsingCoder:"); - late final _sel_poseAsClass_1 = _registerName1("poseAsClass:"); - late final _sel_autoContentAccessingProxy1 = - _registerName1("autoContentAccessingProxy"); - late final _sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_1 = - _registerName1( - "attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:"); - void _objc_msgSend_395( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer error, - int recoveryOptionIndex, - ffi.Pointer delegate, - ffi.Pointer didRecoverSelector, - ffi.Pointer contextInfo, - ) { - return __objc_msgSend_395( - obj, - sel, - error, - recoveryOptionIndex, - delegate, - didRecoverSelector, - contextInfo, - ); - } - - late final __objc_msgSend_395Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_395 = __objc_msgSend_395Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_attemptRecoveryFromError_optionIndex_1 = - _registerName1("attemptRecoveryFromError:optionIndex:"); - bool _objc_msgSend_396( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer error, - int recoveryOptionIndex, - ) { - return __objc_msgSend_396( - obj, - sel, - error, - recoveryOptionIndex, - ); - } - - late final __objc_msgSend_396Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_396 = __objc_msgSend_396Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_performSelector_withObject_afterDelay_inModes_1 = - _registerName1("performSelector:withObject:afterDelay:inModes:"); - void _objc_msgSend_397( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aSelector, - ffi.Pointer anArgument, - double delay, - ffi.Pointer modes, - ) { - return __objc_msgSend_397( - obj, - sel, - aSelector, - anArgument, - delay, - modes, - ); - } - - late final __objc_msgSend_397Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_397 = __objc_msgSend_397Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - double, - ffi.Pointer)>(); - - late final _sel_performSelector_withObject_afterDelay_1 = - _registerName1("performSelector:withObject:afterDelay:"); - void _objc_msgSend_398( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aSelector, - ffi.Pointer anArgument, - double delay, - ) { - return __objc_msgSend_398( - obj, - sel, - aSelector, - anArgument, - delay, - ); - } - - late final __objc_msgSend_398Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_398 = __objc_msgSend_398Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, double)>(); - - late final _sel_URL_resourceDataDidBecomeAvailable_1 = - _registerName1("URL:resourceDataDidBecomeAvailable:"); - void _objc_msgSend_399( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer sender, - ffi.Pointer newBytes, - ) { - return __objc_msgSend_399( - obj, - sel, - sender, - newBytes, - ); - } - - late final __objc_msgSend_399Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_399 = __objc_msgSend_399Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_URLResourceDidFinishLoading_1 = - _registerName1("URLResourceDidFinishLoading:"); - void _objc_msgSend_400( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer sender, - ) { - return __objc_msgSend_400( - obj, - sel, - sender, - ); - } - - late final __objc_msgSend_400Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_400 = __objc_msgSend_400Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_URLResourceDidCancelLoading_1 = - _registerName1("URLResourceDidCancelLoading:"); - late final _sel_URL_resourceDidFailLoadingWithReason_1 = - _registerName1("URL:resourceDidFailLoadingWithReason:"); - void _objc_msgSend_401( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer sender, - ffi.Pointer reason, - ) { - return __objc_msgSend_401( - obj, - sel, - sender, - reason, - ); - } - - late final __objc_msgSend_401Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_401 = __objc_msgSend_401Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _class_NSFileManager1 = _getClass1("NSFileManager"); - late final _sel_defaultManager1 = _registerName1("defaultManager"); - ffi.Pointer _objc_msgSend_402( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_402( - obj, - sel, - ); - } - - late final __objc_msgSend_402Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_402 = __objc_msgSend_402Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_mountedVolumeURLsIncludingResourceValuesForKeys_options_1 = - _registerName1( - "mountedVolumeURLsIncludingResourceValuesForKeys:options:"); - ffi.Pointer _objc_msgSend_403( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer propertyKeys, - int options, - ) { - return __objc_msgSend_403( - obj, - sel, - propertyKeys, - options, - ); - } - - late final __objc_msgSend_403Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_403 = __objc_msgSend_403Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_unmountVolumeAtURL_options_completionHandler_1 = - _registerName1("unmountVolumeAtURL:options:completionHandler:"); - void _objc_msgSend_404( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - int mask, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_404( - obj, - sel, - url, - mask, - completionHandler, - ); - } - - late final __objc_msgSend_404Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_404 = __objc_msgSend_404Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_contentsOfDirectoryAtURL_includingPropertiesForKeys_options_error_1 = - _registerName1( - "contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:"); - ffi.Pointer _objc_msgSend_405( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer keys, - int mask, - ffi.Pointer> error, - ) { - return __objc_msgSend_405( - obj, - sel, - url, - keys, - mask, - error, - ); - } - - late final __objc_msgSend_405Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_405 = __objc_msgSend_405Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); - - late final _sel_URLsForDirectory_inDomains_1 = - _registerName1("URLsForDirectory:inDomains:"); - ffi.Pointer _objc_msgSend_406( - ffi.Pointer obj, - ffi.Pointer sel, - int directory, - int domainMask, - ) { - return __objc_msgSend_406( - obj, - sel, - directory, - domainMask, - ); - } - - late final __objc_msgSend_406Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int32, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_406 = __objc_msgSend_406Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int, int)>(); - - late final _sel_URLForDirectory_inDomain_appropriateForURL_create_error_1 = - _registerName1( - "URLForDirectory:inDomain:appropriateForURL:create:error:"); - ffi.Pointer _objc_msgSend_407( - ffi.Pointer obj, - ffi.Pointer sel, - int directory, - int domain, - ffi.Pointer url, - bool shouldCreate, - ffi.Pointer> error, - ) { - return __objc_msgSend_407( - obj, - sel, - directory, - domain, - url, - shouldCreate, - error, - ); - } - - late final __objc_msgSend_407Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Int32, - ffi.Pointer, - ffi.Bool, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_407 = __objc_msgSend_407Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer, - bool, - ffi.Pointer>)>(); - - late final _sel_getRelationship_ofDirectoryAtURL_toItemAtURL_error_1 = - _registerName1("getRelationship:ofDirectoryAtURL:toItemAtURL:error:"); - bool _objc_msgSend_408( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer outRelationship, - ffi.Pointer directoryURL, - ffi.Pointer otherURL, - ffi.Pointer> error, - ) { - return __objc_msgSend_408( - obj, - sel, - outRelationship, - directoryURL, - otherURL, - error, - ); - } - - late final __objc_msgSend_408Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_408 = __objc_msgSend_408Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_getRelationship_ofDirectory_inDomain_toItemAtURL_error_1 = - _registerName1("getRelationship:ofDirectory:inDomain:toItemAtURL:error:"); - bool _objc_msgSend_409( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer outRelationship, - int directory, - int domainMask, - ffi.Pointer url, - ffi.Pointer> error, - ) { - return __objc_msgSend_409( - obj, - sel, - outRelationship, - directory, - domainMask, - url, - error, - ); - } - - late final __objc_msgSend_409Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Int32, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_409 = __objc_msgSend_409Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_createDirectoryAtURL_withIntermediateDirectories_attributes_error_1 = - _registerName1( - "createDirectoryAtURL:withIntermediateDirectories:attributes:error:"); - bool _objc_msgSend_410( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - bool createIntermediates, - ffi.Pointer attributes, - ffi.Pointer> error, - ) { - return __objc_msgSend_410( - obj, - sel, - url, - createIntermediates, - attributes, - error, - ); - } - - late final __objc_msgSend_410Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_410 = __objc_msgSend_410Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_createSymbolicLinkAtURL_withDestinationURL_error_1 = - _registerName1("createSymbolicLinkAtURL:withDestinationURL:error:"); - bool _objc_msgSend_411( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer destURL, - ffi.Pointer> error, - ) { - return __objc_msgSend_411( - obj, - sel, - url, - destURL, - error, - ); - } - - late final __objc_msgSend_411Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_411 = __objc_msgSend_411Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_delegate1 = _registerName1("delegate"); - late final _sel_setDelegate_1 = _registerName1("setDelegate:"); - late final _sel_setAttributes_ofItemAtPath_error_1 = - _registerName1("setAttributes:ofItemAtPath:error:"); - bool _objc_msgSend_412( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer attributes, - ffi.Pointer path, - ffi.Pointer> error, - ) { - return __objc_msgSend_412( - obj, - sel, - attributes, - path, - error, - ); - } - - late final __objc_msgSend_412Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_412 = __objc_msgSend_412Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_createDirectoryAtPath_withIntermediateDirectories_attributes_error_1 = - _registerName1( - "createDirectoryAtPath:withIntermediateDirectories:attributes:error:"); - bool _objc_msgSend_413( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - bool createIntermediates, - ffi.Pointer attributes, - ffi.Pointer> error, - ) { - return __objc_msgSend_413( - obj, - sel, - path, - createIntermediates, - attributes, - error, - ); - } - - late final __objc_msgSend_413Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_413 = __objc_msgSend_413Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_contentsOfDirectoryAtPath_error_1 = - _registerName1("contentsOfDirectoryAtPath:error:"); - ffi.Pointer _objc_msgSend_414( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer> error, - ) { - return __objc_msgSend_414( - obj, - sel, - path, - error, - ); - } - - late final __objc_msgSend_414Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_414 = __objc_msgSend_414Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_subpathsOfDirectoryAtPath_error_1 = - _registerName1("subpathsOfDirectoryAtPath:error:"); - late final _sel_attributesOfItemAtPath_error_1 = - _registerName1("attributesOfItemAtPath:error:"); - ffi.Pointer _objc_msgSend_415( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer> error, - ) { - return __objc_msgSend_415( - obj, - sel, - path, - error, - ); - } - - late final __objc_msgSend_415Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_415 = __objc_msgSend_415Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_attributesOfFileSystemForPath_error_1 = - _registerName1("attributesOfFileSystemForPath:error:"); - late final _sel_createSymbolicLinkAtPath_withDestinationPath_error_1 = - _registerName1("createSymbolicLinkAtPath:withDestinationPath:error:"); - bool _objc_msgSend_416( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer destPath, - ffi.Pointer> error, - ) { - return __objc_msgSend_416( - obj, - sel, - path, - destPath, - error, - ); - } - - late final __objc_msgSend_416Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_416 = __objc_msgSend_416Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_destinationOfSymbolicLinkAtPath_error_1 = - _registerName1("destinationOfSymbolicLinkAtPath:error:"); - ffi.Pointer _objc_msgSend_417( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer> error, - ) { - return __objc_msgSend_417( - obj, - sel, - path, - error, - ); - } - - late final __objc_msgSend_417Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_417 = __objc_msgSend_417Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_copyItemAtPath_toPath_error_1 = - _registerName1("copyItemAtPath:toPath:error:"); - late final _sel_moveItemAtPath_toPath_error_1 = - _registerName1("moveItemAtPath:toPath:error:"); - late final _sel_linkItemAtPath_toPath_error_1 = - _registerName1("linkItemAtPath:toPath:error:"); - late final _sel_removeItemAtPath_error_1 = - _registerName1("removeItemAtPath:error:"); - bool _objc_msgSend_418( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer> error, - ) { - return __objc_msgSend_418( - obj, - sel, - path, - error, - ); - } - - late final __objc_msgSend_418Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_418 = __objc_msgSend_418Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer>)>(); - - late final _sel_copyItemAtURL_toURL_error_1 = - _registerName1("copyItemAtURL:toURL:error:"); - late final _sel_moveItemAtURL_toURL_error_1 = - _registerName1("moveItemAtURL:toURL:error:"); - late final _sel_linkItemAtURL_toURL_error_1 = - _registerName1("linkItemAtURL:toURL:error:"); - late final _sel_removeItemAtURL_error_1 = - _registerName1("removeItemAtURL:error:"); - late final _sel_trashItemAtURL_resultingItemURL_error_1 = - _registerName1("trashItemAtURL:resultingItemURL:error:"); - bool _objc_msgSend_419( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer> outResultingURL, - ffi.Pointer> error, - ) { - return __objc_msgSend_419( - obj, - sel, - url, - outResultingURL, - error, - ); - } - - late final __objc_msgSend_419Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_419 = __objc_msgSend_419Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>)>(); - - late final _sel_fileAttributesAtPath_traverseLink_1 = - _registerName1("fileAttributesAtPath:traverseLink:"); - ffi.Pointer _objc_msgSend_420( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - bool yorn, - ) { - return __objc_msgSend_420( - obj, - sel, - path, - yorn, - ); - } - - late final __objc_msgSend_420Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_420 = __objc_msgSend_420Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, bool)>(); - - late final _sel_changeFileAttributes_atPath_1 = - _registerName1("changeFileAttributes:atPath:"); - bool _objc_msgSend_421( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer attributes, - ffi.Pointer path, - ) { - return __objc_msgSend_421( - obj, - sel, - attributes, - path, - ); - } - - late final __objc_msgSend_421Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_421 = __objc_msgSend_421Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_directoryContentsAtPath_1 = - _registerName1("directoryContentsAtPath:"); - late final _sel_fileSystemAttributesAtPath_1 = - _registerName1("fileSystemAttributesAtPath:"); - late final _sel_pathContentOfSymbolicLinkAtPath_1 = - _registerName1("pathContentOfSymbolicLinkAtPath:"); - late final _sel_createSymbolicLinkAtPath_pathContent_1 = - _registerName1("createSymbolicLinkAtPath:pathContent:"); - bool _objc_msgSend_422( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer otherpath, - ) { - return __objc_msgSend_422( - obj, - sel, - path, - otherpath, - ); - } - - late final __objc_msgSend_422Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_422 = __objc_msgSend_422Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_createDirectoryAtPath_attributes_1 = - _registerName1("createDirectoryAtPath:attributes:"); - bool _objc_msgSend_423( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer attributes, - ) { - return __objc_msgSend_423( - obj, - sel, - path, - attributes, - ); - } - - late final __objc_msgSend_423Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_423 = __objc_msgSend_423Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_linkPath_toPath_handler_1 = - _registerName1("linkPath:toPath:handler:"); - bool _objc_msgSend_424( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer src, - ffi.Pointer dest, - ffi.Pointer handler, - ) { - return __objc_msgSend_424( - obj, - sel, - src, - dest, - handler, - ); - } - - late final __objc_msgSend_424Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_424 = __objc_msgSend_424Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_copyPath_toPath_handler_1 = - _registerName1("copyPath:toPath:handler:"); - late final _sel_movePath_toPath_handler_1 = - _registerName1("movePath:toPath:handler:"); - late final _sel_removeFileAtPath_handler_1 = - _registerName1("removeFileAtPath:handler:"); - bool _objc_msgSend_425( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer handler, - ) { - return __objc_msgSend_425( - obj, - sel, - path, - handler, - ); - } - - late final __objc_msgSend_425Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_425 = __objc_msgSend_425Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_currentDirectoryPath1 = - _registerName1("currentDirectoryPath"); - late final _sel_changeCurrentDirectoryPath_1 = - _registerName1("changeCurrentDirectoryPath:"); - late final _sel_fileExistsAtPath_1 = _registerName1("fileExistsAtPath:"); - late final _sel_fileExistsAtPath_isDirectory_1 = - _registerName1("fileExistsAtPath:isDirectory:"); - bool _objc_msgSend_426( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer isDirectory, - ) { - return __objc_msgSend_426( - obj, - sel, - path, - isDirectory, - ); - } - - late final __objc_msgSend_426Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_426 = __objc_msgSend_426Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_isReadableFileAtPath_1 = - _registerName1("isReadableFileAtPath:"); - late final _sel_isWritableFileAtPath_1 = - _registerName1("isWritableFileAtPath:"); - late final _sel_isExecutableFileAtPath_1 = - _registerName1("isExecutableFileAtPath:"); - late final _sel_isDeletableFileAtPath_1 = - _registerName1("isDeletableFileAtPath:"); - late final _sel_contentsEqualAtPath_andPath_1 = - _registerName1("contentsEqualAtPath:andPath:"); - late final _sel_displayNameAtPath_1 = _registerName1("displayNameAtPath:"); - late final _sel_componentsToDisplayForPath_1 = - _registerName1("componentsToDisplayForPath:"); - late final _sel_enumeratorAtPath_1 = _registerName1("enumeratorAtPath:"); - late final _sel_enumeratorAtURL_includingPropertiesForKeys_options_errorHandler_1 = - _registerName1( - "enumeratorAtURL:includingPropertiesForKeys:options:errorHandler:"); - ffi.Pointer _objc_msgSend_427( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer keys, - int mask, - ffi.Pointer<_ObjCBlock> handler, - ) { - return __objc_msgSend_427( - obj, - sel, - url, - keys, - mask, - handler, - ); - } - - late final __objc_msgSend_427Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_427 = __objc_msgSend_427Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_subpathsAtPath_1 = _registerName1("subpathsAtPath:"); - late final _sel_contentsAtPath_1 = _registerName1("contentsAtPath:"); - ffi.Pointer _objc_msgSend_428( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ) { - return __objc_msgSend_428( - obj, - sel, - path, - ); - } - - late final __objc_msgSend_428Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_428 = __objc_msgSend_428Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_createFileAtPath_contents_attributes_1 = - _registerName1("createFileAtPath:contents:attributes:"); - bool _objc_msgSend_429( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer data, - ffi.Pointer attr, - ) { - return __objc_msgSend_429( - obj, - sel, - path, - data, - attr, - ); - } - - late final __objc_msgSend_429Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_429 = __objc_msgSend_429Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_fileSystemRepresentationWithPath_1 = - _registerName1("fileSystemRepresentationWithPath:"); - ffi.Pointer _objc_msgSend_430( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ) { - return __objc_msgSend_430( - obj, - sel, - path, - ); - } - - late final __objc_msgSend_430Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_430 = __objc_msgSend_430Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_stringWithFileSystemRepresentation_length_1 = - _registerName1("stringWithFileSystemRepresentation:length:"); - ffi.Pointer _objc_msgSend_431( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer str, - int len, - ) { - return __objc_msgSend_431( - obj, - sel, - str, - len, - ); - } - - late final __objc_msgSend_431Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_431 = __objc_msgSend_431Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_replaceItemAtURL_withItemAtURL_backupItemName_options_resultingItemURL_error_1 = - _registerName1( - "replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error:"); - bool _objc_msgSend_432( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer originalItemURL, - ffi.Pointer newItemURL, - ffi.Pointer backupItemName, - int options, - ffi.Pointer> resultingURL, - ffi.Pointer> error, - ) { - return __objc_msgSend_432( - obj, - sel, - originalItemURL, - newItemURL, - backupItemName, - options, - resultingURL, - error, - ); - } - - late final __objc_msgSend_432Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_432 = __objc_msgSend_432Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ffi.Pointer>)>(); - - late final _sel_setUbiquitous_itemAtURL_destinationURL_error_1 = - _registerName1("setUbiquitous:itemAtURL:destinationURL:error:"); - bool _objc_msgSend_433( - ffi.Pointer obj, - ffi.Pointer sel, - bool flag, - ffi.Pointer url, - ffi.Pointer destinationURL, - ffi.Pointer> error, - ) { - return __objc_msgSend_433( - obj, - sel, - flag, - url, - destinationURL, - error, - ); - } - - late final __objc_msgSend_433Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_433 = __objc_msgSend_433Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_isUbiquitousItemAtURL_1 = - _registerName1("isUbiquitousItemAtURL:"); - late final _sel_startDownloadingUbiquitousItemAtURL_error_1 = - _registerName1("startDownloadingUbiquitousItemAtURL:error:"); - late final _sel_evictUbiquitousItemAtURL_error_1 = - _registerName1("evictUbiquitousItemAtURL:error:"); - late final _sel_URLForUbiquityContainerIdentifier_1 = - _registerName1("URLForUbiquityContainerIdentifier:"); - late final _sel_URLForPublishingUbiquitousItemAtURL_expirationDate_error_1 = - _registerName1( - "URLForPublishingUbiquitousItemAtURL:expirationDate:error:"); - ffi.Pointer _objc_msgSend_434( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer> outDate, - ffi.Pointer> error, - ) { - return __objc_msgSend_434( - obj, - sel, - url, - outDate, - error, - ); - } - - late final __objc_msgSend_434Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_434 = __objc_msgSend_434Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>)>(); - - late final _sel_ubiquityIdentityToken1 = - _registerName1("ubiquityIdentityToken"); - late final _sel_getFileProviderServicesForItemAtURL_completionHandler_1 = - _registerName1("getFileProviderServicesForItemAtURL:completionHandler:"); - void _objc_msgSend_435( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_435( - obj, - sel, - url, - completionHandler, - ); - } - - late final __objc_msgSend_435Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_435 = __objc_msgSend_435Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_containerURLForSecurityApplicationGroupIdentifier_1 = - _registerName1("containerURLForSecurityApplicationGroupIdentifier:"); - late final _sel_homeDirectoryForCurrentUser1 = - _registerName1("homeDirectoryForCurrentUser"); - late final _sel_temporaryDirectory1 = _registerName1("temporaryDirectory"); - late final _sel_homeDirectoryForUser_1 = - _registerName1("homeDirectoryForUser:"); - late final _sel_fileManager_shouldProceedAfterError_1 = - _registerName1("fileManager:shouldProceedAfterError:"); - bool _objc_msgSend_436( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer fm, - ffi.Pointer errorInfo, - ) { - return __objc_msgSend_436( - obj, - sel, - fm, - errorInfo, - ); - } - - late final __objc_msgSend_436Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_436 = __objc_msgSend_436Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_fileManager_willProcessPath_1 = - _registerName1("fileManager:willProcessPath:"); - void _objc_msgSend_437( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer fm, - ffi.Pointer path, - ) { - return __objc_msgSend_437( - obj, - sel, - fm, - path, - ); - } - - late final __objc_msgSend_437Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_437 = __objc_msgSend_437Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_validateValue_forKey_error_1 = - _registerName1("validateValue:forKey:error:"); - late final _class_NSMutableArray1 = _getClass1("NSMutableArray"); - late final _sel_addObject_1 = _registerName1("addObject:"); - late final _sel_insertObject_atIndex_1 = - _registerName1("insertObject:atIndex:"); - void _objc_msgSend_438( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anObject, - int index, - ) { - return __objc_msgSend_438( - obj, - sel, - anObject, - index, - ); - } - - late final __objc_msgSend_438Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_438 = __objc_msgSend_438Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_removeLastObject1 = _registerName1("removeLastObject"); - late final _sel_removeObjectAtIndex_1 = - _registerName1("removeObjectAtIndex:"); - void _objc_msgSend_439( - ffi.Pointer obj, - ffi.Pointer sel, - int index, - ) { - return __objc_msgSend_439( - obj, - sel, - index, - ); - } - - late final __objc_msgSend_439Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_439 = __objc_msgSend_439Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_replaceObjectAtIndex_withObject_1 = - _registerName1("replaceObjectAtIndex:withObject:"); - void _objc_msgSend_440( - ffi.Pointer obj, - ffi.Pointer sel, - int index, - ffi.Pointer anObject, - ) { - return __objc_msgSend_440( - obj, - sel, - index, - anObject, - ); - } - - late final __objc_msgSend_440Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_440 = __objc_msgSend_440Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer)>(); - - late final _sel_initWithCapacity_1 = _registerName1("initWithCapacity:"); - late final _sel_addObjectsFromArray_1 = - _registerName1("addObjectsFromArray:"); - void _objc_msgSend_441( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer otherArray, - ) { - return __objc_msgSend_441( - obj, - sel, - otherArray, - ); - } - - late final __objc_msgSend_441Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_441 = __objc_msgSend_441Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_exchangeObjectAtIndex_withObjectAtIndex_1 = - _registerName1("exchangeObjectAtIndex:withObjectAtIndex:"); - void _objc_msgSend_442( - ffi.Pointer obj, - ffi.Pointer sel, - int idx1, - int idx2, - ) { - return __objc_msgSend_442( - obj, - sel, - idx1, - idx2, - ); - } - - late final __objc_msgSend_442Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_442 = __objc_msgSend_442Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, int)>(); - - late final _sel_removeAllObjects1 = _registerName1("removeAllObjects"); - late final _sel_removeObject_inRange_1 = - _registerName1("removeObject:inRange:"); - void _objc_msgSend_443( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anObject, - _NSRange range, - ) { - return __objc_msgSend_443( - obj, - sel, - anObject, - range, - ); - } - - late final __objc_msgSend_443Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_443 = __objc_msgSend_443Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>(); - - late final _sel_removeObject_1 = _registerName1("removeObject:"); - late final _sel_removeObjectIdenticalTo_inRange_1 = - _registerName1("removeObjectIdenticalTo:inRange:"); - late final _sel_removeObjectIdenticalTo_1 = - _registerName1("removeObjectIdenticalTo:"); - late final _sel_removeObjectsFromIndices_numIndices_1 = - _registerName1("removeObjectsFromIndices:numIndices:"); - void _objc_msgSend_444( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer indices, - int cnt, - ) { - return __objc_msgSend_444( - obj, - sel, - indices, - cnt, - ); - } - - late final __objc_msgSend_444Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_444 = __objc_msgSend_444Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_removeObjectsInArray_1 = - _registerName1("removeObjectsInArray:"); - late final _sel_removeObjectsInRange_1 = - _registerName1("removeObjectsInRange:"); - void _objc_msgSend_445( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ) { - return __objc_msgSend_445( - obj, - sel, - range, - ); - } - - late final __objc_msgSend_445Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_445 = __objc_msgSend_445Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, _NSRange)>(); - - late final _sel_replaceObjectsInRange_withObjectsFromArray_range_1 = - _registerName1("replaceObjectsInRange:withObjectsFromArray:range:"); - void _objc_msgSend_446( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ffi.Pointer otherArray, - _NSRange otherRange, - ) { - return __objc_msgSend_446( - obj, - sel, - range, - otherArray, - otherRange, - ); - } - - late final __objc_msgSend_446Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - _NSRange, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_446 = __objc_msgSend_446Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, _NSRange, - ffi.Pointer, _NSRange)>(); - - late final _sel_replaceObjectsInRange_withObjectsFromArray_1 = - _registerName1("replaceObjectsInRange:withObjectsFromArray:"); - void _objc_msgSend_447( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ffi.Pointer otherArray, - ) { - return __objc_msgSend_447( - obj, - sel, - range, - otherArray, - ); - } - - late final __objc_msgSend_447Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_447 = __objc_msgSend_447Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, _NSRange, - ffi.Pointer)>(); - - late final _sel_setArray_1 = _registerName1("setArray:"); - late final _sel_sortUsingFunction_context_1 = - _registerName1("sortUsingFunction:context:"); - void _objc_msgSend_448( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - compare, - ffi.Pointer context, - ) { - return __objc_msgSend_448( - obj, - sel, - compare, - context, - ); - } - - late final __objc_msgSend_448Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_448 = __objc_msgSend_448Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>, - ffi.Pointer)>(); - - late final _sel_sortUsingSelector_1 = _registerName1("sortUsingSelector:"); - late final _sel_insertObjects_atIndexes_1 = - _registerName1("insertObjects:atIndexes:"); - void _objc_msgSend_449( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer objects, - ffi.Pointer indexes, - ) { - return __objc_msgSend_449( - obj, - sel, - objects, - indexes, - ); - } - - late final __objc_msgSend_449Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_449 = __objc_msgSend_449Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_removeObjectsAtIndexes_1 = - _registerName1("removeObjectsAtIndexes:"); - void _objc_msgSend_450( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer indexes, - ) { - return __objc_msgSend_450( - obj, - sel, - indexes, - ); - } - - late final __objc_msgSend_450Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_450 = __objc_msgSend_450Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_replaceObjectsAtIndexes_withObjects_1 = - _registerName1("replaceObjectsAtIndexes:withObjects:"); - void _objc_msgSend_451( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer indexes, - ffi.Pointer objects, - ) { - return __objc_msgSend_451( - obj, - sel, - indexes, - objects, - ); - } - - late final __objc_msgSend_451Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_451 = __objc_msgSend_451Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setObject_atIndexedSubscript_1 = - _registerName1("setObject:atIndexedSubscript:"); - late final _sel_sortUsingComparator_1 = - _registerName1("sortUsingComparator:"); - void _objc_msgSend_452( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> cmptr, - ) { - return __objc_msgSend_452( - obj, - sel, - cmptr, - ); - } - - late final __objc_msgSend_452Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_452 = __objc_msgSend_452Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_sortWithOptions_usingComparator_1 = - _registerName1("sortWithOptions:usingComparator:"); - void _objc_msgSend_453( - ffi.Pointer obj, - ffi.Pointer sel, - int opts, - ffi.Pointer<_ObjCBlock> cmptr, - ) { - return __objc_msgSend_453( - obj, - sel, - opts, - cmptr, - ); - } - - late final __objc_msgSend_453Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_453 = __objc_msgSend_453Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_arrayWithCapacity_1 = _registerName1("arrayWithCapacity:"); - ffi.Pointer _objc_msgSend_454( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ) { - return __objc_msgSend_454( - obj, - sel, - path, - ); - } - - late final __objc_msgSend_454Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_454 = __objc_msgSend_454Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - ffi.Pointer _objc_msgSend_455( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ) { - return __objc_msgSend_455( - obj, - sel, - url, - ); - } - - late final __objc_msgSend_455Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_455 = __objc_msgSend_455Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_applyDifference_1 = _registerName1("applyDifference:"); - late final _sel_sortUsingDescriptors_1 = - _registerName1("sortUsingDescriptors:"); - late final _sel_filterUsingPredicate_1 = - _registerName1("filterUsingPredicate:"); - void _objc_msgSend_456( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer predicate, - ) { - return __objc_msgSend_456( - obj, - sel, - predicate, - ); - } - - late final __objc_msgSend_456Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_456 = __objc_msgSend_456Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_mutableArrayValueForKey_1 = - _registerName1("mutableArrayValueForKey:"); - late final _class_NSMutableOrderedSet1 = _getClass1("NSMutableOrderedSet"); - late final _class_NSOrderedSet1 = _getClass1("NSOrderedSet"); - late final _sel_isEqualToOrderedSet_1 = - _registerName1("isEqualToOrderedSet:"); - bool _objc_msgSend_457( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer other, - ) { - return __objc_msgSend_457( - obj, - sel, - other, - ); - } - - late final __objc_msgSend_457Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_457 = __objc_msgSend_457Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_intersectsOrderedSet_1 = - _registerName1("intersectsOrderedSet:"); - late final _sel_isSubsetOfOrderedSet_1 = - _registerName1("isSubsetOfOrderedSet:"); - late final _sel_reversedOrderedSet1 = _registerName1("reversedOrderedSet"); - ffi.Pointer _objc_msgSend_458( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_458( - obj, - sel, - ); - } - - late final __objc_msgSend_458Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_458 = __objc_msgSend_458Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_orderedSet1 = _registerName1("orderedSet"); - late final _sel_orderedSetWithObject_1 = - _registerName1("orderedSetWithObject:"); - late final _sel_orderedSetWithObjects_count_1 = - _registerName1("orderedSetWithObjects:count:"); - late final _sel_orderedSetWithObjects_1 = - _registerName1("orderedSetWithObjects:"); - late final _sel_orderedSetWithOrderedSet_1 = - _registerName1("orderedSetWithOrderedSet:"); - instancetype _objc_msgSend_459( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer set1, - ) { - return __objc_msgSend_459( - obj, - sel, - set1, - ); - } - - late final __objc_msgSend_459Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_459 = __objc_msgSend_459Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_orderedSetWithOrderedSet_range_copyItems_1 = - _registerName1("orderedSetWithOrderedSet:range:copyItems:"); - instancetype _objc_msgSend_460( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer set1, - _NSRange range, - bool flag, - ) { - return __objc_msgSend_460( - obj, - sel, - set1, - range, - flag, - ); - } - - late final __objc_msgSend_460Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_460 = __objc_msgSend_460Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange, bool)>(); - - late final _sel_orderedSetWithArray_1 = - _registerName1("orderedSetWithArray:"); - late final _sel_orderedSetWithArray_range_copyItems_1 = - _registerName1("orderedSetWithArray:range:copyItems:"); - instancetype _objc_msgSend_461( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer array, - _NSRange range, - bool flag, - ) { - return __objc_msgSend_461( - obj, - sel, - array, - range, - flag, - ); - } - - late final __objc_msgSend_461Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_461 = __objc_msgSend_461Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange, bool)>(); - - late final _sel_orderedSetWithSet_1 = _registerName1("orderedSetWithSet:"); - late final _sel_orderedSetWithSet_copyItems_1 = - _registerName1("orderedSetWithSet:copyItems:"); - late final _sel_initWithObject_1 = _registerName1("initWithObject:"); - late final _sel_initWithOrderedSet_1 = _registerName1("initWithOrderedSet:"); - late final _sel_initWithOrderedSet_copyItems_1 = - _registerName1("initWithOrderedSet:copyItems:"); - instancetype _objc_msgSend_462( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer set1, - bool flag, - ) { - return __objc_msgSend_462( - obj, - sel, - set1, - flag, - ); - } - - late final __objc_msgSend_462Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_462 = __objc_msgSend_462Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); - - late final _sel_initWithOrderedSet_range_copyItems_1 = - _registerName1("initWithOrderedSet:range:copyItems:"); - late final _sel_initWithArray_range_copyItems_1 = - _registerName1("initWithArray:range:copyItems:"); - late final _sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_1 = - _registerName1( - "differenceFromOrderedSet:withOptions:usingEquivalenceTest:"); - ffi.Pointer _objc_msgSend_463( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer other, - int options, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_463( - obj, - sel, - other, - options, - block, - ); - } - - late final __objc_msgSend_463Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_463 = __objc_msgSend_463Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_differenceFromOrderedSet_withOptions_1 = - _registerName1("differenceFromOrderedSet:withOptions:"); - ffi.Pointer _objc_msgSend_464( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer other, - int options, - ) { - return __objc_msgSend_464( - obj, - sel, - other, - options, - ); - } - - late final __objc_msgSend_464Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_464 = __objc_msgSend_464Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_differenceFromOrderedSet_1 = - _registerName1("differenceFromOrderedSet:"); - late final _sel_orderedSetByApplyingDifference_1 = - _registerName1("orderedSetByApplyingDifference:"); - ffi.Pointer _objc_msgSend_465( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer difference, - ) { - return __objc_msgSend_465( - obj, - sel, - difference, - ); - } - - late final __objc_msgSend_465Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_465 = __objc_msgSend_465Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_filteredOrderedSetUsingPredicate_1 = - _registerName1("filteredOrderedSetUsingPredicate:"); - ffi.Pointer _objc_msgSend_466( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer p, - ) { - return __objc_msgSend_466( - obj, - sel, - p, - ); - } - - late final __objc_msgSend_466Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_466 = __objc_msgSend_466Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_addObjects_count_1 = _registerName1("addObjects:count:"); - void _objc_msgSend_467( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> objects, - int count, - ) { - return __objc_msgSend_467( - obj, - sel, - objects, - count, - ); - } - - late final __objc_msgSend_467Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_467 = __objc_msgSend_467Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>, int)>(); - - late final _sel_moveObjectsAtIndexes_toIndex_1 = - _registerName1("moveObjectsAtIndexes:toIndex:"); - void _objc_msgSend_468( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer indexes, - int idx, - ) { - return __objc_msgSend_468( - obj, - sel, - indexes, - idx, - ); - } - - late final __objc_msgSend_468Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_468 = __objc_msgSend_468Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_setObject_atIndex_1 = _registerName1("setObject:atIndex:"); - late final _sel_replaceObjectsInRange_withObjects_count_1 = - _registerName1("replaceObjectsInRange:withObjects:count:"); - void _objc_msgSend_469( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ffi.Pointer> objects, - int count, - ) { - return __objc_msgSend_469( - obj, - sel, - range, - objects, - count, - ); - } - - late final __objc_msgSend_469Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Pointer>, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_469 = __objc_msgSend_469Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, _NSRange, - ffi.Pointer>, int)>(); - - late final _sel_intersectOrderedSet_1 = - _registerName1("intersectOrderedSet:"); - void _objc_msgSend_470( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer other, - ) { - return __objc_msgSend_470( - obj, - sel, - other, - ); - } - - late final __objc_msgSend_470Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_470 = __objc_msgSend_470Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_minusOrderedSet_1 = _registerName1("minusOrderedSet:"); - late final _sel_unionOrderedSet_1 = _registerName1("unionOrderedSet:"); - late final _sel_intersectSet_1 = _registerName1("intersectSet:"); - void _objc_msgSend_471( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer other, - ) { - return __objc_msgSend_471( - obj, - sel, - other, - ); - } - - late final __objc_msgSend_471Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_471 = __objc_msgSend_471Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_minusSet_1 = _registerName1("minusSet:"); - late final _sel_unionSet_1 = _registerName1("unionSet:"); - late final _sel_sortRange_options_usingComparator_1 = - _registerName1("sortRange:options:usingComparator:"); - void _objc_msgSend_472( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - int opts, - ffi.Pointer<_ObjCBlock> cmptr, - ) { - return __objc_msgSend_472( - obj, - sel, - range, - opts, - cmptr, - ); - } - - late final __objc_msgSend_472Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_472 = __objc_msgSend_472Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, _NSRange, - int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_orderedSetWithCapacity_1 = - _registerName1("orderedSetWithCapacity:"); - late final _sel_mutableOrderedSetValueForKey_1 = - _registerName1("mutableOrderedSetValueForKey:"); - ffi.Pointer _objc_msgSend_473( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer key, - ) { - return __objc_msgSend_473( - obj, - sel, - key, - ); - } - - late final __objc_msgSend_473Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_473 = __objc_msgSend_473Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _class_NSMutableSet1 = _getClass1("NSMutableSet"); - late final _sel_setSet_1 = _registerName1("setSet:"); - late final _sel_setWithCapacity_1 = _registerName1("setWithCapacity:"); - late final _sel_mutableSetValueForKey_1 = - _registerName1("mutableSetValueForKey:"); - ffi.Pointer _objc_msgSend_474( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer key, - ) { - return __objc_msgSend_474( - obj, - sel, - key, - ); - } - - late final __objc_msgSend_474Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_474 = __objc_msgSend_474Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_valueForKeyPath_1 = _registerName1("valueForKeyPath:"); - late final _sel_setValue_forKeyPath_1 = - _registerName1("setValue:forKeyPath:"); - late final _sel_validateValue_forKeyPath_error_1 = - _registerName1("validateValue:forKeyPath:error:"); - late final _sel_mutableArrayValueForKeyPath_1 = - _registerName1("mutableArrayValueForKeyPath:"); - late final _sel_mutableOrderedSetValueForKeyPath_1 = - _registerName1("mutableOrderedSetValueForKeyPath:"); - late final _sel_mutableSetValueForKeyPath_1 = - _registerName1("mutableSetValueForKeyPath:"); - late final _sel_valueForUndefinedKey_1 = - _registerName1("valueForUndefinedKey:"); - late final _sel_setValue_forUndefinedKey_1 = - _registerName1("setValue:forUndefinedKey:"); - late final _sel_setNilValueForKey_1 = _registerName1("setNilValueForKey:"); - late final _sel_dictionaryWithValuesForKeys_1 = - _registerName1("dictionaryWithValuesForKeys:"); - ffi.Pointer _objc_msgSend_475( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer keys, - ) { - return __objc_msgSend_475( - obj, - sel, - keys, - ); - } - - late final __objc_msgSend_475Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_475 = __objc_msgSend_475Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setValuesForKeysWithDictionary_1 = - _registerName1("setValuesForKeysWithDictionary:"); - void _objc_msgSend_476( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer keyedValues, - ) { - return __objc_msgSend_476( - obj, - sel, - keyedValues, - ); - } - - late final __objc_msgSend_476Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_476 = __objc_msgSend_476Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_storedValueForKey_1 = _registerName1("storedValueForKey:"); - late final _sel_takeStoredValue_forKey_1 = - _registerName1("takeStoredValue:forKey:"); - late final _sel_takeValue_forKey_1 = _registerName1("takeValue:forKey:"); - late final _sel_takeValue_forKeyPath_1 = - _registerName1("takeValue:forKeyPath:"); - late final _sel_handleQueryWithUnboundKey_1 = - _registerName1("handleQueryWithUnboundKey:"); - late final _sel_handleTakeValue_forUnboundKey_1 = - _registerName1("handleTakeValue:forUnboundKey:"); - late final _sel_unableToSetNilForKey_1 = - _registerName1("unableToSetNilForKey:"); - late final _sel_valuesForKeys_1 = _registerName1("valuesForKeys:"); - late final _sel_takeValuesFromDictionary_1 = - _registerName1("takeValuesFromDictionary:"); - late final _sel_observeValueForKeyPath_ofObject_change_context_1 = - _registerName1("observeValueForKeyPath:ofObject:change:context:"); - void _objc_msgSend_477( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer keyPath, - ffi.Pointer object, - ffi.Pointer change, - ffi.Pointer context, - ) { - return __objc_msgSend_477( - obj, - sel, - keyPath, - object, - change, - context, - ); - } - - late final __objc_msgSend_477Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_477 = __objc_msgSend_477Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_willChangeValueForKey_1 = - _registerName1("willChangeValueForKey:"); - late final _sel_didChangeValueForKey_1 = - _registerName1("didChangeValueForKey:"); - late final _sel_willChange_valuesAtIndexes_forKey_1 = - _registerName1("willChange:valuesAtIndexes:forKey:"); - void _objc_msgSend_478( - ffi.Pointer obj, - ffi.Pointer sel, - int changeKind, - ffi.Pointer indexes, - ffi.Pointer key, - ) { - return __objc_msgSend_478( - obj, - sel, - changeKind, - indexes, - key, - ); - } - - late final __objc_msgSend_478Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_478 = __objc_msgSend_478Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_didChange_valuesAtIndexes_forKey_1 = - _registerName1("didChange:valuesAtIndexes:forKey:"); - late final _sel_willChangeValueForKey_withSetMutation_usingObjects_1 = - _registerName1("willChangeValueForKey:withSetMutation:usingObjects:"); - void _objc_msgSend_479( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer key, - int mutationKind, - ffi.Pointer objects, - ) { - return __objc_msgSend_479( - obj, - sel, - key, - mutationKind, - objects, - ); - } - - late final __objc_msgSend_479Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_479 = __objc_msgSend_479Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer)>(); - - late final _sel_didChangeValueForKey_withSetMutation_usingObjects_1 = - _registerName1("didChangeValueForKey:withSetMutation:usingObjects:"); - late final _sel_observationInfo1 = _registerName1("observationInfo"); - late final _sel_setObservationInfo_1 = _registerName1("setObservationInfo:"); - void _objc_msgSend_480( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_480( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_480Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_480 = __objc_msgSend_480Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_classForKeyedArchiver1 = - _registerName1("classForKeyedArchiver"); - late final _class_NSKeyedArchiver1 = _getClass1("NSKeyedArchiver"); - late final _sel_initRequiringSecureCoding_1 = - _registerName1("initRequiringSecureCoding:"); - instancetype _objc_msgSend_481( - ffi.Pointer obj, - ffi.Pointer sel, - bool requiresSecureCoding, - ) { - return __objc_msgSend_481( - obj, - sel, - requiresSecureCoding, - ); - } - - late final __objc_msgSend_481Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_481 = __objc_msgSend_481Ptr.asFunction< - instancetype Function( - ffi.Pointer, ffi.Pointer, bool)>(); - - late final _sel_archivedDataWithRootObject_requiringSecureCoding_error_1 = - _registerName1("archivedDataWithRootObject:requiringSecureCoding:error:"); - ffi.Pointer _objc_msgSend_482( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer object, - bool requiresSecureCoding, - ffi.Pointer> error, - ) { - return __objc_msgSend_482( - obj, - sel, - object, - requiresSecureCoding, - error, - ); - } - - late final __objc_msgSend_482Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_482 = __objc_msgSend_482Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer>)>(); - - late final _class_NSMutableData1 = _getClass1("NSMutableData"); - late final _sel_mutableBytes1 = _registerName1("mutableBytes"); - late final _sel_setLength_1 = _registerName1("setLength:"); - void _objc_msgSend_483( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_483( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_483Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_483 = __objc_msgSend_483Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_appendBytes_length_1 = _registerName1("appendBytes:length:"); - late final _sel_appendData_1 = _registerName1("appendData:"); - late final _sel_increaseLengthBy_1 = _registerName1("increaseLengthBy:"); - late final _sel_replaceBytesInRange_withBytes_1 = - _registerName1("replaceBytesInRange:withBytes:"); - void _objc_msgSend_484( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ffi.Pointer bytes, - ) { - return __objc_msgSend_484( - obj, - sel, - range, - bytes, - ); - } - - late final __objc_msgSend_484Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_484 = __objc_msgSend_484Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, _NSRange, - ffi.Pointer)>(); - - late final _sel_resetBytesInRange_1 = _registerName1("resetBytesInRange:"); - late final _sel_setData_1 = _registerName1("setData:"); - late final _sel_replaceBytesInRange_withBytes_length_1 = - _registerName1("replaceBytesInRange:withBytes:length:"); - void _objc_msgSend_485( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ffi.Pointer replacementBytes, - int replacementLength, - ) { - return __objc_msgSend_485( - obj, - sel, - range, - replacementBytes, - replacementLength, - ); - } - - late final __objc_msgSend_485Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_485 = __objc_msgSend_485Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, _NSRange, - ffi.Pointer, int)>(); - - late final _sel_dataWithCapacity_1 = _registerName1("dataWithCapacity:"); - late final _sel_dataWithLength_1 = _registerName1("dataWithLength:"); - late final _sel_initWithLength_1 = _registerName1("initWithLength:"); - late final _sel_decompressUsingAlgorithm_error_1 = - _registerName1("decompressUsingAlgorithm:error:"); - bool _objc_msgSend_486( - ffi.Pointer obj, - ffi.Pointer sel, - int algorithm, - ffi.Pointer> error, - ) { - return __objc_msgSend_486( - obj, - sel, - algorithm, - error, - ); - } - - late final __objc_msgSend_486Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_486 = __objc_msgSend_486Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer>)>(); - - late final _sel_compressUsingAlgorithm_error_1 = - _registerName1("compressUsingAlgorithm:error:"); - late final _sel_initForWritingWithMutableData_1 = - _registerName1("initForWritingWithMutableData:"); - instancetype _objc_msgSend_487( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer data, - ) { - return __objc_msgSend_487( - obj, - sel, - data, - ); - } - - late final __objc_msgSend_487Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_487 = __objc_msgSend_487Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_archivedDataWithRootObject_1 = - _registerName1("archivedDataWithRootObject:"); - ffi.Pointer _objc_msgSend_488( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer rootObject, - ) { - return __objc_msgSend_488( - obj, - sel, - rootObject, - ); - } - - late final __objc_msgSend_488Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_488 = __objc_msgSend_488Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_archiveRootObject_toFile_1 = - _registerName1("archiveRootObject:toFile:"); - late final _sel_outputFormat1 = _registerName1("outputFormat"); - int _objc_msgSend_489( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_489( - obj, - sel, - ); - } - - late final __objc_msgSend_489Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_489 = __objc_msgSend_489Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setOutputFormat_1 = _registerName1("setOutputFormat:"); - void _objc_msgSend_490( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_490( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_490Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_490 = __objc_msgSend_490Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_encodedData1 = _registerName1("encodedData"); - late final _sel_finishEncoding1 = _registerName1("finishEncoding"); - late final _sel_setClassName_forClass_1 = - _registerName1("setClassName:forClass:"); - void _objc_msgSend_491( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer codedName, - ffi.Pointer cls, - ) { - return __objc_msgSend_491( - obj, - sel, - codedName, - cls, - ); - } - - late final __objc_msgSend_491Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_491 = __objc_msgSend_491Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_classNameForClass_1 = _registerName1("classNameForClass:"); - late final _sel_setRequiresSecureCoding_1 = - _registerName1("setRequiresSecureCoding:"); - void _objc_msgSend_492( - ffi.Pointer obj, - ffi.Pointer sel, - bool value, - ) { - return __objc_msgSend_492( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_492Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_492 = __objc_msgSend_492Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, bool)>(); - - late final _sel_replacementObjectForKeyedArchiver_1 = - _registerName1("replacementObjectForKeyedArchiver:"); - ffi.Pointer _objc_msgSend_493( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer archiver, - ) { - return __objc_msgSend_493( - obj, - sel, - archiver, - ); - } - - late final __objc_msgSend_493Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_493 = __objc_msgSend_493Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_1 = - _registerName1( - "performSelectorOnMainThread:withObject:waitUntilDone:modes:"); - void _objc_msgSend_494( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aSelector, - ffi.Pointer arg, - bool wait, - ffi.Pointer array, - ) { - return __objc_msgSend_494( - obj, - sel, - aSelector, - arg, - wait, - array, - ); - } - - late final __objc_msgSend_494Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_494 = __objc_msgSend_494Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer)>(); - - late final _sel_performSelectorOnMainThread_withObject_waitUntilDone_1 = - _registerName1("performSelectorOnMainThread:withObject:waitUntilDone:"); - void _objc_msgSend_495( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aSelector, - ffi.Pointer arg, - bool wait, - ) { - return __objc_msgSend_495( - obj, - sel, - aSelector, - arg, - wait, - ); - } - - late final __objc_msgSend_495Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_495 = __objc_msgSend_495Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, bool)>(); - - late final _class_NSThread1 = _getClass1("NSThread"); - late final _sel_currentThread1 = _registerName1("currentThread"); - ffi.Pointer _objc_msgSend_496( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_496( - obj, - sel, - ); - } - - late final __objc_msgSend_496Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_496 = __objc_msgSend_496Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_detachNewThreadWithBlock_1 = - _registerName1("detachNewThreadWithBlock:"); - void _objc_msgSend_497( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_497( - obj, - sel, - block, - ); - } - - late final __objc_msgSend_497Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_497 = __objc_msgSend_497Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_detachNewThreadSelector_toTarget_withObject_1 = - _registerName1("detachNewThreadSelector:toTarget:withObject:"); - void _objc_msgSend_498( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer selector, - ffi.Pointer target, - ffi.Pointer argument, - ) { - return __objc_msgSend_498( - obj, - sel, - selector, - target, - argument, - ); - } - - late final __objc_msgSend_498Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_498 = __objc_msgSend_498Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_isMultiThreaded1 = _registerName1("isMultiThreaded"); - late final _class_NSMutableDictionary1 = _getClass1("NSMutableDictionary"); - late final _sel_removeObjectForKey_1 = _registerName1("removeObjectForKey:"); - late final _sel_setObject_forKey_1 = _registerName1("setObject:forKey:"); - void _objc_msgSend_499( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anObject, - ffi.Pointer aKey, - ) { - return __objc_msgSend_499( - obj, - sel, - anObject, - aKey, - ); - } - - late final __objc_msgSend_499Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_499 = __objc_msgSend_499Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_addEntriesFromDictionary_1 = - _registerName1("addEntriesFromDictionary:"); - late final _sel_removeObjectsForKeys_1 = - _registerName1("removeObjectsForKeys:"); - late final _sel_setDictionary_1 = _registerName1("setDictionary:"); - late final _sel_setObject_forKeyedSubscript_1 = - _registerName1("setObject:forKeyedSubscript:"); - late final _sel_dictionaryWithCapacity_1 = - _registerName1("dictionaryWithCapacity:"); - ffi.Pointer _objc_msgSend_500( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ) { - return __objc_msgSend_500( - obj, - sel, - path, - ); - } - - late final __objc_msgSend_500Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_500 = __objc_msgSend_500Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - ffi.Pointer _objc_msgSend_501( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ) { - return __objc_msgSend_501( - obj, - sel, - url, - ); - } - - late final __objc_msgSend_501Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_501 = __objc_msgSend_501Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_dictionaryWithSharedKeySet_1 = - _registerName1("dictionaryWithSharedKeySet:"); - ffi.Pointer _objc_msgSend_502( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer keyset, - ) { - return __objc_msgSend_502( - obj, - sel, - keyset, - ); - } - - late final __objc_msgSend_502Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_502 = __objc_msgSend_502Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_threadDictionary1 = _registerName1("threadDictionary"); - ffi.Pointer _objc_msgSend_503( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_503( - obj, - sel, - ); - } - - late final __objc_msgSend_503Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_503 = __objc_msgSend_503Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_sleepUntilDate_1 = _registerName1("sleepUntilDate:"); - void _objc_msgSend_504( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer date, - ) { - return __objc_msgSend_504( - obj, - sel, - date, - ); - } - - late final __objc_msgSend_504Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_504 = __objc_msgSend_504Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_sleepForTimeInterval_1 = - _registerName1("sleepForTimeInterval:"); - void _objc_msgSend_505( - ffi.Pointer obj, - ffi.Pointer sel, - double ti, - ) { - return __objc_msgSend_505( - obj, - sel, - ti, - ); - } - - late final __objc_msgSend_505Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_505 = __objc_msgSend_505Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, double)>(); - - late final _sel_exit1 = _registerName1("exit"); - late final _sel_threadPriority1 = _registerName1("threadPriority"); - late final _sel_setThreadPriority_1 = _registerName1("setThreadPriority:"); - void _objc_msgSend_506( - ffi.Pointer obj, - ffi.Pointer sel, - double value, - ) { - return __objc_msgSend_506( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_506Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_506 = __objc_msgSend_506Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, double)>(); - - late final _sel_qualityOfService1 = _registerName1("qualityOfService"); - int _objc_msgSend_507( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_507( - obj, - sel, - ); - } - - late final __objc_msgSend_507Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_507 = __objc_msgSend_507Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setQualityOfService_1 = - _registerName1("setQualityOfService:"); - void _objc_msgSend_508( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_508( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_508Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_508 = __objc_msgSend_508Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_callStackReturnAddresses1 = - _registerName1("callStackReturnAddresses"); - late final _sel_callStackSymbols1 = _registerName1("callStackSymbols"); - late final _sel_setName_1 = _registerName1("setName:"); - void _objc_msgSend_509( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_509( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_509Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_509 = __objc_msgSend_509Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_stackSize1 = _registerName1("stackSize"); - late final _sel_setStackSize_1 = _registerName1("setStackSize:"); - late final _sel_isMainThread1 = _registerName1("isMainThread"); - late final _sel_mainThread1 = _registerName1("mainThread"); - late final _sel_initWithTarget_selector_object_1 = - _registerName1("initWithTarget:selector:object:"); - instancetype _objc_msgSend_510( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer target, - ffi.Pointer selector, - ffi.Pointer argument, - ) { - return __objc_msgSend_510( - obj, - sel, - target, - selector, - argument, - ); - } - - late final __objc_msgSend_510Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_510 = __objc_msgSend_510Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_initWithBlock_1 = _registerName1("initWithBlock:"); - instancetype _objc_msgSend_511( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_511( - obj, - sel, - block, - ); - } - - late final __objc_msgSend_511Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_511 = __objc_msgSend_511Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_isExecuting1 = _registerName1("isExecuting"); - late final _sel_isFinished1 = _registerName1("isFinished"); - late final _sel_isCancelled1 = _registerName1("isCancelled"); - late final _sel_cancel1 = _registerName1("cancel"); - late final _sel_start1 = _registerName1("start"); - late final _sel_main1 = _registerName1("main"); - late final _sel_performSelector_onThread_withObject_waitUntilDone_modes_1 = - _registerName1( - "performSelector:onThread:withObject:waitUntilDone:modes:"); - void _objc_msgSend_512( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aSelector, - ffi.Pointer thr, - ffi.Pointer arg, - bool wait, - ffi.Pointer array, - ) { - return __objc_msgSend_512( - obj, - sel, - aSelector, - thr, - arg, - wait, - array, - ); - } - - late final __objc_msgSend_512Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_512 = __objc_msgSend_512Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool, - ffi.Pointer)>(); - - late final _sel_performSelector_onThread_withObject_waitUntilDone_1 = - _registerName1("performSelector:onThread:withObject:waitUntilDone:"); - void _objc_msgSend_513( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aSelector, - ffi.Pointer thr, - ffi.Pointer arg, - bool wait, - ) { - return __objc_msgSend_513( - obj, - sel, - aSelector, - thr, - arg, - wait, - ); - } - - late final __objc_msgSend_513Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_513 = __objc_msgSend_513Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool)>(); - - late final _sel_performSelectorInBackground_withObject_1 = - _registerName1("performSelectorInBackground:withObject:"); - late final _sel_classForArchiver1 = _registerName1("classForArchiver"); - late final _class_NSArchiver1 = _getClass1("NSArchiver"); - late final _sel_archiverData1 = _registerName1("archiverData"); - ffi.Pointer _objc_msgSend_514( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_514( - obj, - sel, - ); - } - - late final __objc_msgSend_514Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_514 = __objc_msgSend_514Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_encodeClassName_intoClassName_1 = - _registerName1("encodeClassName:intoClassName:"); - void _objc_msgSend_515( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer trueName, - ffi.Pointer inArchiveName, - ) { - return __objc_msgSend_515( - obj, - sel, - trueName, - inArchiveName, - ); - } - - late final __objc_msgSend_515Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_515 = __objc_msgSend_515Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_classNameEncodedForTrueClassName_1 = - _registerName1("classNameEncodedForTrueClassName:"); - late final _sel_replaceObject_withObject_1 = - _registerName1("replaceObject:withObject:"); - late final _sel_replacementObjectForArchiver_1 = - _registerName1("replacementObjectForArchiver:"); - ffi.Pointer _objc_msgSend_516( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer archiver, - ) { - return __objc_msgSend_516( - obj, - sel, - archiver, - ); - } - - late final __objc_msgSend_516Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_516 = __objc_msgSend_516Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_classForPortCoder1 = _registerName1("classForPortCoder"); - late final _class_NSPortCoder1 = _getClass1("NSPortCoder"); - late final _sel_isBycopy1 = _registerName1("isBycopy"); - late final _sel_isByref1 = _registerName1("isByref"); - late final _class_NSPort1 = _getClass1("NSPort"); - ffi.Pointer _objc_msgSend_517( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_517( - obj, - sel, - ); - } - - late final __objc_msgSend_517Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_517 = __objc_msgSend_517Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_invalidate1 = _registerName1("invalidate"); - late final _sel_isValid1 = _registerName1("isValid"); - late final _class_NSRunLoop1 = _getClass1("NSRunLoop"); - late final _sel_currentRunLoop1 = _registerName1("currentRunLoop"); - ffi.Pointer _objc_msgSend_518( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_518( - obj, - sel, - ); - } - - late final __objc_msgSend_518Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_518 = __objc_msgSend_518Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_mainRunLoop1 = _registerName1("mainRunLoop"); - late final _sel_currentMode1 = _registerName1("currentMode"); - late final _sel_getCFRunLoop1 = _registerName1("getCFRunLoop"); - ffi.Pointer<__CFRunLoop> _objc_msgSend_519( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_519( - obj, - sel, - ); - } - - late final __objc_msgSend_519Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer<__CFRunLoop> Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_519 = __objc_msgSend_519Ptr.asFunction< - ffi.Pointer<__CFRunLoop> Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _class_NSTimer1 = _getClass1("NSTimer"); - late final _sel_timerWithTimeInterval_invocation_repeats_1 = - _registerName1("timerWithTimeInterval:invocation:repeats:"); - ffi.Pointer _objc_msgSend_520( - ffi.Pointer obj, - ffi.Pointer sel, - double ti, - ffi.Pointer invocation, - bool yesOrNo, - ) { - return __objc_msgSend_520( - obj, - sel, - ti, - invocation, - yesOrNo, - ); - } - - late final __objc_msgSend_520Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Pointer, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_520 = __objc_msgSend_520Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, double, ffi.Pointer, bool)>(); - - late final _sel_scheduledTimerWithTimeInterval_invocation_repeats_1 = - _registerName1("scheduledTimerWithTimeInterval:invocation:repeats:"); - late final _sel_timerWithTimeInterval_target_selector_userInfo_repeats_1 = - _registerName1("timerWithTimeInterval:target:selector:userInfo:repeats:"); - ffi.Pointer _objc_msgSend_521( - ffi.Pointer obj, - ffi.Pointer sel, - double ti, - ffi.Pointer aTarget, - ffi.Pointer aSelector, - ffi.Pointer userInfo, - bool yesOrNo, - ) { - return __objc_msgSend_521( - obj, - sel, - ti, - aTarget, - aSelector, - userInfo, - yesOrNo, - ); - } - - late final __objc_msgSend_521Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_521 = __objc_msgSend_521Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - double, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool)>(); - - late final _sel_scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_1 = - _registerName1( - "scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:"); - late final _sel_timerWithTimeInterval_repeats_block_1 = - _registerName1("timerWithTimeInterval:repeats:block:"); - ffi.Pointer _objc_msgSend_522( - ffi.Pointer obj, - ffi.Pointer sel, - double interval, - bool repeats, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_522( - obj, - sel, - interval, - repeats, - block, - ); - } - - late final __objc_msgSend_522Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Bool, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_522 = __objc_msgSend_522Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, double, bool, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_scheduledTimerWithTimeInterval_repeats_block_1 = - _registerName1("scheduledTimerWithTimeInterval:repeats:block:"); - late final _sel_initWithFireDate_interval_repeats_block_1 = - _registerName1("initWithFireDate:interval:repeats:block:"); - instancetype _objc_msgSend_523( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer date, - double interval, - bool repeats, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_523( - obj, - sel, - date, - interval, - repeats, - block, - ); - } - - late final __objc_msgSend_523Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Bool, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_523 = __objc_msgSend_523Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, double, bool, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_initWithFireDate_interval_target_selector_userInfo_repeats_1 = - _registerName1( - "initWithFireDate:interval:target:selector:userInfo:repeats:"); - instancetype _objc_msgSend_524( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer date, - double ti, - ffi.Pointer t, - ffi.Pointer s, - ffi.Pointer ui, - bool rep, - ) { - return __objc_msgSend_524( - obj, - sel, - date, - ti, - t, - s, - ui, - rep, - ); - } - - late final __objc_msgSend_524Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_524 = __objc_msgSend_524Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - double, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - bool)>(); - - late final _sel_fire1 = _registerName1("fire"); - late final _sel_fireDate1 = _registerName1("fireDate"); - late final _sel_setFireDate_1 = _registerName1("setFireDate:"); - void _objc_msgSend_525( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_525( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_525Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_525 = __objc_msgSend_525Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_timeInterval1 = _registerName1("timeInterval"); - late final _sel_tolerance1 = _registerName1("tolerance"); - late final _sel_setTolerance_1 = _registerName1("setTolerance:"); - late final _sel_addTimer_forMode_1 = _registerName1("addTimer:forMode:"); - void _objc_msgSend_526( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer timer, - ffi.Pointer mode, - ) { - return __objc_msgSend_526( - obj, - sel, - timer, - mode, - ); - } - - late final __objc_msgSend_526Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_526 = __objc_msgSend_526Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_addPort_forMode_1 = _registerName1("addPort:forMode:"); - void _objc_msgSend_527( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aPort, - ffi.Pointer mode, - ) { - return __objc_msgSend_527( - obj, - sel, - aPort, - mode, - ); - } - - late final __objc_msgSend_527Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_527 = __objc_msgSend_527Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_removePort_forMode_1 = _registerName1("removePort:forMode:"); - late final _sel_limitDateForMode_1 = _registerName1("limitDateForMode:"); - ffi.Pointer _objc_msgSend_528( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer mode, - ) { - return __objc_msgSend_528( - obj, - sel, - mode, - ); - } - - late final __objc_msgSend_528Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_528 = __objc_msgSend_528Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_acceptInputForMode_beforeDate_1 = - _registerName1("acceptInputForMode:beforeDate:"); - void _objc_msgSend_529( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer mode, - ffi.Pointer limitDate, - ) { - return __objc_msgSend_529( - obj, - sel, - mode, - limitDate, - ); - } - - late final __objc_msgSend_529Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_529 = __objc_msgSend_529Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_run1 = _registerName1("run"); - late final _sel_runUntilDate_1 = _registerName1("runUntilDate:"); - late final _sel_runMode_beforeDate_1 = _registerName1("runMode:beforeDate:"); - bool _objc_msgSend_530( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer mode, - ffi.Pointer limitDate, - ) { - return __objc_msgSend_530( - obj, - sel, - mode, - limitDate, - ); - } - - late final __objc_msgSend_530Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_530 = __objc_msgSend_530Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_configureAsServer1 = _registerName1("configureAsServer"); - late final _sel_performInModes_block_1 = - _registerName1("performInModes:block:"); - void _objc_msgSend_531( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer modes, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_531( - obj, - sel, - modes, - block, - ); - } - - late final __objc_msgSend_531Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_531 = __objc_msgSend_531Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_performBlock_1 = _registerName1("performBlock:"); - late final _sel_performSelector_target_argument_order_modes_1 = - _registerName1("performSelector:target:argument:order:modes:"); - void _objc_msgSend_532( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aSelector, - ffi.Pointer target, - ffi.Pointer arg, - int order, - ffi.Pointer modes, - ) { - return __objc_msgSend_532( - obj, - sel, - aSelector, - target, - arg, - order, - modes, - ); - } - - late final __objc_msgSend_532Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_532 = __objc_msgSend_532Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>(); - - late final _sel_cancelPerformSelector_target_argument_1 = - _registerName1("cancelPerformSelector:target:argument:"); - late final _sel_cancelPerformSelectorsWithTarget_1 = - _registerName1("cancelPerformSelectorsWithTarget:"); - late final _sel_scheduleInRunLoop_forMode_1 = - _registerName1("scheduleInRunLoop:forMode:"); - void _objc_msgSend_533( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer runLoop, - ffi.Pointer mode, - ) { - return __objc_msgSend_533( - obj, - sel, - runLoop, - mode, - ); - } - - late final __objc_msgSend_533Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_533 = __objc_msgSend_533Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_removeFromRunLoop_forMode_1 = - _registerName1("removeFromRunLoop:forMode:"); - late final _sel_reservedSpaceLength1 = _registerName1("reservedSpaceLength"); - late final _sel_sendBeforeDate_components_from_reserved_1 = - _registerName1("sendBeforeDate:components:from:reserved:"); - bool _objc_msgSend_534( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer limitDate, - ffi.Pointer components, - ffi.Pointer receivePort, - int headerSpaceReserved, - ) { - return __objc_msgSend_534( - obj, - sel, - limitDate, - components, - receivePort, - headerSpaceReserved, - ); - } - - late final __objc_msgSend_534Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_534 = __objc_msgSend_534Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); - - late final _sel_sendBeforeDate_msgid_components_from_reserved_1 = - _registerName1("sendBeforeDate:msgid:components:from:reserved:"); - bool _objc_msgSend_535( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer limitDate, - int msgID, - ffi.Pointer components, - ffi.Pointer receivePort, - int headerSpaceReserved, - ) { - return __objc_msgSend_535( - obj, - sel, - limitDate, - msgID, - components, - receivePort, - headerSpaceReserved, - ); - } - - late final __objc_msgSend_535Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_535 = __objc_msgSend_535Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - int)>(); - - late final _class_NSConnection1 = _getClass1("NSConnection"); - late final _sel_statistics1 = _registerName1("statistics"); - late final _sel_allConnections1 = _registerName1("allConnections"); - late final _sel_defaultConnection1 = _registerName1("defaultConnection"); - ffi.Pointer _objc_msgSend_536( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_536( - obj, - sel, - ); - } - - late final __objc_msgSend_536Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_536 = __objc_msgSend_536Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_connectionWithRegisteredName_host_1 = - _registerName1("connectionWithRegisteredName:host:"); - late final _class_NSPortNameServer1 = _getClass1("NSPortNameServer"); - late final _sel_systemDefaultPortNameServer1 = - _registerName1("systemDefaultPortNameServer"); - ffi.Pointer _objc_msgSend_537( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_537( - obj, - sel, - ); - } - - late final __objc_msgSend_537Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_537 = __objc_msgSend_537Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_portForName_1 = _registerName1("portForName:"); - ffi.Pointer _objc_msgSend_538( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer name, - ) { - return __objc_msgSend_538( - obj, - sel, - name, - ); - } - - late final __objc_msgSend_538Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_538 = __objc_msgSend_538Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_portForName_host_1 = _registerName1("portForName:host:"); - ffi.Pointer _objc_msgSend_539( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer host, - ) { - return __objc_msgSend_539( - obj, - sel, - name, - host, - ); - } - - late final __objc_msgSend_539Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_539 = __objc_msgSend_539Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_registerPort_name_1 = _registerName1("registerPort:name:"); - bool _objc_msgSend_540( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer port, - ffi.Pointer name, - ) { - return __objc_msgSend_540( - obj, - sel, - port, - name, - ); - } - - late final __objc_msgSend_540Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_540 = __objc_msgSend_540Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_removePortForName_1 = _registerName1("removePortForName:"); - late final _sel_connectionWithRegisteredName_host_usingNameServer_1 = - _registerName1("connectionWithRegisteredName:host:usingNameServer:"); - instancetype _objc_msgSend_541( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer hostName, - ffi.Pointer server, - ) { - return __objc_msgSend_541( - obj, - sel, - name, - hostName, - server, - ); - } - - late final __objc_msgSend_541Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_541 = __objc_msgSend_541Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _class_NSDistantObject1 = _getClass1("NSDistantObject"); - late final _class_NSProxy1 = _getClass1("NSProxy"); - late final _sel_respondsToSelector_1 = _registerName1("respondsToSelector:"); - late final _sel_proxyWithTarget_connection_1 = - _registerName1("proxyWithTarget:connection:"); - ffi.Pointer _objc_msgSend_542( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer target, - ffi.Pointer connection, - ) { - return __objc_msgSend_542( - obj, - sel, - target, - connection, - ); - } - - late final __objc_msgSend_542Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_542 = __objc_msgSend_542Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_initWithTarget_connection_1 = - _registerName1("initWithTarget:connection:"); - late final _sel_proxyWithLocal_connection_1 = - _registerName1("proxyWithLocal:connection:"); - late final _sel_initWithLocal_connection_1 = - _registerName1("initWithLocal:connection:"); - late final _sel_setProtocolForProxy_1 = - _registerName1("setProtocolForProxy:"); - void _objc_msgSend_543( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer proto, - ) { - return __objc_msgSend_543( - obj, - sel, - proto, - ); - } - - late final __objc_msgSend_543Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_543 = __objc_msgSend_543Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_connectionForProxy1 = _registerName1("connectionForProxy"); - late final _sel_rootProxyForConnectionWithRegisteredName_host_1 = - _registerName1("rootProxyForConnectionWithRegisteredName:host:"); - ffi.Pointer _objc_msgSend_544( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer hostName, - ) { - return __objc_msgSend_544( - obj, - sel, - name, - hostName, - ); - } - - late final __objc_msgSend_544Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_544 = __objc_msgSend_544Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_rootProxyForConnectionWithRegisteredName_host_usingNameServer_1 = - _registerName1( - "rootProxyForConnectionWithRegisteredName:host:usingNameServer:"); - ffi.Pointer _objc_msgSend_545( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer hostName, - ffi.Pointer server, - ) { - return __objc_msgSend_545( - obj, - sel, - name, - hostName, - server, - ); - } - - late final __objc_msgSend_545Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_545 = __objc_msgSend_545Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_serviceConnectionWithName_rootObject_usingNameServer_1 = - _registerName1("serviceConnectionWithName:rootObject:usingNameServer:"); - instancetype _objc_msgSend_546( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer root, - ffi.Pointer server, - ) { - return __objc_msgSend_546( - obj, - sel, - name, - root, - server, - ); - } - - late final __objc_msgSend_546Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_546 = __objc_msgSend_546Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_serviceConnectionWithName_rootObject_1 = - _registerName1("serviceConnectionWithName:rootObject:"); - late final _sel_requestTimeout1 = _registerName1("requestTimeout"); - late final _sel_setRequestTimeout_1 = _registerName1("setRequestTimeout:"); - late final _sel_replyTimeout1 = _registerName1("replyTimeout"); - late final _sel_setReplyTimeout_1 = _registerName1("setReplyTimeout:"); - late final _sel_rootObject1 = _registerName1("rootObject"); - late final _sel_setRootObject_1 = _registerName1("setRootObject:"); - late final _sel_independentConversationQueueing1 = - _registerName1("independentConversationQueueing"); - late final _sel_setIndependentConversationQueueing_1 = - _registerName1("setIndependentConversationQueueing:"); - late final _sel_rootProxy1 = _registerName1("rootProxy"); - ffi.Pointer _objc_msgSend_547( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_547( - obj, - sel, - ); - } - - late final __objc_msgSend_547Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_547 = __objc_msgSend_547Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_addRequestMode_1 = _registerName1("addRequestMode:"); - late final _sel_removeRequestMode_1 = _registerName1("removeRequestMode:"); - late final _sel_requestModes1 = _registerName1("requestModes"); - late final _sel_registerName_1 = _registerName1("registerName:"); - late final _sel_registerName_withNameServer_1 = - _registerName1("registerName:withNameServer:"); - bool _objc_msgSend_548( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer server, - ) { - return __objc_msgSend_548( - obj, - sel, - name, - server, - ); - } - - late final __objc_msgSend_548Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_548 = __objc_msgSend_548Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_connectionWithReceivePort_sendPort_1 = - _registerName1("connectionWithReceivePort:sendPort:"); - instancetype _objc_msgSend_549( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer receivePort, - ffi.Pointer sendPort, - ) { - return __objc_msgSend_549( - obj, - sel, - receivePort, - sendPort, - ); - } - - late final __objc_msgSend_549Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_549 = __objc_msgSend_549Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_currentConversation1 = _registerName1("currentConversation"); - late final _sel_initWithReceivePort_sendPort_1 = - _registerName1("initWithReceivePort:sendPort:"); - late final _sel_sendPort1 = _registerName1("sendPort"); - late final _sel_receivePort1 = _registerName1("receivePort"); - late final _sel_enableMultipleThreads1 = - _registerName1("enableMultipleThreads"); - late final _sel_multipleThreadsEnabled1 = - _registerName1("multipleThreadsEnabled"); - late final _sel_addRunLoop_1 = _registerName1("addRunLoop:"); - void _objc_msgSend_550( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer runloop, - ) { - return __objc_msgSend_550( - obj, - sel, - runloop, - ); - } - - late final __objc_msgSend_550Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_550 = __objc_msgSend_550Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_removeRunLoop_1 = _registerName1("removeRunLoop:"); - late final _sel_runInNewThread1 = _registerName1("runInNewThread"); - late final _sel_remoteObjects1 = _registerName1("remoteObjects"); - late final _sel_localObjects1 = _registerName1("localObjects"); - late final _sel_dispatchWithComponents_1 = - _registerName1("dispatchWithComponents:"); - late final _sel_addConnection_toRunLoop_forMode_1 = - _registerName1("addConnection:toRunLoop:forMode:"); - void _objc_msgSend_551( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer conn, - ffi.Pointer runLoop, - ffi.Pointer mode, - ) { - return __objc_msgSend_551( - obj, - sel, - conn, - runLoop, - mode, - ); - } - - late final __objc_msgSend_551Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_551 = __objc_msgSend_551Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_removeConnection_fromRunLoop_forMode_1 = - _registerName1("removeConnection:fromRunLoop:forMode:"); - late final _sel_encodePortObject_1 = _registerName1("encodePortObject:"); - void _objc_msgSend_552( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aport, - ) { - return __objc_msgSend_552( - obj, - sel, - aport, - ); - } - - late final __objc_msgSend_552Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_552 = __objc_msgSend_552Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_decodePortObject1 = _registerName1("decodePortObject"); - late final _sel_connection1 = _registerName1("connection"); - late final _sel_portCoderWithReceivePort_sendPort_components_1 = - _registerName1("portCoderWithReceivePort:sendPort:components:"); - ffi.Pointer _objc_msgSend_553( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer rcvPort, - ffi.Pointer sndPort, - ffi.Pointer comps, - ) { - return __objc_msgSend_553( - obj, - sel, - rcvPort, - sndPort, - comps, - ); - } - - late final __objc_msgSend_553Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_553 = __objc_msgSend_553Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_initWithReceivePort_sendPort_components_1 = - _registerName1("initWithReceivePort:sendPort:components:"); - late final _sel_dispatch1 = _registerName1("dispatch"); - late final _sel_replacementObjectForPortCoder_1 = - _registerName1("replacementObjectForPortCoder:"); - ffi.Pointer _objc_msgSend_554( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer coder, - ) { - return __objc_msgSend_554( - obj, - sel, - coder, - ); - } - - late final __objc_msgSend_554Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_554 = __objc_msgSend_554Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _class_NSClassDescription1 = _getClass1("NSClassDescription"); - late final _sel_registerClassDescription_forClass_1 = - _registerName1("registerClassDescription:forClass:"); - void _objc_msgSend_555( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer description, - ffi.Pointer aClass, - ) { - return __objc_msgSend_555( - obj, - sel, - description, - aClass, - ); - } - - late final __objc_msgSend_555Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_555 = __objc_msgSend_555Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_invalidateClassDescriptionCache1 = - _registerName1("invalidateClassDescriptionCache"); - late final _sel_classDescriptionForClass_1 = - _registerName1("classDescriptionForClass:"); - ffi.Pointer _objc_msgSend_556( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aClass, - ) { - return __objc_msgSend_556( - obj, - sel, - aClass, - ); - } - - late final __objc_msgSend_556Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_556 = __objc_msgSend_556Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_attributeKeys1 = _registerName1("attributeKeys"); - late final _sel_toOneRelationshipKeys1 = - _registerName1("toOneRelationshipKeys"); - late final _sel_toManyRelationshipKeys1 = - _registerName1("toManyRelationshipKeys"); - late final _sel_inverseForRelationshipKey_1 = - _registerName1("inverseForRelationshipKey:"); - late final _sel_classDescription1 = _registerName1("classDescription"); - ffi.Pointer _objc_msgSend_557( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_557( - obj, - sel, - ); - } - - late final __objc_msgSend_557Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_557 = __objc_msgSend_557Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _class_NSScriptObjectSpecifier1 = - _getClass1("NSScriptObjectSpecifier"); - late final _class_NSAppleEventDescriptor1 = - _getClass1("NSAppleEventDescriptor"); - late final _sel_nullDescriptor1 = _registerName1("nullDescriptor"); - ffi.Pointer _objc_msgSend_558( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_558( - obj, - sel, - ); - } - - late final __objc_msgSend_558Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_558 = __objc_msgSend_558Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_descriptorWithDescriptorType_bytes_length_1 = - _registerName1("descriptorWithDescriptorType:bytes:length:"); - ffi.Pointer _objc_msgSend_559( - ffi.Pointer obj, - ffi.Pointer sel, - int descriptorType, - ffi.Pointer bytes, - int byteCount, - ) { - return __objc_msgSend_559( - obj, - sel, - descriptorType, - bytes, - byteCount, - ); - } - - late final __objc_msgSend_559Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_559 = __objc_msgSend_559Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer, int)>(); - - late final _sel_descriptorWithDescriptorType_data_1 = - _registerName1("descriptorWithDescriptorType:data:"); - ffi.Pointer _objc_msgSend_560( - ffi.Pointer obj, - ffi.Pointer sel, - int descriptorType, - ffi.Pointer data, - ) { - return __objc_msgSend_560( - obj, - sel, - descriptorType, - data, - ); - } - - late final __objc_msgSend_560Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_560 = __objc_msgSend_560Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer)>(); - - late final _sel_descriptorWithBoolean_1 = - _registerName1("descriptorWithBoolean:"); - ffi.Pointer _objc_msgSend_561( - ffi.Pointer obj, - ffi.Pointer sel, - int boolean, - ) { - return __objc_msgSend_561( - obj, - sel, - boolean, - ); - } - - late final __objc_msgSend_561Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedChar)>>('objc_msgSend'); - late final __objc_msgSend_561 = __objc_msgSend_561Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_descriptorWithEnumCode_1 = - _registerName1("descriptorWithEnumCode:"); - ffi.Pointer _objc_msgSend_562( - ffi.Pointer obj, - ffi.Pointer sel, - int enumerator, - ) { - return __objc_msgSend_562( - obj, - sel, - enumerator, - ); - } - - late final __objc_msgSend_562Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); - late final __objc_msgSend_562 = __objc_msgSend_562Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_descriptorWithInt32_1 = - _registerName1("descriptorWithInt32:"); - ffi.Pointer _objc_msgSend_563( - ffi.Pointer obj, - ffi.Pointer sel, - int signedInt, - ) { - return __objc_msgSend_563( - obj, - sel, - signedInt, - ); - } - - late final __objc_msgSend_563Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_563 = __objc_msgSend_563Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_descriptorWithDouble_1 = - _registerName1("descriptorWithDouble:"); - ffi.Pointer _objc_msgSend_564( - ffi.Pointer obj, - ffi.Pointer sel, - double doubleValue, - ) { - return __objc_msgSend_564( - obj, - sel, - doubleValue, - ); - } - - late final __objc_msgSend_564Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_564 = __objc_msgSend_564Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, double)>(); - - late final _sel_descriptorWithTypeCode_1 = - _registerName1("descriptorWithTypeCode:"); - late final _sel_descriptorWithString_1 = - _registerName1("descriptorWithString:"); - ffi.Pointer _objc_msgSend_565( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer string, - ) { - return __objc_msgSend_565( - obj, - sel, - string, - ); - } - - late final __objc_msgSend_565Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_565 = __objc_msgSend_565Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_descriptorWithDate_1 = _registerName1("descriptorWithDate:"); - ffi.Pointer _objc_msgSend_566( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer date, - ) { - return __objc_msgSend_566( - obj, - sel, - date, - ); - } - - late final __objc_msgSend_566Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_566 = __objc_msgSend_566Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_descriptorWithFileURL_1 = - _registerName1("descriptorWithFileURL:"); - ffi.Pointer _objc_msgSend_567( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer fileURL, - ) { - return __objc_msgSend_567( - obj, - sel, - fileURL, - ); - } - - late final __objc_msgSend_567Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_567 = __objc_msgSend_567Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_appleEventWithEventClass_eventID_targetDescriptor_returnID_transactionID_1 = - _registerName1( - "appleEventWithEventClass:eventID:targetDescriptor:returnID:transactionID:"); - ffi.Pointer _objc_msgSend_568( - ffi.Pointer obj, - ffi.Pointer sel, - int eventClass, - int eventID, - ffi.Pointer targetDescriptor, - int returnID, - int transactionID, - ) { - return __objc_msgSend_568( - obj, - sel, - eventClass, - eventID, - targetDescriptor, - returnID, - transactionID, - ); - } - - late final __objc_msgSend_568Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ffi.Pointer, - ffi.Short, - ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_568 = __objc_msgSend_568Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, int, ffi.Pointer, int, int)>(); - - late final _sel_listDescriptor1 = _registerName1("listDescriptor"); - late final _sel_recordDescriptor1 = _registerName1("recordDescriptor"); - late final _sel_currentProcessDescriptor1 = - _registerName1("currentProcessDescriptor"); - late final _sel_descriptorWithProcessIdentifier_1 = - _registerName1("descriptorWithProcessIdentifier:"); - late final _sel_descriptorWithBundleIdentifier_1 = - _registerName1("descriptorWithBundleIdentifier:"); - late final _sel_descriptorWithApplicationURL_1 = - _registerName1("descriptorWithApplicationURL:"); - late final _sel_initWithAEDescNoCopy_1 = - _registerName1("initWithAEDescNoCopy:"); - instancetype _objc_msgSend_569( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aeDesc, - ) { - return __objc_msgSend_569( - obj, - sel, - aeDesc, - ); - } - - late final __objc_msgSend_569Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_569 = __objc_msgSend_569Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_initWithDescriptorType_bytes_length_1 = - _registerName1("initWithDescriptorType:bytes:length:"); - instancetype _objc_msgSend_570( - ffi.Pointer obj, - ffi.Pointer sel, - int descriptorType, - ffi.Pointer bytes, - int byteCount, - ) { - return __objc_msgSend_570( - obj, - sel, - descriptorType, - bytes, - byteCount, - ); - } - - late final __objc_msgSend_570Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_570 = __objc_msgSend_570Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer, int)>(); - - late final _sel_initWithDescriptorType_data_1 = - _registerName1("initWithDescriptorType:data:"); - instancetype _objc_msgSend_571( - ffi.Pointer obj, - ffi.Pointer sel, - int descriptorType, - ffi.Pointer data, - ) { - return __objc_msgSend_571( - obj, - sel, - descriptorType, - data, - ); - } - - late final __objc_msgSend_571Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedInt, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_571 = __objc_msgSend_571Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer)>(); - - late final _sel_initWithEventClass_eventID_targetDescriptor_returnID_transactionID_1 = - _registerName1( - "initWithEventClass:eventID:targetDescriptor:returnID:transactionID:"); - instancetype _objc_msgSend_572( - ffi.Pointer obj, - ffi.Pointer sel, - int eventClass, - int eventID, - ffi.Pointer targetDescriptor, - int returnID, - int transactionID, - ) { - return __objc_msgSend_572( - obj, - sel, - eventClass, - eventID, - targetDescriptor, - returnID, - transactionID, - ); - } - - late final __objc_msgSend_572Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedInt, - ffi.UnsignedInt, - ffi.Pointer, - ffi.Short, - ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_572 = __objc_msgSend_572Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, int, - int, ffi.Pointer, int, int)>(); - - late final _sel_initListDescriptor1 = _registerName1("initListDescriptor"); - late final _sel_initRecordDescriptor1 = - _registerName1("initRecordDescriptor"); - late final _sel_aeDesc1 = _registerName1("aeDesc"); - ffi.Pointer _objc_msgSend_573( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_573( - obj, - sel, - ); - } - - late final __objc_msgSend_573Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_573 = __objc_msgSend_573Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_descriptorType1 = _registerName1("descriptorType"); - late final _sel_booleanValue1 = _registerName1("booleanValue"); - late final _sel_enumCodeValue1 = _registerName1("enumCodeValue"); - late final _sel_int32Value1 = _registerName1("int32Value"); - late final _sel_typeCodeValue1 = _registerName1("typeCodeValue"); - late final _sel_dateValue1 = _registerName1("dateValue"); - late final _sel_fileURLValue1 = _registerName1("fileURLValue"); - late final _sel_eventClass1 = _registerName1("eventClass"); - late final _sel_eventID1 = _registerName1("eventID"); - late final _sel_returnID1 = _registerName1("returnID"); - late final _sel_transactionID1 = _registerName1("transactionID"); - late final _sel_setParamDescriptor_forKeyword_1 = - _registerName1("setParamDescriptor:forKeyword:"); - void _objc_msgSend_574( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer descriptor, - int keyword, - ) { - return __objc_msgSend_574( - obj, - sel, - descriptor, - keyword, - ); - } - - late final __objc_msgSend_574Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); - late final __objc_msgSend_574 = __objc_msgSend_574Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_paramDescriptorForKeyword_1 = - _registerName1("paramDescriptorForKeyword:"); - late final _sel_removeParamDescriptorWithKeyword_1 = - _registerName1("removeParamDescriptorWithKeyword:"); - void _objc_msgSend_575( - ffi.Pointer obj, - ffi.Pointer sel, - int keyword, - ) { - return __objc_msgSend_575( - obj, - sel, - keyword, - ); - } - - late final __objc_msgSend_575Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedInt)>>('objc_msgSend'); - late final __objc_msgSend_575 = __objc_msgSend_575Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_setAttributeDescriptor_forKeyword_1 = - _registerName1("setAttributeDescriptor:forKeyword:"); - late final _sel_attributeDescriptorForKeyword_1 = - _registerName1("attributeDescriptorForKeyword:"); - late final _sel_sendEventWithOptions_timeout_error_1 = - _registerName1("sendEventWithOptions:timeout:error:"); - ffi.Pointer _objc_msgSend_576( - ffi.Pointer obj, - ffi.Pointer sel, - int sendOptions, - double timeoutInSeconds, - ffi.Pointer> error, - ) { - return __objc_msgSend_576( - obj, - sel, - sendOptions, - timeoutInSeconds, - error, - ); - } - - late final __objc_msgSend_576Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Double, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_576 = __objc_msgSend_576Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - double, - ffi.Pointer>)>(); - - late final _sel_isRecordDescriptor1 = _registerName1("isRecordDescriptor"); - late final _sel_numberOfItems1 = _registerName1("numberOfItems"); - late final _sel_insertDescriptor_atIndex_1 = - _registerName1("insertDescriptor:atIndex:"); - void _objc_msgSend_577( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer descriptor, - int index, - ) { - return __objc_msgSend_577( - obj, - sel, - descriptor, - index, - ); - } - - late final __objc_msgSend_577Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_577 = __objc_msgSend_577Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_descriptorAtIndex_1 = _registerName1("descriptorAtIndex:"); - ffi.Pointer _objc_msgSend_578( - ffi.Pointer obj, - ffi.Pointer sel, - int index, - ) { - return __objc_msgSend_578( - obj, - sel, - index, - ); - } - - late final __objc_msgSend_578Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_578 = __objc_msgSend_578Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_removeDescriptorAtIndex_1 = - _registerName1("removeDescriptorAtIndex:"); - late final _sel_setDescriptor_forKeyword_1 = - _registerName1("setDescriptor:forKeyword:"); - late final _sel_descriptorForKeyword_1 = - _registerName1("descriptorForKeyword:"); - late final _sel_removeDescriptorWithKeyword_1 = - _registerName1("removeDescriptorWithKeyword:"); - late final _sel_keywordForDescriptorAtIndex_1 = - _registerName1("keywordForDescriptorAtIndex:"); - int _objc_msgSend_579( - ffi.Pointer obj, - ffi.Pointer sel, - int index, - ) { - return __objc_msgSend_579( - obj, - sel, - index, - ); - } - - late final __objc_msgSend_579Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(ffi.Pointer, - ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_579 = __objc_msgSend_579Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_coerceToDescriptorType_1 = - _registerName1("coerceToDescriptorType:"); - late final _sel_objectSpecifierWithDescriptor_1 = - _registerName1("objectSpecifierWithDescriptor:"); - ffi.Pointer _objc_msgSend_580( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer descriptor, - ) { - return __objc_msgSend_580( - obj, - sel, - descriptor, - ); - } - - late final __objc_msgSend_580Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_580 = __objc_msgSend_580Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_initWithContainerSpecifier_key_1 = - _registerName1("initWithContainerSpecifier:key:"); - instancetype _objc_msgSend_581( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer container, - ffi.Pointer property, - ) { - return __objc_msgSend_581( - obj, - sel, - container, - property, - ); - } - - late final __objc_msgSend_581Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_581 = __objc_msgSend_581Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _class_NSScriptClassDescription1 = - _getClass1("NSScriptClassDescription"); - ffi.Pointer _objc_msgSend_582( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aClass, - ) { - return __objc_msgSend_582( - obj, - sel, - aClass, - ); - } - - late final __objc_msgSend_582Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_582 = __objc_msgSend_582Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_initWithSuiteName_className_dictionary_1 = - _registerName1("initWithSuiteName:className:dictionary:"); - instancetype _objc_msgSend_583( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer suiteName, - ffi.Pointer className, - ffi.Pointer classDeclaration, - ) { - return __objc_msgSend_583( - obj, - sel, - suiteName, - className, - classDeclaration, - ); - } - - late final __objc_msgSend_583Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_583 = __objc_msgSend_583Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_suiteName1 = _registerName1("suiteName"); - late final _sel_className1 = _registerName1("className"); - late final _sel_implementationClassName1 = - _registerName1("implementationClassName"); - late final _sel_superclassDescription1 = - _registerName1("superclassDescription"); - ffi.Pointer _objc_msgSend_584( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_584( - obj, - sel, - ); - } - - late final __objc_msgSend_584Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_584 = __objc_msgSend_584Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_appleEventCode1 = _registerName1("appleEventCode"); - late final _sel_matchesAppleEventCode_1 = - _registerName1("matchesAppleEventCode:"); - late final _class_NSScriptCommandDescription1 = - _getClass1("NSScriptCommandDescription"); - late final _sel_initWithSuiteName_commandName_dictionary_1 = - _registerName1("initWithSuiteName:commandName:dictionary:"); - late final _sel_commandName1 = _registerName1("commandName"); - late final _sel_appleEventClassCode1 = _registerName1("appleEventClassCode"); - late final _sel_commandClassName1 = _registerName1("commandClassName"); - late final _sel_returnType1 = _registerName1("returnType"); - late final _sel_appleEventCodeForReturnType1 = - _registerName1("appleEventCodeForReturnType"); - late final _sel_argumentNames1 = _registerName1("argumentNames"); - late final _sel_typeForArgumentWithName_1 = - _registerName1("typeForArgumentWithName:"); - late final _sel_appleEventCodeForArgumentWithName_1 = - _registerName1("appleEventCodeForArgumentWithName:"); - int _objc_msgSend_585( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer argumentName, - ) { - return __objc_msgSend_585( - obj, - sel, - argumentName, - ); - } - - late final __objc_msgSend_585Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedInt Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_585 = __objc_msgSend_585Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_isOptionalArgumentWithName_1 = - _registerName1("isOptionalArgumentWithName:"); - late final _class_NSScriptCommand1 = _getClass1("NSScriptCommand"); - late final _sel_initWithCommandDescription_1 = - _registerName1("initWithCommandDescription:"); - instancetype _objc_msgSend_586( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer commandDef, - ) { - return __objc_msgSend_586( - obj, - sel, - commandDef, - ); - } - - late final __objc_msgSend_586Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_586 = __objc_msgSend_586Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_commandDescription1 = _registerName1("commandDescription"); - ffi.Pointer _objc_msgSend_587( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_587( - obj, - sel, - ); - } - - late final __objc_msgSend_587Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_587 = __objc_msgSend_587Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_directParameter1 = _registerName1("directParameter"); - late final _sel_setDirectParameter_1 = _registerName1("setDirectParameter:"); - late final _sel_receiversSpecifier1 = _registerName1("receiversSpecifier"); - ffi.Pointer _objc_msgSend_588( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_588( - obj, - sel, - ); - } - - late final __objc_msgSend_588Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_588 = __objc_msgSend_588Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setReceiversSpecifier_1 = - _registerName1("setReceiversSpecifier:"); - void _objc_msgSend_589( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_589( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_589Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_589 = __objc_msgSend_589Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_evaluatedReceivers1 = _registerName1("evaluatedReceivers"); - late final _sel_arguments1 = _registerName1("arguments"); - late final _sel_setArguments_1 = _registerName1("setArguments:"); - late final _sel_evaluatedArguments1 = _registerName1("evaluatedArguments"); - late final _sel_isWellFormed1 = _registerName1("isWellFormed"); - late final _sel_performDefaultImplementation1 = - _registerName1("performDefaultImplementation"); - late final _sel_executeCommand1 = _registerName1("executeCommand"); - late final _sel_scriptErrorNumber1 = _registerName1("scriptErrorNumber"); - late final _sel_setScriptErrorNumber_1 = - _registerName1("setScriptErrorNumber:"); - void _objc_msgSend_590( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_590( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_590Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_590 = __objc_msgSend_590Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_scriptErrorOffendingObjectDescriptor1 = - _registerName1("scriptErrorOffendingObjectDescriptor"); - late final _sel_setScriptErrorOffendingObjectDescriptor_1 = - _registerName1("setScriptErrorOffendingObjectDescriptor:"); - void _objc_msgSend_591( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_591( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_591Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_591 = __objc_msgSend_591Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_scriptErrorExpectedTypeDescriptor1 = - _registerName1("scriptErrorExpectedTypeDescriptor"); - late final _sel_setScriptErrorExpectedTypeDescriptor_1 = - _registerName1("setScriptErrorExpectedTypeDescriptor:"); - late final _sel_scriptErrorString1 = _registerName1("scriptErrorString"); - late final _sel_setScriptErrorString_1 = - _registerName1("setScriptErrorString:"); - late final _sel_currentCommand1 = _registerName1("currentCommand"); - ffi.Pointer _objc_msgSend_592( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_592( - obj, - sel, - ); - } - - late final __objc_msgSend_592Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_592 = __objc_msgSend_592Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_appleEvent1 = _registerName1("appleEvent"); - late final _sel_suspendExecution1 = _registerName1("suspendExecution"); - late final _sel_resumeExecutionWithResult_1 = - _registerName1("resumeExecutionWithResult:"); - late final _sel_createCommandInstance1 = - _registerName1("createCommandInstance"); - late final _sel_createCommandInstanceWithZone_1 = - _registerName1("createCommandInstanceWithZone:"); - ffi.Pointer _objc_msgSend_593( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_NSZone> zone, - ) { - return __objc_msgSend_593( - obj, - sel, - zone, - ); - } - - late final __objc_msgSend_593Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_NSZone>)>>('objc_msgSend'); - late final __objc_msgSend_593 = __objc_msgSend_593Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<_NSZone>)>(); - - late final _sel_supportsCommand_1 = _registerName1("supportsCommand:"); - bool _objc_msgSend_594( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer commandDescription, - ) { - return __objc_msgSend_594( - obj, - sel, - commandDescription, - ); - } - - late final __objc_msgSend_594Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_594 = __objc_msgSend_594Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_selectorForCommand_1 = _registerName1("selectorForCommand:"); - ffi.Pointer _objc_msgSend_595( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer commandDescription, - ) { - return __objc_msgSend_595( - obj, - sel, - commandDescription, - ); - } - - late final __objc_msgSend_595Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_595 = __objc_msgSend_595Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_typeForKey_1 = _registerName1("typeForKey:"); - late final _sel_classDescriptionForKey_1 = - _registerName1("classDescriptionForKey:"); - ffi.Pointer _objc_msgSend_596( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer key, - ) { - return __objc_msgSend_596( - obj, - sel, - key, - ); - } - - late final __objc_msgSend_596Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_596 = __objc_msgSend_596Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_appleEventCodeForKey_1 = - _registerName1("appleEventCodeForKey:"); - late final _sel_keyWithAppleEventCode_1 = - _registerName1("keyWithAppleEventCode:"); - ffi.Pointer _objc_msgSend_597( - ffi.Pointer obj, - ffi.Pointer sel, - int appleEventCode, - ) { - return __objc_msgSend_597( - obj, - sel, - appleEventCode, - ); - } - - late final __objc_msgSend_597Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); - late final __objc_msgSend_597 = __objc_msgSend_597Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_defaultSubcontainerAttributeKey1 = - _registerName1("defaultSubcontainerAttributeKey"); - late final _sel_isLocationRequiredToCreateForKey_1 = - _registerName1("isLocationRequiredToCreateForKey:"); - late final _sel_hasPropertyForKey_1 = _registerName1("hasPropertyForKey:"); - late final _sel_hasOrderedToManyRelationshipForKey_1 = - _registerName1("hasOrderedToManyRelationshipForKey:"); - late final _sel_hasReadablePropertyForKey_1 = - _registerName1("hasReadablePropertyForKey:"); - late final _sel_hasWritablePropertyForKey_1 = - _registerName1("hasWritablePropertyForKey:"); - late final _sel_isReadOnlyKey_1 = _registerName1("isReadOnlyKey:"); - late final _sel_initWithContainerClassDescription_containerSpecifier_key_1 = - _registerName1( - "initWithContainerClassDescription:containerSpecifier:key:"); - instancetype _objc_msgSend_598( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer classDesc, - ffi.Pointer container, - ffi.Pointer property, - ) { - return __objc_msgSend_598( - obj, - sel, - classDesc, - container, - property, - ); - } - - late final __objc_msgSend_598Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_598 = __objc_msgSend_598Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_childSpecifier1 = _registerName1("childSpecifier"); - late final _sel_setChildSpecifier_1 = _registerName1("setChildSpecifier:"); - late final _sel_containerSpecifier1 = _registerName1("containerSpecifier"); - late final _sel_setContainerSpecifier_1 = - _registerName1("setContainerSpecifier:"); - late final _sel_containerIsObjectBeingTested1 = - _registerName1("containerIsObjectBeingTested"); - late final _sel_setContainerIsObjectBeingTested_1 = - _registerName1("setContainerIsObjectBeingTested:"); - late final _sel_containerIsRangeContainerObject1 = - _registerName1("containerIsRangeContainerObject"); - late final _sel_setContainerIsRangeContainerObject_1 = - _registerName1("setContainerIsRangeContainerObject:"); - late final _sel_key1 = _registerName1("key"); - late final _sel_setKey_1 = _registerName1("setKey:"); - late final _sel_containerClassDescription1 = - _registerName1("containerClassDescription"); - late final _sel_setContainerClassDescription_1 = - _registerName1("setContainerClassDescription:"); - void _objc_msgSend_599( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_599( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_599Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_599 = __objc_msgSend_599Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_keyClassDescription1 = _registerName1("keyClassDescription"); - late final _sel_indicesOfObjectsByEvaluatingWithContainer_count_1 = - _registerName1("indicesOfObjectsByEvaluatingWithContainer:count:"); - ffi.Pointer _objc_msgSend_600( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer container, - ffi.Pointer count, - ) { - return __objc_msgSend_600( - obj, - sel, - container, - count, - ); - } - - late final __objc_msgSend_600Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_600 = __objc_msgSend_600Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_objectsByEvaluatingWithContainers_1 = - _registerName1("objectsByEvaluatingWithContainers:"); - late final _sel_objectsByEvaluatingSpecifier1 = - _registerName1("objectsByEvaluatingSpecifier"); - late final _sel_evaluationErrorNumber1 = - _registerName1("evaluationErrorNumber"); - late final _sel_setEvaluationErrorNumber_1 = - _registerName1("setEvaluationErrorNumber:"); - late final _sel_evaluationErrorSpecifier1 = - _registerName1("evaluationErrorSpecifier"); - late final _sel_descriptor1 = _registerName1("descriptor"); - late final _sel_scriptingValueForSpecifier_1 = - _registerName1("scriptingValueForSpecifier:"); - ffi.Pointer _objc_msgSend_601( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer objectSpecifier, - ) { - return __objc_msgSend_601( - obj, - sel, - objectSpecifier, - ); - } - - late final __objc_msgSend_601Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_601 = __objc_msgSend_601Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_scriptingProperties1 = _registerName1("scriptingProperties"); - late final _sel_setScriptingProperties_1 = - _registerName1("setScriptingProperties:"); - late final _sel_copyScriptingValue_forKey_withProperties_1 = - _registerName1("copyScriptingValue:forKey:withProperties:"); - ffi.Pointer _objc_msgSend_602( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ffi.Pointer key, - ffi.Pointer properties, - ) { - return __objc_msgSend_602( - obj, - sel, - value, - key, - properties, - ); - } - - late final __objc_msgSend_602Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_602 = __objc_msgSend_602Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_1 = - _registerName1( - "newScriptingObjectOfClass:forValueForKey:withContentsValue:properties:"); - ffi.Pointer _objc_msgSend_603( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer objectClass, - ffi.Pointer key, - ffi.Pointer contentsValue, - ffi.Pointer properties, - ) { - return __objc_msgSend_603( - obj, - sel, - objectClass, - key, - contentsValue, - properties, - ); - } - - late final __objc_msgSend_603Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_603 = __objc_msgSend_603Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_classCode1 = _registerName1("classCode"); - late final _sel_valueAtIndex_inPropertyWithKey_1 = - _registerName1("valueAtIndex:inPropertyWithKey:"); - ffi.Pointer _objc_msgSend_604( - ffi.Pointer obj, - ffi.Pointer sel, - int index, - ffi.Pointer key, - ) { - return __objc_msgSend_604( - obj, - sel, - index, - key, - ); - } - - late final __objc_msgSend_604Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_604 = __objc_msgSend_604Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer)>(); - - late final _sel_valueWithName_inPropertyWithKey_1 = - _registerName1("valueWithName:inPropertyWithKey:"); - late final _sel_valueWithUniqueID_inPropertyWithKey_1 = - _registerName1("valueWithUniqueID:inPropertyWithKey:"); - late final _sel_insertValue_atIndex_inPropertyWithKey_1 = - _registerName1("insertValue:atIndex:inPropertyWithKey:"); - void _objc_msgSend_605( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - int index, - ffi.Pointer key, - ) { - return __objc_msgSend_605( - obj, - sel, - value, - index, - key, - ); - } - - late final __objc_msgSend_605Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_605 = __objc_msgSend_605Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer)>(); - - late final _sel_removeValueAtIndex_fromPropertyWithKey_1 = - _registerName1("removeValueAtIndex:fromPropertyWithKey:"); - void _objc_msgSend_606( - ffi.Pointer obj, - ffi.Pointer sel, - int index, - ffi.Pointer key, - ) { - return __objc_msgSend_606( - obj, - sel, - index, - key, - ); - } - - late final __objc_msgSend_606Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_606 = __objc_msgSend_606Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer)>(); - - late final _sel_replaceValueAtIndex_inPropertyWithKey_withValue_1 = - _registerName1("replaceValueAtIndex:inPropertyWithKey:withValue:"); - void _objc_msgSend_607( - ffi.Pointer obj, - ffi.Pointer sel, - int index, - ffi.Pointer key, - ffi.Pointer value, - ) { - return __objc_msgSend_607( - obj, - sel, - index, - key, - value, - ); - } - - late final __objc_msgSend_607Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_607 = __objc_msgSend_607Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_insertValue_inPropertyWithKey_1 = - _registerName1("insertValue:inPropertyWithKey:"); - late final _sel_coerceValue_forKey_1 = _registerName1("coerceValue:forKey:"); - late final _sel_objectSpecifier1 = _registerName1("objectSpecifier"); - late final _sel_indicesOfObjectsByEvaluatingObjectSpecifier_1 = - _registerName1("indicesOfObjectsByEvaluatingObjectSpecifier:"); - ffi.Pointer _objc_msgSend_608( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer specifier, - ) { - return __objc_msgSend_608( - obj, - sel, - specifier, - ); - } - - late final __objc_msgSend_608Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_608 = __objc_msgSend_608Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_isEqualTo_1 = _registerName1("isEqualTo:"); - late final _sel_isLessThanOrEqualTo_1 = - _registerName1("isLessThanOrEqualTo:"); - late final _sel_isLessThan_1 = _registerName1("isLessThan:"); - late final _sel_isGreaterThanOrEqualTo_1 = - _registerName1("isGreaterThanOrEqualTo:"); - late final _sel_isGreaterThan_1 = _registerName1("isGreaterThan:"); - late final _sel_isNotEqualTo_1 = _registerName1("isNotEqualTo:"); - late final _sel_doesContain_1 = _registerName1("doesContain:"); - late final _sel_isLike_1 = _registerName1("isLike:"); - late final _sel_isCaseInsensitiveLike_1 = - _registerName1("isCaseInsensitiveLike:"); - late final _sel_scriptingIsEqualTo_1 = _registerName1("scriptingIsEqualTo:"); - late final _sel_scriptingIsLessThanOrEqualTo_1 = - _registerName1("scriptingIsLessThanOrEqualTo:"); - late final _sel_scriptingIsLessThan_1 = - _registerName1("scriptingIsLessThan:"); - late final _sel_scriptingIsGreaterThanOrEqualTo_1 = - _registerName1("scriptingIsGreaterThanOrEqualTo:"); - late final _sel_scriptingIsGreaterThan_1 = - _registerName1("scriptingIsGreaterThan:"); - late final _sel_scriptingBeginsWith_1 = - _registerName1("scriptingBeginsWith:"); - late final _sel_scriptingEndsWith_1 = _registerName1("scriptingEndsWith:"); - late final _sel_scriptingContains_1 = _registerName1("scriptingContains:"); - late final _class_NSItemProvider1 = _getClass1("NSItemProvider"); - late final _class_NSProgress1 = _getClass1("NSProgress"); - late final _sel_currentProgress1 = _registerName1("currentProgress"); - ffi.Pointer _objc_msgSend_609( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_609( - obj, - sel, - ); - } - - late final __objc_msgSend_609Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_609 = __objc_msgSend_609Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_progressWithTotalUnitCount_1 = - _registerName1("progressWithTotalUnitCount:"); - ffi.Pointer _objc_msgSend_610( - ffi.Pointer obj, - ffi.Pointer sel, - int unitCount, - ) { - return __objc_msgSend_610( - obj, - sel, - unitCount, - ); - } - - late final __objc_msgSend_610Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_610 = __objc_msgSend_610Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_discreteProgressWithTotalUnitCount_1 = - _registerName1("discreteProgressWithTotalUnitCount:"); - late final _sel_progressWithTotalUnitCount_parent_pendingUnitCount_1 = - _registerName1("progressWithTotalUnitCount:parent:pendingUnitCount:"); - ffi.Pointer _objc_msgSend_611( - ffi.Pointer obj, - ffi.Pointer sel, - int unitCount, - ffi.Pointer parent, - int portionOfParentTotalUnitCount, - ) { - return __objc_msgSend_611( - obj, - sel, - unitCount, - parent, - portionOfParentTotalUnitCount, - ); - } - - late final __objc_msgSend_611Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_611 = __objc_msgSend_611Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer, int)>(); - - late final _sel_initWithParent_userInfo_1 = - _registerName1("initWithParent:userInfo:"); - instancetype _objc_msgSend_612( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer parentProgressOrNil, - ffi.Pointer userInfoOrNil, - ) { - return __objc_msgSend_612( - obj, - sel, - parentProgressOrNil, - userInfoOrNil, - ); - } - - late final __objc_msgSend_612Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_612 = __objc_msgSend_612Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_becomeCurrentWithPendingUnitCount_1 = - _registerName1("becomeCurrentWithPendingUnitCount:"); - void _objc_msgSend_613( - ffi.Pointer obj, - ffi.Pointer sel, - int unitCount, - ) { - return __objc_msgSend_613( - obj, - sel, - unitCount, - ); - } - - late final __objc_msgSend_613Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_613 = __objc_msgSend_613Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_performAsCurrentWithPendingUnitCount_usingBlock_1 = - _registerName1("performAsCurrentWithPendingUnitCount:usingBlock:"); - void _objc_msgSend_614( - ffi.Pointer obj, - ffi.Pointer sel, - int unitCount, - ffi.Pointer<_ObjCBlock> work, - ) { - return __objc_msgSend_614( - obj, - sel, - unitCount, - work, - ); - } - - late final __objc_msgSend_614Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int64, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_614 = __objc_msgSend_614Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_resignCurrent1 = _registerName1("resignCurrent"); - late final _sel_addChild_withPendingUnitCount_1 = - _registerName1("addChild:withPendingUnitCount:"); - void _objc_msgSend_615( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer child, - int inUnitCount, - ) { - return __objc_msgSend_615( - obj, - sel, - child, - inUnitCount, - ); - } - - late final __objc_msgSend_615Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_615 = __objc_msgSend_615Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_totalUnitCount1 = _registerName1("totalUnitCount"); - int _objc_msgSend_616( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_616( - obj, - sel, - ); - } - - late final __objc_msgSend_616Ptr = _lookup< - ffi.NativeFunction< - ffi.Int64 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_616 = __objc_msgSend_616Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setTotalUnitCount_1 = _registerName1("setTotalUnitCount:"); - void _objc_msgSend_617( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_617( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_617Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_617 = __objc_msgSend_617Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_completedUnitCount1 = _registerName1("completedUnitCount"); - late final _sel_setCompletedUnitCount_1 = - _registerName1("setCompletedUnitCount:"); - late final _sel_setLocalizedDescription_1 = - _registerName1("setLocalizedDescription:"); - late final _sel_localizedAdditionalDescription1 = - _registerName1("localizedAdditionalDescription"); - late final _sel_setLocalizedAdditionalDescription_1 = - _registerName1("setLocalizedAdditionalDescription:"); - late final _sel_isCancellable1 = _registerName1("isCancellable"); - late final _sel_setCancellable_1 = _registerName1("setCancellable:"); - late final _sel_isPausable1 = _registerName1("isPausable"); - late final _sel_setPausable_1 = _registerName1("setPausable:"); - late final _sel_isPaused1 = _registerName1("isPaused"); - late final _sel_cancellationHandler1 = _registerName1("cancellationHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_618( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_618( - obj, - sel, - ); - } - - late final __objc_msgSend_618Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_618 = __objc_msgSend_618Ptr.asFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setCancellationHandler_1 = - _registerName1("setCancellationHandler:"); - void _objc_msgSend_619( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> value, - ) { - return __objc_msgSend_619( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_619Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_619 = __objc_msgSend_619Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_pausingHandler1 = _registerName1("pausingHandler"); - late final _sel_setPausingHandler_1 = _registerName1("setPausingHandler:"); - late final _sel_resumingHandler1 = _registerName1("resumingHandler"); - late final _sel_setResumingHandler_1 = _registerName1("setResumingHandler:"); - late final _sel_setUserInfoObject_forKey_1 = - _registerName1("setUserInfoObject:forKey:"); - late final _sel_isIndeterminate1 = _registerName1("isIndeterminate"); - late final _sel_fractionCompleted1 = _registerName1("fractionCompleted"); - late final _sel_pause1 = _registerName1("pause"); - late final _sel_resume1 = _registerName1("resume"); - late final _sel_kind1 = _registerName1("kind"); - late final _sel_setKind_1 = _registerName1("setKind:"); - late final _sel_estimatedTimeRemaining1 = - _registerName1("estimatedTimeRemaining"); - late final _sel_setEstimatedTimeRemaining_1 = - _registerName1("setEstimatedTimeRemaining:"); - void _objc_msgSend_620( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_620( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_620Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_620 = __objc_msgSend_620Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_throughput1 = _registerName1("throughput"); - late final _sel_setThroughput_1 = _registerName1("setThroughput:"); - late final _sel_fileOperationKind1 = _registerName1("fileOperationKind"); - late final _sel_setFileOperationKind_1 = - _registerName1("setFileOperationKind:"); - late final _sel_fileURL1 = _registerName1("fileURL"); - late final _sel_setFileURL_1 = _registerName1("setFileURL:"); - void _objc_msgSend_621( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_621( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_621Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_621 = __objc_msgSend_621Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_fileTotalCount1 = _registerName1("fileTotalCount"); - late final _sel_setFileTotalCount_1 = _registerName1("setFileTotalCount:"); - late final _sel_fileCompletedCount1 = _registerName1("fileCompletedCount"); - late final _sel_setFileCompletedCount_1 = - _registerName1("setFileCompletedCount:"); - late final _sel_publish1 = _registerName1("publish"); - late final _sel_unpublish1 = _registerName1("unpublish"); - late final _sel_addSubscriberForFileURL_withPublishingHandler_1 = - _registerName1("addSubscriberForFileURL:withPublishingHandler:"); - ffi.Pointer _objc_msgSend_622( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer<_ObjCBlock> publishingHandler, - ) { - return __objc_msgSend_622( - obj, - sel, - url, - publishingHandler, - ); - } - - late final __objc_msgSend_622Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_622 = __objc_msgSend_622Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_removeSubscriber_1 = _registerName1("removeSubscriber:"); - late final _sel_isOld1 = _registerName1("isOld"); - late final _sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1 = - _registerName1( - "registerDataRepresentationForTypeIdentifier:visibility:loadHandler:"); - void _objc_msgSend_623( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer typeIdentifier, - int visibility, - ffi.Pointer<_ObjCBlock> loadHandler, - ) { - return __objc_msgSend_623( - obj, - sel, - typeIdentifier, - visibility, - loadHandler, - ); - } - - late final __objc_msgSend_623Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_623 = __objc_msgSend_623Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1 = - _registerName1( - "registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:"); - void _objc_msgSend_624( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer typeIdentifier, - int fileOptions, - int visibility, - ffi.Pointer<_ObjCBlock> loadHandler, - ) { - return __objc_msgSend_624( - obj, - sel, - typeIdentifier, - fileOptions, - visibility, - loadHandler, - ); - } - - late final __objc_msgSend_624Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_624 = __objc_msgSend_624Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_registeredTypeIdentifiers1 = - _registerName1("registeredTypeIdentifiers"); - late final _sel_registeredTypeIdentifiersWithFileOptions_1 = - _registerName1("registeredTypeIdentifiersWithFileOptions:"); - ffi.Pointer _objc_msgSend_625( - ffi.Pointer obj, - ffi.Pointer sel, - int fileOptions, - ) { - return __objc_msgSend_625( - obj, - sel, - fileOptions, - ); - } - - late final __objc_msgSend_625Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_625 = __objc_msgSend_625Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_hasItemConformingToTypeIdentifier_1 = - _registerName1("hasItemConformingToTypeIdentifier:"); - late final _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1 = - _registerName1( - "hasRepresentationConformingToTypeIdentifier:fileOptions:"); - bool _objc_msgSend_626( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer typeIdentifier, - int fileOptions, - ) { - return __objc_msgSend_626( - obj, - sel, - typeIdentifier, - fileOptions, - ); - } - - late final __objc_msgSend_626Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_626 = __objc_msgSend_626Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_loadDataRepresentationForTypeIdentifier_completionHandler_1 = - _registerName1( - "loadDataRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_627( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer typeIdentifier, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_627( - obj, - sel, - typeIdentifier, - completionHandler, - ); - } - - late final __objc_msgSend_627Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_627 = __objc_msgSend_627Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_loadFileRepresentationForTypeIdentifier_completionHandler_1 = - _registerName1( - "loadFileRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_628( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer typeIdentifier, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_628( - obj, - sel, - typeIdentifier, - completionHandler, - ); - } - - late final __objc_msgSend_628Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_628 = __objc_msgSend_628Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1 = - _registerName1( - "loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_629( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer typeIdentifier, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_629( - obj, - sel, - typeIdentifier, - completionHandler, - ); - } - - late final __objc_msgSend_629Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_629 = __objc_msgSend_629Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_suggestedName1 = _registerName1("suggestedName"); - late final _sel_setSuggestedName_1 = _registerName1("setSuggestedName:"); - late final _sel_registerObject_visibility_1 = - _registerName1("registerObject:visibility:"); - void _objc_msgSend_630( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer object, - int visibility, - ) { - return __objc_msgSend_630( - obj, - sel, - object, - visibility, - ); - } - - late final __objc_msgSend_630Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_630 = __objc_msgSend_630Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_registerObjectOfClass_visibility_loadHandler_1 = - _registerName1("registerObjectOfClass:visibility:loadHandler:"); - void _objc_msgSend_631( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aClass, - int visibility, - ffi.Pointer<_ObjCBlock> loadHandler, - ) { - return __objc_msgSend_631( - obj, - sel, - aClass, - visibility, - loadHandler, - ); - } - - late final __objc_msgSend_631Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_631 = __objc_msgSend_631Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_canLoadObjectOfClass_1 = - _registerName1("canLoadObjectOfClass:"); - late final _sel_loadObjectOfClass_completionHandler_1 = - _registerName1("loadObjectOfClass:completionHandler:"); - ffi.Pointer _objc_msgSend_632( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aClass, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_632( - obj, - sel, - aClass, - completionHandler, - ); - } - - late final __objc_msgSend_632Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_632 = __objc_msgSend_632Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_initWithItem_typeIdentifier_1 = - _registerName1("initWithItem:typeIdentifier:"); - late final _sel_registerItemForTypeIdentifier_loadHandler_1 = - _registerName1("registerItemForTypeIdentifier:loadHandler:"); - void _objc_msgSend_633( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer typeIdentifier, - ffi.Pointer<_ObjCBlock> loadHandler, - ) { - return __objc_msgSend_633( - obj, - sel, - typeIdentifier, - loadHandler, - ); - } - - late final __objc_msgSend_633Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_633 = __objc_msgSend_633Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_loadItemForTypeIdentifier_options_completionHandler_1 = - _registerName1("loadItemForTypeIdentifier:options:completionHandler:"); - void _objc_msgSend_634( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer typeIdentifier, - ffi.Pointer options, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_634( - obj, - sel, - typeIdentifier, - options, - completionHandler, - ); - } - - late final __objc_msgSend_634Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_634 = __objc_msgSend_634Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_previewImageHandler1 = _registerName1("previewImageHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_635( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_635( - obj, - sel, - ); - } - - late final __objc_msgSend_635Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_635 = __objc_msgSend_635Ptr.asFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setPreviewImageHandler_1 = - _registerName1("setPreviewImageHandler:"); - void _objc_msgSend_636( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> value, - ) { - return __objc_msgSend_636( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_636Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_636 = __objc_msgSend_636Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_loadPreviewImageWithOptions_completionHandler_1 = - _registerName1("loadPreviewImageWithOptions:completionHandler:"); - void _objc_msgSend_637( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer options, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_637( - obj, - sel, - options, - completionHandler, - ); - } - - late final __objc_msgSend_637Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_637 = __objc_msgSend_637Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - - late final _class_NSMutableString1 = _getClass1("NSMutableString"); - late final _sel_replaceCharactersInRange_withString_1 = - _registerName1("replaceCharactersInRange:withString:"); - void _objc_msgSend_638( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ffi.Pointer aString, - ) { - return __objc_msgSend_638( - obj, - sel, - range, - aString, - ); - } - - late final __objc_msgSend_638Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_638 = __objc_msgSend_638Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, _NSRange, - ffi.Pointer)>(); - - late final _sel_insertString_atIndex_1 = - _registerName1("insertString:atIndex:"); - void _objc_msgSend_639( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aString, - int loc, - ) { - return __objc_msgSend_639( - obj, - sel, - aString, - loc, - ); - } - - late final __objc_msgSend_639Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_639 = __objc_msgSend_639Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_deleteCharactersInRange_1 = - _registerName1("deleteCharactersInRange:"); - late final _sel_appendString_1 = _registerName1("appendString:"); - late final _sel_appendFormat_1 = _registerName1("appendFormat:"); - late final _sel_setString_1 = _registerName1("setString:"); - late final _sel_replaceOccurrencesOfString_withString_options_range_1 = - _registerName1("replaceOccurrencesOfString:withString:options:range:"); - int _objc_msgSend_640( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer target, - ffi.Pointer replacement, - int options, - _NSRange searchRange, - ) { - return __objc_msgSend_640( - obj, - sel, - target, - replacement, - options, - searchRange, - ); - } - - late final __objc_msgSend_640Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_640 = __objc_msgSend_640Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, _NSRange)>(); - - late final _sel_applyTransform_reverse_range_updatedRange_1 = - _registerName1("applyTransform:reverse:range:updatedRange:"); - bool _objc_msgSend_641( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer transform, - bool reverse, - _NSRange range, - ffi.Pointer<_NSRange> resultingRange, - ) { - return __objc_msgSend_641( - obj, - sel, - transform, - reverse, - range, - resultingRange, - ); - } - - late final __objc_msgSend_641Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - _NSRange, - ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_641 = __objc_msgSend_641Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool, _NSRange, ffi.Pointer<_NSRange>)>(); - - ffi.Pointer _objc_msgSend_642( - ffi.Pointer obj, - ffi.Pointer sel, - int capacity, - ) { - return __objc_msgSend_642( - obj, - sel, - capacity, - ); - } - - late final __objc_msgSend_642Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_642 = __objc_msgSend_642Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_stringWithCapacity_1 = _registerName1("stringWithCapacity:"); - late final _class_NSNotification1 = _getClass1("NSNotification"); - late final _sel_object1 = _registerName1("object"); - late final _sel_initWithName_object_userInfo_1 = - _registerName1("initWithName:object:userInfo:"); - instancetype _objc_msgSend_643( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer object, - ffi.Pointer userInfo, - ) { - return __objc_msgSend_643( - obj, - sel, - name, - object, - userInfo, - ); - } - - late final __objc_msgSend_643Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_643 = __objc_msgSend_643Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_notificationWithName_object_1 = - _registerName1("notificationWithName:object:"); - late final _sel_notificationWithName_object_userInfo_1 = - _registerName1("notificationWithName:object:userInfo:"); - late final _class_NSBundle1 = _getClass1("NSBundle"); - late final _sel_mainBundle1 = _registerName1("mainBundle"); - ffi.Pointer _objc_msgSend_644( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_644( - obj, - sel, - ); - } - - late final __objc_msgSend_644Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_644 = __objc_msgSend_644Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_bundleWithPath_1 = _registerName1("bundleWithPath:"); - late final _sel_initWithPath_1 = _registerName1("initWithPath:"); - late final _sel_bundleWithURL_1 = _registerName1("bundleWithURL:"); - late final _sel_initWithURL_1 = _registerName1("initWithURL:"); - late final _sel_bundleForClass_1 = _registerName1("bundleForClass:"); - ffi.Pointer _objc_msgSend_645( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aClass, - ) { - return __objc_msgSend_645( - obj, - sel, - aClass, - ); - } - - late final __objc_msgSend_645Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_645 = __objc_msgSend_645Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_bundleWithIdentifier_1 = - _registerName1("bundleWithIdentifier:"); - ffi.Pointer _objc_msgSend_646( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer identifier, - ) { - return __objc_msgSend_646( - obj, - sel, - identifier, - ); - } - - late final __objc_msgSend_646Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_646 = __objc_msgSend_646Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_allBundles1 = _registerName1("allBundles"); - late final _sel_allFrameworks1 = _registerName1("allFrameworks"); - late final _sel_isLoaded1 = _registerName1("isLoaded"); - late final _sel_unload1 = _registerName1("unload"); - late final _sel_preflightAndReturnError_1 = - _registerName1("preflightAndReturnError:"); - late final _sel_loadAndReturnError_1 = _registerName1("loadAndReturnError:"); - late final _sel_bundleURL1 = _registerName1("bundleURL"); - late final _sel_resourceURL1 = _registerName1("resourceURL"); - late final _sel_executableURL1 = _registerName1("executableURL"); - late final _sel_URLForAuxiliaryExecutable_1 = - _registerName1("URLForAuxiliaryExecutable:"); - late final _sel_privateFrameworksURL1 = - _registerName1("privateFrameworksURL"); - late final _sel_sharedFrameworksURL1 = _registerName1("sharedFrameworksURL"); - late final _sel_sharedSupportURL1 = _registerName1("sharedSupportURL"); - late final _sel_builtInPlugInsURL1 = _registerName1("builtInPlugInsURL"); - late final _sel_appStoreReceiptURL1 = _registerName1("appStoreReceiptURL"); - late final _sel_bundlePath1 = _registerName1("bundlePath"); - late final _sel_resourcePath1 = _registerName1("resourcePath"); - late final _sel_executablePath1 = _registerName1("executablePath"); - late final _sel_pathForAuxiliaryExecutable_1 = - _registerName1("pathForAuxiliaryExecutable:"); - late final _sel_privateFrameworksPath1 = - _registerName1("privateFrameworksPath"); - late final _sel_sharedFrameworksPath1 = - _registerName1("sharedFrameworksPath"); - late final _sel_sharedSupportPath1 = _registerName1("sharedSupportPath"); - late final _sel_builtInPlugInsPath1 = _registerName1("builtInPlugInsPath"); - late final _sel_URLForResource_withExtension_subdirectory_inBundleWithURL_1 = - _registerName1( - "URLForResource:withExtension:subdirectory:inBundleWithURL:"); - ffi.Pointer _objc_msgSend_647( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer ext, - ffi.Pointer subpath, - ffi.Pointer bundleURL, - ) { - return __objc_msgSend_647( - obj, - sel, - name, - ext, - subpath, - bundleURL, - ); - } - - late final __objc_msgSend_647Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_647 = __objc_msgSend_647Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_1 = - _registerName1( - "URLsForResourcesWithExtension:subdirectory:inBundleWithURL:"); - ffi.Pointer _objc_msgSend_648( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer ext, - ffi.Pointer subpath, - ffi.Pointer bundleURL, - ) { - return __objc_msgSend_648( - obj, - sel, - ext, - subpath, - bundleURL, - ); - } - - late final __objc_msgSend_648Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_648 = __objc_msgSend_648Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_URLForResource_withExtension_1 = - _registerName1("URLForResource:withExtension:"); - ffi.Pointer _objc_msgSend_649( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer ext, - ) { - return __objc_msgSend_649( - obj, - sel, - name, - ext, - ); - } - - late final __objc_msgSend_649Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_649 = __objc_msgSend_649Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_URLForResource_withExtension_subdirectory_1 = - _registerName1("URLForResource:withExtension:subdirectory:"); - ffi.Pointer _objc_msgSend_650( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer ext, - ffi.Pointer subpath, - ) { - return __objc_msgSend_650( - obj, - sel, - name, - ext, - subpath, - ); - } - - late final __objc_msgSend_650Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_650 = __objc_msgSend_650Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_URLForResource_withExtension_subdirectory_localization_1 = - _registerName1("URLForResource:withExtension:subdirectory:localization:"); - ffi.Pointer _objc_msgSend_651( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer ext, - ffi.Pointer subpath, - ffi.Pointer localizationName, - ) { - return __objc_msgSend_651( - obj, - sel, - name, - ext, - subpath, - localizationName, - ); - } - - late final __objc_msgSend_651Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_651 = __objc_msgSend_651Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_URLsForResourcesWithExtension_subdirectory_1 = - _registerName1("URLsForResourcesWithExtension:subdirectory:"); - ffi.Pointer _objc_msgSend_652( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer ext, - ffi.Pointer subpath, - ) { - return __objc_msgSend_652( - obj, - sel, - ext, - subpath, - ); - } - - late final __objc_msgSend_652Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_652 = __objc_msgSend_652Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_URLsForResourcesWithExtension_subdirectory_localization_1 = - _registerName1( - "URLsForResourcesWithExtension:subdirectory:localization:"); - ffi.Pointer _objc_msgSend_653( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer ext, - ffi.Pointer subpath, - ffi.Pointer localizationName, - ) { - return __objc_msgSend_653( - obj, - sel, - ext, - subpath, - localizationName, - ); - } - - late final __objc_msgSend_653Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_653 = __objc_msgSend_653Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_pathForResource_ofType_inDirectory_1 = - _registerName1("pathForResource:ofType:inDirectory:"); - ffi.Pointer _objc_msgSend_654( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer ext, - ffi.Pointer bundlePath, - ) { - return __objc_msgSend_654( - obj, - sel, - name, - ext, - bundlePath, - ); - } - - late final __objc_msgSend_654Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_654 = __objc_msgSend_654Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_pathsForResourcesOfType_inDirectory_1 = - _registerName1("pathsForResourcesOfType:inDirectory:"); - late final _sel_pathForResource_ofType_1 = - _registerName1("pathForResource:ofType:"); - late final _sel_pathForResource_ofType_inDirectory_forLocalization_1 = - _registerName1("pathForResource:ofType:inDirectory:forLocalization:"); - ffi.Pointer _objc_msgSend_655( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer ext, - ffi.Pointer subpath, - ffi.Pointer localizationName, - ) { - return __objc_msgSend_655( - obj, - sel, - name, - ext, - subpath, - localizationName, - ); - } - - late final __objc_msgSend_655Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_655 = __objc_msgSend_655Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_pathsForResourcesOfType_inDirectory_forLocalization_1 = - _registerName1("pathsForResourcesOfType:inDirectory:forLocalization:"); - late final _sel_localizedStringForKey_value_table_1 = - _registerName1("localizedStringForKey:value:table:"); - late final _class_NSAttributedString1 = _getClass1("NSAttributedString"); - late final _sel_attributesAtIndex_effectiveRange_1 = - _registerName1("attributesAtIndex:effectiveRange:"); - ffi.Pointer _objc_msgSend_656( - ffi.Pointer obj, - ffi.Pointer sel, - int location, - ffi.Pointer<_NSRange> range, - ) { - return __objc_msgSend_656( - obj, - sel, - location, - range, - ); - } - - late final __objc_msgSend_656Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_656 = __objc_msgSend_656Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_NSRange>)>(); - - late final _sel_attribute_atIndex_effectiveRange_1 = - _registerName1("attribute:atIndex:effectiveRange:"); - ffi.Pointer _objc_msgSend_657( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer attrName, - int location, - ffi.Pointer<_NSRange> range, - ) { - return __objc_msgSend_657( - obj, - sel, - attrName, - location, - range, - ); - } - - late final __objc_msgSend_657Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_657 = __objc_msgSend_657Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer<_NSRange>)>(); - - late final _sel_attributedSubstringFromRange_1 = - _registerName1("attributedSubstringFromRange:"); - ffi.Pointer _objc_msgSend_658( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ) { - return __objc_msgSend_658( - obj, - sel, - range, - ); - } - - late final __objc_msgSend_658Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_658 = __objc_msgSend_658Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, _NSRange)>(); - - late final _sel_attributesAtIndex_longestEffectiveRange_inRange_1 = - _registerName1("attributesAtIndex:longestEffectiveRange:inRange:"); - ffi.Pointer _objc_msgSend_659( - ffi.Pointer obj, - ffi.Pointer sel, - int location, - ffi.Pointer<_NSRange> range, - _NSRange rangeLimit, - ) { - return __objc_msgSend_659( - obj, - sel, - location, - range, - rangeLimit, - ); - } - - late final __objc_msgSend_659Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer<_NSRange>, - _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_659 = __objc_msgSend_659Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_NSRange>, _NSRange)>(); - - late final _sel_attribute_atIndex_longestEffectiveRange_inRange_1 = - _registerName1("attribute:atIndex:longestEffectiveRange:inRange:"); - ffi.Pointer _objc_msgSend_660( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer attrName, - int location, - ffi.Pointer<_NSRange> range, - _NSRange rangeLimit, - ) { - return __objc_msgSend_660( - obj, - sel, - attrName, - location, - range, - rangeLimit, - ); - } - - late final __objc_msgSend_660Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer<_NSRange>, - _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_660 = __objc_msgSend_660Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer<_NSRange>, - _NSRange)>(); - - late final _sel_isEqualToAttributedString_1 = - _registerName1("isEqualToAttributedString:"); - bool _objc_msgSend_661( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer other, - ) { - return __objc_msgSend_661( - obj, - sel, - other, - ); - } - - late final __objc_msgSend_661Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_661 = __objc_msgSend_661Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_initWithString_attributes_1 = - _registerName1("initWithString:attributes:"); - late final _sel_initWithAttributedString_1 = - _registerName1("initWithAttributedString:"); - instancetype _objc_msgSend_662( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer attrStr, - ) { - return __objc_msgSend_662( - obj, - sel, - attrStr, - ); - } - - late final __objc_msgSend_662Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_662 = __objc_msgSend_662Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_enumerateAttributesInRange_options_usingBlock_1 = - _registerName1("enumerateAttributesInRange:options:usingBlock:"); - void _objc_msgSend_663( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange enumerationRange, - int opts, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_663( - obj, - sel, - enumerationRange, - opts, - block, - ); - } - - late final __objc_msgSend_663Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_663 = __objc_msgSend_663Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, _NSRange, - int, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_enumerateAttribute_inRange_options_usingBlock_1 = - _registerName1("enumerateAttribute:inRange:options:usingBlock:"); - void _objc_msgSend_664( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer attrName, - _NSRange enumerationRange, - int opts, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_664( - obj, - sel, - attrName, - enumerationRange, - opts, - block, - ); - } - - late final __objc_msgSend_664Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_664 = __objc_msgSend_664Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); - - late final _class_NSAttributedStringMarkdownParsingOptions1 = - _getClass1("NSAttributedStringMarkdownParsingOptions"); - late final _sel_allowsExtendedAttributes1 = - _registerName1("allowsExtendedAttributes"); - late final _sel_setAllowsExtendedAttributes_1 = - _registerName1("setAllowsExtendedAttributes:"); - late final _sel_interpretedSyntax1 = _registerName1("interpretedSyntax"); - int _objc_msgSend_665( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_665( - obj, - sel, - ); - } - - late final __objc_msgSend_665Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_665 = __objc_msgSend_665Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setInterpretedSyntax_1 = - _registerName1("setInterpretedSyntax:"); - void _objc_msgSend_666( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_666( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_666Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_666 = __objc_msgSend_666Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_failurePolicy1 = _registerName1("failurePolicy"); - int _objc_msgSend_667( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_667( - obj, - sel, - ); - } - - late final __objc_msgSend_667Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_667 = __objc_msgSend_667Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setFailurePolicy_1 = _registerName1("setFailurePolicy:"); - void _objc_msgSend_668( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_668( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_668Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_668 = __objc_msgSend_668Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_setLanguageCode_1 = _registerName1("setLanguageCode:"); - late final _sel_appliesSourcePositionAttributes1 = - _registerName1("appliesSourcePositionAttributes"); - late final _sel_setAppliesSourcePositionAttributes_1 = - _registerName1("setAppliesSourcePositionAttributes:"); - late final _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1 = - _registerName1( - "initWithContentsOfMarkdownFileAtURL:options:baseURL:error:"); - instancetype _objc_msgSend_669( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer markdownFile, - ffi.Pointer options, - ffi.Pointer baseURL, - ffi.Pointer> error, - ) { - return __objc_msgSend_669( - obj, - sel, - markdownFile, - options, - baseURL, - error, - ); - } - - late final __objc_msgSend_669Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_669 = __objc_msgSend_669Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_initWithMarkdown_options_baseURL_error_1 = - _registerName1("initWithMarkdown:options:baseURL:error:"); - instancetype _objc_msgSend_670( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer markdown, - ffi.Pointer options, - ffi.Pointer baseURL, - ffi.Pointer> error, - ) { - return __objc_msgSend_670( - obj, - sel, - markdown, - options, - baseURL, - error, - ); - } - - late final __objc_msgSend_670Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_670 = __objc_msgSend_670Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_initWithMarkdownString_options_baseURL_error_1 = - _registerName1("initWithMarkdownString:options:baseURL:error:"); - instancetype _objc_msgSend_671( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer markdownString, - ffi.Pointer options, - ffi.Pointer baseURL, - ffi.Pointer> error, - ) { - return __objc_msgSend_671( - obj, - sel, - markdownString, - options, - baseURL, - error, - ); - } - - late final __objc_msgSend_671Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_671 = __objc_msgSend_671Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_initWithFormat_options_locale_1 = - _registerName1("initWithFormat:options:locale:"); - instancetype _objc_msgSend_672( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer format, - int options, - ffi.Pointer locale, - ) { - return __objc_msgSend_672( - obj, - sel, - format, - options, - locale, - ); - } - - late final __objc_msgSend_672Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_672 = __objc_msgSend_672Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer)>(); - - late final _sel_initWithFormat_options_locale_arguments_1 = - _registerName1("initWithFormat:options:locale:arguments:"); - instancetype _objc_msgSend_673( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer format, - int options, - ffi.Pointer locale, - ffi.Pointer<__va_list_tag> arguments, - ) { - return __objc_msgSend_673( - obj, - sel, - format, - options, - locale, - arguments, - ); - } - - late final __objc_msgSend_673Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer, - ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); - late final __objc_msgSend_673 = __objc_msgSend_673Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer<__va_list_tag>)>(); - - late final _sel_localizedAttributedStringWithFormat_1 = - _registerName1("localizedAttributedStringWithFormat:"); - late final _sel_localizedAttributedStringWithFormat_options_1 = - _registerName1("localizedAttributedStringWithFormat:options:"); - instancetype _objc_msgSend_674( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer format, - int options, - ) { - return __objc_msgSend_674( - obj, - sel, - format, - options, - ); - } - - late final __objc_msgSend_674Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_674 = __objc_msgSend_674Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_attributedStringByInflectingString1 = - _registerName1("attributedStringByInflectingString"); - ffi.Pointer _objc_msgSend_675( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_675( - obj, - sel, - ); - } - - late final __objc_msgSend_675Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_675 = __objc_msgSend_675Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_localizedAttributedStringForKey_value_table_1 = - _registerName1("localizedAttributedStringForKey:value:table:"); - ffi.Pointer _objc_msgSend_676( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer key, - ffi.Pointer value, - ffi.Pointer tableName, - ) { - return __objc_msgSend_676( - obj, - sel, - key, - value, - tableName, - ); - } - - late final __objc_msgSend_676Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_676 = __objc_msgSend_676Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_bundleIdentifier1 = _registerName1("bundleIdentifier"); - late final _sel_infoDictionary1 = _registerName1("infoDictionary"); - late final _sel_localizedInfoDictionary1 = - _registerName1("localizedInfoDictionary"); - late final _sel_objectForInfoDictionaryKey_1 = - _registerName1("objectForInfoDictionaryKey:"); - late final _sel_classNamed_1 = _registerName1("classNamed:"); - late final _sel_principalClass1 = _registerName1("principalClass"); - late final _sel_preferredLocalizations1 = - _registerName1("preferredLocalizations"); - late final _sel_localizations1 = _registerName1("localizations"); - late final _sel_developmentLocalization1 = - _registerName1("developmentLocalization"); - late final _sel_preferredLocalizationsFromArray_1 = - _registerName1("preferredLocalizationsFromArray:"); - late final _sel_preferredLocalizationsFromArray_forPreferences_1 = - _registerName1("preferredLocalizationsFromArray:forPreferences:"); - ffi.Pointer _objc_msgSend_677( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer localizationsArray, - ffi.Pointer preferencesArray, - ) { - return __objc_msgSend_677( - obj, - sel, - localizationsArray, - preferencesArray, - ); - } - - late final __objc_msgSend_677Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_677 = __objc_msgSend_677Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_executableArchitectures1 = - _registerName1("executableArchitectures"); - late final _sel_setPreservationPriority_forTags_1 = - _registerName1("setPreservationPriority:forTags:"); - void _objc_msgSend_678( - ffi.Pointer obj, - ffi.Pointer sel, - double priority, - ffi.Pointer tags, - ) { - return __objc_msgSend_678( - obj, - sel, - priority, - tags, - ); - } - - late final __objc_msgSend_678Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Double, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_678 = __objc_msgSend_678Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, double, - ffi.Pointer)>(); - - late final _sel_preservationPriorityForTag_1 = - _registerName1("preservationPriorityForTag:"); - late final _class_NSMutableAttributedString1 = - _getClass1("NSMutableAttributedString"); - late final _sel_setAttributes_range_1 = - _registerName1("setAttributes:range:"); - void _objc_msgSend_679( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer attrs, - _NSRange range, - ) { - return __objc_msgSend_679( - obj, - sel, - attrs, - range, - ); - } - - late final __objc_msgSend_679Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_679 = __objc_msgSend_679Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>(); - - late final _sel_mutableString1 = _registerName1("mutableString"); - ffi.Pointer _objc_msgSend_680( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_680( - obj, - sel, - ); - } - - late final __objc_msgSend_680Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_680 = __objc_msgSend_680Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_addAttribute_value_range_1 = - _registerName1("addAttribute:value:range:"); - void _objc_msgSend_681( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer value, - _NSRange range, - ) { - return __objc_msgSend_681( - obj, - sel, - name, - value, - range, - ); - } - - late final __objc_msgSend_681Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_681 = __objc_msgSend_681Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, _NSRange)>(); - - late final _sel_addAttributes_range_1 = - _registerName1("addAttributes:range:"); - late final _sel_removeAttribute_range_1 = - _registerName1("removeAttribute:range:"); - void _objc_msgSend_682( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer name, - _NSRange range, - ) { - return __objc_msgSend_682( - obj, - sel, - name, - range, - ); - } - - late final __objc_msgSend_682Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_682 = __objc_msgSend_682Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>(); - - late final _sel_replaceCharactersInRange_withAttributedString_1 = - _registerName1("replaceCharactersInRange:withAttributedString:"); - void _objc_msgSend_683( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ffi.Pointer attrString, - ) { - return __objc_msgSend_683( - obj, - sel, - range, - attrString, - ); - } - - late final __objc_msgSend_683Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_683 = __objc_msgSend_683Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, _NSRange, - ffi.Pointer)>(); - - late final _sel_insertAttributedString_atIndex_1 = - _registerName1("insertAttributedString:atIndex:"); - void _objc_msgSend_684( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer attrString, - int loc, - ) { - return __objc_msgSend_684( - obj, - sel, - attrString, - loc, - ); - } - - late final __objc_msgSend_684Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_684 = __objc_msgSend_684Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_appendAttributedString_1 = - _registerName1("appendAttributedString:"); - void _objc_msgSend_685( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer attrString, - ) { - return __objc_msgSend_685( - obj, - sel, - attrString, - ); - } - - late final __objc_msgSend_685Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_685 = __objc_msgSend_685Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_setAttributedString_1 = - _registerName1("setAttributedString:"); - late final _sel_beginEditing1 = _registerName1("beginEditing"); - late final _sel_endEditing1 = _registerName1("endEditing"); - late final _sel_appendLocalizedFormat_1 = - _registerName1("appendLocalizedFormat:"); - late final _class_NSDateFormatter1 = _getClass1("NSDateFormatter"); - late final _class_NSFormatter1 = _getClass1("NSFormatter"); - late final _sel_stringForObjectValue_1 = - _registerName1("stringForObjectValue:"); - late final _sel_attributedStringForObjectValue_withDefaultAttributes_1 = - _registerName1("attributedStringForObjectValue:withDefaultAttributes:"); - ffi.Pointer _objc_msgSend_686( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer obj1, - ffi.Pointer attrs, - ) { - return __objc_msgSend_686( - obj, - sel, - obj1, - attrs, - ); - } - - late final __objc_msgSend_686Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_686 = __objc_msgSend_686Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_editingStringForObjectValue_1 = - _registerName1("editingStringForObjectValue:"); - late final _sel_getObjectValue_forString_errorDescription_1 = - _registerName1("getObjectValue:forString:errorDescription:"); - bool _objc_msgSend_687( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> obj1, - ffi.Pointer string, - ffi.Pointer> error, - ) { - return __objc_msgSend_687( - obj, - sel, - obj1, - string, - error, - ); - } - - late final __objc_msgSend_687Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_687 = __objc_msgSend_687Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_isPartialStringValid_newEditingString_errorDescription_1 = - _registerName1("isPartialStringValid:newEditingString:errorDescription:"); - bool _objc_msgSend_688( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer partialString, - ffi.Pointer> newString, - ffi.Pointer> error, - ) { - return __objc_msgSend_688( - obj, - sel, - partialString, - newString, - error, - ); - } - - late final __objc_msgSend_688Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_688 = __objc_msgSend_688Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>)>(); - - late final _sel_isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_1 = - _registerName1( - "isPartialStringValid:proposedSelectedRange:originalString:originalSelectedRange:errorDescription:"); - bool _objc_msgSend_689( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> partialStringPtr, - ffi.Pointer<_NSRange> proposedSelRangePtr, - ffi.Pointer origString, - _NSRange origSelRange, - ffi.Pointer> error, - ) { - return __objc_msgSend_689( - obj, - sel, - partialStringPtr, - proposedSelRangePtr, - origString, - origSelRange, - error, - ); - } - - late final __objc_msgSend_689Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer<_NSRange>, - ffi.Pointer, - _NSRange, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_689 = __objc_msgSend_689Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer<_NSRange>, - ffi.Pointer, - _NSRange, - ffi.Pointer>)>(); - - late final _sel_formattingContext1 = _registerName1("formattingContext"); - int _objc_msgSend_690( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_690( - obj, - sel, - ); - } - - late final __objc_msgSend_690Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_690 = __objc_msgSend_690Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setFormattingContext_1 = - _registerName1("setFormattingContext:"); - void _objc_msgSend_691( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_691( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_691Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_691 = __objc_msgSend_691Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_getObjectValue_forString_range_error_1 = - _registerName1("getObjectValue:forString:range:error:"); - bool _objc_msgSend_692( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> obj1, - ffi.Pointer string, - ffi.Pointer<_NSRange> rangep, - ffi.Pointer> error, - ) { - return __objc_msgSend_692( - obj, - sel, - obj1, - string, - rangep, - error, - ); - } - - late final __objc_msgSend_692Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer<_NSRange>, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_692 = __objc_msgSend_692Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer<_NSRange>, - ffi.Pointer>)>(); - - late final _sel_stringFromDate_1 = _registerName1("stringFromDate:"); - late final _sel_dateFromString_1 = _registerName1("dateFromString:"); - late final _sel_localizedStringFromDate_dateStyle_timeStyle_1 = - _registerName1("localizedStringFromDate:dateStyle:timeStyle:"); - ffi.Pointer _objc_msgSend_693( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer date, - int dstyle, - int tstyle, - ) { - return __objc_msgSend_693( - obj, - sel, - date, - dstyle, - tstyle, - ); - } - - late final __objc_msgSend_693Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_693 = __objc_msgSend_693Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, int)>(); - - late final _sel_dateFormatFromTemplate_options_locale_1 = - _registerName1("dateFormatFromTemplate:options:locale:"); - ffi.Pointer _objc_msgSend_694( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer tmplate, - int opts, - ffi.Pointer locale, - ) { - return __objc_msgSend_694( - obj, - sel, - tmplate, - opts, - locale, - ); - } - - late final __objc_msgSend_694Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_694 = __objc_msgSend_694Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>(); - - late final _sel_defaultFormatterBehavior1 = - _registerName1("defaultFormatterBehavior"); - int _objc_msgSend_695( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_695( - obj, - sel, - ); - } - - late final __objc_msgSend_695Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_695 = __objc_msgSend_695Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setDefaultFormatterBehavior_1 = - _registerName1("setDefaultFormatterBehavior:"); - void _objc_msgSend_696( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_696( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_696Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_696 = __objc_msgSend_696Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_setLocalizedDateFormatFromTemplate_1 = - _registerName1("setLocalizedDateFormatFromTemplate:"); - late final _sel_dateFormat1 = _registerName1("dateFormat"); - late final _sel_setDateFormat_1 = _registerName1("setDateFormat:"); - late final _sel_dateStyle1 = _registerName1("dateStyle"); - int _objc_msgSend_697( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_697( - obj, - sel, - ); - } - - late final __objc_msgSend_697Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_697 = __objc_msgSend_697Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setDateStyle_1 = _registerName1("setDateStyle:"); - void _objc_msgSend_698( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_698( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_698Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_698 = __objc_msgSend_698Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_timeStyle1 = _registerName1("timeStyle"); - late final _sel_setTimeStyle_1 = _registerName1("setTimeStyle:"); - late final _sel_locale1 = _registerName1("locale"); - late final _sel_setLocale_1 = _registerName1("setLocale:"); - void _objc_msgSend_699( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_699( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_699Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_699 = __objc_msgSend_699Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_generatesCalendarDates1 = - _registerName1("generatesCalendarDates"); - late final _sel_setGeneratesCalendarDates_1 = - _registerName1("setGeneratesCalendarDates:"); - late final _sel_formatterBehavior1 = _registerName1("formatterBehavior"); - late final _sel_setFormatterBehavior_1 = - _registerName1("setFormatterBehavior:"); - late final _class_NSCalendar1 = _getClass1("NSCalendar"); - late final _sel_currentCalendar1 = _registerName1("currentCalendar"); - ffi.Pointer _objc_msgSend_700( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_700( - obj, - sel, - ); - } - - late final __objc_msgSend_700Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_700 = __objc_msgSend_700Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_autoupdatingCurrentCalendar1 = - _registerName1("autoupdatingCurrentCalendar"); - late final _sel_calendarWithIdentifier_1 = - _registerName1("calendarWithIdentifier:"); - ffi.Pointer _objc_msgSend_701( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer calendarIdentifierConstant, - ) { - return __objc_msgSend_701( - obj, - sel, - calendarIdentifierConstant, - ); - } - - late final __objc_msgSend_701Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_701 = __objc_msgSend_701Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_initWithCalendarIdentifier_1 = - _registerName1("initWithCalendarIdentifier:"); - late final _sel_firstWeekday1 = _registerName1("firstWeekday"); - late final _sel_setFirstWeekday_1 = _registerName1("setFirstWeekday:"); - late final _sel_minimumDaysInFirstWeek1 = - _registerName1("minimumDaysInFirstWeek"); - late final _sel_setMinimumDaysInFirstWeek_1 = - _registerName1("setMinimumDaysInFirstWeek:"); - late final _sel_eraSymbols1 = _registerName1("eraSymbols"); - late final _sel_longEraSymbols1 = _registerName1("longEraSymbols"); - late final _sel_monthSymbols1 = _registerName1("monthSymbols"); - late final _sel_shortMonthSymbols1 = _registerName1("shortMonthSymbols"); - late final _sel_veryShortMonthSymbols1 = - _registerName1("veryShortMonthSymbols"); - late final _sel_standaloneMonthSymbols1 = - _registerName1("standaloneMonthSymbols"); - late final _sel_shortStandaloneMonthSymbols1 = - _registerName1("shortStandaloneMonthSymbols"); - late final _sel_veryShortStandaloneMonthSymbols1 = - _registerName1("veryShortStandaloneMonthSymbols"); - late final _sel_weekdaySymbols1 = _registerName1("weekdaySymbols"); - late final _sel_shortWeekdaySymbols1 = _registerName1("shortWeekdaySymbols"); - late final _sel_veryShortWeekdaySymbols1 = - _registerName1("veryShortWeekdaySymbols"); - late final _sel_standaloneWeekdaySymbols1 = - _registerName1("standaloneWeekdaySymbols"); - late final _sel_shortStandaloneWeekdaySymbols1 = - _registerName1("shortStandaloneWeekdaySymbols"); - late final _sel_veryShortStandaloneWeekdaySymbols1 = - _registerName1("veryShortStandaloneWeekdaySymbols"); - late final _sel_quarterSymbols1 = _registerName1("quarterSymbols"); - late final _sel_shortQuarterSymbols1 = _registerName1("shortQuarterSymbols"); - late final _sel_standaloneQuarterSymbols1 = - _registerName1("standaloneQuarterSymbols"); - late final _sel_shortStandaloneQuarterSymbols1 = - _registerName1("shortStandaloneQuarterSymbols"); - late final _sel_AMSymbol1 = _registerName1("AMSymbol"); - late final _sel_PMSymbol1 = _registerName1("PMSymbol"); - late final _sel_minimumRangeOfUnit_1 = _registerName1("minimumRangeOfUnit:"); - _NSRange _objc_msgSend_702( - ffi.Pointer obj, - ffi.Pointer sel, - int unit, - ) { - return __objc_msgSend_702( - obj, - sel, - unit, - ); - } - - late final __objc_msgSend_702Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_702 = __objc_msgSend_702Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_maximumRangeOfUnit_1 = _registerName1("maximumRangeOfUnit:"); - late final _sel_rangeOfUnit_inUnit_forDate_1 = - _registerName1("rangeOfUnit:inUnit:forDate:"); - _NSRange _objc_msgSend_703( - ffi.Pointer obj, - ffi.Pointer sel, - int smaller, - int larger, - ffi.Pointer date, - ) { - return __objc_msgSend_703( - obj, - sel, - smaller, - larger, - date, - ); - } - - late final __objc_msgSend_703Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_703 = __objc_msgSend_703Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, int, int, - ffi.Pointer)>(); - - late final _sel_ordinalityOfUnit_inUnit_forDate_1 = - _registerName1("ordinalityOfUnit:inUnit:forDate:"); - int _objc_msgSend_704( - ffi.Pointer obj, - ffi.Pointer sel, - int smaller, - int larger, - ffi.Pointer date, - ) { - return __objc_msgSend_704( - obj, - sel, - smaller, - larger, - date, - ); - } - - late final __objc_msgSend_704Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Int32, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_704 = __objc_msgSend_704Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int, int, - ffi.Pointer)>(); - - late final _sel_rangeOfUnit_startDate_interval_forDate_1 = - _registerName1("rangeOfUnit:startDate:interval:forDate:"); - bool _objc_msgSend_705( - ffi.Pointer obj, - ffi.Pointer sel, - int unit, - ffi.Pointer> datep, - ffi.Pointer tip, - ffi.Pointer date, - ) { - return __objc_msgSend_705( - obj, - sel, - unit, - datep, - tip, - date, - ); - } - - late final __objc_msgSend_705Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_705 = __objc_msgSend_705Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer)>(); - - late final _class_NSDateComponents1 = _getClass1("NSDateComponents"); - late final _sel_calendar1 = _registerName1("calendar"); - late final _sel_setCalendar_1 = _registerName1("setCalendar:"); - void _objc_msgSend_706( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_706( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_706Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_706 = __objc_msgSend_706Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_era1 = _registerName1("era"); - late final _sel_setEra_1 = _registerName1("setEra:"); - late final _sel_year1 = _registerName1("year"); - late final _sel_setYear_1 = _registerName1("setYear:"); - late final _sel_month1 = _registerName1("month"); - late final _sel_setMonth_1 = _registerName1("setMonth:"); - late final _sel_day1 = _registerName1("day"); - late final _sel_setDay_1 = _registerName1("setDay:"); - late final _sel_hour1 = _registerName1("hour"); - late final _sel_setHour_1 = _registerName1("setHour:"); - late final _sel_minute1 = _registerName1("minute"); - late final _sel_setMinute_1 = _registerName1("setMinute:"); - late final _sel_second1 = _registerName1("second"); - late final _sel_setSecond_1 = _registerName1("setSecond:"); - late final _sel_nanosecond1 = _registerName1("nanosecond"); - late final _sel_setNanosecond_1 = _registerName1("setNanosecond:"); - late final _sel_weekday1 = _registerName1("weekday"); - late final _sel_setWeekday_1 = _registerName1("setWeekday:"); - late final _sel_weekdayOrdinal1 = _registerName1("weekdayOrdinal"); - late final _sel_setWeekdayOrdinal_1 = _registerName1("setWeekdayOrdinal:"); - late final _sel_quarter1 = _registerName1("quarter"); - late final _sel_setQuarter_1 = _registerName1("setQuarter:"); - late final _sel_weekOfMonth1 = _registerName1("weekOfMonth"); - late final _sel_setWeekOfMonth_1 = _registerName1("setWeekOfMonth:"); - late final _sel_weekOfYear1 = _registerName1("weekOfYear"); - late final _sel_setWeekOfYear_1 = _registerName1("setWeekOfYear:"); - late final _sel_yearForWeekOfYear1 = _registerName1("yearForWeekOfYear"); - late final _sel_setYearForWeekOfYear_1 = - _registerName1("setYearForWeekOfYear:"); - late final _sel_isLeapMonth1 = _registerName1("isLeapMonth"); - late final _sel_setLeapMonth_1 = _registerName1("setLeapMonth:"); - late final _sel_week1 = _registerName1("week"); - late final _sel_setWeek_1 = _registerName1("setWeek:"); - late final _sel_setValue_forComponent_1 = - _registerName1("setValue:forComponent:"); - void _objc_msgSend_707( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - int unit, - ) { - return __objc_msgSend_707( - obj, - sel, - value, - unit, - ); - } - - late final __objc_msgSend_707Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Long, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_707 = __objc_msgSend_707Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, int)>(); - - late final _sel_valueForComponent_1 = _registerName1("valueForComponent:"); - int _objc_msgSend_708( - ffi.Pointer obj, - ffi.Pointer sel, - int unit, - ) { - return __objc_msgSend_708( - obj, - sel, - unit, - ); - } - - late final __objc_msgSend_708Ptr = _lookup< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_708 = __objc_msgSend_708Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_isValidDate1 = _registerName1("isValidDate"); - late final _sel_isValidDateInCalendar_1 = - _registerName1("isValidDateInCalendar:"); - bool _objc_msgSend_709( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer calendar, - ) { - return __objc_msgSend_709( - obj, - sel, - calendar, - ); - } - - late final __objc_msgSend_709Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_709 = __objc_msgSend_709Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_dateFromComponents_1 = _registerName1("dateFromComponents:"); - ffi.Pointer _objc_msgSend_710( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer comps, - ) { - return __objc_msgSend_710( - obj, - sel, - comps, - ); - } - - late final __objc_msgSend_710Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_710 = __objc_msgSend_710Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_components_fromDate_1 = - _registerName1("components:fromDate:"); - ffi.Pointer _objc_msgSend_711( - ffi.Pointer obj, - ffi.Pointer sel, - int unitFlags, - ffi.Pointer date, - ) { - return __objc_msgSend_711( - obj, - sel, - unitFlags, - date, - ); - } - - late final __objc_msgSend_711Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_711 = __objc_msgSend_711Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer)>(); - - late final _sel_dateByAddingComponents_toDate_options_1 = - _registerName1("dateByAddingComponents:toDate:options:"); - ffi.Pointer _objc_msgSend_712( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer comps, - ffi.Pointer date, - int opts, - ) { - return __objc_msgSend_712( - obj, - sel, - comps, - date, - opts, - ); - } - - late final __objc_msgSend_712Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_712 = __objc_msgSend_712Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); - - late final _sel_components_fromDate_toDate_options_1 = - _registerName1("components:fromDate:toDate:options:"); - ffi.Pointer _objc_msgSend_713( - ffi.Pointer obj, - ffi.Pointer sel, - int unitFlags, - ffi.Pointer startingDate, - ffi.Pointer resultDate, - int opts, - ) { - return __objc_msgSend_713( - obj, - sel, - unitFlags, - startingDate, - resultDate, - opts, - ); - } - - late final __objc_msgSend_713Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_713 = __objc_msgSend_713Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - int)>(); - - late final _sel_getEra_year_month_day_fromDate_1 = - _registerName1("getEra:year:month:day:fromDate:"); - void _objc_msgSend_714( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer eraValuePointer, - ffi.Pointer yearValuePointer, - ffi.Pointer monthValuePointer, - ffi.Pointer dayValuePointer, - ffi.Pointer date, - ) { - return __objc_msgSend_714( - obj, - sel, - eraValuePointer, - yearValuePointer, - monthValuePointer, - dayValuePointer, - date, - ); - } - - late final __objc_msgSend_714Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_714 = __objc_msgSend_714Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_1 = - _registerName1("getEra:yearForWeekOfYear:weekOfYear:weekday:fromDate:"); - late final _sel_getHour_minute_second_nanosecond_fromDate_1 = - _registerName1("getHour:minute:second:nanosecond:fromDate:"); - late final _sel_component_fromDate_1 = _registerName1("component:fromDate:"); - int _objc_msgSend_715( - ffi.Pointer obj, - ffi.Pointer sel, - int unit, - ffi.Pointer date, - ) { - return __objc_msgSend_715( - obj, - sel, - unit, - date, - ); - } - - late final __objc_msgSend_715Ptr = _lookup< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_715 = __objc_msgSend_715Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer)>(); - - late final _sel_dateWithEra_year_month_day_hour_minute_second_nanosecond_1 = - _registerName1( - "dateWithEra:year:month:day:hour:minute:second:nanosecond:"); - ffi.Pointer _objc_msgSend_716( - ffi.Pointer obj, - ffi.Pointer sel, - int eraValue, - int yearValue, - int monthValue, - int dayValue, - int hourValue, - int minuteValue, - int secondValue, - int nanosecondValue, - ) { - return __objc_msgSend_716( - obj, - sel, - eraValue, - yearValue, - monthValue, - dayValue, - hourValue, - minuteValue, - secondValue, - nanosecondValue, - ); - } - - late final __objc_msgSend_716Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Long, - ffi.Long, - ffi.Long, - ffi.Long, - ffi.Long, - ffi.Long, - ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_716 = __objc_msgSend_716Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, int, int, int, int, int, int, int)>(); - - late final _sel_dateWithEra_yearForWeekOfYear_weekOfYear_weekday_hour_minute_second_nanosecond_1 = - _registerName1( - "dateWithEra:yearForWeekOfYear:weekOfYear:weekday:hour:minute:second:nanosecond:"); - late final _sel_startOfDayForDate_1 = _registerName1("startOfDayForDate:"); - late final _sel_componentsInTimeZone_fromDate_1 = - _registerName1("componentsInTimeZone:fromDate:"); - ffi.Pointer _objc_msgSend_717( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer timezone, - ffi.Pointer date, - ) { - return __objc_msgSend_717( - obj, - sel, - timezone, - date, - ); - } - - late final __objc_msgSend_717Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_717 = __objc_msgSend_717Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_compareDate_toDate_toUnitGranularity_1 = - _registerName1("compareDate:toDate:toUnitGranularity:"); - int _objc_msgSend_718( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer date1, - ffi.Pointer date2, - int unit, - ) { - return __objc_msgSend_718( - obj, - sel, - date1, - date2, - unit, - ); - } - - late final __objc_msgSend_718Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_718 = __objc_msgSend_718Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_isDate_equalToDate_toUnitGranularity_1 = - _registerName1("isDate:equalToDate:toUnitGranularity:"); - bool _objc_msgSend_719( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer date1, - ffi.Pointer date2, - int unit, - ) { - return __objc_msgSend_719( - obj, - sel, - date1, - date2, - unit, - ); - } - - late final __objc_msgSend_719Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_719 = __objc_msgSend_719Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_isDate_inSameDayAsDate_1 = - _registerName1("isDate:inSameDayAsDate:"); - bool _objc_msgSend_720( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer date1, - ffi.Pointer date2, - ) { - return __objc_msgSend_720( - obj, - sel, - date1, - date2, - ); - } - - late final __objc_msgSend_720Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_720 = __objc_msgSend_720Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_isDateInToday_1 = _registerName1("isDateInToday:"); - late final _sel_isDateInYesterday_1 = _registerName1("isDateInYesterday:"); - late final _sel_isDateInTomorrow_1 = _registerName1("isDateInTomorrow:"); - late final _sel_isDateInWeekend_1 = _registerName1("isDateInWeekend:"); - late final _sel_rangeOfWeekendStartDate_interval_containingDate_1 = - _registerName1("rangeOfWeekendStartDate:interval:containingDate:"); - bool _objc_msgSend_721( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> datep, - ffi.Pointer tip, - ffi.Pointer date, - ) { - return __objc_msgSend_721( - obj, - sel, - datep, - tip, - date, - ); - } - - late final __objc_msgSend_721Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_721 = __objc_msgSend_721Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_nextWeekendStartDate_interval_options_afterDate_1 = - _registerName1("nextWeekendStartDate:interval:options:afterDate:"); - bool _objc_msgSend_722( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> datep, - ffi.Pointer tip, - int options, - ffi.Pointer date, - ) { - return __objc_msgSend_722( - obj, - sel, - datep, - tip, - options, - date, - ); - } - - late final __objc_msgSend_722Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Int32, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_722 = __objc_msgSend_722Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - int, - ffi.Pointer)>(); - - late final _sel_components_fromDateComponents_toDateComponents_options_1 = - _registerName1("components:fromDateComponents:toDateComponents:options:"); - ffi.Pointer _objc_msgSend_723( - ffi.Pointer obj, - ffi.Pointer sel, - int unitFlags, - ffi.Pointer startingDateComp, - ffi.Pointer resultDateComp, - int options, - ) { - return __objc_msgSend_723( - obj, - sel, - unitFlags, - startingDateComp, - resultDateComp, - options, - ); - } - - late final __objc_msgSend_723Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_723 = __objc_msgSend_723Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - int)>(); - - late final _sel_dateByAddingUnit_value_toDate_options_1 = - _registerName1("dateByAddingUnit:value:toDate:options:"); - ffi.Pointer _objc_msgSend_724( - ffi.Pointer obj, - ffi.Pointer sel, - int unit, - int value, - ffi.Pointer date, - int options, - ) { - return __objc_msgSend_724( - obj, - sel, - unit, - value, - date, - options, - ); - } - - late final __objc_msgSend_724Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Long, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_724 = __objc_msgSend_724Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, int, ffi.Pointer, int)>(); - - late final _sel_enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_1 = - _registerName1( - "enumerateDatesStartingAfterDate:matchingComponents:options:usingBlock:"); - void _objc_msgSend_725( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer start, - ffi.Pointer comps, - int opts, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_725( - obj, - sel, - start, - comps, - opts, - block, - ); - } - - late final __objc_msgSend_725Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_725 = __objc_msgSend_725Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_nextDateAfterDate_matchingComponents_options_1 = - _registerName1("nextDateAfterDate:matchingComponents:options:"); - ffi.Pointer _objc_msgSend_726( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer date, - ffi.Pointer comps, - int options, - ) { - return __objc_msgSend_726( - obj, - sel, - date, - comps, - options, - ); - } - - late final __objc_msgSend_726Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_726 = __objc_msgSend_726Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); - - late final _sel_nextDateAfterDate_matchingUnit_value_options_1 = - _registerName1("nextDateAfterDate:matchingUnit:value:options:"); - ffi.Pointer _objc_msgSend_727( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer date, - int unit, - int value, - int options, - ) { - return __objc_msgSend_727( - obj, - sel, - date, - unit, - value, - options, - ); - } - - late final __objc_msgSend_727Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Long, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_727 = __objc_msgSend_727Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, int, int)>(); - - late final _sel_nextDateAfterDate_matchingHour_minute_second_options_1 = - _registerName1("nextDateAfterDate:matchingHour:minute:second:options:"); - ffi.Pointer _objc_msgSend_728( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer date, - int hourValue, - int minuteValue, - int secondValue, - int options, - ) { - return __objc_msgSend_728( - obj, - sel, - date, - hourValue, - minuteValue, - secondValue, - options, - ); - } - - late final __objc_msgSend_728Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Long, - ffi.Long, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_728 = __objc_msgSend_728Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, int, int, int)>(); - - late final _sel_dateBySettingUnit_value_ofDate_options_1 = - _registerName1("dateBySettingUnit:value:ofDate:options:"); - late final _sel_dateBySettingHour_minute_second_ofDate_options_1 = - _registerName1("dateBySettingHour:minute:second:ofDate:options:"); - ffi.Pointer _objc_msgSend_729( - ffi.Pointer obj, - ffi.Pointer sel, - int h, - int m, - int s, - ffi.Pointer date, - int opts, - ) { - return __objc_msgSend_729( - obj, - sel, - h, - m, - s, - date, - opts, - ); - } - - late final __objc_msgSend_729Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Long, - ffi.Long, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_729 = __objc_msgSend_729Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, int, int, ffi.Pointer, int)>(); - - late final _sel_date_matchesComponents_1 = - _registerName1("date:matchesComponents:"); - bool _objc_msgSend_730( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer date, - ffi.Pointer components, - ) { - return __objc_msgSend_730( - obj, - sel, - date, - components, - ); - } - - late final __objc_msgSend_730Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_730 = __objc_msgSend_730Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_isLenient1 = _registerName1("isLenient"); - late final _sel_setLenient_1 = _registerName1("setLenient:"); - late final _sel_twoDigitStartDate1 = _registerName1("twoDigitStartDate"); - late final _sel_setTwoDigitStartDate_1 = - _registerName1("setTwoDigitStartDate:"); - late final _sel_defaultDate1 = _registerName1("defaultDate"); - late final _sel_setDefaultDate_1 = _registerName1("setDefaultDate:"); - late final _sel_setEraSymbols_1 = _registerName1("setEraSymbols:"); - void _objc_msgSend_731( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_731( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_731Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_731 = __objc_msgSend_731Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_setMonthSymbols_1 = _registerName1("setMonthSymbols:"); - late final _sel_setShortMonthSymbols_1 = - _registerName1("setShortMonthSymbols:"); - late final _sel_setWeekdaySymbols_1 = _registerName1("setWeekdaySymbols:"); - late final _sel_setShortWeekdaySymbols_1 = - _registerName1("setShortWeekdaySymbols:"); - late final _sel_setAMSymbol_1 = _registerName1("setAMSymbol:"); - late final _sel_setPMSymbol_1 = _registerName1("setPMSymbol:"); - late final _sel_setLongEraSymbols_1 = _registerName1("setLongEraSymbols:"); - late final _sel_setVeryShortMonthSymbols_1 = - _registerName1("setVeryShortMonthSymbols:"); - late final _sel_setStandaloneMonthSymbols_1 = - _registerName1("setStandaloneMonthSymbols:"); - late final _sel_setShortStandaloneMonthSymbols_1 = - _registerName1("setShortStandaloneMonthSymbols:"); - late final _sel_setVeryShortStandaloneMonthSymbols_1 = - _registerName1("setVeryShortStandaloneMonthSymbols:"); - late final _sel_setVeryShortWeekdaySymbols_1 = - _registerName1("setVeryShortWeekdaySymbols:"); - late final _sel_setStandaloneWeekdaySymbols_1 = - _registerName1("setStandaloneWeekdaySymbols:"); - late final _sel_setShortStandaloneWeekdaySymbols_1 = - _registerName1("setShortStandaloneWeekdaySymbols:"); - late final _sel_setVeryShortStandaloneWeekdaySymbols_1 = - _registerName1("setVeryShortStandaloneWeekdaySymbols:"); - late final _sel_setQuarterSymbols_1 = _registerName1("setQuarterSymbols:"); - late final _sel_setShortQuarterSymbols_1 = - _registerName1("setShortQuarterSymbols:"); - late final _sel_setStandaloneQuarterSymbols_1 = - _registerName1("setStandaloneQuarterSymbols:"); - late final _sel_setShortStandaloneQuarterSymbols_1 = - _registerName1("setShortStandaloneQuarterSymbols:"); - late final _sel_gregorianStartDate1 = _registerName1("gregorianStartDate"); - late final _sel_setGregorianStartDate_1 = - _registerName1("setGregorianStartDate:"); - late final _sel_doesRelativeDateFormatting1 = - _registerName1("doesRelativeDateFormatting"); - late final _sel_setDoesRelativeDateFormatting_1 = - _registerName1("setDoesRelativeDateFormatting:"); - late final _sel_initWithDateFormat_allowNaturalLanguage_1 = - _registerName1("initWithDateFormat:allowNaturalLanguage:"); - late final _sel_allowsNaturalLanguage1 = - _registerName1("allowsNaturalLanguage"); - late final _class_NSNumberFormatter1 = _getClass1("NSNumberFormatter"); - late final _sel_stringFromNumber_1 = _registerName1("stringFromNumber:"); - ffi.Pointer _objc_msgSend_732( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer number, - ) { - return __objc_msgSend_732( - obj, - sel, - number, - ); - } - - late final __objc_msgSend_732Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_732 = __objc_msgSend_732Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_numberFromString_1 = _registerName1("numberFromString:"); - ffi.Pointer _objc_msgSend_733( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer string, - ) { - return __objc_msgSend_733( - obj, - sel, - string, - ); - } - - late final __objc_msgSend_733Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_733 = __objc_msgSend_733Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_localizedStringFromNumber_numberStyle_1 = - _registerName1("localizedStringFromNumber:numberStyle:"); - ffi.Pointer _objc_msgSend_734( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer num, - int nstyle, - ) { - return __objc_msgSend_734( - obj, - sel, - num, - nstyle, - ); - } - - late final __objc_msgSend_734Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_734 = __objc_msgSend_734Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); - - int _objc_msgSend_735( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_735( - obj, - sel, - ); - } - - late final __objc_msgSend_735Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_735 = __objc_msgSend_735Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - void _objc_msgSend_736( - ffi.Pointer obj, - ffi.Pointer sel, - int behavior, - ) { - return __objc_msgSend_736( - obj, - sel, - behavior, - ); - } - - late final __objc_msgSend_736Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_736 = __objc_msgSend_736Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_numberStyle1 = _registerName1("numberStyle"); - int _objc_msgSend_737( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_737( - obj, - sel, - ); - } - - late final __objc_msgSend_737Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_737 = __objc_msgSend_737Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setNumberStyle_1 = _registerName1("setNumberStyle:"); - void _objc_msgSend_738( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_738( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_738Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_738 = __objc_msgSend_738Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_generatesDecimalNumbers1 = - _registerName1("generatesDecimalNumbers"); - late final _sel_setGeneratesDecimalNumbers_1 = - _registerName1("setGeneratesDecimalNumbers:"); - void _objc_msgSend_739( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_739( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_739Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_739 = __objc_msgSend_739Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_negativeFormat1 = _registerName1("negativeFormat"); - late final _sel_setNegativeFormat_1 = _registerName1("setNegativeFormat:"); - late final _sel_textAttributesForNegativeValues1 = - _registerName1("textAttributesForNegativeValues"); - late final _sel_setTextAttributesForNegativeValues_1 = - _registerName1("setTextAttributesForNegativeValues:"); - late final _sel_positiveFormat1 = _registerName1("positiveFormat"); - late final _sel_setPositiveFormat_1 = _registerName1("setPositiveFormat:"); - late final _sel_textAttributesForPositiveValues1 = - _registerName1("textAttributesForPositiveValues"); - late final _sel_setTextAttributesForPositiveValues_1 = - _registerName1("setTextAttributesForPositiveValues:"); - late final _sel_allowsFloats1 = _registerName1("allowsFloats"); - late final _sel_setAllowsFloats_1 = _registerName1("setAllowsFloats:"); - late final _sel_setDecimalSeparator_1 = - _registerName1("setDecimalSeparator:"); - late final _sel_alwaysShowsDecimalSeparator1 = - _registerName1("alwaysShowsDecimalSeparator"); - late final _sel_setAlwaysShowsDecimalSeparator_1 = - _registerName1("setAlwaysShowsDecimalSeparator:"); - late final _sel_currencyDecimalSeparator1 = - _registerName1("currencyDecimalSeparator"); - late final _sel_setCurrencyDecimalSeparator_1 = - _registerName1("setCurrencyDecimalSeparator:"); - late final _sel_usesGroupingSeparator1 = - _registerName1("usesGroupingSeparator"); - late final _sel_setUsesGroupingSeparator_1 = - _registerName1("setUsesGroupingSeparator:"); - late final _sel_setGroupingSeparator_1 = - _registerName1("setGroupingSeparator:"); - late final _sel_zeroSymbol1 = _registerName1("zeroSymbol"); - late final _sel_setZeroSymbol_1 = _registerName1("setZeroSymbol:"); - late final _sel_textAttributesForZero1 = - _registerName1("textAttributesForZero"); - late final _sel_setTextAttributesForZero_1 = - _registerName1("setTextAttributesForZero:"); - late final _sel_nilSymbol1 = _registerName1("nilSymbol"); - late final _sel_setNilSymbol_1 = _registerName1("setNilSymbol:"); - late final _sel_textAttributesForNil1 = - _registerName1("textAttributesForNil"); - late final _sel_setTextAttributesForNil_1 = - _registerName1("setTextAttributesForNil:"); - late final _sel_notANumberSymbol1 = _registerName1("notANumberSymbol"); - late final _sel_setNotANumberSymbol_1 = - _registerName1("setNotANumberSymbol:"); - late final _sel_textAttributesForNotANumber1 = - _registerName1("textAttributesForNotANumber"); - late final _sel_setTextAttributesForNotANumber_1 = - _registerName1("setTextAttributesForNotANumber:"); - late final _sel_positiveInfinitySymbol1 = - _registerName1("positiveInfinitySymbol"); - late final _sel_setPositiveInfinitySymbol_1 = - _registerName1("setPositiveInfinitySymbol:"); - late final _sel_textAttributesForPositiveInfinity1 = - _registerName1("textAttributesForPositiveInfinity"); - late final _sel_setTextAttributesForPositiveInfinity_1 = - _registerName1("setTextAttributesForPositiveInfinity:"); - late final _sel_negativeInfinitySymbol1 = - _registerName1("negativeInfinitySymbol"); - late final _sel_setNegativeInfinitySymbol_1 = - _registerName1("setNegativeInfinitySymbol:"); - late final _sel_textAttributesForNegativeInfinity1 = - _registerName1("textAttributesForNegativeInfinity"); - late final _sel_setTextAttributesForNegativeInfinity_1 = - _registerName1("setTextAttributesForNegativeInfinity:"); - late final _sel_positivePrefix1 = _registerName1("positivePrefix"); - late final _sel_setPositivePrefix_1 = _registerName1("setPositivePrefix:"); - late final _sel_positiveSuffix1 = _registerName1("positiveSuffix"); - late final _sel_setPositiveSuffix_1 = _registerName1("setPositiveSuffix:"); - late final _sel_negativePrefix1 = _registerName1("negativePrefix"); - late final _sel_setNegativePrefix_1 = _registerName1("setNegativePrefix:"); - late final _sel_negativeSuffix1 = _registerName1("negativeSuffix"); - late final _sel_setNegativeSuffix_1 = _registerName1("setNegativeSuffix:"); - late final _sel_setCurrencyCode_1 = _registerName1("setCurrencyCode:"); - late final _sel_setCurrencySymbol_1 = _registerName1("setCurrencySymbol:"); - late final _sel_internationalCurrencySymbol1 = - _registerName1("internationalCurrencySymbol"); - late final _sel_setInternationalCurrencySymbol_1 = - _registerName1("setInternationalCurrencySymbol:"); - late final _sel_percentSymbol1 = _registerName1("percentSymbol"); - late final _sel_setPercentSymbol_1 = _registerName1("setPercentSymbol:"); - late final _sel_perMillSymbol1 = _registerName1("perMillSymbol"); - late final _sel_setPerMillSymbol_1 = _registerName1("setPerMillSymbol:"); - late final _sel_minusSign1 = _registerName1("minusSign"); - late final _sel_setMinusSign_1 = _registerName1("setMinusSign:"); - late final _sel_plusSign1 = _registerName1("plusSign"); - late final _sel_setPlusSign_1 = _registerName1("setPlusSign:"); - late final _sel_exponentSymbol1 = _registerName1("exponentSymbol"); - late final _sel_setExponentSymbol_1 = _registerName1("setExponentSymbol:"); - late final _sel_groupingSize1 = _registerName1("groupingSize"); - late final _sel_setGroupingSize_1 = _registerName1("setGroupingSize:"); - late final _sel_secondaryGroupingSize1 = - _registerName1("secondaryGroupingSize"); - late final _sel_setSecondaryGroupingSize_1 = - _registerName1("setSecondaryGroupingSize:"); - late final _sel_multiplier1 = _registerName1("multiplier"); - late final _sel_setMultiplier_1 = _registerName1("setMultiplier:"); - late final _sel_formatWidth1 = _registerName1("formatWidth"); - late final _sel_setFormatWidth_1 = _registerName1("setFormatWidth:"); - late final _sel_paddingCharacter1 = _registerName1("paddingCharacter"); - late final _sel_setPaddingCharacter_1 = - _registerName1("setPaddingCharacter:"); - late final _sel_paddingPosition1 = _registerName1("paddingPosition"); - int _objc_msgSend_740( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_740( - obj, - sel, - ); - } - - late final __objc_msgSend_740Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_740 = __objc_msgSend_740Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setPaddingPosition_1 = _registerName1("setPaddingPosition:"); - void _objc_msgSend_741( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_741( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_741Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_741 = __objc_msgSend_741Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_roundingMode1 = _registerName1("roundingMode"); - int _objc_msgSend_742( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_742( - obj, - sel, - ); - } - - late final __objc_msgSend_742Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_742 = __objc_msgSend_742Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setRoundingMode_1 = _registerName1("setRoundingMode:"); - void _objc_msgSend_743( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_743( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_743Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_743 = __objc_msgSend_743Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_roundingIncrement1 = _registerName1("roundingIncrement"); - late final _sel_setRoundingIncrement_1 = - _registerName1("setRoundingIncrement:"); - late final _sel_minimumIntegerDigits1 = - _registerName1("minimumIntegerDigits"); - late final _sel_setMinimumIntegerDigits_1 = - _registerName1("setMinimumIntegerDigits:"); - late final _sel_maximumIntegerDigits1 = - _registerName1("maximumIntegerDigits"); - late final _sel_setMaximumIntegerDigits_1 = - _registerName1("setMaximumIntegerDigits:"); - late final _sel_minimumFractionDigits1 = - _registerName1("minimumFractionDigits"); - late final _sel_setMinimumFractionDigits_1 = - _registerName1("setMinimumFractionDigits:"); - late final _sel_maximumFractionDigits1 = - _registerName1("maximumFractionDigits"); - late final _sel_setMaximumFractionDigits_1 = - _registerName1("setMaximumFractionDigits:"); - late final _sel_minimum1 = _registerName1("minimum"); - late final _sel_setMinimum_1 = _registerName1("setMinimum:"); - late final _sel_maximum1 = _registerName1("maximum"); - late final _sel_setMaximum_1 = _registerName1("setMaximum:"); - late final _sel_currencyGroupingSeparator1 = - _registerName1("currencyGroupingSeparator"); - late final _sel_setCurrencyGroupingSeparator_1 = - _registerName1("setCurrencyGroupingSeparator:"); - late final _sel_usesSignificantDigits1 = - _registerName1("usesSignificantDigits"); - late final _sel_setUsesSignificantDigits_1 = - _registerName1("setUsesSignificantDigits:"); - late final _sel_minimumSignificantDigits1 = - _registerName1("minimumSignificantDigits"); - late final _sel_setMinimumSignificantDigits_1 = - _registerName1("setMinimumSignificantDigits:"); - late final _sel_maximumSignificantDigits1 = - _registerName1("maximumSignificantDigits"); - late final _sel_setMaximumSignificantDigits_1 = - _registerName1("setMaximumSignificantDigits:"); - late final _sel_isPartialStringValidationEnabled1 = - _registerName1("isPartialStringValidationEnabled"); - late final _sel_setPartialStringValidationEnabled_1 = - _registerName1("setPartialStringValidationEnabled:"); - late final _sel_hasThousandSeparators1 = - _registerName1("hasThousandSeparators"); - late final _sel_setHasThousandSeparators_1 = - _registerName1("setHasThousandSeparators:"); - late final _sel_thousandSeparator1 = _registerName1("thousandSeparator"); - late final _sel_setThousandSeparator_1 = - _registerName1("setThousandSeparator:"); - late final _sel_localizesFormat1 = _registerName1("localizesFormat"); - late final _sel_setLocalizesFormat_1 = _registerName1("setLocalizesFormat:"); - late final _sel_format1 = _registerName1("format"); - late final _sel_setFormat_1 = _registerName1("setFormat:"); - late final _sel_attributedStringForZero1 = - _registerName1("attributedStringForZero"); - late final _sel_setAttributedStringForZero_1 = - _registerName1("setAttributedStringForZero:"); - void _objc_msgSend_744( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_744( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_744Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_744 = __objc_msgSend_744Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_attributedStringForNil1 = - _registerName1("attributedStringForNil"); - late final _sel_setAttributedStringForNil_1 = - _registerName1("setAttributedStringForNil:"); - late final _sel_attributedStringForNotANumber1 = - _registerName1("attributedStringForNotANumber"); - late final _sel_setAttributedStringForNotANumber_1 = - _registerName1("setAttributedStringForNotANumber:"); - late final _class_NSDecimalNumberHandler1 = - _getClass1("NSDecimalNumberHandler"); - late final _sel_defaultDecimalNumberHandler1 = - _registerName1("defaultDecimalNumberHandler"); - ffi.Pointer _objc_msgSend_745( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_745( - obj, - sel, - ); - } - - late final __objc_msgSend_745Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_745 = __objc_msgSend_745Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_initWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1 = - _registerName1( - "initWithRoundingMode:scale:raiseOnExactness:raiseOnOverflow:raiseOnUnderflow:raiseOnDivideByZero:"); - instancetype _objc_msgSend_746( - ffi.Pointer obj, - ffi.Pointer sel, - int roundingMode, - int scale, - bool exact, - bool overflow, - bool underflow, - bool divideByZero, - ) { - return __objc_msgSend_746( - obj, - sel, - roundingMode, - scale, - exact, - overflow, - underflow, - divideByZero, - ); - } - - late final __objc_msgSend_746Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Short, - ffi.Bool, - ffi.Bool, - ffi.Bool, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_746 = __objc_msgSend_746Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, int, - int, bool, bool, bool, bool)>(); - - late final _sel_decimalNumberHandlerWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1 = - _registerName1( - "decimalNumberHandlerWithRoundingMode:scale:raiseOnExactness:raiseOnOverflow:raiseOnUnderflow:raiseOnDivideByZero:"); - late final _sel_roundingBehavior1 = _registerName1("roundingBehavior"); - late final _sel_setRoundingBehavior_1 = - _registerName1("setRoundingBehavior:"); - void _objc_msgSend_747( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_747( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_747Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_747 = __objc_msgSend_747Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _class_NSScanner1 = _getClass1("NSScanner"); - late final _sel_scanLocation1 = _registerName1("scanLocation"); - late final _sel_setScanLocation_1 = _registerName1("setScanLocation:"); - late final _sel_charactersToBeSkipped1 = - _registerName1("charactersToBeSkipped"); - late final _sel_setCharactersToBeSkipped_1 = - _registerName1("setCharactersToBeSkipped:"); - void _objc_msgSend_748( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_748( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_748Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_748 = __objc_msgSend_748Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_caseSensitive1 = _registerName1("caseSensitive"); - late final _sel_setCaseSensitive_1 = _registerName1("setCaseSensitive:"); - late final _sel_scanInt_1 = _registerName1("scanInt:"); - bool _objc_msgSend_749( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer result, - ) { - return __objc_msgSend_749( - obj, - sel, - result, - ); - } - - late final __objc_msgSend_749Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_749 = __objc_msgSend_749Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_scanInteger_1 = _registerName1("scanInteger:"); - bool _objc_msgSend_750( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer result, - ) { - return __objc_msgSend_750( - obj, - sel, - result, - ); - } - - late final __objc_msgSend_750Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_750 = __objc_msgSend_750Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_scanLongLong_1 = _registerName1("scanLongLong:"); - bool _objc_msgSend_751( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer result, - ) { - return __objc_msgSend_751( - obj, - sel, - result, - ); - } - - late final __objc_msgSend_751Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_751 = __objc_msgSend_751Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_scanUnsignedLongLong_1 = - _registerName1("scanUnsignedLongLong:"); - bool _objc_msgSend_752( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer result, - ) { - return __objc_msgSend_752( - obj, - sel, - result, - ); - } - - late final __objc_msgSend_752Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_752 = __objc_msgSend_752Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_scanFloat_1 = _registerName1("scanFloat:"); - bool _objc_msgSend_753( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer result, - ) { - return __objc_msgSend_753( - obj, - sel, - result, - ); - } - - late final __objc_msgSend_753Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_753 = __objc_msgSend_753Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_scanDouble_1 = _registerName1("scanDouble:"); - bool _objc_msgSend_754( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer result, - ) { - return __objc_msgSend_754( - obj, - sel, - result, - ); - } - - late final __objc_msgSend_754Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_754 = __objc_msgSend_754Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_scanHexInt_1 = _registerName1("scanHexInt:"); - bool _objc_msgSend_755( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer result, - ) { - return __objc_msgSend_755( - obj, - sel, - result, - ); - } - - late final __objc_msgSend_755Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_755 = __objc_msgSend_755Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_scanHexLongLong_1 = _registerName1("scanHexLongLong:"); - late final _sel_scanHexFloat_1 = _registerName1("scanHexFloat:"); - late final _sel_scanHexDouble_1 = _registerName1("scanHexDouble:"); - late final _sel_scanString_intoString_1 = - _registerName1("scanString:intoString:"); - bool _objc_msgSend_756( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer string, - ffi.Pointer> result, - ) { - return __objc_msgSend_756( - obj, - sel, - string, - result, - ); - } - - late final __objc_msgSend_756Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_756 = __objc_msgSend_756Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer>)>(); - - late final _sel_scanCharactersFromSet_intoString_1 = - _registerName1("scanCharactersFromSet:intoString:"); - bool _objc_msgSend_757( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer set1, - ffi.Pointer> result, - ) { - return __objc_msgSend_757( - obj, - sel, - set1, - result, - ); - } - - late final __objc_msgSend_757Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_757 = __objc_msgSend_757Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer>)>(); - - late final _sel_scanUpToString_intoString_1 = - _registerName1("scanUpToString:intoString:"); - late final _sel_scanUpToCharactersFromSet_intoString_1 = - _registerName1("scanUpToCharactersFromSet:intoString:"); - late final _sel_isAtEnd1 = _registerName1("isAtEnd"); - late final _sel_scannerWithString_1 = _registerName1("scannerWithString:"); - late final _sel_localizedScannerWithString_1 = - _registerName1("localizedScannerWithString:"); - late final _sel_scanDecimal_1 = _registerName1("scanDecimal:"); - bool _objc_msgSend_758( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer dcm, - ) { - return __objc_msgSend_758( - obj, - sel, - dcm, - ); - } - - late final __objc_msgSend_758Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_758 = __objc_msgSend_758Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _class_NSException1 = _getClass1("NSException"); - late final _sel_exceptionWithName_reason_userInfo_1 = - _registerName1("exceptionWithName:reason:userInfo:"); - ffi.Pointer _objc_msgSend_759( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer reason, - ffi.Pointer userInfo, - ) { - return __objc_msgSend_759( - obj, - sel, - name, - reason, - userInfo, - ); - } - - late final __objc_msgSend_759Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_759 = __objc_msgSend_759Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_initWithName_reason_userInfo_1 = - _registerName1("initWithName:reason:userInfo:"); - late final _sel_reason1 = _registerName1("reason"); - late final _sel_raise1 = _registerName1("raise"); - late final _sel_raise_format_1 = _registerName1("raise:format:"); - late final _sel_raise_format_arguments_1 = - _registerName1("raise:format:arguments:"); - void _objc_msgSend_760( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer format, - ffi.Pointer<__va_list_tag> argList, - ) { - return __objc_msgSend_760( - obj, - sel, - name, - format, - argList, - ); - } - - late final __objc_msgSend_760Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); - late final __objc_msgSend_760 = __objc_msgSend_760Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__va_list_tag>)>(); - - late final _class_NSFileHandle1 = _getClass1("NSFileHandle"); - late final _sel_availableData1 = _registerName1("availableData"); - late final _sel_initWithFileDescriptor_closeOnDealloc_1 = - _registerName1("initWithFileDescriptor:closeOnDealloc:"); - instancetype _objc_msgSend_761( - ffi.Pointer obj, - ffi.Pointer sel, - int fd, - bool closeopt, - ) { - return __objc_msgSend_761( - obj, - sel, - fd, - closeopt, - ); - } - - late final __objc_msgSend_761Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Int, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_761 = __objc_msgSend_761Ptr.asFunction< - instancetype Function( - ffi.Pointer, ffi.Pointer, int, bool)>(); - - late final _sel_readDataToEndOfFileAndReturnError_1 = - _registerName1("readDataToEndOfFileAndReturnError:"); - ffi.Pointer _objc_msgSend_762( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> error, - ) { - return __objc_msgSend_762( - obj, - sel, - error, - ); - } - - late final __objc_msgSend_762Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_762 = __objc_msgSend_762Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer>)>(); - - late final _sel_readDataUpToLength_error_1 = - _registerName1("readDataUpToLength:error:"); - ffi.Pointer _objc_msgSend_763( - ffi.Pointer obj, - ffi.Pointer sel, - int length, - ffi.Pointer> error, - ) { - return __objc_msgSend_763( - obj, - sel, - length, - error, - ); - } - - late final __objc_msgSend_763Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_763 = __objc_msgSend_763Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer>)>(); - - late final _sel_writeData_error_1 = _registerName1("writeData:error:"); - bool _objc_msgSend_764( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer data, - ffi.Pointer> error, - ) { - return __objc_msgSend_764( - obj, - sel, - data, - error, - ); - } - - late final __objc_msgSend_764Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_764 = __objc_msgSend_764Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer>)>(); - - late final _sel_getOffset_error_1 = _registerName1("getOffset:error:"); - bool _objc_msgSend_765( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer offsetInFile, - ffi.Pointer> error, - ) { - return __objc_msgSend_765( - obj, - sel, - offsetInFile, - error, - ); - } - - late final __objc_msgSend_765Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_765 = __objc_msgSend_765Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_seekToEndReturningOffset_error_1 = - _registerName1("seekToEndReturningOffset:error:"); - late final _sel_seekToOffset_error_1 = _registerName1("seekToOffset:error:"); - bool _objc_msgSend_766( - ffi.Pointer obj, - ffi.Pointer sel, - int offset, - ffi.Pointer> error, - ) { - return __objc_msgSend_766( - obj, - sel, - offset, - error, - ); - } - - late final __objc_msgSend_766Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLongLong, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_766 = __objc_msgSend_766Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer>)>(); - - late final _sel_truncateAtOffset_error_1 = - _registerName1("truncateAtOffset:error:"); - late final _sel_synchronizeAndReturnError_1 = - _registerName1("synchronizeAndReturnError:"); - late final _sel_closeAndReturnError_1 = - _registerName1("closeAndReturnError:"); - late final _sel_fileHandleWithStandardInput1 = - _registerName1("fileHandleWithStandardInput"); - ffi.Pointer _objc_msgSend_767( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_767( - obj, - sel, - ); - } - - late final __objc_msgSend_767Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_767 = __objc_msgSend_767Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_fileHandleWithStandardOutput1 = - _registerName1("fileHandleWithStandardOutput"); - late final _sel_fileHandleWithStandardError1 = - _registerName1("fileHandleWithStandardError"); - late final _sel_fileHandleWithNullDevice1 = - _registerName1("fileHandleWithNullDevice"); - late final _sel_fileHandleForReadingAtPath_1 = - _registerName1("fileHandleForReadingAtPath:"); - late final _sel_fileHandleForWritingAtPath_1 = - _registerName1("fileHandleForWritingAtPath:"); - late final _sel_fileHandleForUpdatingAtPath_1 = - _registerName1("fileHandleForUpdatingAtPath:"); - late final _sel_fileHandleForReadingFromURL_error_1 = - _registerName1("fileHandleForReadingFromURL:error:"); - instancetype _objc_msgSend_768( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer> error, - ) { - return __objc_msgSend_768( - obj, - sel, - url, - error, - ); - } - - late final __objc_msgSend_768Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_768 = __objc_msgSend_768Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer>)>(); - - late final _sel_fileHandleForWritingToURL_error_1 = - _registerName1("fileHandleForWritingToURL:error:"); - late final _sel_fileHandleForUpdatingURL_error_1 = - _registerName1("fileHandleForUpdatingURL:error:"); - late final _sel_readInBackgroundAndNotifyForModes_1 = - _registerName1("readInBackgroundAndNotifyForModes:"); - late final _sel_readInBackgroundAndNotify1 = - _registerName1("readInBackgroundAndNotify"); - late final _sel_readToEndOfFileInBackgroundAndNotifyForModes_1 = - _registerName1("readToEndOfFileInBackgroundAndNotifyForModes:"); - late final _sel_readToEndOfFileInBackgroundAndNotify1 = - _registerName1("readToEndOfFileInBackgroundAndNotify"); - late final _sel_acceptConnectionInBackgroundAndNotifyForModes_1 = - _registerName1("acceptConnectionInBackgroundAndNotifyForModes:"); - late final _sel_acceptConnectionInBackgroundAndNotify1 = - _registerName1("acceptConnectionInBackgroundAndNotify"); - late final _sel_waitForDataInBackgroundAndNotifyForModes_1 = - _registerName1("waitForDataInBackgroundAndNotifyForModes:"); - late final _sel_waitForDataInBackgroundAndNotify1 = - _registerName1("waitForDataInBackgroundAndNotify"); - late final _sel_readabilityHandler1 = _registerName1("readabilityHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_769( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_769( - obj, - sel, - ); - } - - late final __objc_msgSend_769Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_769 = __objc_msgSend_769Ptr.asFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setReadabilityHandler_1 = - _registerName1("setReadabilityHandler:"); - void _objc_msgSend_770( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> value, - ) { - return __objc_msgSend_770( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_770Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_770 = __objc_msgSend_770Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_writeabilityHandler1 = _registerName1("writeabilityHandler"); - late final _sel_setWriteabilityHandler_1 = - _registerName1("setWriteabilityHandler:"); - late final _sel_initWithFileDescriptor_1 = - _registerName1("initWithFileDescriptor:"); - instancetype _objc_msgSend_771( - ffi.Pointer obj, - ffi.Pointer sel, - int fd, - ) { - return __objc_msgSend_771( - obj, - sel, - fd, - ); - } - - late final __objc_msgSend_771Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_771 = __objc_msgSend_771Ptr.asFunction< - instancetype Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_fileDescriptor1 = _registerName1("fileDescriptor"); - late final _sel_readDataToEndOfFile1 = _registerName1("readDataToEndOfFile"); - late final _sel_readDataOfLength_1 = _registerName1("readDataOfLength:"); - late final _sel_offsetInFile1 = _registerName1("offsetInFile"); - late final _sel_seekToEndOfFile1 = _registerName1("seekToEndOfFile"); - late final _sel_seekToFileOffset_1 = _registerName1("seekToFileOffset:"); - void _objc_msgSend_772( - ffi.Pointer obj, - ffi.Pointer sel, - int offset, - ) { - return __objc_msgSend_772( - obj, - sel, - offset, - ); - } - - late final __objc_msgSend_772Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedLongLong)>>('objc_msgSend'); - late final __objc_msgSend_772 = __objc_msgSend_772Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_truncateFileAtOffset_1 = - _registerName1("truncateFileAtOffset:"); - late final _sel_synchronizeFile1 = _registerName1("synchronizeFile"); - late final _sel_closeFile1 = _registerName1("closeFile"); - late final _class_NSHTTPCookieStorage1 = _getClass1("NSHTTPCookieStorage"); - late final _sel_sharedHTTPCookieStorage1 = - _registerName1("sharedHTTPCookieStorage"); - ffi.Pointer _objc_msgSend_773( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_773( - obj, - sel, - ); - } - - late final __objc_msgSend_773Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_773 = __objc_msgSend_773Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_sharedCookieStorageForGroupContainerIdentifier_1 = - _registerName1("sharedCookieStorageForGroupContainerIdentifier:"); - ffi.Pointer _objc_msgSend_774( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer identifier, - ) { - return __objc_msgSend_774( - obj, - sel, - identifier, - ); - } - - late final __objc_msgSend_774Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_774 = __objc_msgSend_774Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_cookies1 = _registerName1("cookies"); - late final _class_NSHTTPCookie1 = _getClass1("NSHTTPCookie"); - late final _sel_initWithProperties_1 = _registerName1("initWithProperties:"); - late final _sel_cookieWithProperties_1 = - _registerName1("cookieWithProperties:"); - ffi.Pointer _objc_msgSend_775( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer properties, - ) { - return __objc_msgSend_775( - obj, - sel, - properties, - ); - } - - late final __objc_msgSend_775Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_775 = __objc_msgSend_775Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_requestHeaderFieldsWithCookies_1 = - _registerName1("requestHeaderFieldsWithCookies:"); - late final _sel_cookiesWithResponseHeaderFields_forURL_1 = - _registerName1("cookiesWithResponseHeaderFields:forURL:"); - ffi.Pointer _objc_msgSend_776( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer headerFields, - ffi.Pointer URL, - ) { - return __objc_msgSend_776( - obj, - sel, - headerFields, - URL, - ); - } - - late final __objc_msgSend_776Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_776 = __objc_msgSend_776Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_properties1 = _registerName1("properties"); - late final _sel_value1 = _registerName1("value"); - late final _sel_expiresDate1 = _registerName1("expiresDate"); - late final _sel_isSessionOnly1 = _registerName1("isSessionOnly"); - late final _sel_isSecure1 = _registerName1("isSecure"); - late final _sel_isHTTPOnly1 = _registerName1("isHTTPOnly"); - late final _sel_comment1 = _registerName1("comment"); - late final _sel_commentURL1 = _registerName1("commentURL"); - late final _sel_portList1 = _registerName1("portList"); - late final _sel_sameSitePolicy1 = _registerName1("sameSitePolicy"); - late final _sel_setCookie_1 = _registerName1("setCookie:"); - void _objc_msgSend_777( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer cookie, - ) { - return __objc_msgSend_777( - obj, - sel, - cookie, - ); - } - - late final __objc_msgSend_777Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_777 = __objc_msgSend_777Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_deleteCookie_1 = _registerName1("deleteCookie:"); - late final _sel_removeCookiesSinceDate_1 = - _registerName1("removeCookiesSinceDate:"); - late final _sel_cookiesForURL_1 = _registerName1("cookiesForURL:"); - late final _sel_setCookies_forURL_mainDocumentURL_1 = - _registerName1("setCookies:forURL:mainDocumentURL:"); - void _objc_msgSend_778( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer cookies, - ffi.Pointer URL, - ffi.Pointer mainDocumentURL, - ) { - return __objc_msgSend_778( - obj, - sel, - cookies, - URL, - mainDocumentURL, - ); - } - - late final __objc_msgSend_778Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_778 = __objc_msgSend_778Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_cookieAcceptPolicy1 = _registerName1("cookieAcceptPolicy"); - int _objc_msgSend_779( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_779( - obj, - sel, - ); - } - - late final __objc_msgSend_779Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_779 = __objc_msgSend_779Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setCookieAcceptPolicy_1 = - _registerName1("setCookieAcceptPolicy:"); - void _objc_msgSend_780( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_780( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_780Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_780 = __objc_msgSend_780Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_sortedCookiesUsingDescriptors_1 = - _registerName1("sortedCookiesUsingDescriptors:"); - late final _class_NSURLSessionTask1 = _getClass1("NSURLSessionTask"); - late final _sel_taskIdentifier1 = _registerName1("taskIdentifier"); - late final _class_NSURLRequest1 = _getClass1("NSURLRequest"); - late final _sel_requestWithURL_1 = _registerName1("requestWithURL:"); - late final _sel_supportsSecureCoding1 = - _registerName1("supportsSecureCoding"); - late final _sel_requestWithURL_cachePolicy_timeoutInterval_1 = - _registerName1("requestWithURL:cachePolicy:timeoutInterval:"); - instancetype _objc_msgSend_781( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer URL, - int cachePolicy, - double timeoutInterval, - ) { - return __objc_msgSend_781( - obj, - sel, - URL, - cachePolicy, - timeoutInterval, - ); - } - - late final __objc_msgSend_781Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_781 = __objc_msgSend_781Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, double)>(); - - late final _sel_initWithURL_cachePolicy_timeoutInterval_1 = - _registerName1("initWithURL:cachePolicy:timeoutInterval:"); - late final _sel_URL1 = _registerName1("URL"); - late final _sel_cachePolicy1 = _registerName1("cachePolicy"); - int _objc_msgSend_782( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_782( - obj, - sel, - ); - } - - late final __objc_msgSend_782Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_782 = __objc_msgSend_782Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_timeoutInterval1 = _registerName1("timeoutInterval"); - late final _sel_mainDocumentURL1 = _registerName1("mainDocumentURL"); - late final _sel_networkServiceType1 = _registerName1("networkServiceType"); - int _objc_msgSend_783( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_783( - obj, - sel, - ); - } - - late final __objc_msgSend_783Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_783 = __objc_msgSend_783Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_allowsCellularAccess1 = - _registerName1("allowsCellularAccess"); - late final _sel_allowsExpensiveNetworkAccess1 = - _registerName1("allowsExpensiveNetworkAccess"); - late final _sel_allowsConstrainedNetworkAccess1 = - _registerName1("allowsConstrainedNetworkAccess"); - late final _sel_assumesHTTP3Capable1 = _registerName1("assumesHTTP3Capable"); - late final _sel_attribution1 = _registerName1("attribution"); - int _objc_msgSend_784( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_784( - obj, - sel, - ); - } - - late final __objc_msgSend_784Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_784 = __objc_msgSend_784Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_requiresDNSSECValidation1 = - _registerName1("requiresDNSSECValidation"); - late final _sel_HTTPMethod1 = _registerName1("HTTPMethod"); - late final _sel_allHTTPHeaderFields1 = _registerName1("allHTTPHeaderFields"); - late final _sel_valueForHTTPHeaderField_1 = - _registerName1("valueForHTTPHeaderField:"); - late final _sel_HTTPBody1 = _registerName1("HTTPBody"); - late final _class_NSInputStream1 = _getClass1("NSInputStream"); - late final _class_NSStream1 = _getClass1("NSStream"); - late final _sel_open1 = _registerName1("open"); - late final _sel_close1 = _registerName1("close"); - late final _sel_streamStatus1 = _registerName1("streamStatus"); - int _objc_msgSend_785( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_785( - obj, - sel, - ); - } - - late final __objc_msgSend_785Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_785 = __objc_msgSend_785Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_streamError1 = _registerName1("streamError"); - late final _class_NSOutputStream1 = _getClass1("NSOutputStream"); - late final _sel_write_maxLength_1 = _registerName1("write:maxLength:"); - int _objc_msgSend_786( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer buffer, - int len, - ) { - return __objc_msgSend_786( - obj, - sel, - buffer, - len, - ); - } - - late final __objc_msgSend_786Ptr = _lookup< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_786 = __objc_msgSend_786Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_hasSpaceAvailable1 = _registerName1("hasSpaceAvailable"); - late final _sel_initToMemory1 = _registerName1("initToMemory"); - late final _sel_initToBuffer_capacity_1 = - _registerName1("initToBuffer:capacity:"); - instancetype _objc_msgSend_787( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer buffer, - int capacity, - ) { - return __objc_msgSend_787( - obj, - sel, - buffer, - capacity, - ); - } - - late final __objc_msgSend_787Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_787 = __objc_msgSend_787Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_initWithURL_append_1 = _registerName1("initWithURL:append:"); - late final _sel_initToFileAtPath_append_1 = - _registerName1("initToFileAtPath:append:"); - late final _sel_outputStreamToMemory1 = - _registerName1("outputStreamToMemory"); - late final _sel_outputStreamToBuffer_capacity_1 = - _registerName1("outputStreamToBuffer:capacity:"); - late final _sel_outputStreamToFileAtPath_append_1 = - _registerName1("outputStreamToFileAtPath:append:"); - late final _sel_outputStreamWithURL_append_1 = - _registerName1("outputStreamWithURL:append:"); - late final _sel_getStreamsToHostWithName_port_inputStream_outputStream_1 = - _registerName1("getStreamsToHostWithName:port:inputStream:outputStream:"); - void _objc_msgSend_788( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer hostname, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream, - ) { - return __objc_msgSend_788( - obj, - sel, - hostname, - port, - inputStream, - outputStream, - ); - } - - late final __objc_msgSend_788Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer>, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_788 = __objc_msgSend_788Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ffi.Pointer>)>(); - - late final _class_NSHost1 = _getClass1("NSHost"); - late final _sel_currentHost1 = _registerName1("currentHost"); - late final _sel_hostWithName_1 = _registerName1("hostWithName:"); - late final _sel_hostWithAddress_1 = _registerName1("hostWithAddress:"); - late final _sel_isEqualToHost_1 = _registerName1("isEqualToHost:"); - bool _objc_msgSend_789( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer aHost, - ) { - return __objc_msgSend_789( - obj, - sel, - aHost, - ); - } - - late final __objc_msgSend_789Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_789 = __objc_msgSend_789Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_names1 = _registerName1("names"); - late final _sel_address1 = _registerName1("address"); - late final _sel_addresses1 = _registerName1("addresses"); - late final _sel_localizedName1 = _registerName1("localizedName"); - late final _sel_setHostCacheEnabled_1 = - _registerName1("setHostCacheEnabled:"); - void _objc_msgSend_790( - ffi.Pointer obj, - ffi.Pointer sel, - bool flag, - ) { - return __objc_msgSend_790( - obj, - sel, - flag, - ); - } - - late final __objc_msgSend_790Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_790 = __objc_msgSend_790Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, bool)>(); - - late final _sel_isHostCacheEnabled1 = _registerName1("isHostCacheEnabled"); - late final _sel_flushHostCache1 = _registerName1("flushHostCache"); - late final _sel_getStreamsToHost_port_inputStream_outputStream_1 = - _registerName1("getStreamsToHost:port:inputStream:outputStream:"); - void _objc_msgSend_791( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer host, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream, - ) { - return __objc_msgSend_791( - obj, - sel, - host, - port, - inputStream, - outputStream, - ); - } - - late final __objc_msgSend_791Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer>, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_791 = __objc_msgSend_791Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ffi.Pointer>)>(); - - late final _sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1 = - _registerName1("getBoundStreamsWithBufferSize:inputStream:outputStream:"); - void _objc_msgSend_792( - ffi.Pointer obj, - ffi.Pointer sel, - int bufferSize, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream, - ) { - return __objc_msgSend_792( - obj, - sel, - bufferSize, - inputStream, - outputStream, - ); - } - - late final __objc_msgSend_792Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_792 = __objc_msgSend_792Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ffi.Pointer>)>(); - - late final _sel_read_maxLength_1 = _registerName1("read:maxLength:"); - late final _sel_getBuffer_length_1 = _registerName1("getBuffer:length:"); - bool _objc_msgSend_793( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> buffer, - ffi.Pointer len, - ) { - return __objc_msgSend_793( - obj, - sel, - buffer, - len, - ); - } - - late final __objc_msgSend_793Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_793 = __objc_msgSend_793Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer)>(); - - late final _sel_hasBytesAvailable1 = _registerName1("hasBytesAvailable"); - late final _sel_initWithFileAtPath_1 = _registerName1("initWithFileAtPath:"); - late final _sel_inputStreamWithData_1 = - _registerName1("inputStreamWithData:"); - late final _sel_inputStreamWithFileAtPath_1 = - _registerName1("inputStreamWithFileAtPath:"); - late final _sel_inputStreamWithURL_1 = _registerName1("inputStreamWithURL:"); - late final _sel_HTTPBodyStream1 = _registerName1("HTTPBodyStream"); - ffi.Pointer _objc_msgSend_794( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_794( - obj, - sel, - ); - } - - late final __objc_msgSend_794Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_794 = __objc_msgSend_794Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_HTTPShouldHandleCookies1 = - _registerName1("HTTPShouldHandleCookies"); - late final _sel_HTTPShouldUsePipelining1 = - _registerName1("HTTPShouldUsePipelining"); - late final _sel_originalRequest1 = _registerName1("originalRequest"); - ffi.Pointer _objc_msgSend_795( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_795( - obj, - sel, - ); - } - - late final __objc_msgSend_795Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_795 = __objc_msgSend_795Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_currentRequest1 = _registerName1("currentRequest"); - late final _class_NSURLResponse1 = _getClass1("NSURLResponse"); - late final _sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1 = - _registerName1( - "initWithURL:MIMEType:expectedContentLength:textEncodingName:"); - instancetype _objc_msgSend_796( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer URL, - ffi.Pointer MIMEType, - int length, - ffi.Pointer name, - ) { - return __objc_msgSend_796( - obj, - sel, - URL, - MIMEType, - length, - name, - ); - } - - late final __objc_msgSend_796Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_796 = __objc_msgSend_796Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>(); - - late final _sel_MIMEType1 = _registerName1("MIMEType"); - late final _sel_expectedContentLength1 = - _registerName1("expectedContentLength"); - late final _sel_textEncodingName1 = _registerName1("textEncodingName"); - late final _sel_suggestedFilename1 = _registerName1("suggestedFilename"); - late final _sel_response1 = _registerName1("response"); - ffi.Pointer _objc_msgSend_797( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_797( - obj, - sel, - ); - } - - late final __objc_msgSend_797Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_797 = __objc_msgSend_797Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_progress1 = _registerName1("progress"); - late final _sel_earliestBeginDate1 = _registerName1("earliestBeginDate"); - late final _sel_setEarliestBeginDate_1 = - _registerName1("setEarliestBeginDate:"); - late final _sel_countOfBytesClientExpectsToSend1 = - _registerName1("countOfBytesClientExpectsToSend"); - late final _sel_setCountOfBytesClientExpectsToSend_1 = - _registerName1("setCountOfBytesClientExpectsToSend:"); - late final _sel_countOfBytesClientExpectsToReceive1 = - _registerName1("countOfBytesClientExpectsToReceive"); - late final _sel_setCountOfBytesClientExpectsToReceive_1 = - _registerName1("setCountOfBytesClientExpectsToReceive:"); - late final _sel_countOfBytesSent1 = _registerName1("countOfBytesSent"); - late final _sel_countOfBytesReceived1 = - _registerName1("countOfBytesReceived"); - late final _sel_countOfBytesExpectedToSend1 = - _registerName1("countOfBytesExpectedToSend"); - late final _sel_countOfBytesExpectedToReceive1 = - _registerName1("countOfBytesExpectedToReceive"); - late final _sel_taskDescription1 = _registerName1("taskDescription"); - late final _sel_setTaskDescription_1 = _registerName1("setTaskDescription:"); - late final _sel_state1 = _registerName1("state"); - int _objc_msgSend_798( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_798( - obj, - sel, - ); - } - - late final __objc_msgSend_798Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_798 = __objc_msgSend_798Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_suspend1 = _registerName1("suspend"); - late final _sel_priority1 = _registerName1("priority"); - late final _sel_setPriority_1 = _registerName1("setPriority:"); - void _objc_msgSend_799( - ffi.Pointer obj, - ffi.Pointer sel, - double value, - ) { - return __objc_msgSend_799( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_799Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Float)>>('objc_msgSend'); - late final __objc_msgSend_799 = __objc_msgSend_799Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, double)>(); - - late final _sel_prefersIncrementalDelivery1 = - _registerName1("prefersIncrementalDelivery"); - late final _sel_setPrefersIncrementalDelivery_1 = - _registerName1("setPrefersIncrementalDelivery:"); - late final _sel_storeCookies_forTask_1 = - _registerName1("storeCookies:forTask:"); - void _objc_msgSend_800( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer cookies, - ffi.Pointer task, - ) { - return __objc_msgSend_800( - obj, - sel, - cookies, - task, - ); - } - - late final __objc_msgSend_800Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_800 = __objc_msgSend_800Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_getCookiesForTask_completionHandler_1 = - _registerName1("getCookiesForTask:completionHandler:"); - void _objc_msgSend_801( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer task, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_801( - obj, - sel, - task, - completionHandler, - ); - } - - late final __objc_msgSend_801Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_801 = __objc_msgSend_801Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - - late final _class_NSIndexPath1 = _getClass1("NSIndexPath"); - late final _sel_indexPathWithIndex_1 = _registerName1("indexPathWithIndex:"); - late final _sel_indexPathWithIndexes_length_1 = - _registerName1("indexPathWithIndexes:length:"); - instancetype _objc_msgSend_802( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer indexes, - int length, - ) { - return __objc_msgSend_802( - obj, - sel, - indexes, - length, - ); - } - - late final __objc_msgSend_802Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_802 = __objc_msgSend_802Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_initWithIndexes_length_1 = - _registerName1("initWithIndexes:length:"); - late final _sel_indexPathByAddingIndex_1 = - _registerName1("indexPathByAddingIndex:"); - ffi.Pointer _objc_msgSend_803( - ffi.Pointer obj, - ffi.Pointer sel, - int index, - ) { - return __objc_msgSend_803( - obj, - sel, - index, - ); - } - - late final __objc_msgSend_803Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_803 = __objc_msgSend_803Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_indexPathByRemovingLastIndex1 = - _registerName1("indexPathByRemovingLastIndex"); - ffi.Pointer _objc_msgSend_804( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_804( - obj, - sel, - ); - } - - late final __objc_msgSend_804Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_804 = __objc_msgSend_804Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_indexAtPosition_1 = _registerName1("indexAtPosition:"); - late final _sel_getIndexes_range_1 = _registerName1("getIndexes:range:"); - void _objc_msgSend_805( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer indexes, - _NSRange positionRange, - ) { - return __objc_msgSend_805( - obj, - sel, - indexes, - positionRange, - ); - } - - late final __objc_msgSend_805Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_805 = __objc_msgSend_805Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>(); - - int _objc_msgSend_806( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer otherObject, - ) { - return __objc_msgSend_806( - obj, - sel, - otherObject, - ); - } - - late final __objc_msgSend_806Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_806 = __objc_msgSend_806Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_getIndexes_1 = _registerName1("getIndexes:"); - void _objc_msgSend_807( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer indexes, - ) { - return __objc_msgSend_807( - obj, - sel, - indexes, - ); - } - - late final __objc_msgSend_807Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_807 = __objc_msgSend_807Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _class_NSInflectionRule1 = _getClass1("NSInflectionRule"); - late final _sel_automaticRule1 = _registerName1("automaticRule"); - ffi.Pointer _objc_msgSend_808( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_808( - obj, - sel, - ); - } - - late final __objc_msgSend_808Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_808 = __objc_msgSend_808Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_canInflectLanguage_1 = _registerName1("canInflectLanguage:"); - late final _sel_canInflectPreferredLocalization1 = - _registerName1("canInflectPreferredLocalization"); - late final _class_NSMorphology1 = _getClass1("NSMorphology"); - late final _sel_grammaticalGender1 = _registerName1("grammaticalGender"); - int _objc_msgSend_809( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_809( - obj, - sel, - ); - } - - late final __objc_msgSend_809Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_809 = __objc_msgSend_809Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setGrammaticalGender_1 = - _registerName1("setGrammaticalGender:"); - void _objc_msgSend_810( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_810( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_810Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_810 = __objc_msgSend_810Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_partOfSpeech1 = _registerName1("partOfSpeech"); - int _objc_msgSend_811( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_811( - obj, - sel, - ); - } - - late final __objc_msgSend_811Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_811 = __objc_msgSend_811Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setPartOfSpeech_1 = _registerName1("setPartOfSpeech:"); - void _objc_msgSend_812( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_812( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_812Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_812 = __objc_msgSend_812Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_number1 = _registerName1("number"); - int _objc_msgSend_813( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_813( - obj, - sel, - ); - } - - late final __objc_msgSend_813Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_813 = __objc_msgSend_813Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setNumber_1 = _registerName1("setNumber:"); - void _objc_msgSend_814( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_814( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_814Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_814 = __objc_msgSend_814Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _class_NSMorphologyCustomPronoun1 = - _getClass1("NSMorphologyCustomPronoun"); - late final _sel_isSupportedForLanguage_1 = - _registerName1("isSupportedForLanguage:"); - late final _sel_requiredKeysForLanguage_1 = - _registerName1("requiredKeysForLanguage:"); - late final _sel_subjectForm1 = _registerName1("subjectForm"); - late final _sel_setSubjectForm_1 = _registerName1("setSubjectForm:"); - late final _sel_objectForm1 = _registerName1("objectForm"); - late final _sel_setObjectForm_1 = _registerName1("setObjectForm:"); - late final _sel_possessiveForm1 = _registerName1("possessiveForm"); - late final _sel_setPossessiveForm_1 = _registerName1("setPossessiveForm:"); - late final _sel_possessiveAdjectiveForm1 = - _registerName1("possessiveAdjectiveForm"); - late final _sel_setPossessiveAdjectiveForm_1 = - _registerName1("setPossessiveAdjectiveForm:"); - late final _sel_reflexiveForm1 = _registerName1("reflexiveForm"); - late final _sel_setReflexiveForm_1 = _registerName1("setReflexiveForm:"); - late final _sel_customPronounForLanguage_1 = - _registerName1("customPronounForLanguage:"); - ffi.Pointer _objc_msgSend_815( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer language, - ) { - return __objc_msgSend_815( - obj, - sel, - language, - ); - } - - late final __objc_msgSend_815Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_815 = __objc_msgSend_815Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setCustomPronoun_forLanguage_error_1 = - _registerName1("setCustomPronoun:forLanguage:error:"); - bool _objc_msgSend_816( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer features, - ffi.Pointer language, - ffi.Pointer> error, - ) { - return __objc_msgSend_816( - obj, - sel, - features, - language, - error, - ); - } - - late final __objc_msgSend_816Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_816 = __objc_msgSend_816Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_isUnspecified1 = _registerName1("isUnspecified"); - late final _sel_userMorphology1 = _registerName1("userMorphology"); - ffi.Pointer _objc_msgSend_817( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_817( - obj, - sel, - ); - } - - late final __objc_msgSend_817Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_817 = __objc_msgSend_817Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _class_NSOperationQueue1 = _getClass1("NSOperationQueue"); - late final _class_NSOperation1 = _getClass1("NSOperation"); - late final _sel_isConcurrent1 = _registerName1("isConcurrent"); - late final _sel_isAsynchronous1 = _registerName1("isAsynchronous"); - late final _sel_isReady1 = _registerName1("isReady"); - late final _sel_addDependency_1 = _registerName1("addDependency:"); - void _objc_msgSend_818( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer op, - ) { - return __objc_msgSend_818( - obj, - sel, - op, - ); - } - - late final __objc_msgSend_818Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_818 = __objc_msgSend_818Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_removeDependency_1 = _registerName1("removeDependency:"); - late final _sel_dependencies1 = _registerName1("dependencies"); - late final _sel_queuePriority1 = _registerName1("queuePriority"); - int _objc_msgSend_819( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_819( - obj, - sel, - ); - } - - late final __objc_msgSend_819Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_819 = __objc_msgSend_819Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setQueuePriority_1 = _registerName1("setQueuePriority:"); - void _objc_msgSend_820( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_820( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_820Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_820 = __objc_msgSend_820Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_completionBlock1 = _registerName1("completionBlock"); - late final _sel_setCompletionBlock_1 = _registerName1("setCompletionBlock:"); - late final _sel_waitUntilFinished1 = _registerName1("waitUntilFinished"); - late final _sel_addOperation_1 = _registerName1("addOperation:"); - late final _sel_addOperations_waitUntilFinished_1 = - _registerName1("addOperations:waitUntilFinished:"); - void _objc_msgSend_821( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer ops, - bool wait, - ) { - return __objc_msgSend_821( - obj, - sel, - ops, - wait, - ); - } - - late final __objc_msgSend_821Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_821 = __objc_msgSend_821Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); - - late final _sel_addOperationWithBlock_1 = - _registerName1("addOperationWithBlock:"); - late final _sel_addBarrierBlock_1 = _registerName1("addBarrierBlock:"); - late final _sel_maxConcurrentOperationCount1 = - _registerName1("maxConcurrentOperationCount"); - late final _sel_setMaxConcurrentOperationCount_1 = - _registerName1("setMaxConcurrentOperationCount:"); - late final _sel_isSuspended1 = _registerName1("isSuspended"); - late final _sel_setSuspended_1 = _registerName1("setSuspended:"); - late final _sel_underlyingQueue1 = _registerName1("underlyingQueue"); - ffi.Pointer _objc_msgSend_822( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_822( - obj, - sel, - ); - } - - late final __objc_msgSend_822Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_822 = __objc_msgSend_822Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setUnderlyingQueue_1 = _registerName1("setUnderlyingQueue:"); - void _objc_msgSend_823( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_823( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_823Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_823 = __objc_msgSend_823Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_cancelAllOperations1 = _registerName1("cancelAllOperations"); - late final _sel_waitUntilAllOperationsAreFinished1 = - _registerName1("waitUntilAllOperationsAreFinished"); - late final _sel_currentQueue1 = _registerName1("currentQueue"); - ffi.Pointer _objc_msgSend_824( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_824( - obj, - sel, - ); - } - - late final __objc_msgSend_824Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_824 = __objc_msgSend_824Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_mainQueue1 = _registerName1("mainQueue"); - late final _sel_operations1 = _registerName1("operations"); - late final _sel_operationCount1 = _registerName1("operationCount"); - late final _class_NSPointerArray1 = _getClass1("NSPointerArray"); - late final _sel_initWithOptions_1 = _registerName1("initWithOptions:"); - instancetype _objc_msgSend_825( - ffi.Pointer obj, - ffi.Pointer sel, - int options, - ) { - return __objc_msgSend_825( - obj, - sel, - options, - ); - } - - late final __objc_msgSend_825Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_825 = __objc_msgSend_825Ptr.asFunction< - instancetype Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _class_NSPointerFunctions1 = _getClass1("NSPointerFunctions"); - late final _sel_pointerFunctionsWithOptions_1 = - _registerName1("pointerFunctionsWithOptions:"); - ffi.Pointer _objc_msgSend_826( - ffi.Pointer obj, - ffi.Pointer sel, - int options, - ) { - return __objc_msgSend_826( - obj, - sel, - options, - ); - } - - late final __objc_msgSend_826Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_826 = __objc_msgSend_826Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_hashFunction1 = _registerName1("hashFunction"); - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>)>> - _objc_msgSend_827( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_827( - obj, - sel, - ); - } - - late final __objc_msgSend_827Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - Function(ffi.Pointer, ffi.Pointer)>>( - 'objc_msgSend'); - late final __objc_msgSend_827 = __objc_msgSend_827Ptr.asFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setHashFunction_1 = _registerName1("setHashFunction:"); - void _objc_msgSend_828( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - value, - ) { - return __objc_msgSend_828( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_828Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>>)>>( - 'objc_msgSend'); - late final __objc_msgSend_828 = __objc_msgSend_828Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>>)>(); - - late final _sel_isEqualFunction1 = _registerName1("isEqualFunction"); - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>)>> - _objc_msgSend_829( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_829( - obj, - sel, - ); - } - - late final __objc_msgSend_829Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - Function(ffi.Pointer, ffi.Pointer)>>( - 'objc_msgSend'); - late final __objc_msgSend_829 = __objc_msgSend_829Ptr.asFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setIsEqualFunction_1 = _registerName1("setIsEqualFunction:"); - void _objc_msgSend_830( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - value, - ) { - return __objc_msgSend_830( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_830Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>>)>>( - 'objc_msgSend'); - late final __objc_msgSend_830 = __objc_msgSend_830Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>>)>(); - - late final _sel_sizeFunction1 = _registerName1("sizeFunction"); - ffi.Pointer< - ffi.NativeFunction)>> - _objc_msgSend_831( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_831( - obj, - sel, - ); - } - - late final __objc_msgSend_831Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>> - Function(ffi.Pointer, ffi.Pointer)>>( - 'objc_msgSend'); - late final __objc_msgSend_831 = __objc_msgSend_831Ptr.asFunction< - ffi.Pointer< - ffi - .NativeFunction)>> - Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setSizeFunction_1 = _registerName1("setSizeFunction:"); - void _objc_msgSend_832( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer< - ffi - .NativeFunction)>> - value, - ) { - return __objc_msgSend_832( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_832Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>>('objc_msgSend'); - late final __objc_msgSend_832 = __objc_msgSend_832Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>)>(); - - late final _sel_descriptionFunction1 = _registerName1("descriptionFunction"); - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>> - _objc_msgSend_833( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_833( - obj, - sel, - ); - } - - late final __objc_msgSend_833Ptr = - _lookup< - ffi.NativeFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>> - Function(ffi.Pointer, ffi.Pointer)>>( - 'objc_msgSend'); - late final __objc_msgSend_833 = __objc_msgSend_833Ptr.asFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>> - Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setDescriptionFunction_1 = - _registerName1("setDescriptionFunction:"); - void _objc_msgSend_834( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>> - value, - ) { - return __objc_msgSend_834( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_834Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>)>>('objc_msgSend'); - late final __objc_msgSend_834 = __objc_msgSend_834Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>)>(); - - late final _sel_relinquishFunction1 = _registerName1("relinquishFunction"); - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>)>> - _objc_msgSend_835( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_835( - obj, - sel, - ); - } - - late final __objc_msgSend_835Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - Function(ffi.Pointer, ffi.Pointer)>>( - 'objc_msgSend'); - late final __objc_msgSend_835 = __objc_msgSend_835Ptr.asFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setRelinquishFunction_1 = - _registerName1("setRelinquishFunction:"); - void _objc_msgSend_836( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - value, - ) { - return __objc_msgSend_836( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_836Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>>)>>( - 'objc_msgSend'); - late final __objc_msgSend_836 = __objc_msgSend_836Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>>)>(); - - late final _sel_acquireFunction1 = _registerName1("acquireFunction"); - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>, - ffi.Bool)>> _objc_msgSend_837( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_837( - obj, - sel, - ); - } - - late final __objc_msgSend_837Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>, - ffi.Bool)>> - Function(ffi.Pointer, ffi.Pointer)>>( - 'objc_msgSend'); - late final __objc_msgSend_837 = __objc_msgSend_837Ptr.asFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>, - ffi.Bool)>> - Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setAcquireFunction_1 = _registerName1("setAcquireFunction:"); - void _objc_msgSend_838( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>, - ffi.Bool)>> - value, - ) { - return __objc_msgSend_838( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_838Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>, - ffi.Bool)>>)>>('objc_msgSend'); - late final __objc_msgSend_838 = __objc_msgSend_838Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>, - ffi.Bool)>>)>(); - - late final _sel_usesStrongWriteBarrier1 = - _registerName1("usesStrongWriteBarrier"); - late final _sel_setUsesStrongWriteBarrier_1 = - _registerName1("setUsesStrongWriteBarrier:"); - late final _sel_usesWeakReadAndWriteBarriers1 = - _registerName1("usesWeakReadAndWriteBarriers"); - late final _sel_setUsesWeakReadAndWriteBarriers_1 = - _registerName1("setUsesWeakReadAndWriteBarriers:"); - late final _sel_initWithPointerFunctions_1 = - _registerName1("initWithPointerFunctions:"); - instancetype _objc_msgSend_839( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer functions, - ) { - return __objc_msgSend_839( - obj, - sel, - functions, - ); - } - - late final __objc_msgSend_839Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_839 = __objc_msgSend_839Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_pointerArrayWithOptions_1 = - _registerName1("pointerArrayWithOptions:"); - ffi.Pointer _objc_msgSend_840( - ffi.Pointer obj, - ffi.Pointer sel, - int options, - ) { - return __objc_msgSend_840( - obj, - sel, - options, - ); - } - - late final __objc_msgSend_840Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_840 = __objc_msgSend_840Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_pointerArrayWithPointerFunctions_1 = - _registerName1("pointerArrayWithPointerFunctions:"); - ffi.Pointer _objc_msgSend_841( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer functions, - ) { - return __objc_msgSend_841( - obj, - sel, - functions, - ); - } - - late final __objc_msgSend_841Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_841 = __objc_msgSend_841Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_pointerFunctions1 = _registerName1("pointerFunctions"); - ffi.Pointer _objc_msgSend_842( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_842( - obj, - sel, - ); - } - - late final __objc_msgSend_842Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_842 = __objc_msgSend_842Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_pointerAtIndex_1 = _registerName1("pointerAtIndex:"); - ffi.Pointer _objc_msgSend_843( - ffi.Pointer obj, - ffi.Pointer sel, - int index, - ) { - return __objc_msgSend_843( - obj, - sel, - index, - ); - } - - late final __objc_msgSend_843Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_843 = __objc_msgSend_843Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_addPointer_1 = _registerName1("addPointer:"); - late final _sel_removePointerAtIndex_1 = - _registerName1("removePointerAtIndex:"); - late final _sel_insertPointer_atIndex_1 = - _registerName1("insertPointer:atIndex:"); - late final _sel_replacePointerAtIndex_withPointer_1 = - _registerName1("replacePointerAtIndex:withPointer:"); - void _objc_msgSend_844( - ffi.Pointer obj, - ffi.Pointer sel, - int index, - ffi.Pointer item, - ) { - return __objc_msgSend_844( - obj, - sel, - index, - item, - ); - } - - late final __objc_msgSend_844Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_844 = __objc_msgSend_844Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer)>(); - - late final _sel_compact1 = _registerName1("compact"); - late final _sel_setCount_1 = _registerName1("setCount:"); - late final _sel_pointerArrayWithStrongObjects1 = - _registerName1("pointerArrayWithStrongObjects"); - late final _sel_pointerArrayWithWeakObjects1 = - _registerName1("pointerArrayWithWeakObjects"); - late final _sel_strongObjectsPointerArray1 = - _registerName1("strongObjectsPointerArray"); - ffi.Pointer _objc_msgSend_845( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_845( - obj, - sel, - ); - } - - late final __objc_msgSend_845Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_845 = __objc_msgSend_845Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_weakObjectsPointerArray1 = - _registerName1("weakObjectsPointerArray"); - late final _class_NSProcessInfo1 = _getClass1("NSProcessInfo"); - late final _sel_processInfo1 = _registerName1("processInfo"); - ffi.Pointer _objc_msgSend_846( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_846( - obj, - sel, - ); - } - - late final __objc_msgSend_846Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_846 = __objc_msgSend_846Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_environment1 = _registerName1("environment"); - late final _sel_hostName1 = _registerName1("hostName"); - late final _sel_processName1 = _registerName1("processName"); - late final _sel_setProcessName_1 = _registerName1("setProcessName:"); - late final _sel_processIdentifier1 = _registerName1("processIdentifier"); - late final _sel_globallyUniqueString1 = - _registerName1("globallyUniqueString"); - late final _sel_operatingSystem1 = _registerName1("operatingSystem"); - late final _sel_operatingSystemName1 = _registerName1("operatingSystemName"); - late final _sel_operatingSystemVersionString1 = - _registerName1("operatingSystemVersionString"); - late final _sel_operatingSystemVersion1 = - _registerName1("operatingSystemVersion"); - NSOperatingSystemVersion _objc_msgSend_847( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_847( - obj, - sel, - ); - } - - late final __objc_msgSend_847Ptr = _lookup< - ffi.NativeFunction< - NSOperatingSystemVersion Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_847 = __objc_msgSend_847Ptr.asFunction< - NSOperatingSystemVersion Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_processorCount1 = _registerName1("processorCount"); - late final _sel_activeProcessorCount1 = - _registerName1("activeProcessorCount"); - late final _sel_physicalMemory1 = _registerName1("physicalMemory"); - late final _sel_isOperatingSystemAtLeastVersion_1 = - _registerName1("isOperatingSystemAtLeastVersion:"); - bool _objc_msgSend_848( - ffi.Pointer obj, - ffi.Pointer sel, - NSOperatingSystemVersion version, - ) { - return __objc_msgSend_848( - obj, - sel, - version, - ); - } - - late final __objc_msgSend_848Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - NSOperatingSystemVersion)>>('objc_msgSend'); - late final __objc_msgSend_848 = __objc_msgSend_848Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - NSOperatingSystemVersion)>(); - - late final _sel_systemUptime1 = _registerName1("systemUptime"); - late final _sel_disableSuddenTermination1 = - _registerName1("disableSuddenTermination"); - late final _sel_enableSuddenTermination1 = - _registerName1("enableSuddenTermination"); - late final _sel_disableAutomaticTermination_1 = - _registerName1("disableAutomaticTermination:"); - late final _sel_enableAutomaticTermination_1 = - _registerName1("enableAutomaticTermination:"); - late final _sel_automaticTerminationSupportEnabled1 = - _registerName1("automaticTerminationSupportEnabled"); - late final _sel_setAutomaticTerminationSupportEnabled_1 = - _registerName1("setAutomaticTerminationSupportEnabled:"); - late final _sel_beginActivityWithOptions_reason_1 = - _registerName1("beginActivityWithOptions:reason:"); - ffi.Pointer _objc_msgSend_849( - ffi.Pointer obj, - ffi.Pointer sel, - int options, - ffi.Pointer reason, - ) { - return __objc_msgSend_849( - obj, - sel, - options, - reason, - ); - } - - late final __objc_msgSend_849Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_849 = __objc_msgSend_849Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer)>(); - - late final _sel_endActivity_1 = _registerName1("endActivity:"); - late final _sel_performActivityWithOptions_reason_usingBlock_1 = - _registerName1("performActivityWithOptions:reason:usingBlock:"); - void _objc_msgSend_850( - ffi.Pointer obj, - ffi.Pointer sel, - int options, - ffi.Pointer reason, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_850( - obj, - sel, - options, - reason, - block, - ); - } - - late final __objc_msgSend_850Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_850 = __objc_msgSend_850Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_performExpiringActivityWithReason_usingBlock_1 = - _registerName1("performExpiringActivityWithReason:usingBlock:"); - void _objc_msgSend_851( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer reason, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_851( - obj, - sel, - reason, - block, - ); - } - - late final __objc_msgSend_851Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_851 = __objc_msgSend_851Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_userName1 = _registerName1("userName"); - late final _sel_fullUserName1 = _registerName1("fullUserName"); - late final _sel_thermalState1 = _registerName1("thermalState"); - int _objc_msgSend_852( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_852( - obj, - sel, - ); - } - - late final __objc_msgSend_852Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_852 = __objc_msgSend_852Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_isLowPowerModeEnabled1 = - _registerName1("isLowPowerModeEnabled"); - late final _sel_isMacCatalystApp1 = _registerName1("isMacCatalystApp"); - late final _sel_isiOSAppOnMac1 = _registerName1("isiOSAppOnMac"); - late final _class_NSTextCheckingResult1 = _getClass1("NSTextCheckingResult"); - late final _sel_resultType1 = _registerName1("resultType"); - int _objc_msgSend_853( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_853( - obj, - sel, - ); - } - - late final __objc_msgSend_853Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_853 = __objc_msgSend_853Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_range1 = _registerName1("range"); - late final _sel_orthography1 = _registerName1("orthography"); - ffi.Pointer _objc_msgSend_854( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_854( - obj, - sel, - ); - } - - late final __objc_msgSend_854Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_854 = __objc_msgSend_854Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_grammarDetails1 = _registerName1("grammarDetails"); - late final _sel_duration1 = _registerName1("duration"); - late final _sel_components1 = _registerName1("components"); - late final _sel_replacementString1 = _registerName1("replacementString"); - late final _sel_alternativeStrings1 = _registerName1("alternativeStrings"); - late final _class_NSRegularExpression1 = _getClass1("NSRegularExpression"); - late final _sel_regularExpressionWithPattern_options_error_1 = - _registerName1("regularExpressionWithPattern:options:error:"); - ffi.Pointer _objc_msgSend_855( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer pattern, - int options, - ffi.Pointer> error, - ) { - return __objc_msgSend_855( - obj, - sel, - pattern, - options, - error, - ); - } - - late final __objc_msgSend_855Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_855 = __objc_msgSend_855Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); - - late final _sel_initWithPattern_options_error_1 = - _registerName1("initWithPattern:options:error:"); - instancetype _objc_msgSend_856( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer pattern, - int options, - ffi.Pointer> error, - ) { - return __objc_msgSend_856( - obj, - sel, - pattern, - options, - error, - ); - } - - late final __objc_msgSend_856Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_856 = __objc_msgSend_856Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); - - late final _sel_pattern1 = _registerName1("pattern"); - late final _sel_options1 = _registerName1("options"); - int _objc_msgSend_857( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_857( - obj, - sel, - ); - } - - late final __objc_msgSend_857Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_857 = __objc_msgSend_857Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_numberOfCaptureGroups1 = - _registerName1("numberOfCaptureGroups"); - late final _sel_escapedPatternForString_1 = - _registerName1("escapedPatternForString:"); - late final _sel_enumerateMatchesInString_options_range_usingBlock_1 = - _registerName1("enumerateMatchesInString:options:range:usingBlock:"); - void _objc_msgSend_858( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer string, - int options, - _NSRange range, - ffi.Pointer<_ObjCBlock> block, - ) { - return __objc_msgSend_858( - obj, - sel, - string, - options, - range, - block, - ); - } - - late final __objc_msgSend_858Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - _NSRange, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_858 = __objc_msgSend_858Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_matchesInString_options_range_1 = - _registerName1("matchesInString:options:range:"); - ffi.Pointer _objc_msgSend_859( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer string, - int options, - _NSRange range, - ) { - return __objc_msgSend_859( - obj, - sel, - string, - options, - range, - ); - } - - late final __objc_msgSend_859Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_859 = __objc_msgSend_859Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, _NSRange)>(); - - late final _sel_numberOfMatchesInString_options_range_1 = - _registerName1("numberOfMatchesInString:options:range:"); - int _objc_msgSend_860( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer string, - int options, - _NSRange range, - ) { - return __objc_msgSend_860( - obj, - sel, - string, - options, - range, - ); - } - - late final __objc_msgSend_860Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_860 = __objc_msgSend_860Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange)>(); - - late final _sel_firstMatchInString_options_range_1 = - _registerName1("firstMatchInString:options:range:"); - ffi.Pointer _objc_msgSend_861( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer string, - int options, - _NSRange range, - ) { - return __objc_msgSend_861( - obj, - sel, - string, - options, - range, - ); - } - - late final __objc_msgSend_861Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_861 = __objc_msgSend_861Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, _NSRange)>(); - - late final _sel_rangeOfFirstMatchInString_options_range_1 = - _registerName1("rangeOfFirstMatchInString:options:range:"); - _NSRange _objc_msgSend_862( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer string, - int options, - _NSRange range, - ) { - return __objc_msgSend_862( - obj, - sel, - string, - options, - range, - ); - } - - late final __objc_msgSend_862Ptr = _lookup< - ffi.NativeFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_862 = __objc_msgSend_862Ptr.asFunction< - _NSRange Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange)>(); - - late final _sel_stringByReplacingMatchesInString_options_range_withTemplate_1 = - _registerName1( - "stringByReplacingMatchesInString:options:range:withTemplate:"); - ffi.Pointer _objc_msgSend_863( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer string, - int options, - _NSRange range, - ffi.Pointer templ, - ) { - return __objc_msgSend_863( - obj, - sel, - string, - options, - range, - templ, - ); - } - - late final __objc_msgSend_863Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - _NSRange, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_863 = __objc_msgSend_863Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - _NSRange, - ffi.Pointer)>(); - - late final _sel_replaceMatchesInString_options_range_withTemplate_1 = - _registerName1("replaceMatchesInString:options:range:withTemplate:"); - int _objc_msgSend_864( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer string, - int options, - _NSRange range, - ffi.Pointer templ, - ) { - return __objc_msgSend_864( - obj, - sel, - string, - options, - range, - templ, - ); - } - - late final __objc_msgSend_864Ptr = _lookup< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - _NSRange, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_864 = __objc_msgSend_864Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange, ffi.Pointer)>(); - - late final _sel_replacementStringForResult_inString_offset_template_1 = - _registerName1("replacementStringForResult:inString:offset:template:"); - ffi.Pointer _objc_msgSend_865( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer result, - ffi.Pointer string, - int offset, - ffi.Pointer templ, - ) { - return __objc_msgSend_865( - obj, - sel, - result, - string, - offset, - templ, - ); - } - - late final __objc_msgSend_865Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_865 = __objc_msgSend_865Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>(); - - late final _sel_escapedTemplateForString_1 = - _registerName1("escapedTemplateForString:"); - late final _sel_regularExpression1 = _registerName1("regularExpression"); - ffi.Pointer _objc_msgSend_866( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_866( - obj, - sel, - ); - } - - late final __objc_msgSend_866Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_866 = __objc_msgSend_866Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_phoneNumber1 = _registerName1("phoneNumber"); - late final _sel_numberOfRanges1 = _registerName1("numberOfRanges"); - late final _sel_rangeAtIndex_1 = _registerName1("rangeAtIndex:"); - late final _sel_rangeWithName_1 = _registerName1("rangeWithName:"); - late final _sel_resultByAdjustingRangesWithOffset_1 = - _registerName1("resultByAdjustingRangesWithOffset:"); - ffi.Pointer _objc_msgSend_867( - ffi.Pointer obj, - ffi.Pointer sel, - int offset, - ) { - return __objc_msgSend_867( - obj, - sel, - offset, - ); - } - - late final __objc_msgSend_867Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_867 = __objc_msgSend_867Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_addressComponents1 = _registerName1("addressComponents"); - late final _sel_orthographyCheckingResultWithRange_orthography_1 = - _registerName1("orthographyCheckingResultWithRange:orthography:"); - ffi.Pointer _objc_msgSend_868( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ffi.Pointer orthography, - ) { - return __objc_msgSend_868( - obj, - sel, - range, - orthography, - ); - } - - late final __objc_msgSend_868Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_868 = __objc_msgSend_868Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange, ffi.Pointer)>(); - - late final _sel_spellCheckingResultWithRange_1 = - _registerName1("spellCheckingResultWithRange:"); - ffi.Pointer _objc_msgSend_869( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ) { - return __objc_msgSend_869( - obj, - sel, - range, - ); - } - - late final __objc_msgSend_869Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_869 = __objc_msgSend_869Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, _NSRange)>(); - - late final _sel_grammarCheckingResultWithRange_details_1 = - _registerName1("grammarCheckingResultWithRange:details:"); - ffi.Pointer _objc_msgSend_870( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ffi.Pointer details, - ) { - return __objc_msgSend_870( - obj, - sel, - range, - details, - ); - } - - late final __objc_msgSend_870Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_870 = __objc_msgSend_870Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange, ffi.Pointer)>(); - - late final _sel_dateCheckingResultWithRange_date_1 = - _registerName1("dateCheckingResultWithRange:date:"); - ffi.Pointer _objc_msgSend_871( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ffi.Pointer date, - ) { - return __objc_msgSend_871( - obj, - sel, - range, - date, - ); - } - - late final __objc_msgSend_871Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_871 = __objc_msgSend_871Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange, ffi.Pointer)>(); - - late final _sel_dateCheckingResultWithRange_date_timeZone_duration_1 = - _registerName1("dateCheckingResultWithRange:date:timeZone:duration:"); - ffi.Pointer _objc_msgSend_872( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ffi.Pointer date, - ffi.Pointer timeZone, - double duration, - ) { - return __objc_msgSend_872( - obj, - sel, - range, - date, - timeZone, - duration, - ); - } - - late final __objc_msgSend_872Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Pointer, - ffi.Pointer, - ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_872 = __objc_msgSend_872Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Pointer, - ffi.Pointer, - double)>(); - - late final _sel_addressCheckingResultWithRange_components_1 = - _registerName1("addressCheckingResultWithRange:components:"); - ffi.Pointer _objc_msgSend_873( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ffi.Pointer components, - ) { - return __objc_msgSend_873( - obj, - sel, - range, - components, - ); - } - - late final __objc_msgSend_873Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_873 = __objc_msgSend_873Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange, ffi.Pointer)>(); - - late final _sel_linkCheckingResultWithRange_URL_1 = - _registerName1("linkCheckingResultWithRange:URL:"); - ffi.Pointer _objc_msgSend_874( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ffi.Pointer url, - ) { - return __objc_msgSend_874( - obj, - sel, - range, - url, - ); - } - - late final __objc_msgSend_874Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_874 = __objc_msgSend_874Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange, ffi.Pointer)>(); - - late final _sel_quoteCheckingResultWithRange_replacementString_1 = - _registerName1("quoteCheckingResultWithRange:replacementString:"); - ffi.Pointer _objc_msgSend_875( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ffi.Pointer replacementString, - ) { - return __objc_msgSend_875( - obj, - sel, - range, - replacementString, - ); - } - - late final __objc_msgSend_875Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_875 = __objc_msgSend_875Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange, ffi.Pointer)>(); - - late final _sel_dashCheckingResultWithRange_replacementString_1 = - _registerName1("dashCheckingResultWithRange:replacementString:"); - late final _sel_replacementCheckingResultWithRange_replacementString_1 = - _registerName1("replacementCheckingResultWithRange:replacementString:"); - late final _sel_correctionCheckingResultWithRange_replacementString_1 = - _registerName1("correctionCheckingResultWithRange:replacementString:"); - late final _sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_1 = - _registerName1( - "correctionCheckingResultWithRange:replacementString:alternativeStrings:"); - ffi.Pointer _objc_msgSend_876( - ffi.Pointer obj, - ffi.Pointer sel, - _NSRange range, - ffi.Pointer replacementString, - ffi.Pointer alternativeStrings, - ) { - return __objc_msgSend_876( - obj, - sel, - range, - replacementString, - alternativeStrings, - ); - } - - late final __objc_msgSend_876Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_876 = __objc_msgSend_876Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_regularExpressionCheckingResultWithRanges_count_regularExpression_1 = - _registerName1( - "regularExpressionCheckingResultWithRanges:count:regularExpression:"); - ffi.Pointer _objc_msgSend_877( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_NSRange> ranges, - int count, - ffi.Pointer regularExpression, - ) { - return __objc_msgSend_877( - obj, - sel, - ranges, - count, - regularExpression, - ); - } - - late final __objc_msgSend_877Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_NSRange>, - ffi.UnsignedLong, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_877 = __objc_msgSend_877Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_NSRange>, - int, - ffi.Pointer)>(); - - late final _sel_phoneNumberCheckingResultWithRange_phoneNumber_1 = - _registerName1("phoneNumberCheckingResultWithRange:phoneNumber:"); - late final _sel_transitInformationCheckingResultWithRange_components_1 = - _registerName1("transitInformationCheckingResultWithRange:components:"); - late final _class_NSURLCache1 = _getClass1("NSURLCache"); - late final _sel_sharedURLCache1 = _registerName1("sharedURLCache"); - ffi.Pointer _objc_msgSend_878( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_878( - obj, - sel, - ); - } - - late final __objc_msgSend_878Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_878 = __objc_msgSend_878Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setSharedURLCache_1 = _registerName1("setSharedURLCache:"); - void _objc_msgSend_879( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_879( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_879Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_879 = __objc_msgSend_879Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_initWithMemoryCapacity_diskCapacity_diskPath_1 = - _registerName1("initWithMemoryCapacity:diskCapacity:diskPath:"); - instancetype _objc_msgSend_880( - ffi.Pointer obj, - ffi.Pointer sel, - int memoryCapacity, - int diskCapacity, - ffi.Pointer path, - ) { - return __objc_msgSend_880( - obj, - sel, - memoryCapacity, - diskCapacity, - path, - ); - } - - late final __objc_msgSend_880Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_880 = __objc_msgSend_880Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, int, - int, ffi.Pointer)>(); - - late final _sel_initWithMemoryCapacity_diskCapacity_directoryURL_1 = - _registerName1("initWithMemoryCapacity:diskCapacity:directoryURL:"); - instancetype _objc_msgSend_881( - ffi.Pointer obj, - ffi.Pointer sel, - int memoryCapacity, - int diskCapacity, - ffi.Pointer directoryURL, - ) { - return __objc_msgSend_881( - obj, - sel, - memoryCapacity, - diskCapacity, - directoryURL, - ); - } - - late final __objc_msgSend_881Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_881 = __objc_msgSend_881Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, int, - int, ffi.Pointer)>(); - - late final _class_NSCachedURLResponse1 = _getClass1("NSCachedURLResponse"); - late final _sel_initWithResponse_data_1 = - _registerName1("initWithResponse:data:"); - instancetype _objc_msgSend_882( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer response, - ffi.Pointer data, - ) { - return __objc_msgSend_882( - obj, - sel, - response, - data, - ); - } - - late final __objc_msgSend_882Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_882 = __objc_msgSend_882Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_initWithResponse_data_userInfo_storagePolicy_1 = - _registerName1("initWithResponse:data:userInfo:storagePolicy:"); - instancetype _objc_msgSend_883( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer response, - ffi.Pointer data, - ffi.Pointer userInfo, - int storagePolicy, - ) { - return __objc_msgSend_883( - obj, - sel, - response, - data, - userInfo, - storagePolicy, - ); - } - - late final __objc_msgSend_883Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_883 = __objc_msgSend_883Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); - - late final _sel_storagePolicy1 = _registerName1("storagePolicy"); - int _objc_msgSend_884( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_884( - obj, - sel, - ); - } - - late final __objc_msgSend_884Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_884 = __objc_msgSend_884Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_cachedResponseForRequest_1 = - _registerName1("cachedResponseForRequest:"); - ffi.Pointer _objc_msgSend_885( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer request, - ) { - return __objc_msgSend_885( - obj, - sel, - request, - ); - } - - late final __objc_msgSend_885Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_885 = __objc_msgSend_885Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_storeCachedResponse_forRequest_1 = - _registerName1("storeCachedResponse:forRequest:"); - void _objc_msgSend_886( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer cachedResponse, - ffi.Pointer request, - ) { - return __objc_msgSend_886( - obj, - sel, - cachedResponse, - request, - ); - } - - late final __objc_msgSend_886Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_886 = __objc_msgSend_886Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_removeCachedResponseForRequest_1 = - _registerName1("removeCachedResponseForRequest:"); - void _objc_msgSend_887( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer request, - ) { - return __objc_msgSend_887( - obj, - sel, - request, - ); - } - - late final __objc_msgSend_887Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_887 = __objc_msgSend_887Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_removeAllCachedResponses1 = - _registerName1("removeAllCachedResponses"); - late final _sel_removeCachedResponsesSinceDate_1 = - _registerName1("removeCachedResponsesSinceDate:"); - late final _sel_memoryCapacity1 = _registerName1("memoryCapacity"); - late final _sel_setMemoryCapacity_1 = _registerName1("setMemoryCapacity:"); - late final _sel_diskCapacity1 = _registerName1("diskCapacity"); - late final _sel_setDiskCapacity_1 = _registerName1("setDiskCapacity:"); - late final _sel_currentMemoryUsage1 = _registerName1("currentMemoryUsage"); - late final _sel_currentDiskUsage1 = _registerName1("currentDiskUsage"); - late final _class_NSURLSessionDataTask1 = _getClass1("NSURLSessionDataTask"); - late final _sel_storeCachedResponse_forDataTask_1 = - _registerName1("storeCachedResponse:forDataTask:"); - void _objc_msgSend_888( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer cachedResponse, - ffi.Pointer dataTask, - ) { - return __objc_msgSend_888( - obj, - sel, - cachedResponse, - dataTask, - ); - } - - late final __objc_msgSend_888Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_888 = __objc_msgSend_888Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_getCachedResponseForDataTask_completionHandler_1 = - _registerName1("getCachedResponseForDataTask:completionHandler:"); - void _objc_msgSend_889( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer dataTask, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_889( - obj, - sel, - dataTask, - completionHandler, - ); - } - - late final __objc_msgSend_889Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_889 = __objc_msgSend_889Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_removeCachedResponseForDataTask_1 = - _registerName1("removeCachedResponseForDataTask:"); - void _objc_msgSend_890( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer dataTask, - ) { - return __objc_msgSend_890( - obj, - sel, - dataTask, - ); - } - - late final __objc_msgSend_890Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_890 = __objc_msgSend_890Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _class_NSURLConnection1 = _getClass1("NSURLConnection"); - late final _sel_initWithRequest_delegate_startImmediately_1 = - _registerName1("initWithRequest:delegate:startImmediately:"); - instancetype _objc_msgSend_891( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer request, - ffi.Pointer delegate, - bool startImmediately, - ) { - return __objc_msgSend_891( - obj, - sel, - request, - delegate, - startImmediately, - ); - } - - late final __objc_msgSend_891Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_891 = __objc_msgSend_891Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, bool)>(); - - late final _sel_initWithRequest_delegate_1 = - _registerName1("initWithRequest:delegate:"); - instancetype _objc_msgSend_892( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer request, - ffi.Pointer delegate, - ) { - return __objc_msgSend_892( - obj, - sel, - request, - delegate, - ); - } - - late final __objc_msgSend_892Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_892 = __objc_msgSend_892Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_connectionWithRequest_delegate_1 = - _registerName1("connectionWithRequest:delegate:"); - ffi.Pointer _objc_msgSend_893( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer request, - ffi.Pointer delegate, - ) { - return __objc_msgSend_893( - obj, - sel, - request, - delegate, - ); - } - - late final __objc_msgSend_893Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_893 = __objc_msgSend_893Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_unscheduleFromRunLoop_forMode_1 = - _registerName1("unscheduleFromRunLoop:forMode:"); - late final _sel_setDelegateQueue_1 = _registerName1("setDelegateQueue:"); - void _objc_msgSend_894( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer queue, - ) { - return __objc_msgSend_894( - obj, - sel, - queue, - ); - } - - late final __objc_msgSend_894Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_894 = __objc_msgSend_894Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_canHandleRequest_1 = _registerName1("canHandleRequest:"); - bool _objc_msgSend_895( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer request, - ) { - return __objc_msgSend_895( - obj, - sel, - request, - ); - } - - late final __objc_msgSend_895Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_895 = __objc_msgSend_895Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_sendSynchronousRequest_returningResponse_error_1 = - _registerName1("sendSynchronousRequest:returningResponse:error:"); - ffi.Pointer _objc_msgSend_896( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer request, - ffi.Pointer> response, - ffi.Pointer> error, - ) { - return __objc_msgSend_896( - obj, - sel, - request, - response, - error, - ); - } - - late final __objc_msgSend_896Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_896 = __objc_msgSend_896Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>)>(); - - late final _sel_sendAsynchronousRequest_queue_completionHandler_1 = - _registerName1("sendAsynchronousRequest:queue:completionHandler:"); - void _objc_msgSend_897( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer request, - ffi.Pointer queue, - ffi.Pointer<_ObjCBlock> handler, - ) { - return __objc_msgSend_897( - obj, - sel, - request, - queue, - handler, - ); - } - - late final __objc_msgSend_897Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_897 = __objc_msgSend_897Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _class_NSURLCredential1 = _getClass1("NSURLCredential"); - late final _sel_persistence1 = _registerName1("persistence"); - int _objc_msgSend_898( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_898( - obj, - sel, - ); - } - - late final __objc_msgSend_898Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_898 = __objc_msgSend_898Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_initWithUser_password_persistence_1 = - _registerName1("initWithUser:password:persistence:"); - instancetype _objc_msgSend_899( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer user, - ffi.Pointer password, - int persistence, - ) { - return __objc_msgSend_899( - obj, - sel, - user, - password, - persistence, - ); - } - - late final __objc_msgSend_899Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_899 = __objc_msgSend_899Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_credentialWithUser_password_persistence_1 = - _registerName1("credentialWithUser:password:persistence:"); - ffi.Pointer _objc_msgSend_900( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer user, - ffi.Pointer password, - int persistence, - ) { - return __objc_msgSend_900( - obj, - sel, - user, - password, - persistence, - ); - } - - late final __objc_msgSend_900Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_900 = __objc_msgSend_900Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); - - late final _sel_hasPassword1 = _registerName1("hasPassword"); - late final _sel_initWithIdentity_certificates_persistence_1 = - _registerName1("initWithIdentity:certificates:persistence:"); - instancetype _objc_msgSend_901( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<__SecIdentity> identity, - ffi.Pointer certArray, - int persistence, - ) { - return __objc_msgSend_901( - obj, - sel, - identity, - certArray, - persistence, - ); - } - - late final __objc_msgSend_901Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__SecIdentity>, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_901 = __objc_msgSend_901Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<__SecIdentity>, ffi.Pointer, int)>(); - - late final _sel_credentialWithIdentity_certificates_persistence_1 = - _registerName1("credentialWithIdentity:certificates:persistence:"); - ffi.Pointer _objc_msgSend_902( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<__SecIdentity> identity, - ffi.Pointer certArray, - int persistence, - ) { - return __objc_msgSend_902( - obj, - sel, - identity, - certArray, - persistence, - ); - } - - late final __objc_msgSend_902Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__SecIdentity>, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_902 = __objc_msgSend_902Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__SecIdentity>, - ffi.Pointer, - int)>(); - - late final _sel_identity1 = _registerName1("identity"); - ffi.Pointer<__SecIdentity> _objc_msgSend_903( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_903( - obj, - sel, - ); - } - - late final __objc_msgSend_903Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer<__SecIdentity> Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_903 = __objc_msgSend_903Ptr.asFunction< - ffi.Pointer<__SecIdentity> Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_certificates1 = _registerName1("certificates"); - late final _sel_initWithTrust_1 = _registerName1("initWithTrust:"); - instancetype _objc_msgSend_904( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<__SecTrust> trust, - ) { - return __objc_msgSend_904( - obj, - sel, - trust, - ); - } - - late final __objc_msgSend_904Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<__SecTrust>)>>('objc_msgSend'); - late final __objc_msgSend_904 = __objc_msgSend_904Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<__SecTrust>)>(); - - late final _sel_credentialForTrust_1 = _registerName1("credentialForTrust:"); - ffi.Pointer _objc_msgSend_905( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<__SecTrust> trust, - ) { - return __objc_msgSend_905( - obj, - sel, - trust, - ); - } - - late final __objc_msgSend_905Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<__SecTrust>)>>('objc_msgSend'); - late final __objc_msgSend_905 = __objc_msgSend_905Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<__SecTrust>)>(); - - late final _class_NSURLProtectionSpace1 = _getClass1("NSURLProtectionSpace"); - late final _sel_initWithHost_port_protocol_realm_authenticationMethod_1 = - _registerName1("initWithHost:port:protocol:realm:authenticationMethod:"); - instancetype _objc_msgSend_906( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer host, - int port, - ffi.Pointer protocol, - ffi.Pointer realm, - ffi.Pointer authenticationMethod, - ) { - return __objc_msgSend_906( - obj, - sel, - host, - port, - protocol, - realm, - authenticationMethod, - ); - } - - late final __objc_msgSend_906Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_906 = __objc_msgSend_906Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_initWithProxyHost_port_type_realm_authenticationMethod_1 = - _registerName1("initWithProxyHost:port:type:realm:authenticationMethod:"); - late final _sel_realm1 = _registerName1("realm"); - late final _sel_receivesCredentialSecurely1 = - _registerName1("receivesCredentialSecurely"); - late final _sel_isProxy1 = _registerName1("isProxy"); - late final _sel_proxyType1 = _registerName1("proxyType"); - late final _sel_protocol1 = _registerName1("protocol"); - late final _sel_authenticationMethod1 = - _registerName1("authenticationMethod"); - late final _sel_distinguishedNames1 = _registerName1("distinguishedNames"); - late final _sel_serverTrust1 = _registerName1("serverTrust"); - ffi.Pointer<__SecTrust> _objc_msgSend_907( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_907( - obj, - sel, - ); - } - - late final __objc_msgSend_907Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer<__SecTrust> Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_907 = __objc_msgSend_907Ptr.asFunction< - ffi.Pointer<__SecTrust> Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _class_NSURLCredentialStorage1 = - _getClass1("NSURLCredentialStorage"); - late final _sel_sharedCredentialStorage1 = - _registerName1("sharedCredentialStorage"); - ffi.Pointer _objc_msgSend_908( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_908( - obj, - sel, - ); - } - - late final __objc_msgSend_908Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_908 = __objc_msgSend_908Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_credentialsForProtectionSpace_1 = - _registerName1("credentialsForProtectionSpace:"); - ffi.Pointer _objc_msgSend_909( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer space, - ) { - return __objc_msgSend_909( - obj, - sel, - space, - ); - } - - late final __objc_msgSend_909Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_909 = __objc_msgSend_909Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_allCredentials1 = _registerName1("allCredentials"); - late final _sel_setCredential_forProtectionSpace_1 = - _registerName1("setCredential:forProtectionSpace:"); - void _objc_msgSend_910( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer credential, - ffi.Pointer space, - ) { - return __objc_msgSend_910( - obj, - sel, - credential, - space, - ); - } - - late final __objc_msgSend_910Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_910 = __objc_msgSend_910Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_removeCredential_forProtectionSpace_1 = - _registerName1("removeCredential:forProtectionSpace:"); - late final _sel_removeCredential_forProtectionSpace_options_1 = - _registerName1("removeCredential:forProtectionSpace:options:"); - void _objc_msgSend_911( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer credential, - ffi.Pointer space, - ffi.Pointer options, - ) { - return __objc_msgSend_911( - obj, - sel, - credential, - space, - options, - ); - } - - late final __objc_msgSend_911Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_911 = __objc_msgSend_911Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_defaultCredentialForProtectionSpace_1 = - _registerName1("defaultCredentialForProtectionSpace:"); - ffi.Pointer _objc_msgSend_912( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer space, - ) { - return __objc_msgSend_912( - obj, - sel, - space, - ); - } - - late final __objc_msgSend_912Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_912 = __objc_msgSend_912Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setDefaultCredential_forProtectionSpace_1 = - _registerName1("setDefaultCredential:forProtectionSpace:"); - late final _sel_getCredentialsForProtectionSpace_task_completionHandler_1 = - _registerName1( - "getCredentialsForProtectionSpace:task:completionHandler:"); - void _objc_msgSend_913( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer protectionSpace, - ffi.Pointer task, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_913( - obj, - sel, - protectionSpace, - task, - completionHandler, - ); - } - - late final __objc_msgSend_913Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_913 = __objc_msgSend_913Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_setCredential_forProtectionSpace_task_1 = - _registerName1("setCredential:forProtectionSpace:task:"); - void _objc_msgSend_914( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer credential, - ffi.Pointer protectionSpace, - ffi.Pointer task, - ) { - return __objc_msgSend_914( - obj, - sel, - credential, - protectionSpace, - task, - ); - } - - late final __objc_msgSend_914Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_914 = __objc_msgSend_914Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_removeCredential_forProtectionSpace_options_task_1 = - _registerName1("removeCredential:forProtectionSpace:options:task:"); - void _objc_msgSend_915( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer credential, - ffi.Pointer protectionSpace, - ffi.Pointer options, - ffi.Pointer task, - ) { - return __objc_msgSend_915( - obj, - sel, - credential, - protectionSpace, - options, - task, - ); - } - - late final __objc_msgSend_915Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_915 = __objc_msgSend_915Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_getDefaultCredentialForProtectionSpace_task_completionHandler_1 = - _registerName1( - "getDefaultCredentialForProtectionSpace:task:completionHandler:"); - void _objc_msgSend_916( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer space, - ffi.Pointer task, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_916( - obj, - sel, - space, - task, - completionHandler, - ); - } - - late final __objc_msgSend_916Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_916 = __objc_msgSend_916Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_setDefaultCredential_forProtectionSpace_task_1 = - _registerName1("setDefaultCredential:forProtectionSpace:task:"); - late final _class_NSURLProtocol1 = _getClass1("NSURLProtocol"); - late final _sel_initWithRequest_cachedResponse_client_1 = - _registerName1("initWithRequest:cachedResponse:client:"); - instancetype _objc_msgSend_917( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer request, - ffi.Pointer cachedResponse, - ffi.Pointer client, - ) { - return __objc_msgSend_917( - obj, - sel, - request, - cachedResponse, - client, - ); - } - - late final __objc_msgSend_917Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_917 = __objc_msgSend_917Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_client1 = _registerName1("client"); - late final _sel_request1 = _registerName1("request"); - late final _sel_cachedResponse1 = _registerName1("cachedResponse"); - ffi.Pointer _objc_msgSend_918( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_918( - obj, - sel, - ); - } - - late final __objc_msgSend_918Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_918 = __objc_msgSend_918Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_canInitWithRequest_1 = _registerName1("canInitWithRequest:"); - late final _sel_canonicalRequestForRequest_1 = - _registerName1("canonicalRequestForRequest:"); - ffi.Pointer _objc_msgSend_919( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer request, - ) { - return __objc_msgSend_919( - obj, - sel, - request, - ); - } - - late final __objc_msgSend_919Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_919 = __objc_msgSend_919Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_requestIsCacheEquivalent_toRequest_1 = - _registerName1("requestIsCacheEquivalent:toRequest:"); - bool _objc_msgSend_920( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer a, - ffi.Pointer b, - ) { - return __objc_msgSend_920( - obj, - sel, - a, - b, - ); - } - - late final __objc_msgSend_920Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_920 = __objc_msgSend_920Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_startLoading1 = _registerName1("startLoading"); - late final _sel_stopLoading1 = _registerName1("stopLoading"); - late final _sel_propertyForKey_inRequest_1 = - _registerName1("propertyForKey:inRequest:"); - ffi.Pointer _objc_msgSend_921( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer key, - ffi.Pointer request, - ) { - return __objc_msgSend_921( - obj, - sel, - key, - request, - ); - } - - late final __objc_msgSend_921Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_921 = __objc_msgSend_921Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _class_NSMutableURLRequest1 = _getClass1("NSMutableURLRequest"); - late final _sel_setURL_1 = _registerName1("setURL:"); - late final _sel_setCachePolicy_1 = _registerName1("setCachePolicy:"); - void _objc_msgSend_922( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_922( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_922Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_922 = __objc_msgSend_922Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_setTimeoutInterval_1 = _registerName1("setTimeoutInterval:"); - late final _sel_setMainDocumentURL_1 = _registerName1("setMainDocumentURL:"); - late final _sel_setNetworkServiceType_1 = - _registerName1("setNetworkServiceType:"); - void _objc_msgSend_923( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_923( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_923Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_923 = __objc_msgSend_923Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_setAllowsCellularAccess_1 = - _registerName1("setAllowsCellularAccess:"); - late final _sel_setAllowsExpensiveNetworkAccess_1 = - _registerName1("setAllowsExpensiveNetworkAccess:"); - late final _sel_setAllowsConstrainedNetworkAccess_1 = - _registerName1("setAllowsConstrainedNetworkAccess:"); - late final _sel_setAssumesHTTP3Capable_1 = - _registerName1("setAssumesHTTP3Capable:"); - late final _sel_setAttribution_1 = _registerName1("setAttribution:"); - void _objc_msgSend_924( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_924( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_924Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_924 = __objc_msgSend_924Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_setRequiresDNSSECValidation_1 = - _registerName1("setRequiresDNSSECValidation:"); - late final _sel_setHTTPMethod_1 = _registerName1("setHTTPMethod:"); - late final _sel_setAllHTTPHeaderFields_1 = - _registerName1("setAllHTTPHeaderFields:"); - late final _sel_setValue_forHTTPHeaderField_1 = - _registerName1("setValue:forHTTPHeaderField:"); - late final _sel_addValue_forHTTPHeaderField_1 = - _registerName1("addValue:forHTTPHeaderField:"); - late final _sel_setHTTPBody_1 = _registerName1("setHTTPBody:"); - void _objc_msgSend_925( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_925( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_925Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_925 = __objc_msgSend_925Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_setHTTPBodyStream_1 = _registerName1("setHTTPBodyStream:"); - void _objc_msgSend_926( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_926( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_926Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_926 = __objc_msgSend_926Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_setHTTPShouldHandleCookies_1 = - _registerName1("setHTTPShouldHandleCookies:"); - late final _sel_setHTTPShouldUsePipelining_1 = - _registerName1("setHTTPShouldUsePipelining:"); - late final _sel_setProperty_forKey_inRequest_1 = - _registerName1("setProperty:forKey:inRequest:"); - void _objc_msgSend_927( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ffi.Pointer key, - ffi.Pointer request, - ) { - return __objc_msgSend_927( - obj, - sel, - value, - key, - request, - ); - } - - late final __objc_msgSend_927Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_927 = __objc_msgSend_927Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_removePropertyForKey_inRequest_1 = - _registerName1("removePropertyForKey:inRequest:"); - void _objc_msgSend_928( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer key, - ffi.Pointer request, - ) { - return __objc_msgSend_928( - obj, - sel, - key, - request, - ); - } - - late final __objc_msgSend_928Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_928 = __objc_msgSend_928Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_registerClass_1 = _registerName1("registerClass:"); - late final _sel_unregisterClass_1 = _registerName1("unregisterClass:"); - late final _sel_canInitWithTask_1 = _registerName1("canInitWithTask:"); - bool _objc_msgSend_929( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer task, - ) { - return __objc_msgSend_929( - obj, - sel, - task, - ); - } - - late final __objc_msgSend_929Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_929 = __objc_msgSend_929Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_initWithTask_cachedResponse_client_1 = - _registerName1("initWithTask:cachedResponse:client:"); - instancetype _objc_msgSend_930( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer task, - ffi.Pointer cachedResponse, - ffi.Pointer client, - ) { - return __objc_msgSend_930( - obj, - sel, - task, - cachedResponse, - client, - ); - } - - late final __objc_msgSend_930Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_930 = __objc_msgSend_930Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_task1 = _registerName1("task"); - ffi.Pointer _objc_msgSend_931( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_931( - obj, - sel, - ); - } - - late final __objc_msgSend_931Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_931 = __objc_msgSend_931Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _class_NSXMLParser1 = _getClass1("NSXMLParser"); - late final _sel_initWithStream_1 = _registerName1("initWithStream:"); - instancetype _objc_msgSend_932( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer stream, - ) { - return __objc_msgSend_932( - obj, - sel, - stream, - ); - } - - late final __objc_msgSend_932Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_932 = __objc_msgSend_932Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_shouldProcessNamespaces1 = - _registerName1("shouldProcessNamespaces"); - late final _sel_setShouldProcessNamespaces_1 = - _registerName1("setShouldProcessNamespaces:"); - late final _sel_shouldReportNamespacePrefixes1 = - _registerName1("shouldReportNamespacePrefixes"); - late final _sel_setShouldReportNamespacePrefixes_1 = - _registerName1("setShouldReportNamespacePrefixes:"); - late final _sel_externalEntityResolvingPolicy1 = - _registerName1("externalEntityResolvingPolicy"); - int _objc_msgSend_933( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_933( - obj, - sel, - ); - } - - late final __objc_msgSend_933Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_933 = __objc_msgSend_933Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setExternalEntityResolvingPolicy_1 = - _registerName1("setExternalEntityResolvingPolicy:"); - void _objc_msgSend_934( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_934( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_934Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_934 = __objc_msgSend_934Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_allowedExternalEntityURLs1 = - _registerName1("allowedExternalEntityURLs"); - late final _sel_setAllowedExternalEntityURLs_1 = - _registerName1("setAllowedExternalEntityURLs:"); - void _objc_msgSend_935( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_935( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_935Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_935 = __objc_msgSend_935Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_parse1 = _registerName1("parse"); - late final _sel_abortParsing1 = _registerName1("abortParsing"); - late final _sel_parserError1 = _registerName1("parserError"); - late final _sel_shouldResolveExternalEntities1 = - _registerName1("shouldResolveExternalEntities"); - late final _sel_setShouldResolveExternalEntities_1 = - _registerName1("setShouldResolveExternalEntities:"); - late final _sel_publicID1 = _registerName1("publicID"); - late final _sel_systemID1 = _registerName1("systemID"); - late final _sel_lineNumber1 = _registerName1("lineNumber"); - late final _sel_columnNumber1 = _registerName1("columnNumber"); - late final _class_NSFileWrapper1 = _getClass1("NSFileWrapper"); - late final _sel_initWithURL_options_error_1 = - _registerName1("initWithURL:options:error:"); - instancetype _objc_msgSend_936( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - int options, - ffi.Pointer> outError, - ) { - return __objc_msgSend_936( - obj, - sel, - url, - options, - outError, - ); - } - - late final __objc_msgSend_936Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_936 = __objc_msgSend_936Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); - - late final _sel_initDirectoryWithFileWrappers_1 = - _registerName1("initDirectoryWithFileWrappers:"); - late final _sel_initRegularFileWithContents_1 = - _registerName1("initRegularFileWithContents:"); - late final _sel_initSymbolicLinkWithDestinationURL_1 = - _registerName1("initSymbolicLinkWithDestinationURL:"); - late final _sel_initWithSerializedRepresentation_1 = - _registerName1("initWithSerializedRepresentation:"); - late final _sel_isDirectory1 = _registerName1("isDirectory"); - late final _sel_isRegularFile1 = _registerName1("isRegularFile"); - late final _sel_isSymbolicLink1 = _registerName1("isSymbolicLink"); - late final _sel_preferredFilename1 = _registerName1("preferredFilename"); - late final _sel_setPreferredFilename_1 = - _registerName1("setPreferredFilename:"); - late final _sel_filename1 = _registerName1("filename"); - late final _sel_setFilename_1 = _registerName1("setFilename:"); - late final _sel_fileAttributes1 = _registerName1("fileAttributes"); - late final _sel_setFileAttributes_1 = _registerName1("setFileAttributes:"); - late final _sel_matchesContentsOfURL_1 = - _registerName1("matchesContentsOfURL:"); - late final _sel_readFromURL_options_error_1 = - _registerName1("readFromURL:options:error:"); - bool _objc_msgSend_937( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - int options, - ffi.Pointer> outError, - ) { - return __objc_msgSend_937( - obj, - sel, - url, - options, - outError, - ); - } - - late final __objc_msgSend_937Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_937 = __objc_msgSend_937Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); - - late final _sel_writeToURL_options_originalContentsURL_error_1 = - _registerName1("writeToURL:options:originalContentsURL:error:"); - bool _objc_msgSend_938( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - int options, - ffi.Pointer originalContentsURL, - ffi.Pointer> outError, - ) { - return __objc_msgSend_938( - obj, - sel, - url, - options, - originalContentsURL, - outError, - ); - } - - late final __objc_msgSend_938Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_938 = __objc_msgSend_938Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_serializedRepresentation1 = - _registerName1("serializedRepresentation"); - late final _sel_addFileWrapper_1 = _registerName1("addFileWrapper:"); - ffi.Pointer _objc_msgSend_939( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer child, - ) { - return __objc_msgSend_939( - obj, - sel, - child, - ); - } - - late final __objc_msgSend_939Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_939 = __objc_msgSend_939Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_addRegularFileWithContents_preferredFilename_1 = - _registerName1("addRegularFileWithContents:preferredFilename:"); - ffi.Pointer _objc_msgSend_940( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer data, - ffi.Pointer fileName, - ) { - return __objc_msgSend_940( - obj, - sel, - data, - fileName, - ); - } - - late final __objc_msgSend_940Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_940 = __objc_msgSend_940Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_removeFileWrapper_1 = _registerName1("removeFileWrapper:"); - void _objc_msgSend_941( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer child, - ) { - return __objc_msgSend_941( - obj, - sel, - child, - ); - } - - late final __objc_msgSend_941Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_941 = __objc_msgSend_941Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_fileWrappers1 = _registerName1("fileWrappers"); - late final _sel_keyForFileWrapper_1 = _registerName1("keyForFileWrapper:"); - late final _sel_regularFileContents1 = _registerName1("regularFileContents"); - late final _sel_symbolicLinkDestinationURL1 = - _registerName1("symbolicLinkDestinationURL"); - late final _sel_initSymbolicLinkWithDestination_1 = - _registerName1("initSymbolicLinkWithDestination:"); - late final _sel_needsToBeUpdatedFromPath_1 = - _registerName1("needsToBeUpdatedFromPath:"); - late final _sel_updateFromPath_1 = _registerName1("updateFromPath:"); - late final _sel_writeToFile_atomically_updateFilenames_1 = - _registerName1("writeToFile:atomically:updateFilenames:"); - bool _objc_msgSend_942( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - bool atomicFlag, - bool updateFilenamesFlag, - ) { - return __objc_msgSend_942( - obj, - sel, - path, - atomicFlag, - updateFilenamesFlag, - ); - } - - late final __objc_msgSend_942Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_942 = __objc_msgSend_942Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool, bool)>(); - - late final _sel_addFileWithPath_1 = _registerName1("addFileWithPath:"); - late final _sel_addSymbolicLinkWithDestination_preferredFilename_1 = - _registerName1("addSymbolicLinkWithDestination:preferredFilename:"); - late final _sel_symbolicLinkDestination1 = - _registerName1("symbolicLinkDestination"); - late final _class_NSURLSession1 = _getClass1("NSURLSession"); - late final _sel_sharedSession1 = _registerName1("sharedSession"); - ffi.Pointer _objc_msgSend_943( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_943( - obj, - sel, - ); - } - - late final __objc_msgSend_943Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_943 = __objc_msgSend_943Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _class_NSURLSessionConfiguration1 = - _getClass1("NSURLSessionConfiguration"); - late final _sel_defaultSessionConfiguration1 = - _registerName1("defaultSessionConfiguration"); - ffi.Pointer _objc_msgSend_944( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_944( - obj, - sel, - ); - } - - late final __objc_msgSend_944Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_944 = __objc_msgSend_944Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_ephemeralSessionConfiguration1 = - _registerName1("ephemeralSessionConfiguration"); - late final _sel_backgroundSessionConfigurationWithIdentifier_1 = - _registerName1("backgroundSessionConfigurationWithIdentifier:"); - ffi.Pointer _objc_msgSend_945( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer identifier, - ) { - return __objc_msgSend_945( - obj, - sel, - identifier, - ); - } - - late final __objc_msgSend_945Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_945 = __objc_msgSend_945Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_identifier1 = _registerName1("identifier"); - late final _sel_requestCachePolicy1 = _registerName1("requestCachePolicy"); - late final _sel_setRequestCachePolicy_1 = - _registerName1("setRequestCachePolicy:"); - late final _sel_timeoutIntervalForRequest1 = - _registerName1("timeoutIntervalForRequest"); - late final _sel_setTimeoutIntervalForRequest_1 = - _registerName1("setTimeoutIntervalForRequest:"); - late final _sel_timeoutIntervalForResource1 = - _registerName1("timeoutIntervalForResource"); - late final _sel_setTimeoutIntervalForResource_1 = - _registerName1("setTimeoutIntervalForResource:"); - late final _sel_waitsForConnectivity1 = - _registerName1("waitsForConnectivity"); - late final _sel_setWaitsForConnectivity_1 = - _registerName1("setWaitsForConnectivity:"); - late final _sel_isDiscretionary1 = _registerName1("isDiscretionary"); - late final _sel_setDiscretionary_1 = _registerName1("setDiscretionary:"); - late final _sel_sharedContainerIdentifier1 = - _registerName1("sharedContainerIdentifier"); - late final _sel_setSharedContainerIdentifier_1 = - _registerName1("setSharedContainerIdentifier:"); - late final _sel_sessionSendsLaunchEvents1 = - _registerName1("sessionSendsLaunchEvents"); - late final _sel_setSessionSendsLaunchEvents_1 = - _registerName1("setSessionSendsLaunchEvents:"); - late final _sel_connectionProxyDictionary1 = - _registerName1("connectionProxyDictionary"); - late final _sel_setConnectionProxyDictionary_1 = - _registerName1("setConnectionProxyDictionary:"); - late final _sel_TLSMinimumSupportedProtocol1 = - _registerName1("TLSMinimumSupportedProtocol"); - int _objc_msgSend_946( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_946( - obj, - sel, - ); - } - - late final __objc_msgSend_946Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_946 = __objc_msgSend_946Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setTLSMinimumSupportedProtocol_1 = - _registerName1("setTLSMinimumSupportedProtocol:"); - void _objc_msgSend_947( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_947( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_947Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_947 = __objc_msgSend_947Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_TLSMaximumSupportedProtocol1 = - _registerName1("TLSMaximumSupportedProtocol"); - late final _sel_setTLSMaximumSupportedProtocol_1 = - _registerName1("setTLSMaximumSupportedProtocol:"); - late final _sel_TLSMinimumSupportedProtocolVersion1 = - _registerName1("TLSMinimumSupportedProtocolVersion"); - int _objc_msgSend_948( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_948( - obj, - sel, - ); - } - - late final __objc_msgSend_948Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_948 = __objc_msgSend_948Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setTLSMinimumSupportedProtocolVersion_1 = - _registerName1("setTLSMinimumSupportedProtocolVersion:"); - void _objc_msgSend_949( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_949( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_949Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_949 = __objc_msgSend_949Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_TLSMaximumSupportedProtocolVersion1 = - _registerName1("TLSMaximumSupportedProtocolVersion"); - late final _sel_setTLSMaximumSupportedProtocolVersion_1 = - _registerName1("setTLSMaximumSupportedProtocolVersion:"); - late final _sel_HTTPShouldSetCookies1 = - _registerName1("HTTPShouldSetCookies"); - late final _sel_setHTTPShouldSetCookies_1 = - _registerName1("setHTTPShouldSetCookies:"); - late final _sel_HTTPCookieAcceptPolicy1 = - _registerName1("HTTPCookieAcceptPolicy"); - late final _sel_setHTTPCookieAcceptPolicy_1 = - _registerName1("setHTTPCookieAcceptPolicy:"); - late final _sel_HTTPAdditionalHeaders1 = - _registerName1("HTTPAdditionalHeaders"); - late final _sel_setHTTPAdditionalHeaders_1 = - _registerName1("setHTTPAdditionalHeaders:"); - late final _sel_HTTPMaximumConnectionsPerHost1 = - _registerName1("HTTPMaximumConnectionsPerHost"); - late final _sel_setHTTPMaximumConnectionsPerHost_1 = - _registerName1("setHTTPMaximumConnectionsPerHost:"); - late final _sel_HTTPCookieStorage1 = _registerName1("HTTPCookieStorage"); - late final _sel_setHTTPCookieStorage_1 = - _registerName1("setHTTPCookieStorage:"); - void _objc_msgSend_950( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_950( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_950Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_950 = __objc_msgSend_950Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_URLCredentialStorage1 = - _registerName1("URLCredentialStorage"); - late final _sel_setURLCredentialStorage_1 = - _registerName1("setURLCredentialStorage:"); - void _objc_msgSend_951( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_951( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_951Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_951 = __objc_msgSend_951Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_URLCache1 = _registerName1("URLCache"); - late final _sel_setURLCache_1 = _registerName1("setURLCache:"); - late final _sel_shouldUseExtendedBackgroundIdleMode1 = - _registerName1("shouldUseExtendedBackgroundIdleMode"); - late final _sel_setShouldUseExtendedBackgroundIdleMode_1 = - _registerName1("setShouldUseExtendedBackgroundIdleMode:"); - late final _sel_protocolClasses1 = _registerName1("protocolClasses"); - late final _sel_setProtocolClasses_1 = _registerName1("setProtocolClasses:"); - late final _sel_multipathServiceType1 = - _registerName1("multipathServiceType"); - int _objc_msgSend_952( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_952( - obj, - sel, - ); - } - - late final __objc_msgSend_952Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_952 = __objc_msgSend_952Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setMultipathServiceType_1 = - _registerName1("setMultipathServiceType:"); - void _objc_msgSend_953( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_953( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_953Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_953 = __objc_msgSend_953Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_backgroundSessionConfiguration_1 = - _registerName1("backgroundSessionConfiguration:"); - late final _sel_sessionWithConfiguration_1 = - _registerName1("sessionWithConfiguration:"); - ffi.Pointer _objc_msgSend_954( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer configuration, - ) { - return __objc_msgSend_954( - obj, - sel, - configuration, - ); - } - - late final __objc_msgSend_954Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_954 = __objc_msgSend_954Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_sessionWithConfiguration_delegate_delegateQueue_1 = - _registerName1("sessionWithConfiguration:delegate:delegateQueue:"); - ffi.Pointer _objc_msgSend_955( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer configuration, - ffi.Pointer delegate, - ffi.Pointer queue, - ) { - return __objc_msgSend_955( - obj, - sel, - configuration, - delegate, - queue, - ); - } - - late final __objc_msgSend_955Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_955 = __objc_msgSend_955Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_delegateQueue1 = _registerName1("delegateQueue"); - late final _sel_configuration1 = _registerName1("configuration"); - late final _sel_sessionDescription1 = _registerName1("sessionDescription"); - late final _sel_setSessionDescription_1 = - _registerName1("setSessionDescription:"); - late final _sel_finishTasksAndInvalidate1 = - _registerName1("finishTasksAndInvalidate"); - late final _sel_invalidateAndCancel1 = _registerName1("invalidateAndCancel"); - late final _sel_resetWithCompletionHandler_1 = - _registerName1("resetWithCompletionHandler:"); - late final _sel_flushWithCompletionHandler_1 = - _registerName1("flushWithCompletionHandler:"); - late final _sel_getTasksWithCompletionHandler_1 = - _registerName1("getTasksWithCompletionHandler:"); - void _objc_msgSend_956( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_956( - obj, - sel, - completionHandler, - ); - } - - late final __objc_msgSend_956Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_956 = __objc_msgSend_956Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_getAllTasksWithCompletionHandler_1 = - _registerName1("getAllTasksWithCompletionHandler:"); - void _objc_msgSend_957( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_957( - obj, - sel, - completionHandler, - ); - } - - late final __objc_msgSend_957Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_957 = __objc_msgSend_957Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_dataTaskWithRequest_1 = - _registerName1("dataTaskWithRequest:"); - ffi.Pointer _objc_msgSend_958( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer request, - ) { - return __objc_msgSend_958( - obj, - sel, - request, - ); - } - - late final __objc_msgSend_958Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_958 = __objc_msgSend_958Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_dataTaskWithURL_1 = _registerName1("dataTaskWithURL:"); - ffi.Pointer _objc_msgSend_959( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ) { - return __objc_msgSend_959( - obj, - sel, - url, - ); - } - - late final __objc_msgSend_959Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_959 = __objc_msgSend_959Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _class_NSURLSessionUploadTask1 = - _getClass1("NSURLSessionUploadTask"); - late final _sel_uploadTaskWithRequest_fromFile_1 = - _registerName1("uploadTaskWithRequest:fromFile:"); - ffi.Pointer _objc_msgSend_960( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer request, - ffi.Pointer fileURL, - ) { - return __objc_msgSend_960( - obj, - sel, - request, - fileURL, - ); - } - - late final __objc_msgSend_960Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_960 = __objc_msgSend_960Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_uploadTaskWithRequest_fromData_1 = - _registerName1("uploadTaskWithRequest:fromData:"); - ffi.Pointer _objc_msgSend_961( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer request, - ffi.Pointer bodyData, - ) { - return __objc_msgSend_961( - obj, - sel, - request, - bodyData, - ); - } - - late final __objc_msgSend_961Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_961 = __objc_msgSend_961Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_uploadTaskWithStreamedRequest_1 = - _registerName1("uploadTaskWithStreamedRequest:"); - ffi.Pointer _objc_msgSend_962( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer request, - ) { - return __objc_msgSend_962( - obj, - sel, - request, - ); - } - - late final __objc_msgSend_962Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_962 = __objc_msgSend_962Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _class_NSURLSessionDownloadTask1 = - _getClass1("NSURLSessionDownloadTask"); - late final _sel_cancelByProducingResumeData_1 = - _registerName1("cancelByProducingResumeData:"); - void _objc_msgSend_963( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_963( - obj, - sel, - completionHandler, - ); - } - - late final __objc_msgSend_963Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_963 = __objc_msgSend_963Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_downloadTaskWithRequest_1 = - _registerName1("downloadTaskWithRequest:"); - ffi.Pointer _objc_msgSend_964( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer request, - ) { - return __objc_msgSend_964( - obj, - sel, - request, - ); - } - - late final __objc_msgSend_964Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_964 = __objc_msgSend_964Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_downloadTaskWithURL_1 = - _registerName1("downloadTaskWithURL:"); - ffi.Pointer _objc_msgSend_965( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ) { - return __objc_msgSend_965( - obj, - sel, - url, - ); - } - - late final __objc_msgSend_965Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_965 = __objc_msgSend_965Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_downloadTaskWithResumeData_1 = - _registerName1("downloadTaskWithResumeData:"); - ffi.Pointer _objc_msgSend_966( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer resumeData, - ) { - return __objc_msgSend_966( - obj, - sel, - resumeData, - ); - } - - late final __objc_msgSend_966Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_966 = __objc_msgSend_966Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _class_NSURLSessionStreamTask1 = - _getClass1("NSURLSessionStreamTask"); - late final _sel_readDataOfMinLength_maxLength_timeout_completionHandler_1 = - _registerName1( - "readDataOfMinLength:maxLength:timeout:completionHandler:"); - void _objc_msgSend_967( - ffi.Pointer obj, - ffi.Pointer sel, - int minBytes, - int maxBytes, - double timeout, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_967( - obj, - sel, - minBytes, - maxBytes, - timeout, - completionHandler, - ); - } - - late final __objc_msgSend_967Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, - ffi.Double, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_967 = __objc_msgSend_967Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, int, - double, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_writeData_timeout_completionHandler_1 = - _registerName1("writeData:timeout:completionHandler:"); - void _objc_msgSend_968( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer data, - double timeout, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_968( - obj, - sel, - data, - timeout, - completionHandler, - ); - } - - late final __objc_msgSend_968Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Double, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_968 = __objc_msgSend_968Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, double, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_captureStreams1 = _registerName1("captureStreams"); - late final _sel_closeWrite1 = _registerName1("closeWrite"); - late final _sel_closeRead1 = _registerName1("closeRead"); - late final _sel_startSecureConnection1 = - _registerName1("startSecureConnection"); - late final _sel_stopSecureConnection1 = - _registerName1("stopSecureConnection"); - late final _sel_streamTaskWithHostName_port_1 = - _registerName1("streamTaskWithHostName:port:"); - ffi.Pointer _objc_msgSend_969( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer hostname, - int port, - ) { - return __objc_msgSend_969( - obj, - sel, - hostname, - port, - ); - } - - late final __objc_msgSend_969Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_969 = __objc_msgSend_969Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); - - late final _class_NSNetService1 = _getClass1("NSNetService"); - late final _sel_initWithDomain_type_name_port_1 = - _registerName1("initWithDomain:type:name:port:"); - instancetype _objc_msgSend_970( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer domain, - ffi.Pointer type, - ffi.Pointer name, - int port, - ) { - return __objc_msgSend_970( - obj, - sel, - domain, - type, - name, - port, - ); - } - - late final __objc_msgSend_970Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_970 = __objc_msgSend_970Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); - - late final _sel_initWithDomain_type_name_1 = - _registerName1("initWithDomain:type:name:"); - late final _sel_includesPeerToPeer1 = _registerName1("includesPeerToPeer"); - late final _sel_setIncludesPeerToPeer_1 = - _registerName1("setIncludesPeerToPeer:"); - late final _sel_type1 = _registerName1("type"); - late final _sel_publishWithOptions_1 = _registerName1("publishWithOptions:"); - void _objc_msgSend_971( - ffi.Pointer obj, - ffi.Pointer sel, - int options, - ) { - return __objc_msgSend_971( - obj, - sel, - options, - ); - } - - late final __objc_msgSend_971Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_971 = __objc_msgSend_971Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_resolve1 = _registerName1("resolve"); - late final _sel_stop1 = _registerName1("stop"); - late final _sel_dictionaryFromTXTRecordData_1 = - _registerName1("dictionaryFromTXTRecordData:"); - ffi.Pointer _objc_msgSend_972( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer txtData, - ) { - return __objc_msgSend_972( - obj, - sel, - txtData, - ); - } - - late final __objc_msgSend_972Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_972 = __objc_msgSend_972Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_dataFromTXTRecordDictionary_1 = - _registerName1("dataFromTXTRecordDictionary:"); - ffi.Pointer _objc_msgSend_973( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer txtDictionary, - ) { - return __objc_msgSend_973( - obj, - sel, - txtDictionary, - ); - } - - late final __objc_msgSend_973Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_973 = __objc_msgSend_973Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_resolveWithTimeout_1 = _registerName1("resolveWithTimeout:"); - late final _sel_getInputStream_outputStream_1 = - _registerName1("getInputStream:outputStream:"); - bool _objc_msgSend_974( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream, - ) { - return __objc_msgSend_974( - obj, - sel, - inputStream, - outputStream, - ); - } - - late final __objc_msgSend_974Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_974 = __objc_msgSend_974Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>)>(); - - late final _sel_setTXTRecordData_1 = _registerName1("setTXTRecordData:"); - late final _sel_TXTRecordData1 = _registerName1("TXTRecordData"); - late final _sel_startMonitoring1 = _registerName1("startMonitoring"); - late final _sel_stopMonitoring1 = _registerName1("stopMonitoring"); - late final _sel_streamTaskWithNetService_1 = - _registerName1("streamTaskWithNetService:"); - ffi.Pointer _objc_msgSend_975( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer service, - ) { - return __objc_msgSend_975( - obj, - sel, - service, - ); - } - - late final __objc_msgSend_975Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_975 = __objc_msgSend_975Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _class_NSURLSessionWebSocketTask1 = - _getClass1("NSURLSessionWebSocketTask"); - late final _class_NSURLSessionWebSocketMessage1 = - _getClass1("NSURLSessionWebSocketMessage"); - int _objc_msgSend_976( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_976( - obj, - sel, - ); - } - - late final __objc_msgSend_976Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_976 = __objc_msgSend_976Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_sendMessage_completionHandler_1 = - _registerName1("sendMessage:completionHandler:"); - void _objc_msgSend_977( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer message, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_977( - obj, - sel, - message, - completionHandler, - ); - } - - late final __objc_msgSend_977Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_977 = __objc_msgSend_977Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_receiveMessageWithCompletionHandler_1 = - _registerName1("receiveMessageWithCompletionHandler:"); - void _objc_msgSend_978( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_978( - obj, - sel, - completionHandler, - ); - } - - late final __objc_msgSend_978Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_978 = __objc_msgSend_978Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_sendPingWithPongReceiveHandler_1 = - _registerName1("sendPingWithPongReceiveHandler:"); - void _objc_msgSend_979( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> pongReceiveHandler, - ) { - return __objc_msgSend_979( - obj, - sel, - pongReceiveHandler, - ); - } - - late final __objc_msgSend_979Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_979 = __objc_msgSend_979Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_cancelWithCloseCode_reason_1 = - _registerName1("cancelWithCloseCode:reason:"); - void _objc_msgSend_980( - ffi.Pointer obj, - ffi.Pointer sel, - int closeCode, - ffi.Pointer reason, - ) { - return __objc_msgSend_980( - obj, - sel, - closeCode, - reason, - ); - } - - late final __objc_msgSend_980Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_980 = __objc_msgSend_980Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer)>(); - - late final _sel_maximumMessageSize1 = _registerName1("maximumMessageSize"); - late final _sel_setMaximumMessageSize_1 = - _registerName1("setMaximumMessageSize:"); - late final _sel_closeCode1 = _registerName1("closeCode"); - int _objc_msgSend_981( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_981( - obj, - sel, - ); - } - - late final __objc_msgSend_981Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_981 = __objc_msgSend_981Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_closeReason1 = _registerName1("closeReason"); - late final _sel_webSocketTaskWithURL_1 = - _registerName1("webSocketTaskWithURL:"); - ffi.Pointer _objc_msgSend_982( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ) { - return __objc_msgSend_982( - obj, - sel, - url, - ); - } - - late final __objc_msgSend_982Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_982 = __objc_msgSend_982Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_webSocketTaskWithURL_protocols_1 = - _registerName1("webSocketTaskWithURL:protocols:"); - ffi.Pointer _objc_msgSend_983( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer protocols, - ) { - return __objc_msgSend_983( - obj, - sel, - url, - protocols, - ); - } - - late final __objc_msgSend_983Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_983 = __objc_msgSend_983Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_webSocketTaskWithRequest_1 = - _registerName1("webSocketTaskWithRequest:"); - ffi.Pointer _objc_msgSend_984( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer request, - ) { - return __objc_msgSend_984( - obj, - sel, - request, - ); - } - - late final __objc_msgSend_984Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_984 = __objc_msgSend_984Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_dataTaskWithRequest_completionHandler_1 = - _registerName1("dataTaskWithRequest:completionHandler:"); - ffi.Pointer _objc_msgSend_985( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer request, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_985( - obj, - sel, - request, - completionHandler, - ); - } - - late final __objc_msgSend_985Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_985 = __objc_msgSend_985Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_dataTaskWithURL_completionHandler_1 = - _registerName1("dataTaskWithURL:completionHandler:"); - ffi.Pointer _objc_msgSend_986( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_986( - obj, - sel, - url, - completionHandler, - ); - } - - late final __objc_msgSend_986Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_986 = __objc_msgSend_986Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_uploadTaskWithRequest_fromFile_completionHandler_1 = - _registerName1("uploadTaskWithRequest:fromFile:completionHandler:"); - ffi.Pointer _objc_msgSend_987( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer request, - ffi.Pointer fileURL, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_987( - obj, - sel, - request, - fileURL, - completionHandler, - ); - } - - late final __objc_msgSend_987Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_987 = __objc_msgSend_987Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_uploadTaskWithRequest_fromData_completionHandler_1 = - _registerName1("uploadTaskWithRequest:fromData:completionHandler:"); - ffi.Pointer _objc_msgSend_988( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer request, - ffi.Pointer bodyData, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_988( - obj, - sel, - request, - bodyData, - completionHandler, - ); - } - - late final __objc_msgSend_988Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_988 = __objc_msgSend_988Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_downloadTaskWithRequest_completionHandler_1 = - _registerName1("downloadTaskWithRequest:completionHandler:"); - ffi.Pointer _objc_msgSend_989( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer request, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_989( - obj, - sel, - request, - completionHandler, - ); - } - - late final __objc_msgSend_989Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_989 = __objc_msgSend_989Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_downloadTaskWithURL_completionHandler_1 = - _registerName1("downloadTaskWithURL:completionHandler:"); - ffi.Pointer _objc_msgSend_990( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_990( - obj, - sel, - url, - completionHandler, - ); - } - - late final __objc_msgSend_990Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_990 = __objc_msgSend_990Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_downloadTaskWithResumeData_completionHandler_1 = - _registerName1("downloadTaskWithResumeData:completionHandler:"); - ffi.Pointer _objc_msgSend_991( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer resumeData, - ffi.Pointer<_ObjCBlock> completionHandler, - ) { - return __objc_msgSend_991( - obj, - sel, - resumeData, - completionHandler, - ); - } - - late final __objc_msgSend_991Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_991 = __objc_msgSend_991Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _class_NSProtocolChecker1 = _getClass1("NSProtocolChecker"); - ffi.Pointer _objc_msgSend_992( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_992( - obj, - sel, - ); - } - - late final __objc_msgSend_992Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_992 = __objc_msgSend_992Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_protocolCheckerWithTarget_protocol_1 = - _registerName1("protocolCheckerWithTarget:protocol:"); - instancetype _objc_msgSend_993( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer anObject, - ffi.Pointer aProtocol, - ) { - return __objc_msgSend_993( - obj, - sel, - anObject, - aProtocol, - ); - } - - late final __objc_msgSend_993Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_993 = __objc_msgSend_993Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_initWithTarget_protocol_1 = - _registerName1("initWithTarget:protocol:"); - late final _class_NSTask1 = _getClass1("NSTask"); - late final _sel_setExecutableURL_1 = _registerName1("setExecutableURL:"); - late final _sel_setEnvironment_1 = _registerName1("setEnvironment:"); - late final _sel_currentDirectoryURL1 = _registerName1("currentDirectoryURL"); - late final _sel_setCurrentDirectoryURL_1 = - _registerName1("setCurrentDirectoryURL:"); - late final _sel_standardInput1 = _registerName1("standardInput"); - late final _sel_setStandardInput_1 = _registerName1("setStandardInput:"); - late final _sel_standardOutput1 = _registerName1("standardOutput"); - late final _sel_setStandardOutput_1 = _registerName1("setStandardOutput:"); - late final _sel_standardError1 = _registerName1("standardError"); - late final _sel_setStandardError_1 = _registerName1("setStandardError:"); - late final _sel_launchAndReturnError_1 = - _registerName1("launchAndReturnError:"); - late final _sel_interrupt1 = _registerName1("interrupt"); - late final _sel_terminate1 = _registerName1("terminate"); - late final _sel_isRunning1 = _registerName1("isRunning"); - late final _sel_terminationStatus1 = _registerName1("terminationStatus"); - late final _sel_terminationReason1 = _registerName1("terminationReason"); - int _objc_msgSend_994( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_994( - obj, - sel, - ); - } - - late final __objc_msgSend_994Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_994 = __objc_msgSend_994Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_terminationHandler1 = _registerName1("terminationHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_995( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_995( - obj, - sel, - ); - } - - late final __objc_msgSend_995Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_995 = __objc_msgSend_995Ptr.asFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setTerminationHandler_1 = - _registerName1("setTerminationHandler:"); - void _objc_msgSend_996( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> value, - ) { - return __objc_msgSend_996( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_996Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_996 = __objc_msgSend_996Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_1 = - _registerName1( - "launchedTaskWithExecutableURL:arguments:error:terminationHandler:"); - ffi.Pointer _objc_msgSend_997( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer arguments, - ffi.Pointer> error, - ffi.Pointer<_ObjCBlock> terminationHandler, - ) { - return __objc_msgSend_997( - obj, - sel, - url, - arguments, - error, - terminationHandler, - ); - } - - late final __objc_msgSend_997Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_997 = __objc_msgSend_997Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer<_ObjCBlock>)>(); - - late final _sel_waitUntilExit1 = _registerName1("waitUntilExit"); - late final _sel_launchPath1 = _registerName1("launchPath"); - late final _sel_setLaunchPath_1 = _registerName1("setLaunchPath:"); - late final _sel_setCurrentDirectoryPath_1 = - _registerName1("setCurrentDirectoryPath:"); - late final _sel_launch1 = _registerName1("launch"); - late final _sel_launchedTaskWithLaunchPath_arguments_1 = - _registerName1("launchedTaskWithLaunchPath:arguments:"); - ffi.Pointer _objc_msgSend_998( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer arguments, - ) { - return __objc_msgSend_998( - obj, - sel, - path, - arguments, - ); - } - - late final __objc_msgSend_998Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_998 = __objc_msgSend_998Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _class_NSXMLElement1 = _getClass1("NSXMLElement"); - late final _class_NSXMLNode1 = _getClass1("NSXMLNode"); - late final _sel_initWithKind_1 = _registerName1("initWithKind:"); - instancetype _objc_msgSend_999( - ffi.Pointer obj, - ffi.Pointer sel, - int kind, - ) { - return __objc_msgSend_999( - obj, - sel, - kind, - ); - } - - late final __objc_msgSend_999Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_999 = __objc_msgSend_999Ptr.asFunction< - instancetype Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_initWithKind_options_1 = - _registerName1("initWithKind:options:"); - instancetype _objc_msgSend_1000( - ffi.Pointer obj, - ffi.Pointer sel, - int kind, - int options, - ) { - return __objc_msgSend_1000( - obj, - sel, - kind, - options, - ); - } - - late final __objc_msgSend_1000Ptr = _lookup< - ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_1000 = __objc_msgSend_1000Ptr.asFunction< - instancetype Function( - ffi.Pointer, ffi.Pointer, int, int)>(); - - late final _sel_document1 = _registerName1("document"); - late final _sel_documentWithRootElement_1 = - _registerName1("documentWithRootElement:"); - ffi.Pointer _objc_msgSend_1001( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer element, - ) { - return __objc_msgSend_1001( - obj, - sel, - element, - ); - } - - late final __objc_msgSend_1001Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1001 = __objc_msgSend_1001Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_elementWithName_1 = _registerName1("elementWithName:"); - late final _sel_elementWithName_URI_1 = - _registerName1("elementWithName:URI:"); - late final _sel_elementWithName_stringValue_1 = - _registerName1("elementWithName:stringValue:"); - late final _sel_elementWithName_children_attributes_1 = - _registerName1("elementWithName:children:attributes:"); - ffi.Pointer _objc_msgSend_1002( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer children, - ffi.Pointer attributes, - ) { - return __objc_msgSend_1002( - obj, - sel, - name, - children, - attributes, - ); - } - - late final __objc_msgSend_1002Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1002 = __objc_msgSend_1002Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_attributeWithName_stringValue_1 = - _registerName1("attributeWithName:stringValue:"); - late final _sel_attributeWithName_URI_stringValue_1 = - _registerName1("attributeWithName:URI:stringValue:"); - late final _sel_namespaceWithName_stringValue_1 = - _registerName1("namespaceWithName:stringValue:"); - late final _sel_processingInstructionWithName_stringValue_1 = - _registerName1("processingInstructionWithName:stringValue:"); - late final _sel_commentWithStringValue_1 = - _registerName1("commentWithStringValue:"); - late final _sel_textWithStringValue_1 = - _registerName1("textWithStringValue:"); - late final _sel_DTDNodeWithXMLString_1 = - _registerName1("DTDNodeWithXMLString:"); - int _objc_msgSend_1003( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_1003( - obj, - sel, - ); - } - - late final __objc_msgSend_1003Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1003 = __objc_msgSend_1003Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_objectValue1 = _registerName1("objectValue"); - late final _sel_setObjectValue_1 = _registerName1("setObjectValue:"); - late final _sel_setStringValue_1 = _registerName1("setStringValue:"); - late final _sel_setStringValue_resolvingEntities_1 = - _registerName1("setStringValue:resolvingEntities:"); - void _objc_msgSend_1004( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer string, - bool resolve, - ) { - return __objc_msgSend_1004( - obj, - sel, - string, - resolve, - ); - } - - late final __objc_msgSend_1004Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_1004 = __objc_msgSend_1004Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); - - late final _sel_index1 = _registerName1("index"); - late final _sel_level1 = _registerName1("level"); - late final _class_NSXMLDocument1 = _getClass1("NSXMLDocument"); - late final _sel_initWithXMLString_options_error_1 = - _registerName1("initWithXMLString:options:error:"); - instancetype _objc_msgSend_1005( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer string, - int mask, - ffi.Pointer> error, - ) { - return __objc_msgSend_1005( - obj, - sel, - string, - mask, - error, - ); - } - - late final __objc_msgSend_1005Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1005 = __objc_msgSend_1005Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); - - instancetype _objc_msgSend_1006( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer url, - int mask, - ffi.Pointer> error, - ) { - return __objc_msgSend_1006( - obj, - sel, - url, - mask, - error, - ); - } - - late final __objc_msgSend_1006Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1006 = __objc_msgSend_1006Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); - - late final _sel_initWithData_options_error_1 = - _registerName1("initWithData:options:error:"); - instancetype _objc_msgSend_1007( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer data, - int mask, - ffi.Pointer> error, - ) { - return __objc_msgSend_1007( - obj, - sel, - data, - mask, - error, - ); - } - - late final __objc_msgSend_1007Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1007 = __objc_msgSend_1007Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); - - late final _sel_initWithRootElement_1 = - _registerName1("initWithRootElement:"); - late final _sel_replacementClassForClass_1 = - _registerName1("replacementClassForClass:"); - late final _sel_characterEncoding1 = _registerName1("characterEncoding"); - late final _sel_setCharacterEncoding_1 = - _registerName1("setCharacterEncoding:"); - late final _sel_isStandalone1 = _registerName1("isStandalone"); - late final _sel_setStandalone_1 = _registerName1("setStandalone:"); - late final _sel_documentContentKind1 = _registerName1("documentContentKind"); - int _objc_msgSend_1008( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_1008( - obj, - sel, - ); - } - - late final __objc_msgSend_1008Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1008 = __objc_msgSend_1008Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setDocumentContentKind_1 = - _registerName1("setDocumentContentKind:"); - void _objc_msgSend_1009( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_1009( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_1009Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_1009 = __objc_msgSend_1009Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_setMIMEType_1 = _registerName1("setMIMEType:"); - late final _class_NSXMLDTD1 = _getClass1("NSXMLDTD"); - late final _sel_setPublicID_1 = _registerName1("setPublicID:"); - late final _sel_setSystemID_1 = _registerName1("setSystemID:"); - late final _sel_insertChild_atIndex_1 = - _registerName1("insertChild:atIndex:"); - void _objc_msgSend_1010( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer child, - int index, - ) { - return __objc_msgSend_1010( - obj, - sel, - child, - index, - ); - } - - late final __objc_msgSend_1010Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_1010 = __objc_msgSend_1010Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_insertChildren_atIndex_1 = - _registerName1("insertChildren:atIndex:"); - void _objc_msgSend_1011( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer children, - int index, - ) { - return __objc_msgSend_1011( - obj, - sel, - children, - index, - ); - } - - late final __objc_msgSend_1011Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_1011 = __objc_msgSend_1011Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); - - late final _sel_removeChildAtIndex_1 = _registerName1("removeChildAtIndex:"); - late final _sel_setChildren_1 = _registerName1("setChildren:"); - late final _sel_addChild_1 = _registerName1("addChild:"); - void _objc_msgSend_1012( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer child, - ) { - return __objc_msgSend_1012( - obj, - sel, - child, - ); - } - - late final __objc_msgSend_1012Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1012 = __objc_msgSend_1012Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_replaceChildAtIndex_withNode_1 = - _registerName1("replaceChildAtIndex:withNode:"); - void _objc_msgSend_1013( - ffi.Pointer obj, - ffi.Pointer sel, - int index, - ffi.Pointer node, - ) { - return __objc_msgSend_1013( - obj, - sel, - index, - node, - ); - } - - late final __objc_msgSend_1013Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1013 = __objc_msgSend_1013Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer)>(); - - late final _class_NSXMLDTDNode1 = _getClass1("NSXMLDTDNode"); - late final _sel_initWithXMLString_1 = _registerName1("initWithXMLString:"); - late final _sel_DTDKind1 = _registerName1("DTDKind"); - int _objc_msgSend_1014( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_1014( - obj, - sel, - ); - } - - late final __objc_msgSend_1014Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1014 = __objc_msgSend_1014Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setDTDKind_1 = _registerName1("setDTDKind:"); - void _objc_msgSend_1015( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_1015( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_1015Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_1015 = __objc_msgSend_1015Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_isExternal1 = _registerName1("isExternal"); - late final _sel_notationName1 = _registerName1("notationName"); - late final _sel_setNotationName_1 = _registerName1("setNotationName:"); - late final _sel_localNameForName_1 = _registerName1("localNameForName:"); - late final _sel_prefixForName_1 = _registerName1("prefixForName:"); - late final _sel_predefinedNamespaceForPrefix_1 = - _registerName1("predefinedNamespaceForPrefix:"); - ffi.Pointer _objc_msgSend_1016( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer name, - ) { - return __objc_msgSend_1016( - obj, - sel, - name, - ); - } - - late final __objc_msgSend_1016Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1016 = __objc_msgSend_1016Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_entityDeclarationForName_1 = - _registerName1("entityDeclarationForName:"); - ffi.Pointer _objc_msgSend_1017( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer name, - ) { - return __objc_msgSend_1017( - obj, - sel, - name, - ); - } - - late final __objc_msgSend_1017Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1017 = __objc_msgSend_1017Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_notationDeclarationForName_1 = - _registerName1("notationDeclarationForName:"); - late final _sel_elementDeclarationForName_1 = - _registerName1("elementDeclarationForName:"); - late final _sel_attributeDeclarationForName_elementName_1 = - _registerName1("attributeDeclarationForName:elementName:"); - ffi.Pointer _objc_msgSend_1018( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer elementName, - ) { - return __objc_msgSend_1018( - obj, - sel, - name, - elementName, - ); - } - - late final __objc_msgSend_1018Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1018 = __objc_msgSend_1018Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_predefinedEntityDeclarationForName_1 = - _registerName1("predefinedEntityDeclarationForName:"); - late final _sel_DTD1 = _registerName1("DTD"); - ffi.Pointer _objc_msgSend_1019( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_1019( - obj, - sel, - ); - } - - late final __objc_msgSend_1019Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1019 = __objc_msgSend_1019Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setDTD_1 = _registerName1("setDTD:"); - void _objc_msgSend_1020( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_1020( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_1020Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1020 = __objc_msgSend_1020Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_setRootElement_1 = _registerName1("setRootElement:"); - void _objc_msgSend_1021( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer root, - ) { - return __objc_msgSend_1021( - obj, - sel, - root, - ); - } - - late final __objc_msgSend_1021Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1021 = __objc_msgSend_1021Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_rootElement1 = _registerName1("rootElement"); - ffi.Pointer _objc_msgSend_1022( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_1022( - obj, - sel, - ); - } - - late final __objc_msgSend_1022Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1022 = __objc_msgSend_1022Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_XMLData1 = _registerName1("XMLData"); - late final _sel_XMLDataWithOptions_1 = _registerName1("XMLDataWithOptions:"); - ffi.Pointer _objc_msgSend_1023( - ffi.Pointer obj, - ffi.Pointer sel, - int options, - ) { - return __objc_msgSend_1023( - obj, - sel, - options, - ); - } - - late final __objc_msgSend_1023Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_1023 = __objc_msgSend_1023Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_objectByApplyingXSLT_arguments_error_1 = - _registerName1("objectByApplyingXSLT:arguments:error:"); - ffi.Pointer _objc_msgSend_1024( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer xslt, - ffi.Pointer arguments, - ffi.Pointer> error, - ) { - return __objc_msgSend_1024( - obj, - sel, - xslt, - arguments, - error, - ); - } - - late final __objc_msgSend_1024Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1024 = __objc_msgSend_1024Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_objectByApplyingXSLTString_arguments_error_1 = - _registerName1("objectByApplyingXSLTString:arguments:error:"); - ffi.Pointer _objc_msgSend_1025( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer xslt, - ffi.Pointer arguments, - ffi.Pointer> error, - ) { - return __objc_msgSend_1025( - obj, - sel, - xslt, - arguments, - error, - ); - } - - late final __objc_msgSend_1025Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1025 = __objc_msgSend_1025Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_objectByApplyingXSLTAtURL_arguments_error_1 = - _registerName1("objectByApplyingXSLTAtURL:arguments:error:"); - ffi.Pointer _objc_msgSend_1026( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer xsltURL, - ffi.Pointer argument, - ffi.Pointer> error, - ) { - return __objc_msgSend_1026( - obj, - sel, - xsltURL, - argument, - error, - ); - } - - late final __objc_msgSend_1026Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1026 = __objc_msgSend_1026Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_validateAndReturnError_1 = - _registerName1("validateAndReturnError:"); - late final _sel_rootDocument1 = _registerName1("rootDocument"); - ffi.Pointer _objc_msgSend_1027( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_1027( - obj, - sel, - ); - } - - late final __objc_msgSend_1027Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1027 = __objc_msgSend_1027Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_parent1 = _registerName1("parent"); - ffi.Pointer _objc_msgSend_1028( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_1028( - obj, - sel, - ); - } - - late final __objc_msgSend_1028Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1028 = __objc_msgSend_1028Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); - - late final _sel_childCount1 = _registerName1("childCount"); - late final _sel_children1 = _registerName1("children"); - late final _sel_childAtIndex_1 = _registerName1("childAtIndex:"); - ffi.Pointer _objc_msgSend_1029( - ffi.Pointer obj, - ffi.Pointer sel, - int index, - ) { - return __objc_msgSend_1029( - obj, - sel, - index, - ); - } - - late final __objc_msgSend_1029Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_1029 = __objc_msgSend_1029Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_previousSibling1 = _registerName1("previousSibling"); - late final _sel_nextSibling1 = _registerName1("nextSibling"); - late final _sel_previousNode1 = _registerName1("previousNode"); - late final _sel_nextNode1 = _registerName1("nextNode"); - late final _sel_detach1 = _registerName1("detach"); - late final _sel_XPath1 = _registerName1("XPath"); - late final _sel_localName1 = _registerName1("localName"); - late final _sel_prefix1 = _registerName1("prefix"); - late final _sel_URI1 = _registerName1("URI"); - late final _sel_setURI_1 = _registerName1("setURI:"); - late final _sel_XMLString1 = _registerName1("XMLString"); - late final _sel_XMLStringWithOptions_1 = - _registerName1("XMLStringWithOptions:"); - ffi.Pointer _objc_msgSend_1030( - ffi.Pointer obj, - ffi.Pointer sel, - int options, - ) { - return __objc_msgSend_1030( - obj, - sel, - options, - ); - } - - late final __objc_msgSend_1030Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_1030 = __objc_msgSend_1030Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_canonicalXMLStringPreservingComments_1 = - _registerName1("canonicalXMLStringPreservingComments:"); - ffi.Pointer _objc_msgSend_1031( - ffi.Pointer obj, - ffi.Pointer sel, - bool comments, - ) { - return __objc_msgSend_1031( - obj, - sel, - comments, - ); - } - - late final __objc_msgSend_1031Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_1031 = __objc_msgSend_1031Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, bool)>(); - - late final _sel_nodesForXPath_error_1 = - _registerName1("nodesForXPath:error:"); - late final _sel_objectsForXQuery_constants_error_1 = - _registerName1("objectsForXQuery:constants:error:"); - ffi.Pointer _objc_msgSend_1032( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer xquery, - ffi.Pointer constants, - ffi.Pointer> error, - ) { - return __objc_msgSend_1032( - obj, - sel, - xquery, - constants, - error, - ); - } - - late final __objc_msgSend_1032Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1032 = __objc_msgSend_1032Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); - - late final _sel_objectsForXQuery_error_1 = - _registerName1("objectsForXQuery:error:"); - late final _sel_initWithName_URI_1 = _registerName1("initWithName:URI:"); - late final _sel_initWithName_stringValue_1 = - _registerName1("initWithName:stringValue:"); - late final _sel_initWithXMLString_error_1 = - _registerName1("initWithXMLString:error:"); - late final _sel_elementsForName_1 = _registerName1("elementsForName:"); - late final _sel_elementsForLocalName_URI_1 = - _registerName1("elementsForLocalName:URI:"); - late final _sel_addAttribute_1 = _registerName1("addAttribute:"); - late final _sel_removeAttributeForName_1 = - _registerName1("removeAttributeForName:"); - late final _sel_attributes1 = _registerName1("attributes"); - late final _sel_setAttributes_1 = _registerName1("setAttributes:"); - late final _sel_setAttributesWithDictionary_1 = - _registerName1("setAttributesWithDictionary:"); - late final _sel_attributeForName_1 = _registerName1("attributeForName:"); - late final _sel_attributeForLocalName_URI_1 = - _registerName1("attributeForLocalName:URI:"); - ffi.Pointer _objc_msgSend_1033( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer localName, - ffi.Pointer URI, - ) { - return __objc_msgSend_1033( - obj, - sel, - localName, - URI, - ); - } - - late final __objc_msgSend_1033Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1033 = __objc_msgSend_1033Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_addNamespace_1 = _registerName1("addNamespace:"); - late final _sel_removeNamespaceForPrefix_1 = - _registerName1("removeNamespaceForPrefix:"); - late final _sel_namespaces1 = _registerName1("namespaces"); - late final _sel_setNamespaces_1 = _registerName1("setNamespaces:"); - late final _sel_namespaceForPrefix_1 = _registerName1("namespaceForPrefix:"); - late final _sel_resolveNamespaceForName_1 = - _registerName1("resolveNamespaceForName:"); - late final _sel_resolvePrefixForNamespaceURI_1 = - _registerName1("resolvePrefixForNamespaceURI:"); - late final _sel_normalizeAdjacentTextNodesPreservingCDATA_1 = - _registerName1("normalizeAdjacentTextNodesPreservingCDATA:"); - late final _sel_setAttributesAsDictionary_1 = - _registerName1("setAttributesAsDictionary:"); - late final _class_HidListenerBindings1 = - _getClass1("hid_listener.HidListenerBindings"); - late final _sel_InitializeDartAPIWithData_1 = - _registerName1("InitializeDartAPIWithData:"); - late final _sel_InitializeListeners1 = _registerName1("InitializeListeners"); - late final _sel_SetKeyboardListenerWithPort_1 = - _registerName1("SetKeyboardListenerWithPort:"); - bool _objc_msgSend_1034( - ffi.Pointer obj, - ffi.Pointer sel, - int port, - ) { - return __objc_msgSend_1034( - obj, - sel, - port, - ); - } - - late final __objc_msgSend_1034Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_1034 = __objc_msgSend_1034Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_SetMouseListenerWithPort_1 = - _registerName1("SetMouseListenerWithPort:"); - late final _class_MacOsKeyboardEvent1 = - _getClass1("hid_listener.MacOsKeyboardEvent"); - late final _sel_eventType1 = _registerName1("eventType"); - int _objc_msgSend_1035( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_1035( - obj, - sel, - ); - } - - late final __objc_msgSend_1035Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1035 = __objc_msgSend_1035Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setEventType_1 = _registerName1("setEventType:"); - void _objc_msgSend_1036( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_1036( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_1036Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_1036 = __objc_msgSend_1036Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); - - late final _sel_characters1 = _registerName1("characters"); - late final _sel_setCharacters_1 = _registerName1("setCharacters:"); - late final _sel_charactersIgnoringModifiers1 = - _registerName1("charactersIgnoringModifiers"); - late final _sel_setCharactersIgnoringModifiers_1 = - _registerName1("setCharactersIgnoringModifiers:"); - late final _sel_keyCode1 = _registerName1("keyCode"); - late final _sel_setKeyCode_1 = _registerName1("setKeyCode:"); - late final _sel_modifiers1 = _registerName1("modifiers"); - late final _sel_setModifiers_1 = _registerName1("setModifiers:"); - late final _sel_isMedia1 = _registerName1("isMedia"); - late final _sel_setIsMedia_1 = _registerName1("setIsMedia:"); - late final _sel_mediaEventType1 = _registerName1("mediaEventType"); - int _objc_msgSend_1037( - ffi.Pointer obj, - ffi.Pointer sel, - ) { - return __objc_msgSend_1037( - obj, - sel, - ); - } - - late final __objc_msgSend_1037Ptr = _lookup< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1037 = __objc_msgSend_1037Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setMediaEventType_1 = _registerName1("setMediaEventType:"); - void _objc_msgSend_1038( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_1038( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_1038Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_1038 = __objc_msgSend_1038Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); -} - -class _ObjCWrapper implements ffi.Finalizable { - final ffi.Pointer _id; - final HidListenerBindingsSwift _lib; - bool _pendingRelease; - - _ObjCWrapper._(this._id, this._lib, - {bool retain = false, bool release = false}) - : _pendingRelease = release { - if (retain) { - _lib._objc_retain(_id.cast()); - } - if (release) { - _lib._objc_releaseFinalizer2.attach(this, _id.cast(), detach: this); - } - } - - /// Releases the reference to the underlying ObjC object held by this wrapper. - /// Throws a StateError if this wrapper doesn't currently hold a reference. - void release() { - if (_pendingRelease) { - _pendingRelease = false; - _lib._objc_release(_id.cast()); - _lib._objc_releaseFinalizer2.detach(this); - } else { - throw StateError( - 'Released an ObjC object that was unowned or already released.'); - } - } - - @override - bool operator ==(Object other) { - return other is _ObjCWrapper && _id == other._id; - } - - @override - int get hashCode => _id.hashCode; - - /// Return a pointer to this object. - ffi.Pointer get pointer => _id; -} - -class NSObject extends _ObjCWrapper { - NSObject._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSObject] that points to the same underlying object as [other]. - static NSObject castFrom(T other) { - return NSObject._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSObject] that wraps the given raw object pointer. - static NSObject castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSObject._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSObject]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSObject1); - } - - static void load(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_load1); - } - - static void initialize(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_initialize1); - } - - NSObject init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_new1); - return NSObject._(_ret, _lib, retain: false, release: true); - } - - static NSObject allocWithZone_( - HidListenerBindingsSwift _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSObject1, _lib._sel_allocWithZone_1, zone); - return NSObject._(_ret, _lib, retain: false, release: true); - } - - static NSObject alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_alloc1); - return NSObject._(_ret, _lib, retain: false, release: true); - } - - void dealloc() { - return _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); - } - - void finalize() { - return _lib._objc_msgSend_1(_id, _lib._sel_finalize1); - } - - NSObject copy() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_copy1); - return NSObject._(_ret, _lib, retain: false, release: true); - } - - NSObject mutableCopy() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_mutableCopy1); - return NSObject._(_ret, _lib, retain: false, release: true); - } - - static NSObject copyWithZone_( - HidListenerBindingsSwift _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSObject1, _lib._sel_copyWithZone_1, zone); - return NSObject._(_ret, _lib, retain: false, release: true); - } - - static NSObject mutableCopyWithZone_( - HidListenerBindingsSwift _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSObject1, _lib._sel_mutableCopyWithZone_1, zone); - return NSObject._(_ret, _lib, retain: false, release: true); - } - - static bool instancesRespondToSelector_( - HidListenerBindingsSwift _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_4(_lib._class_NSObject1, - _lib._sel_instancesRespondToSelector_1, aSelector); - } - - static bool conformsToProtocol_( - HidListenerBindingsSwift _lib, Protocol? protocol) { - return _lib._objc_msgSend_5(_lib._class_NSObject1, - _lib._sel_conformsToProtocol_1, protocol?._id ?? ffi.nullptr); - } - - ffi.Pointer> methodForSelector_( - ffi.Pointer aSelector) { - return _lib._objc_msgSend_6(_id, _lib._sel_methodForSelector_1, aSelector); - } - - static ffi.Pointer> - instanceMethodForSelector_( - HidListenerBindingsSwift _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_6(_lib._class_NSObject1, - _lib._sel_instanceMethodForSelector_1, aSelector); - } - - void doesNotRecognizeSelector_(ffi.Pointer aSelector) { - return _lib._objc_msgSend_7( - _id, _lib._sel_doesNotRecognizeSelector_1, aSelector); - } - - NSObject forwardingTargetForSelector_(ffi.Pointer aSelector) { - final _ret = _lib._objc_msgSend_8( - _id, _lib._sel_forwardingTargetForSelector_1, aSelector); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void forwardInvocation_(NSInvocation? anInvocation) { - return _lib._objc_msgSend_392( - _id, _lib._sel_forwardInvocation_1, anInvocation?._id ?? ffi.nullptr); - } - - NSMethodSignature methodSignatureForSelector_( - ffi.Pointer aSelector) { - final _ret = _lib._objc_msgSend_393( - _id, _lib._sel_methodSignatureForSelector_1, aSelector); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); - } - - static NSMethodSignature instanceMethodSignatureForSelector_( - HidListenerBindingsSwift _lib, ffi.Pointer aSelector) { - final _ret = _lib._objc_msgSend_393(_lib._class_NSObject1, - _lib._sel_instanceMethodSignatureForSelector_1, aSelector); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); - } - - bool allowsWeakReference() { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsWeakReference1); - } - - bool retainWeakReference() { - return _lib._objc_msgSend_12(_id, _lib._sel_retainWeakReference1); - } - - static bool isSubclassOfClass_( - HidListenerBindingsSwift _lib, NSObject aClass) { - return _lib._objc_msgSend_0( - _lib._class_NSObject1, _lib._sel_isSubclassOfClass_1, aClass._id); - } - - static bool resolveClassMethod_( - HidListenerBindingsSwift _lib, ffi.Pointer sel) { - return _lib._objc_msgSend_4( - _lib._class_NSObject1, _lib._sel_resolveClassMethod_1, sel); - } - - static bool resolveInstanceMethod_( - HidListenerBindingsSwift _lib, ffi.Pointer sel) { - return _lib._objc_msgSend_4( - _lib._class_NSObject1, _lib._sel_resolveInstanceMethod_1, sel); - } - - static int hash(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_10(_lib._class_NSObject1, _lib._sel_hash1); - } - - static NSObject superclass(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_superclass1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject class1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_class1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSString description(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_20(_lib._class_NSObject1, _lib._sel_description1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString debugDescription(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_20( - _lib._class_NSObject1, _lib._sel_debugDescription1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static int version(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_78(_lib._class_NSObject1, _lib._sel_version1); - } - - static void setVersion_(HidListenerBindingsSwift _lib, int aVersion) { - return _lib._objc_msgSend_394( - _lib._class_NSObject1, _lib._sel_setVersion_1, aVersion); - } - - NSObject get classForCoder { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForCoder1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject replacementObjectForCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_replacementObjectForCoder_1, coder?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject awakeAfterUsingCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_awakeAfterUsingCoder_1, coder?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: false, release: true); - } - - static void poseAsClass_(HidListenerBindingsSwift _lib, NSObject aClass) { - return _lib._objc_msgSend_15( - _lib._class_NSObject1, _lib._sel_poseAsClass_1, aClass._id); - } - - NSObject get autoContentAccessingProxy { - final _ret = - _lib._objc_msgSend_2(_id, _lib._sel_autoContentAccessingProxy1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void - attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_( - NSError? error, - int recoveryOptionIndex, - NSObject delegate, - ffi.Pointer didRecoverSelector, - ffi.Pointer contextInfo) { - return _lib._objc_msgSend_395( - _id, - _lib._sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_1, - error?._id ?? ffi.nullptr, - recoveryOptionIndex, - delegate._id, - didRecoverSelector, - contextInfo); - } - - bool attemptRecoveryFromError_optionIndex_( - NSError? error, int recoveryOptionIndex) { - return _lib._objc_msgSend_396( - _id, - _lib._sel_attemptRecoveryFromError_optionIndex_1, - error?._id ?? ffi.nullptr, - recoveryOptionIndex); - } - - void performSelector_withObject_afterDelay_inModes_( - ffi.Pointer aSelector, - NSObject anArgument, - double delay, - NSArray? modes) { - return _lib._objc_msgSend_397( - _id, - _lib._sel_performSelector_withObject_afterDelay_inModes_1, - aSelector, - anArgument._id, - delay, - modes?._id ?? ffi.nullptr); - } - - void performSelector_withObject_afterDelay_( - ffi.Pointer aSelector, NSObject anArgument, double delay) { - return _lib._objc_msgSend_398( - _id, - _lib._sel_performSelector_withObject_afterDelay_1, - aSelector, - anArgument._id, - delay); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSObject1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSObject1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - void URL_resourceDataDidBecomeAvailable_(NSURL? sender, NSData? newBytes) { - return _lib._objc_msgSend_399( - _id, - _lib._sel_URL_resourceDataDidBecomeAvailable_1, - sender?._id ?? ffi.nullptr, - newBytes?._id ?? ffi.nullptr); - } - - void URLResourceDidFinishLoading_(NSURL? sender) { - return _lib._objc_msgSend_400(_id, _lib._sel_URLResourceDidFinishLoading_1, - sender?._id ?? ffi.nullptr); - } - - void URLResourceDidCancelLoading_(NSURL? sender) { - return _lib._objc_msgSend_400(_id, _lib._sel_URLResourceDidCancelLoading_1, - sender?._id ?? ffi.nullptr); - } - - void URL_resourceDidFailLoadingWithReason_(NSURL? sender, NSString? reason) { - return _lib._objc_msgSend_401( - _id, - _lib._sel_URL_resourceDidFailLoadingWithReason_1, - sender?._id ?? ffi.nullptr, - reason?._id ?? ffi.nullptr); - } - - bool fileManager_shouldProceedAfterError_( - NSFileManager? fm, NSDictionary? errorInfo) { - return _lib._objc_msgSend_436( - _id, - _lib._sel_fileManager_shouldProceedAfterError_1, - fm?._id ?? ffi.nullptr, - errorInfo?._id ?? ffi.nullptr); - } - - void fileManager_willProcessPath_(NSFileManager? fm, NSString? path) { - return _lib._objc_msgSend_437(_id, _lib._sel_fileManager_willProcessPath_1, - fm?._id ?? ffi.nullptr, path?._id ?? ffi.nullptr); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSObject1, _lib._sel_accessInstanceVariablesDirectly1); - } - - NSObject valueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void setValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_126( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); - } - - bool validateValue_forKey_error_(ffi.Pointer> ioValue, - NSString? inKey, ffi.Pointer> outError) { - return _lib._objc_msgSend_226(_id, _lib._sel_validateValue_forKey_error_1, - ioValue, inKey?._id ?? ffi.nullptr, outError); - } - - NSMutableArray mutableArrayValueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_454( - _id, _lib._sel_mutableArrayValueForKey_1, key?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); - } - - NSMutableOrderedSet mutableOrderedSetValueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_473( - _id, _lib._sel_mutableOrderedSetValueForKey_1, key?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - NSMutableSet mutableSetValueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_474( - _id, _lib._sel_mutableSetValueForKey_1, key?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); - } - - NSObject valueForKeyPath_(NSString? keyPath) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKeyPath_1, keyPath?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void setValue_forKeyPath_(NSObject value, NSString? keyPath) { - return _lib._objc_msgSend_126(_id, _lib._sel_setValue_forKeyPath_1, - value._id, keyPath?._id ?? ffi.nullptr); - } - - bool validateValue_forKeyPath_error_( - ffi.Pointer> ioValue, - NSString? inKeyPath, - ffi.Pointer> outError) { - return _lib._objc_msgSend_226( - _id, - _lib._sel_validateValue_forKeyPath_error_1, - ioValue, - inKeyPath?._id ?? ffi.nullptr, - outError); - } - - NSMutableArray mutableArrayValueForKeyPath_(NSString? keyPath) { - final _ret = _lib._objc_msgSend_454(_id, - _lib._sel_mutableArrayValueForKeyPath_1, keyPath?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); - } - - NSMutableOrderedSet mutableOrderedSetValueForKeyPath_(NSString? keyPath) { - final _ret = _lib._objc_msgSend_473( - _id, - _lib._sel_mutableOrderedSetValueForKeyPath_1, - keyPath?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - NSMutableSet mutableSetValueForKeyPath_(NSString? keyPath) { - final _ret = _lib._objc_msgSend_474(_id, - _lib._sel_mutableSetValueForKeyPath_1, keyPath?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); - } - - NSObject valueForUndefinedKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForUndefinedKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void setValue_forUndefinedKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_126(_id, _lib._sel_setValue_forUndefinedKey_1, - value._id, key?._id ?? ffi.nullptr); - } - - void setNilValueForKey_(NSString? key) { - return _lib._objc_msgSend_192( - _id, _lib._sel_setNilValueForKey_1, key?._id ?? ffi.nullptr); - } - - NSDictionary dictionaryWithValuesForKeys_(NSArray? keys) { - final _ret = _lib._objc_msgSend_475( - _id, _lib._sel_dictionaryWithValuesForKeys_1, keys?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - void setValuesForKeysWithDictionary_(NSDictionary? keyedValues) { - return _lib._objc_msgSend_476( - _id, - _lib._sel_setValuesForKeysWithDictionary_1, - keyedValues?._id ?? ffi.nullptr); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSObject1, _lib._sel_useStoredAccessor1); - } - - NSObject storedValueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_storedValueForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void takeStoredValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_126(_id, _lib._sel_takeStoredValue_forKey_1, - value._id, key?._id ?? ffi.nullptr); - } - - void takeValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_126( - _id, _lib._sel_takeValue_forKey_1, value._id, key?._id ?? ffi.nullptr); - } - - void takeValue_forKeyPath_(NSObject value, NSString? keyPath) { - return _lib._objc_msgSend_126(_id, _lib._sel_takeValue_forKeyPath_1, - value._id, keyPath?._id ?? ffi.nullptr); - } - - NSObject handleQueryWithUnboundKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_handleQueryWithUnboundKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void handleTakeValue_forUnboundKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_126( - _id, - _lib._sel_handleTakeValue_forUnboundKey_1, - value._id, - key?._id ?? ffi.nullptr); - } - - void unableToSetNilForKey_(NSString? key) { - return _lib._objc_msgSend_192( - _id, _lib._sel_unableToSetNilForKey_1, key?._id ?? ffi.nullptr); - } - - NSDictionary valuesForKeys_(NSArray? keys) { - final _ret = _lib._objc_msgSend_475( - _id, _lib._sel_valuesForKeys_1, keys?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - void takeValuesFromDictionary_(NSDictionary? properties) { - return _lib._objc_msgSend_476(_id, _lib._sel_takeValuesFromDictionary_1, - properties?._id ?? ffi.nullptr); - } - - void observeValueForKeyPath_ofObject_change_context_(NSString? keyPath, - NSObject object, NSDictionary? change, ffi.Pointer context) { - return _lib._objc_msgSend_477( - _id, - _lib._sel_observeValueForKeyPath_ofObject_change_context_1, - keyPath?._id ?? ffi.nullptr, - object._id, - change?._id ?? ffi.nullptr, - context); - } - - void addObserver_forKeyPath_options_context_(NSObject? observer, - NSString? keyPath, int options, ffi.Pointer context) { - return _lib._objc_msgSend_130( - _id, - _lib._sel_addObserver_forKeyPath_options_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - options, - context); - } - - void removeObserver_forKeyPath_context_( - NSObject? observer, NSString? keyPath, ffi.Pointer context) { - return _lib._objc_msgSend_131( - _id, - _lib._sel_removeObserver_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - context); - } - - void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { - return _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); - } - - void willChangeValueForKey_(NSString? key) { - return _lib._objc_msgSend_192( - _id, _lib._sel_willChangeValueForKey_1, key?._id ?? ffi.nullptr); - } - - void didChangeValueForKey_(NSString? key) { - return _lib._objc_msgSend_192( - _id, _lib._sel_didChangeValueForKey_1, key?._id ?? ffi.nullptr); - } - - void willChange_valuesAtIndexes_forKey_( - int changeKind, NSIndexSet? indexes, NSString? key) { - return _lib._objc_msgSend_478( - _id, - _lib._sel_willChange_valuesAtIndexes_forKey_1, - changeKind, - indexes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); - } - - void didChange_valuesAtIndexes_forKey_( - int changeKind, NSIndexSet? indexes, NSString? key) { - return _lib._objc_msgSend_478( - _id, - _lib._sel_didChange_valuesAtIndexes_forKey_1, - changeKind, - indexes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); - } - - void willChangeValueForKey_withSetMutation_usingObjects_( - NSString? key, int mutationKind, NSSet? objects) { - return _lib._objc_msgSend_479( - _id, - _lib._sel_willChangeValueForKey_withSetMutation_usingObjects_1, - key?._id ?? ffi.nullptr, - mutationKind, - objects?._id ?? ffi.nullptr); - } - - void didChangeValueForKey_withSetMutation_usingObjects_( - NSString? key, int mutationKind, NSSet? objects) { - return _lib._objc_msgSend_479( - _id, - _lib._sel_didChangeValueForKey_withSetMutation_usingObjects_1, - key?._id ?? ffi.nullptr, - mutationKind, - objects?._id ?? ffi.nullptr); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSObject1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSObject1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - ffi.Pointer get observationInfo { - return _lib._objc_msgSend_19(_id, _lib._sel_observationInfo1); - } - - set observationInfo(ffi.Pointer value) { - _lib._objc_msgSend_480(_id, _lib._sel_setObservationInfo_1, value); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSObject1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - NSObject get classForKeyedArchiver { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForKeyedArchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject replacementObjectForKeyedArchiver_(NSKeyedArchiver? archiver) { - final _ret = _lib._objc_msgSend_493( - _id, - _lib._sel_replacementObjectForKeyedArchiver_1, - archiver?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSObject1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSObject1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void performSelectorOnMainThread_withObject_waitUntilDone_modes_( - ffi.Pointer aSelector, NSObject arg, bool wait, NSArray? array) { - return _lib._objc_msgSend_494( - _id, - _lib._sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_1, - aSelector, - arg._id, - wait, - array?._id ?? ffi.nullptr); - } - - void performSelectorOnMainThread_withObject_waitUntilDone_( - ffi.Pointer aSelector, NSObject arg, bool wait) { - return _lib._objc_msgSend_495( - _id, - _lib._sel_performSelectorOnMainThread_withObject_waitUntilDone_1, - aSelector, - arg._id, - wait); - } - - void performSelector_onThread_withObject_waitUntilDone_modes_( - ffi.Pointer aSelector, - NSThread? thr, - NSObject arg, - bool wait, - NSArray? array) { - return _lib._objc_msgSend_512( - _id, - _lib._sel_performSelector_onThread_withObject_waitUntilDone_modes_1, - aSelector, - thr?._id ?? ffi.nullptr, - arg._id, - wait, - array?._id ?? ffi.nullptr); - } - - void performSelector_onThread_withObject_waitUntilDone_( - ffi.Pointer aSelector, NSThread? thr, NSObject arg, bool wait) { - return _lib._objc_msgSend_513( - _id, - _lib._sel_performSelector_onThread_withObject_waitUntilDone_1, - aSelector, - thr?._id ?? ffi.nullptr, - arg._id, - wait); - } - - void performSelectorInBackground_withObject_( - ffi.Pointer aSelector, NSObject arg) { - return _lib._objc_msgSend_84(_id, - _lib._sel_performSelectorInBackground_withObject_1, aSelector, arg._id); - } - - NSObject get classForArchiver { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForArchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject replacementObjectForArchiver_(NSArchiver? archiver) { - final _ret = _lib._objc_msgSend_516(_id, - _lib._sel_replacementObjectForArchiver_1, archiver?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject get classForPortCoder { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForPortCoder1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject replacementObjectForPortCoder_(NSPortCoder? coder) { - final _ret = _lib._objc_msgSend_554(_id, - _lib._sel_replacementObjectForPortCoder_1, coder?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSClassDescription? get classDescription { - final _ret = _lib._objc_msgSend_557(_id, _lib._sel_classDescription1); - return _ret.address == 0 - ? null - : NSClassDescription._(_ret, _lib, retain: true, release: true); - } - - NSArray? get attributeKeys { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attributeKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get toOneRelationshipKeys { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toOneRelationshipKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get toManyRelationshipKeys { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toManyRelationshipKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSString inverseForRelationshipKey_(NSString? relationshipKey) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_inverseForRelationshipKey_1, - relationshipKey?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSObject scriptingValueForSpecifier_( - NSScriptObjectSpecifier? objectSpecifier) { - final _ret = _lib._objc_msgSend_601( - _id, - _lib._sel_scriptingValueForSpecifier_1, - objectSpecifier?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSDictionary? get scriptingProperties { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_scriptingProperties1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - set scriptingProperties(NSDictionary? value) { - _lib._objc_msgSend_171( - _id, _lib._sel_setScriptingProperties_1, value?._id ?? ffi.nullptr); - } - - NSObject copyScriptingValue_forKey_withProperties_( - NSObject value, NSString? key, NSDictionary? properties) { - final _ret = _lib._objc_msgSend_602( - _id, - _lib._sel_copyScriptingValue_forKey_withProperties_1, - value._id, - key?._id ?? ffi.nullptr, - properties?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: false, release: true); - } - - NSObject - newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_( - NSObject objectClass, - NSString? key, - NSObject contentsValue, - NSDictionary? properties) { - final _ret = _lib._objc_msgSend_603( - _id, - _lib._sel_newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_1, - objectClass._id, - key?._id ?? ffi.nullptr, - contentsValue._id, - properties?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: false, release: true); - } - - int get classCode { - return _lib._objc_msgSend_197(_id, _lib._sel_classCode1); - } - - NSString? get className { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_className1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSObject valueAtIndex_inPropertyWithKey_(int index, NSString? key) { - final _ret = _lib._objc_msgSend_604( - _id, - _lib._sel_valueAtIndex_inPropertyWithKey_1, - index, - key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject valueWithName_inPropertyWithKey_(NSString? name, NSString? key) { - final _ret = _lib._objc_msgSend_165( - _id, - _lib._sel_valueWithName_inPropertyWithKey_1, - name?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject valueWithUniqueID_inPropertyWithKey_( - NSObject uniqueID, NSString? key) { - final _ret = _lib._objc_msgSend_287( - _id, - _lib._sel_valueWithUniqueID_inPropertyWithKey_1, - uniqueID._id, - key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void insertValue_atIndex_inPropertyWithKey_( - NSObject value, int index, NSString? key) { - return _lib._objc_msgSend_605( - _id, - _lib._sel_insertValue_atIndex_inPropertyWithKey_1, - value._id, - index, - key?._id ?? ffi.nullptr); - } - - void removeValueAtIndex_fromPropertyWithKey_(int index, NSString? key) { - return _lib._objc_msgSend_606( - _id, - _lib._sel_removeValueAtIndex_fromPropertyWithKey_1, - index, - key?._id ?? ffi.nullptr); - } - - void replaceValueAtIndex_inPropertyWithKey_withValue_( - int index, NSString? key, NSObject value) { - return _lib._objc_msgSend_607( - _id, - _lib._sel_replaceValueAtIndex_inPropertyWithKey_withValue_1, - index, - key?._id ?? ffi.nullptr, - value._id); - } - - void insertValue_inPropertyWithKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_126( - _id, - _lib._sel_insertValue_inPropertyWithKey_1, - value._id, - key?._id ?? ffi.nullptr); - } - - NSObject coerceValue_forKey_(NSObject value, NSString? key) { - final _ret = _lib._objc_msgSend_287(_id, _lib._sel_coerceValue_forKey_1, - value._id, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSScriptObjectSpecifier? get objectSpecifier { - final _ret = _lib._objc_msgSend_588(_id, _lib._sel_objectSpecifier1); - return _ret.address == 0 - ? null - : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); - } - - NSArray indicesOfObjectsByEvaluatingObjectSpecifier_( - NSScriptObjectSpecifier? specifier) { - final _ret = _lib._objc_msgSend_608( - _id, - _lib._sel_indicesOfObjectsByEvaluatingObjectSpecifier_1, - specifier?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - bool isEqualTo_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_isEqualTo_1, object._id); - } - - bool isLessThanOrEqualTo_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_isLessThanOrEqualTo_1, object._id); - } - - bool isLessThan_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_isLessThan_1, object._id); - } - - bool isGreaterThanOrEqualTo_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_isGreaterThanOrEqualTo_1, object._id); - } - - bool isGreaterThan_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_isGreaterThan_1, object._id); - } - - bool isNotEqualTo_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_isNotEqualTo_1, object._id); - } - - bool doesContain_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_doesContain_1, object._id); - } - - bool isLike_(NSString? object) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isLike_1, object?._id ?? ffi.nullptr); - } - - bool isCaseInsensitiveLike_(NSString? object) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isCaseInsensitiveLike_1, object?._id ?? ffi.nullptr); - } - - bool scriptingIsEqualTo_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_scriptingIsEqualTo_1, object._id); - } - - bool scriptingIsLessThanOrEqualTo_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_scriptingIsLessThanOrEqualTo_1, object._id); - } - - bool scriptingIsLessThan_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_scriptingIsLessThan_1, object._id); - } - - bool scriptingIsGreaterThanOrEqualTo_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_scriptingIsGreaterThanOrEqualTo_1, object._id); - } - - bool scriptingIsGreaterThan_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_scriptingIsGreaterThan_1, object._id); - } - - bool scriptingBeginsWith_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_scriptingBeginsWith_1, object._id); - } - - bool scriptingEndsWith_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_scriptingEndsWith_1, object._id); - } - - bool scriptingContains_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_scriptingContains_1, object._id); - } -} - -final class ObjCSel extends ffi.Opaque {} - -final class ObjCObject extends ffi.Opaque {} - -typedef instancetype = ffi.Pointer; - -final class _NSZone extends ffi.Opaque {} - -class Protocol extends _ObjCWrapper { - Protocol._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [Protocol] that points to the same underlying object as [other]. - static Protocol castFrom(T other) { - return Protocol._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [Protocol] that wraps the given raw object pointer. - static Protocol castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return Protocol._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [Protocol]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_Protocol1); - } -} - -class NSInvocation extends NSObject { - NSInvocation._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSInvocation] that points to the same underlying object as [other]. - static NSInvocation castFrom(T other) { - return NSInvocation._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSInvocation] that wraps the given raw object pointer. - static NSInvocation castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSInvocation._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSInvocation]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSInvocation1); - } - - static NSInvocation invocationWithMethodSignature_( - HidListenerBindingsSwift _lib, NSMethodSignature? sig) { - final _ret = _lib._objc_msgSend_385(_lib._class_NSInvocation1, - _lib._sel_invocationWithMethodSignature_1, sig?._id ?? ffi.nullptr); - return NSInvocation._(_ret, _lib, retain: true, release: true); - } - - NSMethodSignature? get methodSignature { - final _ret = _lib._objc_msgSend_386(_id, _lib._sel_methodSignature1); - return _ret.address == 0 - ? null - : NSMethodSignature._(_ret, _lib, retain: true, release: true); - } - - void retainArguments() { - return _lib._objc_msgSend_1(_id, _lib._sel_retainArguments1); - } - - bool get argumentsRetained { - return _lib._objc_msgSend_12(_id, _lib._sel_argumentsRetained1); - } - - NSObject get target { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_target1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - set target(NSObject value) { - _lib._objc_msgSend_387(_id, _lib._sel_setTarget_1, value._id); - } - - ffi.Pointer get selector { - return _lib._objc_msgSend_388(_id, _lib._sel_selector1); - } - - set selector(ffi.Pointer value) { - _lib._objc_msgSend_389(_id, _lib._sel_setSelector_1, value); - } - - void getReturnValue_(ffi.Pointer retLoc) { - return _lib._objc_msgSend_47(_id, _lib._sel_getReturnValue_1, retLoc); - } - - void setReturnValue_(ffi.Pointer retLoc) { - return _lib._objc_msgSend_47(_id, _lib._sel_setReturnValue_1, retLoc); - } - - void getArgument_atIndex_(ffi.Pointer argumentLocation, int idx) { - return _lib._objc_msgSend_390( - _id, _lib._sel_getArgument_atIndex_1, argumentLocation, idx); - } - - void setArgument_atIndex_(ffi.Pointer argumentLocation, int idx) { - return _lib._objc_msgSend_390( - _id, _lib._sel_setArgument_atIndex_1, argumentLocation, idx); - } - - void invoke() { - return _lib._objc_msgSend_1(_id, _lib._sel_invoke1); - } - - void invokeWithTarget_(NSObject target) { - return _lib._objc_msgSend_15(_id, _lib._sel_invokeWithTarget_1, target._id); - } - - void invokeUsingIMP_( - ffi.Pointer> imp) { - return _lib._objc_msgSend_391(_id, _lib._sel_invokeUsingIMP_1, imp); - } - - static NSInvocation new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSInvocation1, _lib._sel_new1); - return NSInvocation._(_ret, _lib, retain: false, release: true); - } - - static NSInvocation alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSInvocation1, _lib._sel_alloc1); - return NSInvocation._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSInvocation1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSInvocation1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSInvocation1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSInvocation1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSInvocation1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSInvocation1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSInvocation1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSInvocation1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSInvocation1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSMethodSignature extends NSObject { - NSMethodSignature._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSMethodSignature] that points to the same underlying object as [other]. - static NSMethodSignature castFrom(T other) { - return NSMethodSignature._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSMethodSignature] that wraps the given raw object pointer. - static NSMethodSignature castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMethodSignature._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSMethodSignature]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMethodSignature1); - } - - static NSMethodSignature signatureWithObjCTypes_( - HidListenerBindingsSwift _lib, ffi.Pointer types) { - final _ret = _lib._objc_msgSend_9(_lib._class_NSMethodSignature1, - _lib._sel_signatureWithObjCTypes_1, types); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); - } - - int get numberOfArguments { - return _lib._objc_msgSend_10(_id, _lib._sel_numberOfArguments1); - } - - ffi.Pointer getArgumentTypeAtIndex_(int idx) { - return _lib._objc_msgSend_11(_id, _lib._sel_getArgumentTypeAtIndex_1, idx); - } - - int get frameLength { - return _lib._objc_msgSend_10(_id, _lib._sel_frameLength1); - } - - bool isOneway() { - return _lib._objc_msgSend_12(_id, _lib._sel_isOneway1); - } - - ffi.Pointer get methodReturnType { - return _lib._objc_msgSend_13(_id, _lib._sel_methodReturnType1); - } - - int get methodReturnLength { - return _lib._objc_msgSend_10(_id, _lib._sel_methodReturnLength1); - } - - static NSMethodSignature new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMethodSignature1, _lib._sel_new1); - return NSMethodSignature._(_ret, _lib, retain: false, release: true); - } - - static NSMethodSignature alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMethodSignature1, _lib._sel_alloc1); - return NSMethodSignature._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSMethodSignature1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMethodSignature1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMethodSignature1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMethodSignature1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMethodSignature1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMethodSignature1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSMethodSignature1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSMethodSignature1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMethodSignature1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSSet extends NSObject { - NSSet._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSSet] that points to the same underlying object as [other]. - static NSSet castFrom(T other) { - return NSSet._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSSet] that wraps the given raw object pointer. - static NSSet castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSSet._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSSet]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSSet1); - } - - int get count { - return _lib._objc_msgSend_10(_id, _lib._sel_count1); - } - - NSObject member_(NSObject object) { - final _ret = _lib._objc_msgSend_16(_id, _lib._sel_member_1, object._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); - } - - @override - NSSet init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - NSSet initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( - _id, _lib._sel_initWithObjects_count_1, objects, cnt); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - NSSet initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - NSArray? get allObjects { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allObjects1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSObject anyObject() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_anyObject1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - bool containsObject_(NSObject anObject) { - return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, anObject._id); - } - - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); - } - - bool intersectsSet_(NSSet? otherSet) { - return _lib._objc_msgSend_374( - _id, _lib._sel_intersectsSet_1, otherSet?._id ?? ffi.nullptr); - } - - bool isEqualToSet_(NSSet? otherSet) { - return _lib._objc_msgSend_374( - _id, _lib._sel_isEqualToSet_1, otherSet?._id ?? ffi.nullptr); - } - - bool isSubsetOfSet_(NSSet? otherSet) { - return _lib._objc_msgSend_374( - _id, _lib._sel_isSubsetOfSet_1, otherSet?._id ?? ffi.nullptr); - } - - void makeObjectsPerformSelector_(ffi.Pointer aSelector) { - return _lib._objc_msgSend_7( - _id, _lib._sel_makeObjectsPerformSelector_1, aSelector); - } - - void makeObjectsPerformSelector_withObject_( - ffi.Pointer aSelector, NSObject argument) { - return _lib._objc_msgSend_84( - _id, - _lib._sel_makeObjectsPerformSelector_withObject_1, - aSelector, - argument._id); - } - - NSSet setByAddingObject_(NSObject anObject) { - final _ret = _lib._objc_msgSend_375( - _id, _lib._sel_setByAddingObject_1, anObject._id); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - NSSet setByAddingObjectsFromSet_(NSSet? other) { - final _ret = _lib._objc_msgSend_376( - _id, _lib._sel_setByAddingObjectsFromSet_1, other?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - NSSet setByAddingObjectsFromArray_(NSArray? other) { - final _ret = _lib._objc_msgSend_377(_id, - _lib._sel_setByAddingObjectsFromArray_1, other?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - void enumerateObjectsUsingBlock_(ObjCBlock16 block) { - return _lib._objc_msgSend_378( - _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); - } - - void enumerateObjectsWithOptions_usingBlock_(int opts, ObjCBlock16 block) { - return _lib._objc_msgSend_379(_id, - _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); - } - - NSSet objectsPassingTest_(ObjCBlock17 predicate) { - final _ret = _lib._objc_msgSend_380( - _id, _lib._sel_objectsPassingTest_1, predicate._id); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - NSSet objectsWithOptions_passingTest_(int opts, ObjCBlock17 predicate) { - final _ret = _lib._objc_msgSend_381( - _id, _lib._sel_objectsWithOptions_passingTest_1, opts, predicate._id); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static NSSet set1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSSet1, _lib._sel_set1); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static NSSet setWithObject_(HidListenerBindingsSwift _lib, NSObject object) { - final _ret = _lib._objc_msgSend_16( - _lib._class_NSSet1, _lib._sel_setWithObject_1, object._id); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static NSSet setWithObjects_count_(HidListenerBindingsSwift _lib, - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( - _lib._class_NSSet1, _lib._sel_setWithObjects_count_1, objects, cnt); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static NSSet setWithObjects_( - HidListenerBindingsSwift _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16( - _lib._class_NSSet1, _lib._sel_setWithObjects_1, firstObj._id); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static NSSet setWithSet_(HidListenerBindingsSwift _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_382( - _lib._class_NSSet1, _lib._sel_setWithSet_1, set?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static NSSet setWithArray_(HidListenerBindingsSwift _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSSet1, - _lib._sel_setWithArray_1, array?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - NSSet initWithObjects_(NSObject firstObj) { - final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - NSSet initWithSet_(NSSet? set) { - final _ret = _lib._objc_msgSend_382( - _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - NSSet initWithSet_copyItems_(NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_383( - _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSSet._(_ret, _lib, retain: false, release: true); - } - - NSSet initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_67( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - @override - NSObject valueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - @override - void setValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_126( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); - } - - @override - void addObserver_forKeyPath_options_context_(NSObject? observer, - NSString? keyPath, int options, ffi.Pointer context) { - return _lib._objc_msgSend_130( - _id, - _lib._sel_addObserver_forKeyPath_options_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - options, - context); - } - - @override - void removeObserver_forKeyPath_context_( - NSObject? observer, NSString? keyPath, ffi.Pointer context) { - return _lib._objc_msgSend_131( - _id, - _lib._sel_removeObserver_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - context); - } - - @override - void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { - return _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); - } - - NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { - final _ret = _lib._objc_msgSend_63( - _id, - _lib._sel_sortedArrayUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSSet filteredSetUsingPredicate_(NSPredicate? predicate) { - final _ret = _lib._objc_msgSend_384(_id, - _lib._sel_filteredSetUsingPredicate_1, predicate?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static NSSet new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSSet1, _lib._sel_new1); - return NSSet._(_ret, _lib, retain: false, release: true); - } - - static NSSet alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSSet1, _lib._sel_alloc1); - return NSSet._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSSet1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSSet1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSSet1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSSet1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSSet1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSSet1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSSet1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSEnumerator extends NSObject { - NSEnumerator._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSEnumerator] that points to the same underlying object as [other]. - static NSEnumerator castFrom(T other) { - return NSEnumerator._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSEnumerator] that wraps the given raw object pointer. - static NSEnumerator castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSEnumerator._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSEnumerator]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSEnumerator1); - } - - NSObject nextObject() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_nextObject1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject? get allObjects { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_allObjects1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSEnumerator new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_new1); - return NSEnumerator._(_ret, _lib, retain: false, release: true); - } - - static NSEnumerator alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_alloc1); - return NSEnumerator._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSEnumerator1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSEnumerator1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSEnumerator1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSEnumerator1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSEnumerator1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSEnumerator1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSEnumerator1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSEnumerator1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSEnumerator1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSString extends NSObject { - NSString._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSString] that points to the same underlying object as [other]. - static NSString castFrom(T other) { - return NSString._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSString] that wraps the given raw object pointer. - static NSString castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSString._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSString]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSString1); - } - - factory NSString(HidListenerBindingsSwift _lib, String str) { - final cstr = str.toNativeUtf16(); - final nsstr = stringWithCharacters_length_(_lib, cstr.cast(), str.length); - pkg_ffi.calloc.free(cstr); - return nsstr; - } - - @override - String toString() { - final data = - dataUsingEncoding_(0x94000100 /* NSUTF16LittleEndianStringEncoding */); - return data.bytes.cast().toDartString(length: length); - } - - int get length { - return _lib._objc_msgSend_10(_id, _lib._sel_length1); - } - - int characterAtIndex_(int index) { - return _lib._objc_msgSend_17(_id, _lib._sel_characterAtIndex_1, index); - } - - @override - NSString init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString substringFromIndex_(int from) { - final _ret = - _lib._objc_msgSend_308(_id, _lib._sel_substringFromIndex_1, from); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString substringToIndex_(int to) { - final _ret = _lib._objc_msgSend_308(_id, _lib._sel_substringToIndex_1, to); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString substringWithRange_(_NSRange range) { - final _ret = - _lib._objc_msgSend_309(_id, _lib._sel_substringWithRange_1, range); - return NSString._(_ret, _lib, retain: true, release: true); - } - - void getCharacters_range_( - ffi.Pointer buffer, _NSRange range) { - return _lib._objc_msgSend_310( - _id, _lib._sel_getCharacters_range_1, buffer, range); - } - - int compare_(NSString? string) { - return _lib._objc_msgSend_311( - _id, _lib._sel_compare_1, string?._id ?? ffi.nullptr); - } - - int compare_options_(NSString? string, int mask) { - return _lib._objc_msgSend_312( - _id, _lib._sel_compare_options_1, string?._id ?? ffi.nullptr, mask); - } - - int compare_options_range_( - NSString? string, int mask, _NSRange rangeOfReceiverToCompare) { - return _lib._objc_msgSend_313(_id, _lib._sel_compare_options_range_1, - string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare); - } - - int compare_options_range_locale_(NSString? string, int mask, - _NSRange rangeOfReceiverToCompare, NSObject locale) { - return _lib._objc_msgSend_314(_id, _lib._sel_compare_options_range_locale_1, - string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare, locale._id); - } - - int caseInsensitiveCompare_(NSString? string) { - return _lib._objc_msgSend_311( - _id, _lib._sel_caseInsensitiveCompare_1, string?._id ?? ffi.nullptr); - } - - int localizedCompare_(NSString? string) { - return _lib._objc_msgSend_311( - _id, _lib._sel_localizedCompare_1, string?._id ?? ffi.nullptr); - } - - int localizedCaseInsensitiveCompare_(NSString? string) { - return _lib._objc_msgSend_311( - _id, - _lib._sel_localizedCaseInsensitiveCompare_1, - string?._id ?? ffi.nullptr); - } - - int localizedStandardCompare_(NSString? string) { - return _lib._objc_msgSend_311( - _id, _lib._sel_localizedStandardCompare_1, string?._id ?? ffi.nullptr); - } - - bool isEqualToString_(NSString? aString) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isEqualToString_1, aString?._id ?? ffi.nullptr); - } - - bool hasPrefix_(NSString? str) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasPrefix_1, str?._id ?? ffi.nullptr); - } - - bool hasSuffix_(NSString? str) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasSuffix_1, str?._id ?? ffi.nullptr); - } - - NSString commonPrefixWithString_options_(NSString? str, int mask) { - final _ret = _lib._objc_msgSend_315( - _id, - _lib._sel_commonPrefixWithString_options_1, - str?._id ?? ffi.nullptr, - mask); - return NSString._(_ret, _lib, retain: true, release: true); - } - - bool containsString_(NSString? str) { - return _lib._objc_msgSend_59( - _id, _lib._sel_containsString_1, str?._id ?? ffi.nullptr); - } - - bool localizedCaseInsensitiveContainsString_(NSString? str) { - return _lib._objc_msgSend_59( - _id, - _lib._sel_localizedCaseInsensitiveContainsString_1, - str?._id ?? ffi.nullptr); - } - - bool localizedStandardContainsString_(NSString? str) { - return _lib._objc_msgSend_59(_id, - _lib._sel_localizedStandardContainsString_1, str?._id ?? ffi.nullptr); - } - - _NSRange localizedStandardRangeOfString_(NSString? str) { - return _lib._objc_msgSend_316(_id, - _lib._sel_localizedStandardRangeOfString_1, str?._id ?? ffi.nullptr); - } - - _NSRange rangeOfString_(NSString? searchString) { - return _lib._objc_msgSend_316( - _id, _lib._sel_rangeOfString_1, searchString?._id ?? ffi.nullptr); - } - - _NSRange rangeOfString_options_(NSString? searchString, int mask) { - return _lib._objc_msgSend_317(_id, _lib._sel_rangeOfString_options_1, - searchString?._id ?? ffi.nullptr, mask); - } - - _NSRange rangeOfString_options_range_( - NSString? searchString, int mask, _NSRange rangeOfReceiverToSearch) { - return _lib._objc_msgSend_318(_id, _lib._sel_rangeOfString_options_range_1, - searchString?._id ?? ffi.nullptr, mask, rangeOfReceiverToSearch); - } - - _NSRange rangeOfString_options_range_locale_(NSString? searchString, int mask, - _NSRange rangeOfReceiverToSearch, NSLocale? locale) { - return _lib._objc_msgSend_319( - _id, - _lib._sel_rangeOfString_options_range_locale_1, - searchString?._id ?? ffi.nullptr, - mask, - rangeOfReceiverToSearch, - locale?._id ?? ffi.nullptr); - } - - _NSRange rangeOfCharacterFromSet_(NSCharacterSet? searchSet) { - return _lib._objc_msgSend_320(_id, _lib._sel_rangeOfCharacterFromSet_1, - searchSet?._id ?? ffi.nullptr); - } - - _NSRange rangeOfCharacterFromSet_options_( - NSCharacterSet? searchSet, int mask) { - return _lib._objc_msgSend_321( - _id, - _lib._sel_rangeOfCharacterFromSet_options_1, - searchSet?._id ?? ffi.nullptr, - mask); - } - - _NSRange rangeOfCharacterFromSet_options_range_( - NSCharacterSet? searchSet, int mask, _NSRange rangeOfReceiverToSearch) { - return _lib._objc_msgSend_322( - _id, - _lib._sel_rangeOfCharacterFromSet_options_range_1, - searchSet?._id ?? ffi.nullptr, - mask, - rangeOfReceiverToSearch); - } - - _NSRange rangeOfComposedCharacterSequenceAtIndex_(int index) { - return _lib._objc_msgSend_323( - _id, _lib._sel_rangeOfComposedCharacterSequenceAtIndex_1, index); - } - - _NSRange rangeOfComposedCharacterSequencesForRange_(_NSRange range) { - return _lib._objc_msgSend_324( - _id, _lib._sel_rangeOfComposedCharacterSequencesForRange_1, range); - } - - NSString stringByAppendingString_(NSString? aString) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_stringByAppendingString_1, aString?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString stringByAppendingFormat_(NSString? format) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_stringByAppendingFormat_1, format?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - double get doubleValue { - return _lib._objc_msgSend_155(_id, _lib._sel_doubleValue1); - } - - double get floatValue { - return _lib._objc_msgSend_221(_id, _lib._sel_floatValue1); - } - - int get intValue { - return _lib._objc_msgSend_219(_id, _lib._sel_intValue1); - } - - int get integerValue { - return _lib._objc_msgSend_78(_id, _lib._sel_integerValue1); - } - - int get longLongValue { - return _lib._objc_msgSend_220(_id, _lib._sel_longLongValue1); - } - - bool get boolValue { - return _lib._objc_msgSend_12(_id, _lib._sel_boolValue1); - } - - NSString? get uppercaseString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_uppercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get lowercaseString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_lowercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get capitalizedString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_capitalizedString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get localizedUppercaseString { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_localizedUppercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get localizedLowercaseString { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_localizedLowercaseString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get localizedCapitalizedString { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_localizedCapitalizedString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString uppercaseStringWithLocale_(NSLocale? locale) { - final _ret = _lib._objc_msgSend_325( - _id, _lib._sel_uppercaseStringWithLocale_1, locale?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString lowercaseStringWithLocale_(NSLocale? locale) { - final _ret = _lib._objc_msgSend_325( - _id, _lib._sel_lowercaseStringWithLocale_1, locale?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString capitalizedStringWithLocale_(NSLocale? locale) { - final _ret = _lib._objc_msgSend_325(_id, - _lib._sel_capitalizedStringWithLocale_1, locale?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - void getLineStart_end_contentsEnd_forRange_( - ffi.Pointer startPtr, - ffi.Pointer lineEndPtr, - ffi.Pointer contentsEndPtr, - _NSRange range) { - return _lib._objc_msgSend_326( - _id, - _lib._sel_getLineStart_end_contentsEnd_forRange_1, - startPtr, - lineEndPtr, - contentsEndPtr, - range); - } - - _NSRange lineRangeForRange_(_NSRange range) { - return _lib._objc_msgSend_324(_id, _lib._sel_lineRangeForRange_1, range); - } - - void getParagraphStart_end_contentsEnd_forRange_( - ffi.Pointer startPtr, - ffi.Pointer parEndPtr, - ffi.Pointer contentsEndPtr, - _NSRange range) { - return _lib._objc_msgSend_326( - _id, - _lib._sel_getParagraphStart_end_contentsEnd_forRange_1, - startPtr, - parEndPtr, - contentsEndPtr, - range); - } - - _NSRange paragraphRangeForRange_(_NSRange range) { - return _lib._objc_msgSend_324( - _id, _lib._sel_paragraphRangeForRange_1, range); - } - - void enumerateSubstringsInRange_options_usingBlock_( - _NSRange range, int opts, ObjCBlock13 block) { - return _lib._objc_msgSend_327( - _id, - _lib._sel_enumerateSubstringsInRange_options_usingBlock_1, - range, - opts, - block._id); - } - - void enumerateLinesUsingBlock_(ObjCBlock14 block) { - return _lib._objc_msgSend_328( - _id, _lib._sel_enumerateLinesUsingBlock_1, block._id); - } - - ffi.Pointer get UTF8String { - return _lib._objc_msgSend_13(_id, _lib._sel_UTF8String1); - } - - int get fastestEncoding { - return _lib._objc_msgSend_10(_id, _lib._sel_fastestEncoding1); - } - - int get smallestEncoding { - return _lib._objc_msgSend_10(_id, _lib._sel_smallestEncoding1); - } - - NSData dataUsingEncoding_allowLossyConversion_(int encoding, bool lossy) { - final _ret = _lib._objc_msgSend_329(_id, - _lib._sel_dataUsingEncoding_allowLossyConversion_1, encoding, lossy); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSData dataUsingEncoding_(int encoding) { - final _ret = - _lib._objc_msgSend_330(_id, _lib._sel_dataUsingEncoding_1, encoding); - return NSData._(_ret, _lib, retain: true, release: true); - } - - bool canBeConvertedToEncoding_(int encoding) { - return _lib._objc_msgSend_91( - _id, _lib._sel_canBeConvertedToEncoding_1, encoding); - } - - ffi.Pointer cStringUsingEncoding_(int encoding) { - return _lib._objc_msgSend_11( - _id, _lib._sel_cStringUsingEncoding_1, encoding); - } - - bool getCString_maxLength_encoding_( - ffi.Pointer buffer, int maxBufferCount, int encoding) { - return _lib._objc_msgSend_331( - _id, - _lib._sel_getCString_maxLength_encoding_1, - buffer, - maxBufferCount, - encoding); - } - - bool getBytes_maxLength_usedLength_encoding_options_range_remainingRange_( - ffi.Pointer buffer, - int maxBufferCount, - ffi.Pointer usedBufferCount, - int encoding, - int options, - _NSRange range, - ffi.Pointer<_NSRange> leftover) { - return _lib._objc_msgSend_332( - _id, - _lib._sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_1, - buffer, - maxBufferCount, - usedBufferCount, - encoding, - options, - range, - leftover); - } - - int maximumLengthOfBytesUsingEncoding_(int enc) { - return _lib._objc_msgSend_88( - _id, _lib._sel_maximumLengthOfBytesUsingEncoding_1, enc); - } - - int lengthOfBytesUsingEncoding_(int enc) { - return _lib._objc_msgSend_88( - _id, _lib._sel_lengthOfBytesUsingEncoding_1, enc); - } - - static ffi.Pointer getAvailableStringEncodings( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_333( - _lib._class_NSString1, _lib._sel_availableStringEncodings1); - } - - static NSString localizedNameOfStringEncoding_( - HidListenerBindingsSwift _lib, int encoding) { - final _ret = _lib._objc_msgSend_308(_lib._class_NSString1, - _lib._sel_localizedNameOfStringEncoding_1, encoding); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static int getDefaultCStringEncoding(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_10( - _lib._class_NSString1, _lib._sel_defaultCStringEncoding1); - } - - NSString? get decomposedStringWithCanonicalMapping { - final _ret = _lib._objc_msgSend_20( - _id, _lib._sel_decomposedStringWithCanonicalMapping1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get precomposedStringWithCanonicalMapping { - final _ret = _lib._objc_msgSend_20( - _id, _lib._sel_precomposedStringWithCanonicalMapping1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get decomposedStringWithCompatibilityMapping { - final _ret = _lib._objc_msgSend_20( - _id, _lib._sel_decomposedStringWithCompatibilityMapping1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get precomposedStringWithCompatibilityMapping { - final _ret = _lib._objc_msgSend_20( - _id, _lib._sel_precomposedStringWithCompatibilityMapping1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSArray componentsSeparatedByString_(NSString? separator) { - final _ret = _lib._objc_msgSend_123(_id, - _lib._sel_componentsSeparatedByString_1, separator?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray componentsSeparatedByCharactersInSet_(NSCharacterSet? separator) { - final _ret = _lib._objc_msgSend_334( - _id, - _lib._sel_componentsSeparatedByCharactersInSet_1, - separator?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSString stringByTrimmingCharactersInSet_(NSCharacterSet? set) { - final _ret = _lib._objc_msgSend_335(_id, - _lib._sel_stringByTrimmingCharactersInSet_1, set?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString stringByPaddingToLength_withString_startingAtIndex_( - int newLength, NSString? padString, int padIndex) { - final _ret = _lib._objc_msgSend_336( - _id, - _lib._sel_stringByPaddingToLength_withString_startingAtIndex_1, - newLength, - padString?._id ?? ffi.nullptr, - padIndex); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString stringByFoldingWithOptions_locale_(int options, NSLocale? locale) { - final _ret = _lib._objc_msgSend_337( - _id, - _lib._sel_stringByFoldingWithOptions_locale_1, - options, - locale?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString stringByReplacingOccurrencesOfString_withString_options_range_( - NSString? target, - NSString? replacement, - int options, - _NSRange searchRange) { - final _ret = _lib._objc_msgSend_338( - _id, - _lib._sel_stringByReplacingOccurrencesOfString_withString_options_range_1, - target?._id ?? ffi.nullptr, - replacement?._id ?? ffi.nullptr, - options, - searchRange); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString stringByReplacingOccurrencesOfString_withString_( - NSString? target, NSString? replacement) { - final _ret = _lib._objc_msgSend_339( - _id, - _lib._sel_stringByReplacingOccurrencesOfString_withString_1, - target?._id ?? ffi.nullptr, - replacement?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString stringByReplacingCharactersInRange_withString_( - _NSRange range, NSString? replacement) { - final _ret = _lib._objc_msgSend_340( - _id, - _lib._sel_stringByReplacingCharactersInRange_withString_1, - range, - replacement?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString stringByApplyingTransform_reverse_( - NSString transform, bool reverse) { - final _ret = _lib._objc_msgSend_341(_id, - _lib._sel_stringByApplyingTransform_reverse_1, transform._id, reverse); - return NSString._(_ret, _lib, retain: true, release: true); - } - - bool writeToURL_atomically_encoding_error_(NSURL? url, bool useAuxiliaryFile, - int enc, ffi.Pointer> error) { - return _lib._objc_msgSend_342( - _id, - _lib._sel_writeToURL_atomically_encoding_error_1, - url?._id ?? ffi.nullptr, - useAuxiliaryFile, - enc, - error); - } - - bool writeToFile_atomically_encoding_error_( - NSString? path, - bool useAuxiliaryFile, - int enc, - ffi.Pointer> error) { - return _lib._objc_msgSend_343( - _id, - _lib._sel_writeToFile_atomically_encoding_error_1, - path?._id ?? ffi.nullptr, - useAuxiliaryFile, - enc, - error); - } - - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - int get hash { - return _lib._objc_msgSend_10(_id, _lib._sel_hash1); - } - - NSString initWithCharactersNoCopy_length_freeWhenDone_( - ffi.Pointer characters, int length, bool freeBuffer) { - final _ret = _lib._objc_msgSend_344( - _id, - _lib._sel_initWithCharactersNoCopy_length_freeWhenDone_1, - characters, - length, - freeBuffer); - return NSString._(_ret, _lib, retain: false, release: true); - } - - NSString initWithCharactersNoCopy_length_deallocator_( - ffi.Pointer chars, int len, ObjCBlock15 deallocator) { - final _ret = _lib._objc_msgSend_345( - _id, - _lib._sel_initWithCharactersNoCopy_length_deallocator_1, - chars, - len, - deallocator._id); - return NSString._(_ret, _lib, retain: false, release: true); - } - - NSString initWithCharacters_length_( - ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_346( - _id, _lib._sel_initWithCharacters_length_1, characters, length); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString initWithUTF8String_(ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_347( - _id, _lib._sel_initWithUTF8String_1, nullTerminatedCString); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString initWithString_(NSString? aString) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, aString?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString initWithFormat_(NSString? format) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithFormat_1, format?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString initWithFormat_arguments_( - NSString? format, ffi.Pointer<__va_list_tag> argList) { - final _ret = _lib._objc_msgSend_348( - _id, - _lib._sel_initWithFormat_arguments_1, - format?._id ?? ffi.nullptr, - argList); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString initWithFormat_locale_(NSString? format, NSObject locale) { - final _ret = _lib._objc_msgSend_163(_id, _lib._sel_initWithFormat_locale_1, - format?._id ?? ffi.nullptr, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString initWithFormat_locale_arguments_( - NSString? format, NSObject locale, ffi.Pointer<__va_list_tag> argList) { - final _ret = _lib._objc_msgSend_349( - _id, - _lib._sel_initWithFormat_locale_arguments_1, - format?._id ?? ffi.nullptr, - locale._id, - argList); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString initWithValidatedFormat_validFormatSpecifiers_error_( - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_350( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString initWithValidatedFormat_validFormatSpecifiers_locale_error_( - NSString? format, - NSString? validFormatSpecifiers, - NSObject locale, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_351( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - locale._id, - error); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString initWithValidatedFormat_validFormatSpecifiers_arguments_error_( - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer<__va_list_tag> argList, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_352( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - argList, - error); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString - initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_( - NSString? format, - NSString? validFormatSpecifiers, - NSObject locale, - ffi.Pointer<__va_list_tag> argList, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_353( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - locale._id, - argList, - error); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString initWithData_encoding_(NSData? data, int encoding) { - final _ret = _lib._objc_msgSend_354(_id, _lib._sel_initWithData_encoding_1, - data?._id ?? ffi.nullptr, encoding); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString initWithBytes_length_encoding_( - ffi.Pointer bytes, int len, int encoding) { - final _ret = _lib._objc_msgSend_355( - _id, _lib._sel_initWithBytes_length_encoding_1, bytes, len, encoding); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString initWithBytesNoCopy_length_encoding_freeWhenDone_( - ffi.Pointer bytes, int len, int encoding, bool freeBuffer) { - final _ret = _lib._objc_msgSend_356( - _id, - _lib._sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1, - bytes, - len, - encoding, - freeBuffer); - return NSString._(_ret, _lib, retain: false, release: true); - } - - NSString initWithBytesNoCopy_length_encoding_deallocator_( - ffi.Pointer bytes, - int len, - int encoding, - ObjCBlock12 deallocator) { - final _ret = _lib._objc_msgSend_357( - _id, - _lib._sel_initWithBytesNoCopy_length_encoding_deallocator_1, - bytes, - len, - encoding, - deallocator._id); - return NSString._(_ret, _lib, retain: false, release: true); - } - - static NSString string(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_string1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString stringWithString_( - HidListenerBindingsSwift _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, - _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString stringWithCharacters_length_(HidListenerBindingsSwift _lib, - ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_346(_lib._class_NSString1, - _lib._sel_stringWithCharacters_length_1, characters, length); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString stringWithUTF8String_(HidListenerBindingsSwift _lib, - ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_347(_lib._class_NSString1, - _lib._sel_stringWithUTF8String_1, nullTerminatedCString); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString stringWithFormat_( - HidListenerBindingsSwift _lib, NSString? format) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, - _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString localizedStringWithFormat_( - HidListenerBindingsSwift _lib, NSString? format) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, - _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString stringWithValidatedFormat_validFormatSpecifiers_error_( - HidListenerBindingsSwift _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_350( - _lib._class_NSString1, - _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString - localizedStringWithValidatedFormat_validFormatSpecifiers_error_( - HidListenerBindingsSwift _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_350( - _lib._class_NSString1, - _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString initWithCString_encoding_( - ffi.Pointer nullTerminatedCString, int encoding) { - final _ret = _lib._objc_msgSend_358(_id, - _lib._sel_initWithCString_encoding_1, nullTerminatedCString, encoding); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString stringWithCString_encoding_( - HidListenerBindingsSwift _lib, ffi.Pointer cString, int enc) { - final _ret = _lib._objc_msgSend_358(_lib._class_NSString1, - _lib._sel_stringWithCString_encoding_1, cString, enc); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString initWithContentsOfURL_encoding_error_( - NSURL? url, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_359( - _id, - _lib._sel_initWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString initWithContentsOfFile_encoding_error_( - NSString? path, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_360( - _id, - _lib._sel_initWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString stringWithContentsOfURL_encoding_error_( - HidListenerBindingsSwift _lib, - NSURL? url, - int enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_359( - _lib._class_NSString1, - _lib._sel_stringWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString stringWithContentsOfFile_encoding_error_( - HidListenerBindingsSwift _lib, - NSString? path, - int enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_360( - _lib._class_NSString1, - _lib._sel_stringWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString initWithContentsOfURL_usedEncoding_error_( - NSURL? url, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_361( - _id, - _lib._sel_initWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString initWithContentsOfFile_usedEncoding_error_( - NSString? path, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_362( - _id, - _lib._sel_initWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString stringWithContentsOfURL_usedEncoding_error_( - HidListenerBindingsSwift _lib, - NSURL? url, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_361( - _lib._class_NSString1, - _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString stringWithContentsOfFile_usedEncoding_error_( - HidListenerBindingsSwift _lib, - NSString? path, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_362( - _lib._class_NSString1, - _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static int - stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( - HidListenerBindingsSwift _lib, - NSData? data, - NSDictionary? opts, - ffi.Pointer> string, - ffi.Pointer usedLossyConversion) { - return _lib._objc_msgSend_363( - _lib._class_NSString1, - _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, - data?._id ?? ffi.nullptr, - opts?._id ?? ffi.nullptr, - string, - usedLossyConversion); - } - - NSObject propertyList() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_propertyList1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSDictionary propertyListFromStringsFileFormat() { - final _ret = _lib._objc_msgSend_170( - _id, _lib._sel_propertyListFromStringsFileFormat1); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - ffi.Pointer cString() { - return _lib._objc_msgSend_13(_id, _lib._sel_cString1); - } - - ffi.Pointer lossyCString() { - return _lib._objc_msgSend_13(_id, _lib._sel_lossyCString1); - } - - int cStringLength() { - return _lib._objc_msgSend_10(_id, _lib._sel_cStringLength1); - } - - void getCString_(ffi.Pointer bytes) { - return _lib._objc_msgSend_266(_id, _lib._sel_getCString_1, bytes); - } - - void getCString_maxLength_(ffi.Pointer bytes, int maxLength) { - return _lib._objc_msgSend_364( - _id, _lib._sel_getCString_maxLength_1, bytes, maxLength); - } - - void getCString_maxLength_range_remainingRange_(ffi.Pointer bytes, - int maxLength, _NSRange aRange, ffi.Pointer<_NSRange> leftoverRange) { - return _lib._objc_msgSend_365( - _id, - _lib._sel_getCString_maxLength_range_remainingRange_1, - bytes, - maxLength, - aRange, - leftoverRange); - } - - bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_25(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); - } - - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_125(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); - } - - NSObject initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_241( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject stringWithContentsOfFile_( - HidListenerBindingsSwift _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, - _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject stringWithContentsOfURL_( - HidListenerBindingsSwift _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSString1, - _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject initWithCStringNoCopy_length_freeWhenDone_( - ffi.Pointer bytes, int length, bool freeBuffer) { - final _ret = _lib._objc_msgSend_366( - _id, - _lib._sel_initWithCStringNoCopy_length_freeWhenDone_1, - bytes, - length, - freeBuffer); - return NSObject._(_ret, _lib, retain: false, release: true); - } - - NSObject initWithCString_length_(ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_358( - _id, _lib._sel_initWithCString_length_1, bytes, length); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject initWithCString_(ffi.Pointer bytes) { - final _ret = - _lib._objc_msgSend_347(_id, _lib._sel_initWithCString_1, bytes); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject stringWithCString_length_( - HidListenerBindingsSwift _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_358(_lib._class_NSString1, - _lib._sel_stringWithCString_length_1, bytes, length); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject stringWithCString_( - HidListenerBindingsSwift _lib, ffi.Pointer bytes) { - final _ret = _lib._objc_msgSend_347( - _lib._class_NSString1, _lib._sel_stringWithCString_1, bytes); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void getCharacters_(ffi.Pointer buffer) { - return _lib._objc_msgSend_367(_id, _lib._sel_getCharacters_1, buffer); - } - - NSString variantFittingPresentationWidth_(int width) { - final _ret = _lib._objc_msgSend_368( - _id, _lib._sel_variantFittingPresentationWidth_1, width); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString pathWithComponents_( - HidListenerBindingsSwift _lib, NSArray? components) { - final _ret = _lib._objc_msgSend_369(_lib._class_NSString1, - _lib._sel_pathWithComponents_1, components?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSArray? get pathComponents { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_pathComponents1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - bool get absolutePath { - return _lib._objc_msgSend_12(_id, _lib._sel_isAbsolutePath1); - } - - NSString? get lastPathComponent { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_lastPathComponent1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get stringByDeletingLastPathComponent { - final _ret = _lib._objc_msgSend_20( - _id, _lib._sel_stringByDeletingLastPathComponent1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString stringByAppendingPathComponent_(NSString? str) { - final _ret = _lib._objc_msgSend_64(_id, - _lib._sel_stringByAppendingPathComponent_1, str?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get pathExtension { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_pathExtension1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get stringByDeletingPathExtension { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_stringByDeletingPathExtension1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString stringByAppendingPathExtension_(NSString? str) { - final _ret = _lib._objc_msgSend_64(_id, - _lib._sel_stringByAppendingPathExtension_1, str?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get stringByAbbreviatingWithTildeInPath { - final _ret = _lib._objc_msgSend_20( - _id, _lib._sel_stringByAbbreviatingWithTildeInPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get stringByExpandingTildeInPath { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_stringByExpandingTildeInPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get stringByStandardizingPath { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_stringByStandardizingPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get stringByResolvingSymlinksInPath { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_stringByResolvingSymlinksInPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSArray stringsByAppendingPaths_(NSArray? paths) { - final _ret = _lib._objc_msgSend_63( - _id, _lib._sel_stringsByAppendingPaths_1, paths?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - int completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_( - ffi.Pointer> outputName, - bool flag, - ffi.Pointer> outputArray, - NSArray? filterTypes) { - return _lib._objc_msgSend_370( - _id, - _lib._sel_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_1, - outputName, - flag, - outputArray, - filterTypes?._id ?? ffi.nullptr); - } - - ffi.Pointer get fileSystemRepresentation { - return _lib._objc_msgSend_13(_id, _lib._sel_fileSystemRepresentation1); - } - - bool getFileSystemRepresentation_maxLength_( - ffi.Pointer cname, int max) { - return _lib._objc_msgSend_224( - _id, _lib._sel_getFileSystemRepresentation_maxLength_1, cname, max); - } - - NSString stringByAddingPercentEncodingWithAllowedCharacters_( - NSCharacterSet? allowedCharacters) { - final _ret = _lib._objc_msgSend_335( - _id, - _lib._sel_stringByAddingPercentEncodingWithAllowedCharacters_1, - allowedCharacters?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get stringByRemovingPercentEncoding { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_stringByRemovingPercentEncoding1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString stringByAddingPercentEscapesUsingEncoding_(int enc) { - final _ret = _lib._objc_msgSend_308( - _id, _lib._sel_stringByAddingPercentEscapesUsingEncoding_1, enc); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString stringByReplacingPercentEscapesUsingEncoding_(int enc) { - final _ret = _lib._objc_msgSend_308( - _id, _lib._sel_stringByReplacingPercentEscapesUsingEncoding_1, enc); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSArray linguisticTagsInRange_scheme_options_orthography_tokenRanges_( - _NSRange range, - NSString scheme, - int options, - NSOrthography? orthography, - ffi.Pointer> tokenRanges) { - final _ret = _lib._objc_msgSend_372( - _id, - _lib._sel_linguisticTagsInRange_scheme_options_orthography_tokenRanges_1, - range, - scheme._id, - options, - orthography?._id ?? ffi.nullptr, - tokenRanges); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - void enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_( - _NSRange range, - NSString scheme, - int options, - NSOrthography? orthography, - ObjCBlock13 block) { - return _lib._objc_msgSend_373( - _id, - _lib._sel_enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_1, - range, - scheme._id, - options, - orthography?._id ?? ffi.nullptr, - block._id); - } - - static NSString new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_new1); - return NSString._(_ret, _lib, retain: false, release: true); - } - - static NSString alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_alloc1); - return NSString._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSString1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSString1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSString1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSString1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSString1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSString1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSString1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSString1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSString1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -extension StringToNSString on String { - NSString toNSString(HidListenerBindingsSwift lib) => NSString(lib, this); -} - -class NSCoder extends NSObject { - NSCoder._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSCoder] that points to the same underlying object as [other]. - static NSCoder castFrom(T other) { - return NSCoder._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSCoder] that wraps the given raw object pointer. - static NSCoder castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSCoder._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSCoder]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSCoder1); - } - - void encodeValueOfObjCType_at_( - ffi.Pointer type, ffi.Pointer addr) { - return _lib._objc_msgSend_18( - _id, _lib._sel_encodeValueOfObjCType_at_1, type, addr); - } - - void encodeDataObject_(NSData? data) { - return _lib._objc_msgSend_263( - _id, _lib._sel_encodeDataObject_1, data?._id ?? ffi.nullptr); - } - - NSData decodeDataObject() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_decodeDataObject1); - return NSData._(_ret, _lib, retain: true, release: true); - } - - void decodeValueOfObjCType_at_size_( - ffi.Pointer type, ffi.Pointer data, int size) { - return _lib._objc_msgSend_264( - _id, _lib._sel_decodeValueOfObjCType_at_size_1, type, data, size); - } - - int versionForClassName_(NSString? className) { - return _lib._objc_msgSend_265( - _id, _lib._sel_versionForClassName_1, className?._id ?? ffi.nullptr); - } - - void encodeObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_encodeObject_1, object._id); - } - - void encodeRootObject_(NSObject rootObject) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodeRootObject_1, rootObject._id); - } - - void encodeBycopyObject_(NSObject anObject) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodeBycopyObject_1, anObject._id); - } - - void encodeByrefObject_(NSObject anObject) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodeByrefObject_1, anObject._id); - } - - void encodeConditionalObject_(NSObject object) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodeConditionalObject_1, object._id); - } - - void encodeValuesOfObjCTypes_(ffi.Pointer types) { - return _lib._objc_msgSend_266( - _id, _lib._sel_encodeValuesOfObjCTypes_1, types); - } - - void encodeArrayOfObjCType_count_at_( - ffi.Pointer type, int count, ffi.Pointer array) { - return _lib._objc_msgSend_267( - _id, _lib._sel_encodeArrayOfObjCType_count_at_1, type, count, array); - } - - void encodeBytes_length_(ffi.Pointer byteaddr, int length) { - return _lib._objc_msgSend_21( - _id, _lib._sel_encodeBytes_length_1, byteaddr, length); - } - - NSObject decodeObject() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_decodeObject1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject decodeTopLevelObjectAndReturnError_( - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_268( - _id, _lib._sel_decodeTopLevelObjectAndReturnError_1, error); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void decodeValuesOfObjCTypes_(ffi.Pointer types) { - return _lib._objc_msgSend_266( - _id, _lib._sel_decodeValuesOfObjCTypes_1, types); - } - - void decodeArrayOfObjCType_count_at_( - ffi.Pointer itemType, int count, ffi.Pointer array) { - return _lib._objc_msgSend_267(_id, - _lib._sel_decodeArrayOfObjCType_count_at_1, itemType, count, array); - } - - ffi.Pointer decodeBytesWithReturnedLength_( - ffi.Pointer lengthp) { - return _lib._objc_msgSend_269( - _id, _lib._sel_decodeBytesWithReturnedLength_1, lengthp); - } - - void encodePropertyList_(NSObject aPropertyList) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodePropertyList_1, aPropertyList._id); - } - - NSObject decodePropertyList() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_decodePropertyList1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void setObjectZone_(ffi.Pointer<_NSZone> zone) { - return _lib._objc_msgSend_270(_id, _lib._sel_setObjectZone_1, zone); - } - - ffi.Pointer<_NSZone> objectZone() { - return _lib._objc_msgSend_271(_id, _lib._sel_objectZone1); - } - - int get systemVersion { - return _lib._objc_msgSend_197(_id, _lib._sel_systemVersion1); - } - - bool get allowsKeyedCoding { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsKeyedCoding1); - } - - void encodeObject_forKey_(NSObject object, NSString? key) { - return _lib._objc_msgSend_126(_id, _lib._sel_encodeObject_forKey_1, - object._id, key?._id ?? ffi.nullptr); - } - - void encodeConditionalObject_forKey_(NSObject object, NSString? key) { - return _lib._objc_msgSend_126( - _id, - _lib._sel_encodeConditionalObject_forKey_1, - object._id, - key?._id ?? ffi.nullptr); - } - - void encodeBool_forKey_(bool value, NSString? key) { - return _lib._objc_msgSend_272( - _id, _lib._sel_encodeBool_forKey_1, value, key?._id ?? ffi.nullptr); - } - - void encodeInt_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_273( - _id, _lib._sel_encodeInt_forKey_1, value, key?._id ?? ffi.nullptr); - } - - void encodeInt32_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_274( - _id, _lib._sel_encodeInt32_forKey_1, value, key?._id ?? ffi.nullptr); - } - - void encodeInt64_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_275( - _id, _lib._sel_encodeInt64_forKey_1, value, key?._id ?? ffi.nullptr); - } - - void encodeFloat_forKey_(double value, NSString? key) { - return _lib._objc_msgSend_276( - _id, _lib._sel_encodeFloat_forKey_1, value, key?._id ?? ffi.nullptr); - } - - void encodeDouble_forKey_(double value, NSString? key) { - return _lib._objc_msgSend_277( - _id, _lib._sel_encodeDouble_forKey_1, value, key?._id ?? ffi.nullptr); - } - - void encodeBytes_length_forKey_( - ffi.Pointer bytes, int length, NSString? key) { - return _lib._objc_msgSend_278(_id, _lib._sel_encodeBytes_length_forKey_1, - bytes, length, key?._id ?? ffi.nullptr); - } - - bool containsValueForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_containsValueForKey_1, key?._id ?? ffi.nullptr); - } - - NSObject decodeObjectForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_decodeObjectForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject decodeTopLevelObjectForKey_error_( - NSString? key, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_279( - _id, - _lib._sel_decodeTopLevelObjectForKey_error_1, - key?._id ?? ffi.nullptr, - error); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - bool decodeBoolForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_decodeBoolForKey_1, key?._id ?? ffi.nullptr); - } - - int decodeIntForKey_(NSString? key) { - return _lib._objc_msgSend_280( - _id, _lib._sel_decodeIntForKey_1, key?._id ?? ffi.nullptr); - } - - int decodeInt32ForKey_(NSString? key) { - return _lib._objc_msgSend_281( - _id, _lib._sel_decodeInt32ForKey_1, key?._id ?? ffi.nullptr); - } - - int decodeInt64ForKey_(NSString? key) { - return _lib._objc_msgSend_282( - _id, _lib._sel_decodeInt64ForKey_1, key?._id ?? ffi.nullptr); - } - - double decodeFloatForKey_(NSString? key) { - return _lib._objc_msgSend_283( - _id, _lib._sel_decodeFloatForKey_1, key?._id ?? ffi.nullptr); - } - - double decodeDoubleForKey_(NSString? key) { - return _lib._objc_msgSend_284( - _id, _lib._sel_decodeDoubleForKey_1, key?._id ?? ffi.nullptr); - } - - ffi.Pointer decodeBytesForKey_returnedLength_( - NSString? key, ffi.Pointer lengthp) { - return _lib._objc_msgSend_285( - _id, - _lib._sel_decodeBytesForKey_returnedLength_1, - key?._id ?? ffi.nullptr, - lengthp); - } - - void encodeInteger_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_286( - _id, _lib._sel_encodeInteger_forKey_1, value, key?._id ?? ffi.nullptr); - } - - int decodeIntegerForKey_(NSString? key) { - return _lib._objc_msgSend_265( - _id, _lib._sel_decodeIntegerForKey_1, key?._id ?? ffi.nullptr); - } - - bool get requiresSecureCoding { - return _lib._objc_msgSend_12(_id, _lib._sel_requiresSecureCoding1); - } - - NSObject decodeObjectOfClass_forKey_(NSObject aClass, NSString? key) { - final _ret = _lib._objc_msgSend_287( - _id, - _lib._sel_decodeObjectOfClass_forKey_1, - aClass._id, - key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject decodeTopLevelObjectOfClass_forKey_error_(NSObject aClass, - NSString? key, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_288( - _id, - _lib._sel_decodeTopLevelObjectOfClass_forKey_error_1, - aClass._id, - key?._id ?? ffi.nullptr, - error); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSArray decodeArrayOfObjectsOfClass_forKey_(NSObject cls, NSString? key) { - final _ret = _lib._objc_msgSend_289( - _id, - _lib._sel_decodeArrayOfObjectsOfClass_forKey_1, - cls._id, - key?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSDictionary decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_( - NSObject keyCls, NSObject objectCls, NSString? key) { - final _ret = _lib._objc_msgSend_290( - _id, - _lib._sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_1, - keyCls._id, - objectCls._id, - key?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSObject decodeObjectOfClasses_forKey_(NSSet? classes, NSString? key) { - final _ret = _lib._objc_msgSend_291( - _id, - _lib._sel_decodeObjectOfClasses_forKey_1, - classes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject decodeTopLevelObjectOfClasses_forKey_error_(NSSet? classes, - NSString? key, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_292( - _id, - _lib._sel_decodeTopLevelObjectOfClasses_forKey_error_1, - classes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr, - error); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSArray decodeArrayOfObjectsOfClasses_forKey_(NSSet? classes, NSString? key) { - final _ret = _lib._objc_msgSend_293( - _id, - _lib._sel_decodeArrayOfObjectsOfClasses_forKey_1, - classes?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSDictionary decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_( - NSSet? keyClasses, NSSet? objectClasses, NSString? key) { - final _ret = _lib._objc_msgSend_294( - _id, - _lib._sel_decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_1, - keyClasses?._id ?? ffi.nullptr, - objectClasses?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSObject decodePropertyListForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_decodePropertyListForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSSet? get allowedClasses { - final _ret = _lib._objc_msgSend_295(_id, _lib._sel_allowedClasses1); - return _ret.address == 0 - ? null - : NSSet._(_ret, _lib, retain: true, release: true); - } - - void failWithError_(NSError? error) { - return _lib._objc_msgSend_296( - _id, _lib._sel_failWithError_1, error?._id ?? ffi.nullptr); - } - - int get decodingFailurePolicy { - return _lib._objc_msgSend_297(_id, _lib._sel_decodingFailurePolicy1); - } - - NSError? get error { - final _ret = _lib._objc_msgSend_298(_id, _lib._sel_error1); - return _ret.address == 0 - ? null - : NSError._(_ret, _lib, retain: true, release: true); - } - - void encodeNXObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_encodeNXObject_1, object._id); - } - - NSObject decodeNXObject() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_decodeNXObject1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void decodeValueOfObjCType_at_( - ffi.Pointer type, ffi.Pointer data) { - return _lib._objc_msgSend_18( - _id, _lib._sel_decodeValueOfObjCType_at_1, type, data); - } - - void encodePoint_(CGPoint point) { - return _lib._objc_msgSend_299(_id, _lib._sel_encodePoint_1, point); - } - - CGPoint decodePoint() { - return _lib._objc_msgSend_54(_id, _lib._sel_decodePoint1); - } - - void encodeSize_(CGSize size) { - return _lib._objc_msgSend_300(_id, _lib._sel_encodeSize_1, size); - } - - CGSize decodeSize() { - return _lib._objc_msgSend_55(_id, _lib._sel_decodeSize1); - } - - void encodeRect_(CGRect rect) { - return _lib._objc_msgSend_301(_id, _lib._sel_encodeRect_1, rect); - } - - CGRect decodeRect() { - return _lib._objc_msgSend_56(_id, _lib._sel_decodeRect1); - } - - void encodePoint_forKey_(CGPoint point, NSString? key) { - return _lib._objc_msgSend_302( - _id, _lib._sel_encodePoint_forKey_1, point, key?._id ?? ffi.nullptr); - } - - void encodeSize_forKey_(CGSize size, NSString? key) { - return _lib._objc_msgSend_303( - _id, _lib._sel_encodeSize_forKey_1, size, key?._id ?? ffi.nullptr); - } - - void encodeRect_forKey_(CGRect rect, NSString? key) { - return _lib._objc_msgSend_304( - _id, _lib._sel_encodeRect_forKey_1, rect, key?._id ?? ffi.nullptr); - } - - CGPoint decodePointForKey_(NSString? key) { - return _lib._objc_msgSend_305( - _id, _lib._sel_decodePointForKey_1, key?._id ?? ffi.nullptr); - } - - CGSize decodeSizeForKey_(NSString? key) { - return _lib._objc_msgSend_306( - _id, _lib._sel_decodeSizeForKey_1, key?._id ?? ffi.nullptr); - } - - CGRect decodeRectForKey_(NSString? key) { - return _lib._objc_msgSend_307( - _id, _lib._sel_decodeRectForKey_1, key?._id ?? ffi.nullptr); - } - - static NSCoder new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSCoder1, _lib._sel_new1); - return NSCoder._(_ret, _lib, retain: false, release: true); - } - - static NSCoder alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSCoder1, _lib._sel_alloc1); - return NSCoder._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSCoder1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSCoder1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSCoder1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSCoder1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSCoder1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSCoder1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSCoder1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSCoder1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSCoder1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSData extends NSObject { - NSData._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSData] that points to the same underlying object as [other]. - static NSData castFrom(T other) { - return NSData._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSData] that wraps the given raw object pointer. - static NSData castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSData._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSData]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSData1); - } - - int get length { - return _lib._objc_msgSend_10(_id, _lib._sel_length1); - } - - ffi.Pointer get bytes { - return _lib._objc_msgSend_19(_id, _lib._sel_bytes1); - } - - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - void getBytes_length_(ffi.Pointer buffer, int length) { - return _lib._objc_msgSend_21( - _id, _lib._sel_getBytes_length_1, buffer, length); - } - - void getBytes_range_(ffi.Pointer buffer, _NSRange range) { - return _lib._objc_msgSend_22( - _id, _lib._sel_getBytes_range_1, buffer, range); - } - - bool isEqualToData_(NSData? other) { - return _lib._objc_msgSend_23( - _id, _lib._sel_isEqualToData_1, other?._id ?? ffi.nullptr); - } - - NSData subdataWithRange_(_NSRange range) { - final _ret = - _lib._objc_msgSend_24(_id, _lib._sel_subdataWithRange_1, range); - return NSData._(_ret, _lib, retain: true, release: true); - } - - bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_25(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); - } - - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_125(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); - } - - bool writeToFile_options_error_(NSString? path, int writeOptionsMask, - ffi.Pointer> errorPtr) { - return _lib._objc_msgSend_248(_id, _lib._sel_writeToFile_options_error_1, - path?._id ?? ffi.nullptr, writeOptionsMask, errorPtr); - } - - bool writeToURL_options_error_(NSURL? url, int writeOptionsMask, - ffi.Pointer> errorPtr) { - return _lib._objc_msgSend_249(_id, _lib._sel_writeToURL_options_error_1, - url?._id ?? ffi.nullptr, writeOptionsMask, errorPtr); - } - - _NSRange rangeOfData_options_range_( - NSData? dataToFind, int mask, _NSRange searchRange) { - return _lib._objc_msgSend_250(_id, _lib._sel_rangeOfData_options_range_1, - dataToFind?._id ?? ffi.nullptr, mask, searchRange); - } - - void enumerateByteRangesUsingBlock_(ObjCBlock11 block) { - return _lib._objc_msgSend_251( - _id, _lib._sel_enumerateByteRangesUsingBlock_1, block._id); - } - - static NSData data(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_data1); - return NSData._(_ret, _lib, retain: true, release: true); - } - - static NSData dataWithBytes_length_( - HidListenerBindingsSwift _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_252( - _lib._class_NSData1, _lib._sel_dataWithBytes_length_1, bytes, length); - return NSData._(_ret, _lib, retain: true, release: true); - } - - static NSData dataWithBytesNoCopy_length_( - HidListenerBindingsSwift _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_252(_lib._class_NSData1, - _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); - return NSData._(_ret, _lib, retain: false, release: true); - } - - static NSData dataWithBytesNoCopy_length_freeWhenDone_( - HidListenerBindingsSwift _lib, - ffi.Pointer bytes, - int length, - bool b) { - final _ret = _lib._objc_msgSend_253(_lib._class_NSData1, - _lib._sel_dataWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); - return NSData._(_ret, _lib, retain: false, release: true); - } - - static NSData dataWithContentsOfFile_options_error_( - HidListenerBindingsSwift _lib, - NSString? path, - int readOptionsMask, - ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_254( - _lib._class_NSData1, - _lib._sel_dataWithContentsOfFile_options_error_1, - path?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSData._(_ret, _lib, retain: true, release: true); - } - - static NSData dataWithContentsOfURL_options_error_( - HidListenerBindingsSwift _lib, - NSURL? url, - int readOptionsMask, - ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_255( - _lib._class_NSData1, - _lib._sel_dataWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSData._(_ret, _lib, retain: true, release: true); - } - - static NSData dataWithContentsOfFile_( - HidListenerBindingsSwift _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSData1, - _lib._sel_dataWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); - } - - static NSData dataWithContentsOfURL_( - HidListenerBindingsSwift _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSData1, - _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSData initWithBytes_length_(ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_252( - _id, _lib._sel_initWithBytes_length_1, bytes, length); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSData initWithBytesNoCopy_length_(ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_252( - _id, _lib._sel_initWithBytesNoCopy_length_1, bytes, length); - return NSData._(_ret, _lib, retain: false, release: true); - } - - NSData initWithBytesNoCopy_length_freeWhenDone_( - ffi.Pointer bytes, int length, bool b) { - final _ret = _lib._objc_msgSend_253(_id, - _lib._sel_initWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); - return NSData._(_ret, _lib, retain: false, release: true); - } - - NSData initWithBytesNoCopy_length_deallocator_( - ffi.Pointer bytes, int length, ObjCBlock12 deallocator) { - final _ret = _lib._objc_msgSend_256( - _id, - _lib._sel_initWithBytesNoCopy_length_deallocator_1, - bytes, - length, - deallocator._id); - return NSData._(_ret, _lib, retain: false, release: true); - } - - NSData initWithContentsOfFile_options_error_(NSString? path, - int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_254( - _id, - _lib._sel_initWithContentsOfFile_options_error_1, - path?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSData initWithContentsOfURL_options_error_(NSURL? url, int readOptionsMask, - ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_255( - _id, - _lib._sel_initWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSData initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSData initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_241( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSData initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_257( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); - } - - static NSData dataWithData_(HidListenerBindingsSwift _lib, NSData? data) { - final _ret = _lib._objc_msgSend_257(_lib._class_NSData1, - _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSData initWithBase64EncodedString_options_( - NSString? base64String, int options) { - final _ret = _lib._objc_msgSend_258( - _id, - _lib._sel_initWithBase64EncodedString_options_1, - base64String?._id ?? ffi.nullptr, - options); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSString base64EncodedStringWithOptions_(int options) { - final _ret = _lib._objc_msgSend_259( - _id, _lib._sel_base64EncodedStringWithOptions_1, options); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSData initWithBase64EncodedData_options_(NSData? base64Data, int options) { - final _ret = _lib._objc_msgSend_260( - _id, - _lib._sel_initWithBase64EncodedData_options_1, - base64Data?._id ?? ffi.nullptr, - options); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSData base64EncodedDataWithOptions_(int options) { - final _ret = _lib._objc_msgSend_261( - _id, _lib._sel_base64EncodedDataWithOptions_1, options); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSData decompressedDataUsingAlgorithm_error_( - int algorithm, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_262(_id, - _lib._sel_decompressedDataUsingAlgorithm_error_1, algorithm, error); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSData compressedDataUsingAlgorithm_error_( - int algorithm, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_262( - _id, _lib._sel_compressedDataUsingAlgorithm_error_1, algorithm, error); - return NSData._(_ret, _lib, retain: true, release: true); - } - - void getBytes_(ffi.Pointer buffer) { - return _lib._objc_msgSend_47(_id, _lib._sel_getBytes_1, buffer); - } - - static NSObject dataWithContentsOfMappedFile_( - HidListenerBindingsSwift _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSData1, - _lib._sel_dataWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject initWithContentsOfMappedFile_(NSString? path) { - final _ret = _lib._objc_msgSend_30(_id, - _lib._sel_initWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject initWithBase64Encoding_(NSString? base64String) { - final _ret = _lib._objc_msgSend_30(_id, _lib._sel_initWithBase64Encoding_1, - base64String?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSString base64Encoding() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_base64Encoding1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSData new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_new1); - return NSData._(_ret, _lib, retain: false, release: true); - } - - static NSData alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_alloc1); - return NSData._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSData1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSData1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSData1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSData1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSData1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSData1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSData1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSData1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSData1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -final class _NSRange extends ffi.Struct { - @ffi.UnsignedLong() - external int location; - - @ffi.UnsignedLong() - external int length; -} - -class NSURL extends NSObject { - NSURL._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSURL] that points to the same underlying object as [other]. - static NSURL castFrom(T other) { - return NSURL._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSURL] that wraps the given raw object pointer. - static NSURL castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURL._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSURL]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURL1); - } - - NSURL initWithScheme_host_path_( - NSString? scheme, NSString? host, NSString? path) { - final _ret = _lib._objc_msgSend_26( - _id, - _lib._sel_initWithScheme_host_path_1, - scheme?._id ?? ffi.nullptr, - host?._id ?? ffi.nullptr, - path?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL initFileURLWithPath_isDirectory_relativeToURL_( - NSString? path, bool isDir, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_27( - _id, - _lib._sel_initFileURLWithPath_isDirectory_relativeToURL_1, - path?._id ?? ffi.nullptr, - isDir, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL initFileURLWithPath_relativeToURL_(NSString? path, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_28( - _id, - _lib._sel_initFileURLWithPath_relativeToURL_1, - path?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL initFileURLWithPath_isDirectory_(NSString? path, bool isDir) { - final _ret = _lib._objc_msgSend_29( - _id, - _lib._sel_initFileURLWithPath_isDirectory_1, - path?._id ?? ffi.nullptr, - isDir); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL initFileURLWithPath_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initFileURLWithPath_1, path?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - static NSURL fileURLWithPath_isDirectory_relativeToURL_( - HidListenerBindingsSwift _lib, - NSString? path, - bool isDir, - NSURL? baseURL) { - final _ret = _lib._objc_msgSend_31( - _lib._class_NSURL1, - _lib._sel_fileURLWithPath_isDirectory_relativeToURL_1, - path?._id ?? ffi.nullptr, - isDir, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - static NSURL fileURLWithPath_relativeToURL_( - HidListenerBindingsSwift _lib, NSString? path, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_32( - _lib._class_NSURL1, - _lib._sel_fileURLWithPath_relativeToURL_1, - path?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - static NSURL fileURLWithPath_isDirectory_( - HidListenerBindingsSwift _lib, NSString? path, bool isDir) { - final _ret = _lib._objc_msgSend_33( - _lib._class_NSURL1, - _lib._sel_fileURLWithPath_isDirectory_1, - path?._id ?? ffi.nullptr, - isDir); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - static NSURL fileURLWithPath_(HidListenerBindingsSwift _lib, NSString? path) { - final _ret = _lib._objc_msgSend_34(_lib._class_NSURL1, - _lib._sel_fileURLWithPath_1, path?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_( - ffi.Pointer path, bool isDir, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_35( - _id, - _lib._sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1, - path, - isDir, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - static NSURL fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_( - HidListenerBindingsSwift _lib, - ffi.Pointer path, - bool isDir, - NSURL? baseURL) { - final _ret = _lib._objc_msgSend_36( - _lib._class_NSURL1, - _lib._sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1, - path, - isDir, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL initWithString_(NSString? URLString) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, URLString?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL initWithString_relativeToURL_(NSString? URLString, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_28( - _id, - _lib._sel_initWithString_relativeToURL_1, - URLString?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - static NSURL URLWithString_( - HidListenerBindingsSwift _lib, NSString? URLString) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSURL1, - _lib._sel_URLWithString_1, URLString?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - static NSURL URLWithString_relativeToURL_( - HidListenerBindingsSwift _lib, NSString? URLString, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_28( - _lib._class_NSURL1, - _lib._sel_URLWithString_relativeToURL_1, - URLString?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL initWithDataRepresentation_relativeToURL_( - NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_37( - _id, - _lib._sel_initWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - static NSURL URLWithDataRepresentation_relativeToURL_( - HidListenerBindingsSwift _lib, NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_38( - _lib._class_NSURL1, - _lib._sel_URLWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL initAbsoluteURLWithDataRepresentation_relativeToURL_( - NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_37( - _id, - _lib._sel_initAbsoluteURLWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - static NSURL absoluteURLWithDataRepresentation_relativeToURL_( - HidListenerBindingsSwift _lib, NSData? data, NSURL? baseURL) { - final _ret = _lib._objc_msgSend_38( - _lib._class_NSURL1, - _lib._sel_absoluteURLWithDataRepresentation_relativeToURL_1, - data?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - NSData? get dataRepresentation { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_dataRepresentation1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); - } - - NSString? get absoluteString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_absoluteString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get relativeString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_relativeString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSURL? get baseURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_baseURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL? get absoluteURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_absoluteURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - NSString? get scheme { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_scheme1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get resourceSpecifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_resourceSpecifier1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get host { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_host1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSNumber? get port { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_port1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); - } - - NSString? get user { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_user1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get password { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_password1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get path { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_path1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get fragment { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fragment1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get parameterString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_parameterString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get query { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_query1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get relativePath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_relativePath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - bool get hasDirectoryPath { - return _lib._objc_msgSend_12(_id, _lib._sel_hasDirectoryPath1); - } - - bool getFileSystemRepresentation_maxLength_( - ffi.Pointer buffer, int maxBufferLength) { - return _lib._objc_msgSend_224( - _id, - _lib._sel_getFileSystemRepresentation_maxLength_1, - buffer, - maxBufferLength); - } - - ffi.Pointer get fileSystemRepresentation { - return _lib._objc_msgSend_13(_id, _lib._sel_fileSystemRepresentation1); - } - - bool get fileURL { - return _lib._objc_msgSend_12(_id, _lib._sel_isFileURL1); - } - - NSURL? get standardizedURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_standardizedURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - bool checkResourceIsReachableAndReturnError_( - ffi.Pointer> error) { - return _lib._objc_msgSend_225( - _id, _lib._sel_checkResourceIsReachableAndReturnError_1, error); - } - - bool isFileReferenceURL() { - return _lib._objc_msgSend_12(_id, _lib._sel_isFileReferenceURL1); - } - - NSURL fileReferenceURL() { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_fileReferenceURL1); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL? get filePathURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_filePathURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - bool getResourceValue_forKey_error_( - ffi.Pointer> value, - NSString key, - ffi.Pointer> error) { - return _lib._objc_msgSend_226( - _id, _lib._sel_getResourceValue_forKey_error_1, value, key._id, error); - } - - NSObject resourceValuesForKeys_error_( - NSArray? keys, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_227( - _id, - _lib._sel_resourceValuesForKeys_error_1, - keys?._id ?? ffi.nullptr, - error); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - bool setResourceValue_forKey_error_(NSObject value, NSString key, - ffi.Pointer> error) { - return _lib._objc_msgSend_228(_id, - _lib._sel_setResourceValue_forKey_error_1, value._id, key._id, error); - } - - bool setResourceValues_error_( - NSObject? keyedValues, ffi.Pointer> error) { - return _lib._objc_msgSend_229(_id, _lib._sel_setResourceValues_error_1, - keyedValues?._id ?? ffi.nullptr, error); - } - - void removeCachedResourceValueForKey_(NSString key) { - return _lib._objc_msgSend_192( - _id, _lib._sel_removeCachedResourceValueForKey_1, key._id); - } - - void removeAllCachedResourceValues() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResourceValues1); - } - - void setTemporaryResourceValue_forKey_(NSObject value, NSString key) { - return _lib._objc_msgSend_126( - _id, _lib._sel_setTemporaryResourceValue_forKey_1, value._id, key._id); - } - - NSData - bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_( - int options, - NSArray? keys, - NSURL? relativeURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_230( - _id, - _lib._sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_1, - options, - keys?._id ?? ffi.nullptr, - relativeURL?._id ?? ffi.nullptr, - error); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSURL - initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( - NSData? bookmarkData, - int options, - NSURL? relativeURL, - ffi.Pointer isStale, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_231( - _id, - _lib._sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1, - bookmarkData?._id ?? ffi.nullptr, - options, - relativeURL?._id ?? ffi.nullptr, - isStale, - error); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - static NSURL - URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( - HidListenerBindingsSwift _lib, - NSData? bookmarkData, - int options, - NSURL? relativeURL, - ffi.Pointer isStale, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_231( - _lib._class_NSURL1, - _lib._sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1, - bookmarkData?._id ?? ffi.nullptr, - options, - relativeURL?._id ?? ffi.nullptr, - isStale, - error); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - static NSObject resourceValuesForKeys_fromBookmarkData_( - HidListenerBindingsSwift _lib, NSArray? keys, NSData? bookmarkData) { - final _ret = _lib._objc_msgSend_232( - _lib._class_NSURL1, - _lib._sel_resourceValuesForKeys_fromBookmarkData_1, - keys?._id ?? ffi.nullptr, - bookmarkData?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static bool writeBookmarkData_toURL_options_error_( - HidListenerBindingsSwift _lib, - NSData? bookmarkData, - NSURL? bookmarkFileURL, - int options, - ffi.Pointer> error) { - return _lib._objc_msgSend_233( - _lib._class_NSURL1, - _lib._sel_writeBookmarkData_toURL_options_error_1, - bookmarkData?._id ?? ffi.nullptr, - bookmarkFileURL?._id ?? ffi.nullptr, - options, - error); - } - - static NSData bookmarkDataWithContentsOfURL_error_( - HidListenerBindingsSwift _lib, - NSURL? bookmarkFileURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_234( - _lib._class_NSURL1, - _lib._sel_bookmarkDataWithContentsOfURL_error_1, - bookmarkFileURL?._id ?? ffi.nullptr, - error); - return NSData._(_ret, _lib, retain: true, release: true); - } - - static NSURL URLByResolvingAliasFileAtURL_options_error_( - HidListenerBindingsSwift _lib, - NSURL? url, - int options, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_235( - _lib._class_NSURL1, - _lib._sel_URLByResolvingAliasFileAtURL_options_error_1, - url?._id ?? ffi.nullptr, - options, - error); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - bool startAccessingSecurityScopedResource() { - return _lib._objc_msgSend_12( - _id, _lib._sel_startAccessingSecurityScopedResource1); - } - - void stopAccessingSecurityScopedResource() { - return _lib._objc_msgSend_1( - _id, _lib._sel_stopAccessingSecurityScopedResource1); - } - - bool getPromisedItemResourceValue_forKey_error_( - ffi.Pointer> value, - NSString key, - ffi.Pointer> error) { - return _lib._objc_msgSend_226( - _id, - _lib._sel_getPromisedItemResourceValue_forKey_error_1, - value, - key._id, - error); - } - - NSDictionary promisedItemResourceValuesForKeys_error_( - NSArray? keys, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_236( - _id, - _lib._sel_promisedItemResourceValuesForKeys_error_1, - keys?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - bool checkPromisedItemIsReachableAndReturnError_( - ffi.Pointer> error) { - return _lib._objc_msgSend_225( - _id, _lib._sel_checkPromisedItemIsReachableAndReturnError_1, error); - } - - static NSURL fileURLWithPathComponents_( - HidListenerBindingsSwift _lib, NSArray? components) { - final _ret = _lib._objc_msgSend_237(_lib._class_NSURL1, - _lib._sel_fileURLWithPathComponents_1, components?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - NSArray? get pathComponents { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_pathComponents1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSString? get lastPathComponent { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_lastPathComponent1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get pathExtension { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_pathExtension1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSURL URLByAppendingPathComponent_(NSString? pathComponent) { - final _ret = _lib._objc_msgSend_34( - _id, - _lib._sel_URLByAppendingPathComponent_1, - pathComponent?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL URLByAppendingPathComponent_isDirectory_( - NSString? pathComponent, bool isDirectory) { - final _ret = _lib._objc_msgSend_33( - _id, - _lib._sel_URLByAppendingPathComponent_isDirectory_1, - pathComponent?._id ?? ffi.nullptr, - isDirectory); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL? get URLByDeletingLastPathComponent { - final _ret = - _lib._objc_msgSend_40(_id, _lib._sel_URLByDeletingLastPathComponent1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL URLByAppendingPathExtension_(NSString? pathExtension) { - final _ret = _lib._objc_msgSend_34( - _id, - _lib._sel_URLByAppendingPathExtension_1, - pathExtension?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL? get URLByDeletingPathExtension { - final _ret = - _lib._objc_msgSend_40(_id, _lib._sel_URLByDeletingPathExtension1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL? get URLByStandardizingPath { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URLByStandardizingPath1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL? get URLByResolvingSymlinksInPath { - final _ret = - _lib._objc_msgSend_40(_id, _lib._sel_URLByResolvingSymlinksInPath1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - NSData resourceDataUsingCache_(bool shouldUseCache) { - final _ret = _lib._objc_msgSend_238( - _id, _lib._sel_resourceDataUsingCache_1, shouldUseCache); - return NSData._(_ret, _lib, retain: true, release: true); - } - - void loadResourceDataNotifyingClient_usingCache_( - NSObject client, bool shouldUseCache) { - return _lib._objc_msgSend_239( - _id, - _lib._sel_loadResourceDataNotifyingClient_usingCache_1, - client._id, - shouldUseCache); - } - - NSObject propertyForKey_(NSString? propertyKey) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_propertyForKey_1, propertyKey?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - bool setResourceData_(NSData? data) { - return _lib._objc_msgSend_23( - _id, _lib._sel_setResourceData_1, data?._id ?? ffi.nullptr); - } - - bool setProperty_forKey_(NSObject property, NSString? propertyKey) { - return _lib._objc_msgSend_240(_id, _lib._sel_setProperty_forKey_1, - property._id, propertyKey?._id ?? ffi.nullptr); - } - - NSURLHandle URLHandleUsingCache_(bool shouldUseCache) { - final _ret = _lib._objc_msgSend_247( - _id, _lib._sel_URLHandleUsingCache_1, shouldUseCache); - return NSURLHandle._(_ret, _lib, retain: true, release: true); - } - - static NSURL new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURL1, _lib._sel_new1); - return NSURL._(_ret, _lib, retain: false, release: true); - } - - static NSURL alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURL1, _lib._sel_alloc1); - return NSURL._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURL1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURL1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURL1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURL1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURL1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURL1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSURL1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSURL1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURL1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSNumber extends NSValue { - NSNumber._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSNumber] that points to the same underlying object as [other]. - static NSNumber castFrom(T other) { - return NSNumber._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSNumber] that wraps the given raw object pointer. - static NSNumber castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSNumber._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSNumber]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSNumber1); - } - - @override - NSNumber initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - NSNumber initWithChar_(int value) { - final _ret = _lib._objc_msgSend_202(_id, _lib._sel_initWithChar_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - NSNumber initWithUnsignedChar_(int value) { - final _ret = - _lib._objc_msgSend_203(_id, _lib._sel_initWithUnsignedChar_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - NSNumber initWithShort_(int value) { - final _ret = _lib._objc_msgSend_204(_id, _lib._sel_initWithShort_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - NSNumber initWithUnsignedShort_(int value) { - final _ret = - _lib._objc_msgSend_205(_id, _lib._sel_initWithUnsignedShort_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - NSNumber initWithInt_(int value) { - final _ret = _lib._objc_msgSend_206(_id, _lib._sel_initWithInt_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - NSNumber initWithUnsignedInt_(int value) { - final _ret = - _lib._objc_msgSend_207(_id, _lib._sel_initWithUnsignedInt_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - NSNumber initWithLong_(int value) { - final _ret = _lib._objc_msgSend_208(_id, _lib._sel_initWithLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - NSNumber initWithUnsignedLong_(int value) { - final _ret = - _lib._objc_msgSend_209(_id, _lib._sel_initWithUnsignedLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - NSNumber initWithLongLong_(int value) { - final _ret = - _lib._objc_msgSend_210(_id, _lib._sel_initWithLongLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - NSNumber initWithUnsignedLongLong_(int value) { - final _ret = _lib._objc_msgSend_211( - _id, _lib._sel_initWithUnsignedLongLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - NSNumber initWithFloat_(double value) { - final _ret = _lib._objc_msgSend_212(_id, _lib._sel_initWithFloat_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - NSNumber initWithDouble_(double value) { - final _ret = _lib._objc_msgSend_213(_id, _lib._sel_initWithDouble_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - NSNumber initWithBool_(bool value) { - final _ret = _lib._objc_msgSend_214(_id, _lib._sel_initWithBool_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - NSNumber initWithInteger_(int value) { - final _ret = - _lib._objc_msgSend_208(_id, _lib._sel_initWithInteger_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - NSNumber initWithUnsignedInteger_(int value) { - final _ret = - _lib._objc_msgSend_209(_id, _lib._sel_initWithUnsignedInteger_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - int get charValue { - return _lib._objc_msgSend_215(_id, _lib._sel_charValue1); - } - - int get unsignedCharValue { - return _lib._objc_msgSend_216(_id, _lib._sel_unsignedCharValue1); - } - - int get shortValue { - return _lib._objc_msgSend_217(_id, _lib._sel_shortValue1); - } - - int get unsignedShortValue { - return _lib._objc_msgSend_218(_id, _lib._sel_unsignedShortValue1); - } - - int get intValue { - return _lib._objc_msgSend_219(_id, _lib._sel_intValue1); - } - - int get unsignedIntValue { - return _lib._objc_msgSend_197(_id, _lib._sel_unsignedIntValue1); - } - - int get longValue { - return _lib._objc_msgSend_78(_id, _lib._sel_longValue1); - } - - int get unsignedLongValue { - return _lib._objc_msgSend_10(_id, _lib._sel_unsignedLongValue1); - } - - int get longLongValue { - return _lib._objc_msgSend_220(_id, _lib._sel_longLongValue1); - } - - int get unsignedLongLongValue { - return _lib._objc_msgSend_154(_id, _lib._sel_unsignedLongLongValue1); - } - - double get floatValue { - return _lib._objc_msgSend_221(_id, _lib._sel_floatValue1); - } - - double get doubleValue { - return _lib._objc_msgSend_155(_id, _lib._sel_doubleValue1); - } - - bool get boolValue { - return _lib._objc_msgSend_12(_id, _lib._sel_boolValue1); - } - - int get integerValue { - return _lib._objc_msgSend_78(_id, _lib._sel_integerValue1); - } - - int get unsignedIntegerValue { - return _lib._objc_msgSend_10(_id, _lib._sel_unsignedIntegerValue1); - } - - NSString? get stringValue { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_stringValue1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - int compare_(NSNumber? otherNumber) { - return _lib._objc_msgSend_222( - _id, _lib._sel_compare_1, otherNumber?._id ?? ffi.nullptr); - } - - bool isEqualToNumber_(NSNumber? number) { - return _lib._objc_msgSend_223( - _id, _lib._sel_isEqualToNumber_1, number?._id ?? ffi.nullptr); - } - - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithChar_(HidListenerBindingsSwift _lib, int value) { - final _ret = _lib._objc_msgSend_202( - _lib._class_NSNumber1, _lib._sel_numberWithChar_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithUnsignedChar_( - HidListenerBindingsSwift _lib, int value) { - final _ret = _lib._objc_msgSend_203( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedChar_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithShort_(HidListenerBindingsSwift _lib, int value) { - final _ret = _lib._objc_msgSend_204( - _lib._class_NSNumber1, _lib._sel_numberWithShort_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithUnsignedShort_( - HidListenerBindingsSwift _lib, int value) { - final _ret = _lib._objc_msgSend_205( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedShort_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithInt_(HidListenerBindingsSwift _lib, int value) { - final _ret = _lib._objc_msgSend_206( - _lib._class_NSNumber1, _lib._sel_numberWithInt_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithUnsignedInt_( - HidListenerBindingsSwift _lib, int value) { - final _ret = _lib._objc_msgSend_207( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedInt_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithLong_(HidListenerBindingsSwift _lib, int value) { - final _ret = _lib._objc_msgSend_208( - _lib._class_NSNumber1, _lib._sel_numberWithLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithUnsignedLong_( - HidListenerBindingsSwift _lib, int value) { - final _ret = _lib._objc_msgSend_209( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithLongLong_( - HidListenerBindingsSwift _lib, int value) { - final _ret = _lib._objc_msgSend_210( - _lib._class_NSNumber1, _lib._sel_numberWithLongLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithUnsignedLongLong_( - HidListenerBindingsSwift _lib, int value) { - final _ret = _lib._objc_msgSend_211( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLongLong_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithFloat_( - HidListenerBindingsSwift _lib, double value) { - final _ret = _lib._objc_msgSend_212( - _lib._class_NSNumber1, _lib._sel_numberWithFloat_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithDouble_( - HidListenerBindingsSwift _lib, double value) { - final _ret = _lib._objc_msgSend_213( - _lib._class_NSNumber1, _lib._sel_numberWithDouble_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithBool_(HidListenerBindingsSwift _lib, bool value) { - final _ret = _lib._objc_msgSend_214( - _lib._class_NSNumber1, _lib._sel_numberWithBool_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithInteger_(HidListenerBindingsSwift _lib, int value) { - final _ret = _lib._objc_msgSend_208( - _lib._class_NSNumber1, _lib._sel_numberWithInteger_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSNumber numberWithUnsignedInteger_( - HidListenerBindingsSwift _lib, int value) { - final _ret = _lib._objc_msgSend_209( - _lib._class_NSNumber1, _lib._sel_numberWithUnsignedInteger_1, value); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSValue valueWithBytes_objCType_(HidListenerBindingsSwift _lib, - ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_43(_lib._class_NSNumber1, - _lib._sel_valueWithBytes_objCType_1, value, type); - return NSValue._(_ret, _lib, retain: true, release: true); - } - - static NSValue value_withObjCType_(HidListenerBindingsSwift _lib, - ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_43( - _lib._class_NSNumber1, _lib._sel_value_withObjCType_1, value, type); - return NSValue._(_ret, _lib, retain: true, release: true); - } - - static NSValue valueWithNonretainedObject_( - HidListenerBindingsSwift _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_44(_lib._class_NSNumber1, - _lib._sel_valueWithNonretainedObject_1, anObject._id); - return NSValue._(_ret, _lib, retain: true, release: true); - } - - static NSValue valueWithPointer_( - HidListenerBindingsSwift _lib, ffi.Pointer pointer) { - final _ret = _lib._objc_msgSend_45( - _lib._class_NSNumber1, _lib._sel_valueWithPointer_1, pointer); - return NSValue._(_ret, _lib, retain: true, release: true); - } - - static NSValue valueWithRange_( - HidListenerBindingsSwift _lib, _NSRange range) { - final _ret = _lib._objc_msgSend_48( - _lib._class_NSNumber1, _lib._sel_valueWithRange_1, range); - return NSValue._(_ret, _lib, retain: true, release: true); - } - - static NSValue valueWithPoint_(HidListenerBindingsSwift _lib, CGPoint point) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSNumber1, _lib._sel_valueWithPoint_1, point); - return NSValue._(_ret, _lib, retain: true, release: true); - } - - static NSValue valueWithSize_(HidListenerBindingsSwift _lib, CGSize size) { - final _ret = _lib._objc_msgSend_51( - _lib._class_NSNumber1, _lib._sel_valueWithSize_1, size); - return NSValue._(_ret, _lib, retain: true, release: true); - } - - static NSValue valueWithRect_(HidListenerBindingsSwift _lib, CGRect rect) { - final _ret = _lib._objc_msgSend_52( - _lib._class_NSNumber1, _lib._sel_valueWithRect_1, rect); - return NSValue._(_ret, _lib, retain: true, release: true); - } - - static NSValue valueWithEdgeInsets_( - HidListenerBindingsSwift _lib, NSEdgeInsets insets) { - final _ret = _lib._objc_msgSend_53( - _lib._class_NSNumber1, _lib._sel_valueWithEdgeInsets_1, insets); - return NSValue._(_ret, _lib, retain: true, release: true); - } - - static NSNumber new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_new1); - return NSNumber._(_ret, _lib, retain: false, release: true); - } - - static NSNumber alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_alloc1); - return NSNumber._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSNumber1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSNumber1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSNumber1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSNumber1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSNumber1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSNumber1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSNumber1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSNumber1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSNumber1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSValue extends NSObject { - NSValue._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSValue] that points to the same underlying object as [other]. - static NSValue castFrom(T other) { - return NSValue._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSValue] that wraps the given raw object pointer. - static NSValue castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSValue._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSValue]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSValue1); - } - - void getValue_size_(ffi.Pointer value, int size) { - return _lib._objc_msgSend_21(_id, _lib._sel_getValue_size_1, value, size); - } - - ffi.Pointer get objCType { - return _lib._objc_msgSend_13(_id, _lib._sel_objCType1); - } - - NSValue initWithBytes_objCType_( - ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_41( - _id, _lib._sel_initWithBytes_objCType_1, value, type); - return NSValue._(_ret, _lib, retain: true, release: true); - } - - NSValue initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSValue._(_ret, _lib, retain: true, release: true); - } - - static NSValue valueWithBytes_objCType_(HidListenerBindingsSwift _lib, - ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_43( - _lib._class_NSValue1, _lib._sel_valueWithBytes_objCType_1, value, type); - return NSValue._(_ret, _lib, retain: true, release: true); - } - - static NSValue value_withObjCType_(HidListenerBindingsSwift _lib, - ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_43( - _lib._class_NSValue1, _lib._sel_value_withObjCType_1, value, type); - return NSValue._(_ret, _lib, retain: true, release: true); - } - - static NSValue valueWithNonretainedObject_( - HidListenerBindingsSwift _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_44(_lib._class_NSValue1, - _lib._sel_valueWithNonretainedObject_1, anObject._id); - return NSValue._(_ret, _lib, retain: true, release: true); - } - - NSObject get nonretainedObjectValue { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_nonretainedObjectValue1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSValue valueWithPointer_( - HidListenerBindingsSwift _lib, ffi.Pointer pointer) { - final _ret = _lib._objc_msgSend_45( - _lib._class_NSValue1, _lib._sel_valueWithPointer_1, pointer); - return NSValue._(_ret, _lib, retain: true, release: true); - } - - ffi.Pointer get pointerValue { - return _lib._objc_msgSend_19(_id, _lib._sel_pointerValue1); - } - - bool isEqualToValue_(NSValue? value) { - return _lib._objc_msgSend_46( - _id, _lib._sel_isEqualToValue_1, value?._id ?? ffi.nullptr); - } - - void getValue_(ffi.Pointer value) { - return _lib._objc_msgSend_47(_id, _lib._sel_getValue_1, value); - } - - static NSValue valueWithRange_( - HidListenerBindingsSwift _lib, _NSRange range) { - final _ret = _lib._objc_msgSend_48( - _lib._class_NSValue1, _lib._sel_valueWithRange_1, range); - return NSValue._(_ret, _lib, retain: true, release: true); - } - - _NSRange get rangeValue { - return _lib._objc_msgSend_49(_id, _lib._sel_rangeValue1); - } - - static NSValue valueWithPoint_(HidListenerBindingsSwift _lib, CGPoint point) { - final _ret = _lib._objc_msgSend_50( - _lib._class_NSValue1, _lib._sel_valueWithPoint_1, point); - return NSValue._(_ret, _lib, retain: true, release: true); - } - - static NSValue valueWithSize_(HidListenerBindingsSwift _lib, CGSize size) { - final _ret = _lib._objc_msgSend_51( - _lib._class_NSValue1, _lib._sel_valueWithSize_1, size); - return NSValue._(_ret, _lib, retain: true, release: true); - } - - static NSValue valueWithRect_(HidListenerBindingsSwift _lib, CGRect rect) { - final _ret = _lib._objc_msgSend_52( - _lib._class_NSValue1, _lib._sel_valueWithRect_1, rect); - return NSValue._(_ret, _lib, retain: true, release: true); - } - - static NSValue valueWithEdgeInsets_( - HidListenerBindingsSwift _lib, NSEdgeInsets insets) { - final _ret = _lib._objc_msgSend_53( - _lib._class_NSValue1, _lib._sel_valueWithEdgeInsets_1, insets); - return NSValue._(_ret, _lib, retain: true, release: true); - } - - CGPoint get pointValue { - return _lib._objc_msgSend_54(_id, _lib._sel_pointValue1); - } - - CGSize get sizeValue { - return _lib._objc_msgSend_55(_id, _lib._sel_sizeValue1); - } - - CGRect get rectValue { - return _lib._objc_msgSend_56(_id, _lib._sel_rectValue1); - } - - NSEdgeInsets get edgeInsetsValue { - return _lib._objc_msgSend_57(_id, _lib._sel_edgeInsetsValue1); - } - - static NSValue new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSValue1, _lib._sel_new1); - return NSValue._(_ret, _lib, retain: false, release: true); - } - - static NSValue alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSValue1, _lib._sel_alloc1); - return NSValue._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSValue1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSValue1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSValue1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSValue1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSValue1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSValue1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSValue1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSValue1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSValue1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -final class CGPoint extends ffi.Struct { - @ffi.Double() - external double x; - - @ffi.Double() - external double y; -} - -final class CGSize extends ffi.Struct { - @ffi.Double() - external double width; - - @ffi.Double() - external double height; -} - -final class CGRect extends ffi.Struct { - external CGPoint origin; - - external CGSize size; -} - -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; -} - -class NSArray extends NSObject { - NSArray._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSArray] that points to the same underlying object as [other]. - static NSArray castFrom(T other) { - return NSArray._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSArray] that wraps the given raw object pointer. - static NSArray castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSArray._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSArray]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSArray1); - } - - int get count { - return _lib._objc_msgSend_10(_id, _lib._sel_count1); - } - - NSObject objectAtIndex_(int index) { - final _ret = _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndex_1, index); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - @override - NSArray init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( - _id, _lib._sel_initWithObjects_count_1, objects, cnt); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray arrayByAddingObject_(NSObject anObject) { - final _ret = _lib._objc_msgSend_62( - _id, _lib._sel_arrayByAddingObject_1, anObject._id); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray arrayByAddingObjectsFromArray_(NSArray? otherArray) { - final _ret = _lib._objc_msgSend_63( - _id, - _lib._sel_arrayByAddingObjectsFromArray_1, - otherArray?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSString componentsJoinedByString_(NSString? separator) { - final _ret = _lib._objc_msgSend_64(_id, - _lib._sel_componentsJoinedByString_1, separator?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - bool containsObject_(NSObject anObject) { - return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, anObject._id); - } - - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString descriptionWithLocale_indent_(NSObject locale, int level) { - final _ret = _lib._objc_msgSend_66( - _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSObject firstObjectCommonWithArray_(NSArray? otherArray) { - final _ret = _lib._objc_msgSend_67(_id, - _lib._sel_firstObjectCommonWithArray_1, otherArray?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void getObjects_range_( - ffi.Pointer> objects, _NSRange range) { - return _lib._objc_msgSend_68( - _id, _lib._sel_getObjects_range_1, objects, range); - } - - int indexOfObject_(NSObject anObject) { - return _lib._objc_msgSend_69(_id, _lib._sel_indexOfObject_1, anObject._id); - } - - int indexOfObject_inRange_(NSObject anObject, _NSRange range) { - return _lib._objc_msgSend_70( - _id, _lib._sel_indexOfObject_inRange_1, anObject._id, range); - } - - int indexOfObjectIdenticalTo_(NSObject anObject) { - return _lib._objc_msgSend_69( - _id, _lib._sel_indexOfObjectIdenticalTo_1, anObject._id); - } - - int indexOfObjectIdenticalTo_inRange_(NSObject anObject, _NSRange range) { - return _lib._objc_msgSend_70( - _id, _lib._sel_indexOfObjectIdenticalTo_inRange_1, anObject._id, range); - } - - bool isEqualToArray_(NSArray? otherArray) { - return _lib._objc_msgSend_71( - _id, _lib._sel_isEqualToArray_1, otherArray?._id ?? ffi.nullptr); - } - - NSObject get firstObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_firstObject1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject get lastObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_lastObject1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); - } - - NSEnumerator reverseObjectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_reverseObjectEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); - } - - NSData? get sortedArrayHint { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_sortedArrayHint1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); - } - - NSArray sortedArrayUsingFunction_context_( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - comparator, - ffi.Pointer context) { - final _ret = _lib._objc_msgSend_73( - _id, _lib._sel_sortedArrayUsingFunction_context_1, comparator, context); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray sortedArrayUsingFunction_context_hint_( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - comparator, - ffi.Pointer context, - NSData? hint) { - final _ret = _lib._objc_msgSend_74( - _id, - _lib._sel_sortedArrayUsingFunction_context_hint_1, - comparator, - context, - hint?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray sortedArrayUsingSelector_(ffi.Pointer comparator) { - final _ret = _lib._objc_msgSend_75( - _id, _lib._sel_sortedArrayUsingSelector_1, comparator); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray subarrayWithRange_(_NSRange range) { - final _ret = - _lib._objc_msgSend_76(_id, _lib._sel_subarrayWithRange_1, range); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - bool writeToURL_error_( - NSURL? url, ffi.Pointer> error) { - return _lib._objc_msgSend_83( - _id, _lib._sel_writeToURL_error_1, url?._id ?? ffi.nullptr, error); - } - - void makeObjectsPerformSelector_(ffi.Pointer aSelector) { - return _lib._objc_msgSend_7( - _id, _lib._sel_makeObjectsPerformSelector_1, aSelector); - } - - void makeObjectsPerformSelector_withObject_( - ffi.Pointer aSelector, NSObject argument) { - return _lib._objc_msgSend_84( - _id, - _lib._sel_makeObjectsPerformSelector_withObject_1, - aSelector, - argument._id); - } - - NSArray objectsAtIndexes_(NSIndexSet? indexes) { - final _ret = _lib._objc_msgSend_105( - _id, _lib._sel_objectsAtIndexes_1, indexes?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSObject objectAtIndexedSubscript_(int idx) { - final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndexedSubscript_1, idx); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void enumerateObjectsUsingBlock_(ObjCBlock4 block) { - return _lib._objc_msgSend_106( - _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); - } - - void enumerateObjectsWithOptions_usingBlock_(int opts, ObjCBlock4 block) { - return _lib._objc_msgSend_107(_id, - _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); - } - - void enumerateObjectsAtIndexes_options_usingBlock_( - NSIndexSet? s, int opts, ObjCBlock4 block) { - return _lib._objc_msgSend_108( - _id, - _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, - s?._id ?? ffi.nullptr, - opts, - block._id); - } - - int indexOfObjectPassingTest_(ObjCBlock5 predicate) { - return _lib._objc_msgSend_109( - _id, _lib._sel_indexOfObjectPassingTest_1, predicate._id); - } - - int indexOfObjectWithOptions_passingTest_(int opts, ObjCBlock5 predicate) { - return _lib._objc_msgSend_110(_id, - _lib._sel_indexOfObjectWithOptions_passingTest_1, opts, predicate._id); - } - - int indexOfObjectAtIndexes_options_passingTest_( - NSIndexSet? s, int opts, ObjCBlock5 predicate) { - return _lib._objc_msgSend_111( - _id, - _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, - opts, - predicate._id); - } - - NSIndexSet indexesOfObjectsPassingTest_(ObjCBlock5 predicate) { - final _ret = _lib._objc_msgSend_112( - _id, _lib._sel_indexesOfObjectsPassingTest_1, predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } - - NSIndexSet indexesOfObjectsWithOptions_passingTest_( - int opts, ObjCBlock5 predicate) { - final _ret = _lib._objc_msgSend_113( - _id, - _lib._sel_indexesOfObjectsWithOptions_passingTest_1, - opts, - predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } - - NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_( - NSIndexSet? s, int opts, ObjCBlock5 predicate) { - final _ret = _lib._objc_msgSend_114( - _id, - _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, - opts, - predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } - - NSArray sortedArrayUsingComparator_(ObjCBlock6 cmptr) { - final _ret = _lib._objc_msgSend_115( - _id, _lib._sel_sortedArrayUsingComparator_1, cmptr._id); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray sortedArrayWithOptions_usingComparator_(int opts, ObjCBlock6 cmptr) { - final _ret = _lib._objc_msgSend_116(_id, - _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr._id); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - int indexOfObject_inSortedRange_options_usingComparator_( - NSObject obj, _NSRange r, int opts, ObjCBlock6 cmp) { - return _lib._objc_msgSend_117( - _id, - _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, - obj._id, - r, - opts, - cmp._id); - } - - static NSArray array(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_array1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSArray arrayWithObject_( - HidListenerBindingsSwift _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_16( - _lib._class_NSArray1, _lib._sel_arrayWithObject_1, anObject._id); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSArray arrayWithObjects_count_(HidListenerBindingsSwift _lib, - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( - _lib._class_NSArray1, _lib._sel_arrayWithObjects_count_1, objects, cnt); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSArray arrayWithObjects_( - HidListenerBindingsSwift _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16( - _lib._class_NSArray1, _lib._sel_arrayWithObjects_1, firstObj._id); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSArray arrayWithArray_( - HidListenerBindingsSwift _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSArray1, - _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray initWithObjects_(NSObject firstObj) { - final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_67( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray initWithArray_copyItems_(NSArray? array, bool flag) { - final _ret = _lib._objc_msgSend_118(_id, - _lib._sel_initWithArray_copyItems_1, array?._id ?? ffi.nullptr, flag); - return NSArray._(_ret, _lib, retain: false, release: true); - } - - NSArray initWithContentsOfURL_error_( - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_119( - _id, - _lib._sel_initWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSArray arrayWithContentsOfURL_error_(HidListenerBindingsSwift _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_119( - _lib._class_NSArray1, - _lib._sel_arrayWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSObject differenceFromArray_withOptions_usingEquivalenceTest_( - NSArray? other, int options, ObjCBlock7 block) { - final _ret = _lib._objc_msgSend_120( - _id, - _lib._sel_differenceFromArray_withOptions_usingEquivalenceTest_1, - other?._id ?? ffi.nullptr, - options, - block._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject differenceFromArray_withOptions_(NSArray? other, int options) { - final _ret = _lib._objc_msgSend_121( - _id, - _lib._sel_differenceFromArray_withOptions_1, - other?._id ?? ffi.nullptr, - options); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject differenceFromArray_(NSArray? other) { - final _ret = _lib._objc_msgSend_67( - _id, _lib._sel_differenceFromArray_1, other?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSArray arrayByApplyingDifference_(NSObject? difference) { - final _ret = _lib._objc_msgSend_62(_id, - _lib._sel_arrayByApplyingDifference_1, difference?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - void getObjects_(ffi.Pointer> objects) { - return _lib._objc_msgSend_122(_id, _lib._sel_getObjects_1, objects); - } - - static NSArray arrayWithContentsOfFile_( - HidListenerBindingsSwift _lib, NSString? path) { - final _ret = _lib._objc_msgSend_123(_lib._class_NSArray1, - _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSArray arrayWithContentsOfURL_( - HidListenerBindingsSwift _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_124(_lib._class_NSArray1, - _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_123( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_124( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_25(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); - } - - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_125(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); - } - - NSArray pathsMatchingExtensions_(NSArray? filterTypes) { - final _ret = _lib._objc_msgSend_63(_id, _lib._sel_pathsMatchingExtensions_1, - filterTypes?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - @override - NSObject valueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - @override - void setValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_126( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); - } - - void addObserver_toObjectsAtIndexes_forKeyPath_options_context_( - NSObject? observer, - NSIndexSet? indexes, - NSString? keyPath, - int options, - ffi.Pointer context) { - return _lib._objc_msgSend_127( - _id, - _lib._sel_addObserver_toObjectsAtIndexes_forKeyPath_options_context_1, - observer?._id ?? ffi.nullptr, - indexes?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - options, - context); - } - - void removeObserver_fromObjectsAtIndexes_forKeyPath_context_( - NSObject? observer, - NSIndexSet? indexes, - NSString? keyPath, - ffi.Pointer context) { - return _lib._objc_msgSend_128( - _id, - _lib._sel_removeObserver_fromObjectsAtIndexes_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, - indexes?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - context); - } - - void removeObserver_fromObjectsAtIndexes_forKeyPath_( - NSObject? observer, NSIndexSet? indexes, NSString? keyPath) { - return _lib._objc_msgSend_129( - _id, - _lib._sel_removeObserver_fromObjectsAtIndexes_forKeyPath_1, - observer?._id ?? ffi.nullptr, - indexes?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr); - } - - @override - void addObserver_forKeyPath_options_context_(NSObject? observer, - NSString? keyPath, int options, ffi.Pointer context) { - return _lib._objc_msgSend_130( - _id, - _lib._sel_addObserver_forKeyPath_options_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - options, - context); - } - - @override - void removeObserver_forKeyPath_context_( - NSObject? observer, NSString? keyPath, ffi.Pointer context) { - return _lib._objc_msgSend_131( - _id, - _lib._sel_removeObserver_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - context); - } - - @override - void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { - return _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); - } - - NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { - final _ret = _lib._objc_msgSend_63( - _id, - _lib._sel_sortedArrayUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray filteredArrayUsingPredicate_(NSPredicate? predicate) { - final _ret = _lib._objc_msgSend_201(_id, - _lib._sel_filteredArrayUsingPredicate_1, predicate?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSArray new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_new1); - return NSArray._(_ret, _lib, retain: false, release: true); - } - - static NSArray alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_alloc1); - return NSArray._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSArray1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSArray1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSArray1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSArray1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSArray1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSArray1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSArray1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSArray1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSArray1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSError extends NSObject { - NSError._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSError] that points to the same underlying object as [other]. - static NSError castFrom(T other) { - return NSError._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSError] that wraps the given raw object pointer. - static NSError castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSError._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSError]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSError1); - } - - NSError initWithDomain_code_userInfo_( - NSString domain, int code, NSObject? dict) { - final _ret = _lib._objc_msgSend_77( - _id, - _lib._sel_initWithDomain_code_userInfo_1, - domain._id, - code, - dict?._id ?? ffi.nullptr); - return NSError._(_ret, _lib, retain: true, release: true); - } - - static NSError errorWithDomain_code_userInfo_(HidListenerBindingsSwift _lib, - NSString domain, int code, NSObject? dict) { - final _ret = _lib._objc_msgSend_77( - _lib._class_NSError1, - _lib._sel_errorWithDomain_code_userInfo_1, - domain._id, - code, - dict?._id ?? ffi.nullptr); - return NSError._(_ret, _lib, retain: true, release: true); - } - - NSString get domain { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_domain1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - int get code { - return _lib._objc_msgSend_78(_id, _lib._sel_code1); - } - - NSObject? get userInfo { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_userInfo1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); - } - - NSString? get localizedDescription { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localizedDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get localizedFailureReason { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localizedFailureReason1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get localizedRecoverySuggestion { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_localizedRecoverySuggestion1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSArray? get localizedRecoveryOptions { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_localizedRecoveryOptions1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSObject get recoveryAttempter { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_recoveryAttempter1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSString? get helpAnchor { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_helpAnchor1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSArray? get underlyingErrors { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_underlyingErrors1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - static void setUserInfoValueProviderForDomain_provider_( - HidListenerBindingsSwift _lib, NSString errorDomain, ObjCBlock provider) { - return _lib._objc_msgSend_80( - _lib._class_NSError1, - _lib._sel_setUserInfoValueProviderForDomain_provider_1, - errorDomain._id, - provider._id); - } - - static ObjCBlock userInfoValueProviderForDomain_( - HidListenerBindingsSwift _lib, - NSError? err, - NSString userInfoKey, - NSString errorDomain) { - final _ret = _lib._objc_msgSend_81( - _lib._class_NSError1, - _lib._sel_userInfoValueProviderForDomain_1, - err?._id ?? ffi.nullptr, - userInfoKey._id, - errorDomain._id); - return ObjCBlock._(_ret, _lib); - } - - static NSError new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSError1, _lib._sel_new1); - return NSError._(_ret, _lib, retain: false, release: true); - } - - static NSError alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSError1, _lib._sel_alloc1); - return NSError._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSError1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSError1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSError1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSError1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSError1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSError1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSError1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSError1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSError1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class _ObjCBlockBase implements ffi.Finalizable { - final ffi.Pointer<_ObjCBlock> _id; - final HidListenerBindingsSwift _lib; - bool _pendingRelease; - - _ObjCBlockBase._(this._id, this._lib, - {bool retain = false, bool release = false}) - : _pendingRelease = release { - if (retain) { - _lib._Block_copy(_id.cast()); - } - if (release) { - _lib._objc_releaseFinalizer11.attach(this, _id.cast(), detach: this); - } - } - - /// Releases the reference to the underlying ObjC block held by this wrapper. - /// Throws a StateError if this wrapper doesn't currently hold a reference. - void release() { - if (_pendingRelease) { - _pendingRelease = false; - _lib._Block_release(_id.cast()); - _lib._objc_releaseFinalizer11.detach(this); - } else { - throw StateError( - 'Released an ObjC block that was unowned or already released.'); - } - } - - @override - bool operator ==(Object other) { - return other is _ObjCBlockBase && _id == other._id; - } - - @override - int get hashCode => _id.hashCode; - - /// Return a pointer to this object. - ffi.Pointer<_ObjCBlock> get pointer => _id; -} - -ffi.Pointer _ObjCBlock_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - ffi.Pointer Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock_closureRegistry = {}; -int _ObjCBlock_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_registerClosure(Function fn) { - final id = ++_ObjCBlock_closureRegistryIndex; - _ObjCBlock_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -ffi.Pointer _ObjCBlock_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return _ObjCBlock_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock extends _ObjCBlockBase { - ObjCBlock._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock.fromFunction( - HidListenerBindingsSwift lib, - ffi.Pointer Function( - ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock_closureTrampoline) - .cast(), - _ObjCBlock_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer call( - ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } -} - -final class _ObjCBlockDesc extends ffi.Struct { - @ffi.UnsignedLong() - external int reserved; - - @ffi.UnsignedLong() - external int size; - - external ffi.Pointer copy_helper; - - external ffi.Pointer dispose_helper; - - external ffi.Pointer signature; -} - -final class _ObjCBlock extends ffi.Struct { - external ffi.Pointer isa; - - @ffi.Int() - external int flags; - - @ffi.Int() - external int reserved; - - external ffi.Pointer invoke; - - external ffi.Pointer<_ObjCBlockDesc> descriptor; - - external ffi.Pointer target; -} - -class NSIndexSet extends NSObject { - NSIndexSet._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSIndexSet] that points to the same underlying object as [other]. - static NSIndexSet castFrom(T other) { - return NSIndexSet._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSIndexSet] that wraps the given raw object pointer. - static NSIndexSet castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSIndexSet._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSIndexSet]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSIndexSet1); - } - - static NSIndexSet indexSet(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_indexSet1); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } - - static NSIndexSet indexSetWithIndex_( - HidListenerBindingsSwift _lib, int value) { - final _ret = _lib._objc_msgSend_60( - _lib._class_NSIndexSet1, _lib._sel_indexSetWithIndex_1, value); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } - - static NSIndexSet indexSetWithIndexesInRange_( - HidListenerBindingsSwift _lib, _NSRange range) { - final _ret = _lib._objc_msgSend_85( - _lib._class_NSIndexSet1, _lib._sel_indexSetWithIndexesInRange_1, range); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } - - NSIndexSet initWithIndexesInRange_(_NSRange range) { - final _ret = - _lib._objc_msgSend_85(_id, _lib._sel_initWithIndexesInRange_1, range); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } - - NSIndexSet initWithIndexSet_(NSIndexSet? indexSet) { - final _ret = _lib._objc_msgSend_86( - _id, _lib._sel_initWithIndexSet_1, indexSet?._id ?? ffi.nullptr); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } - - NSIndexSet initWithIndex_(int value) { - final _ret = _lib._objc_msgSend_60(_id, _lib._sel_initWithIndex_1, value); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } - - bool isEqualToIndexSet_(NSIndexSet? indexSet) { - return _lib._objc_msgSend_87( - _id, _lib._sel_isEqualToIndexSet_1, indexSet?._id ?? ffi.nullptr); - } - - int get count { - return _lib._objc_msgSend_10(_id, _lib._sel_count1); - } - - int get firstIndex { - return _lib._objc_msgSend_10(_id, _lib._sel_firstIndex1); - } - - int get lastIndex { - return _lib._objc_msgSend_10(_id, _lib._sel_lastIndex1); - } - - int indexGreaterThanIndex_(int value) { - return _lib._objc_msgSend_88(_id, _lib._sel_indexGreaterThanIndex_1, value); - } - - int indexLessThanIndex_(int value) { - return _lib._objc_msgSend_88(_id, _lib._sel_indexLessThanIndex_1, value); - } - - int indexGreaterThanOrEqualToIndex_(int value) { - return _lib._objc_msgSend_88( - _id, _lib._sel_indexGreaterThanOrEqualToIndex_1, value); - } - - int indexLessThanOrEqualToIndex_(int value) { - return _lib._objc_msgSend_88( - _id, _lib._sel_indexLessThanOrEqualToIndex_1, value); - } - - int getIndexes_maxCount_inIndexRange_( - ffi.Pointer indexBuffer, - int bufferSize, - ffi.Pointer<_NSRange> range) { - return _lib._objc_msgSend_89( - _id, - _lib._sel_getIndexes_maxCount_inIndexRange_1, - indexBuffer, - bufferSize, - range); - } - - int countOfIndexesInRange_(_NSRange range) { - return _lib._objc_msgSend_90(_id, _lib._sel_countOfIndexesInRange_1, range); - } - - bool containsIndex_(int value) { - return _lib._objc_msgSend_91(_id, _lib._sel_containsIndex_1, value); - } - - bool containsIndexesInRange_(_NSRange range) { - return _lib._objc_msgSend_92( - _id, _lib._sel_containsIndexesInRange_1, range); - } - - bool containsIndexes_(NSIndexSet? indexSet) { - return _lib._objc_msgSend_87( - _id, _lib._sel_containsIndexes_1, indexSet?._id ?? ffi.nullptr); - } - - bool intersectsIndexesInRange_(_NSRange range) { - return _lib._objc_msgSend_92( - _id, _lib._sel_intersectsIndexesInRange_1, range); - } - - void enumerateIndexesUsingBlock_(ObjCBlock1 block) { - return _lib._objc_msgSend_93( - _id, _lib._sel_enumerateIndexesUsingBlock_1, block._id); - } - - void enumerateIndexesWithOptions_usingBlock_(int opts, ObjCBlock1 block) { - return _lib._objc_msgSend_94(_id, - _lib._sel_enumerateIndexesWithOptions_usingBlock_1, opts, block._id); - } - - void enumerateIndexesInRange_options_usingBlock_( - _NSRange range, int opts, ObjCBlock1 block) { - return _lib._objc_msgSend_95( - _id, - _lib._sel_enumerateIndexesInRange_options_usingBlock_1, - range, - opts, - block._id); - } - - int indexPassingTest_(ObjCBlock2 predicate) { - return _lib._objc_msgSend_96( - _id, _lib._sel_indexPassingTest_1, predicate._id); - } - - int indexWithOptions_passingTest_(int opts, ObjCBlock2 predicate) { - return _lib._objc_msgSend_97( - _id, _lib._sel_indexWithOptions_passingTest_1, opts, predicate._id); - } - - int indexInRange_options_passingTest_( - _NSRange range, int opts, ObjCBlock2 predicate) { - return _lib._objc_msgSend_98( - _id, - _lib._sel_indexInRange_options_passingTest_1, - range, - opts, - predicate._id); - } - - NSIndexSet indexesPassingTest_(ObjCBlock2 predicate) { - final _ret = _lib._objc_msgSend_99( - _id, _lib._sel_indexesPassingTest_1, predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } - - NSIndexSet indexesWithOptions_passingTest_(int opts, ObjCBlock2 predicate) { - final _ret = _lib._objc_msgSend_100( - _id, _lib._sel_indexesWithOptions_passingTest_1, opts, predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } - - NSIndexSet indexesInRange_options_passingTest_( - _NSRange range, int opts, ObjCBlock2 predicate) { - final _ret = _lib._objc_msgSend_101( - _id, - _lib._sel_indexesInRange_options_passingTest_1, - range, - opts, - predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } - - void enumerateRangesUsingBlock_(ObjCBlock3 block) { - return _lib._objc_msgSend_102( - _id, _lib._sel_enumerateRangesUsingBlock_1, block._id); - } - - void enumerateRangesWithOptions_usingBlock_(int opts, ObjCBlock3 block) { - return _lib._objc_msgSend_103(_id, - _lib._sel_enumerateRangesWithOptions_usingBlock_1, opts, block._id); - } - - void enumerateRangesInRange_options_usingBlock_( - _NSRange range, int opts, ObjCBlock3 block) { - return _lib._objc_msgSend_104( - _id, - _lib._sel_enumerateRangesInRange_options_usingBlock_1, - range, - opts, - block._id); - } - - static NSIndexSet new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_new1); - return NSIndexSet._(_ret, _lib, retain: false, release: true); - } - - static NSIndexSet alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_alloc1); - return NSIndexSet._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSIndexSet1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSIndexSet1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSIndexSet1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSIndexSet1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSIndexSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSIndexSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSIndexSet1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSIndexSet1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSIndexSet1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -void _ObjCBlock1_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() - .asFunction arg1)>()( - arg0, arg1); -} - -final _ObjCBlock1_closureRegistry = {}; -int _ObjCBlock1_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock1_registerClosure(Function fn) { - final id = ++_ObjCBlock1_closureRegistryIndex; - _ObjCBlock1_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock1_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return _ObjCBlock1_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock1 extends _ObjCBlockBase { - ObjCBlock1._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock1.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.UnsignedLong arg0, ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.UnsignedLong arg0, - ffi.Pointer arg1)>( - _ObjCBlock1_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock1.fromFunction(HidListenerBindingsSwift lib, - void Function(int arg0, ffi.Pointer arg1) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.UnsignedLong arg0, - ffi.Pointer arg1)>( - _ObjCBlock1_closureTrampoline) - .cast(), - _ObjCBlock1_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(int arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, int arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } -} - -abstract class NSEnumerationOptions { - static const int NSEnumerationConcurrent = 1; - static const int NSEnumerationReverse = 2; -} - -bool _ObjCBlock2_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() - .asFunction arg1)>()( - arg0, arg1); -} - -final _ObjCBlock2_closureRegistry = {}; -int _ObjCBlock2_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock2_registerClosure(Function fn) { - final id = ++_ObjCBlock2_closureRegistryIndex; - _ObjCBlock2_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -bool _ObjCBlock2_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return _ObjCBlock2_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock2 extends _ObjCBlockBase { - ObjCBlock2._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock2.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.UnsignedLong arg0, ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.UnsignedLong arg0, - ffi.Pointer arg1)>( - _ObjCBlock2_fnPtrTrampoline, false) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock2.fromFunction(HidListenerBindingsSwift lib, - bool Function(int arg0, ffi.Pointer arg1) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.UnsignedLong arg0, - ffi.Pointer arg1)>( - _ObjCBlock2_closureTrampoline, false) - .cast(), - _ObjCBlock2_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - bool call(int arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, - ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() - .asFunction< - bool Function(ffi.Pointer<_ObjCBlock> block, int arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } -} - -void _ObjCBlock3_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, _NSRange arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(_NSRange arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function( - _NSRange arg0, ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock3_closureRegistry = {}; -int _ObjCBlock3_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock3_registerClosure(Function fn) { - final id = ++_ObjCBlock3_closureRegistryIndex; - _ObjCBlock3_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock3_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, _NSRange arg0, ffi.Pointer arg1) { - return _ObjCBlock3_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock3 extends _ObjCBlockBase { - ObjCBlock3._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock3.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(_NSRange arg0, ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - _NSRange arg0, ffi.Pointer arg1)>( - _ObjCBlock3_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock3.fromFunction(HidListenerBindingsSwift lib, - void Function(_NSRange arg0, ffi.Pointer arg1) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - _NSRange arg0, ffi.Pointer arg1)>( - _ObjCBlock3_closureTrampoline) - .cast(), - _ObjCBlock3_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(_NSRange arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, _NSRange arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, _NSRange arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } -} - -void _ObjCBlock4_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.UnsignedLong arg1, ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock4_closureRegistry = {}; -int _ObjCBlock4_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock4_registerClosure(Function fn) { - final id = ++_ObjCBlock4_closureRegistryIndex; - _ObjCBlock4_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock4_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _ObjCBlock4_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock4 extends _ObjCBlockBase { - ObjCBlock4._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock4.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.UnsignedLong arg1, ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2)>( - _ObjCBlock4_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock4.fromFunction( - HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2)>( - _ObjCBlock4_closureTrampoline) - .cast(), - _ObjCBlock4_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } -} - -bool _ObjCBlock5_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.UnsignedLong arg1, ffi.Pointer arg2)>>() - .asFunction< - bool Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock5_closureRegistry = {}; -int _ObjCBlock5_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock5_registerClosure(Function fn) { - final id = ++_ObjCBlock5_closureRegistryIndex; - _ObjCBlock5_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -bool _ObjCBlock5_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _ObjCBlock5_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock5 extends _ObjCBlockBase { - ObjCBlock5._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock5.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.UnsignedLong arg1, ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2)>( - _ObjCBlock5_fnPtrTrampoline, false) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock5.fromFunction( - HidListenerBindingsSwift lib, - bool Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2)>( - _ObjCBlock5_closureTrampoline, false) - .cast(), - _ObjCBlock5_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - bool call( - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1, - ffi.Pointer arg2)>>() - .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } -} - -int _ObjCBlock6_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - int Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock6_closureRegistry = {}; -int _ObjCBlock6_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock6_registerClosure(Function fn) { - final id = ++_ObjCBlock6_closureRegistryIndex; - _ObjCBlock6_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -int _ObjCBlock6_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock6_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock6 extends _ObjCBlockBase { - ObjCBlock6._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock6.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Int32 Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock6_fnPtrTrampoline, 0) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock6.fromFunction( - HidListenerBindingsSwift lib, - int Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Int32 Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock6_closureTrampoline, 0) - .cast(), - _ObjCBlock6_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - int call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - int Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } -} - -abstract class NSComparisonResult { - static const int NSOrderedAscending = -1; - static const int NSOrderedSame = 0; - static const int NSOrderedDescending = 1; -} - -abstract class NSSortOptions { - static const int NSSortConcurrent = 1; - static const int NSSortStable = 16; -} - -abstract class NSBinarySearchingOptions { - static const int NSBinarySearchingFirstEqual = 256; - static const int NSBinarySearchingLastEqual = 512; - static const int NSBinarySearchingInsertionIndex = 1024; -} - -abstract class NSOrderedCollectionDifferenceCalculationOptions { - static const int NSOrderedCollectionDifferenceCalculationOmitInsertedObjects = - 1; - static const int NSOrderedCollectionDifferenceCalculationOmitRemovedObjects = - 2; - static const int NSOrderedCollectionDifferenceCalculationInferMoves = 4; -} - -bool _ObjCBlock7_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock7_closureRegistry = {}; -int _ObjCBlock7_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock7_registerClosure(Function fn) { - final id = ++_ObjCBlock7_closureRegistryIndex; - _ObjCBlock7_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -bool _ObjCBlock7_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock7_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock7 extends _ObjCBlockBase { - ObjCBlock7._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock7.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock7_fnPtrTrampoline, false) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock7.fromFunction( - HidListenerBindingsSwift lib, - bool Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock7_closureTrampoline, false) - .cast(), - _ObjCBlock7_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - bool call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } -} - -abstract class NSKeyValueObservingOptions { - static const int NSKeyValueObservingOptionNew = 1; - static const int NSKeyValueObservingOptionOld = 2; - static const int NSKeyValueObservingOptionInitial = 4; - static const int NSKeyValueObservingOptionPrior = 8; -} - -class NSPredicate extends NSObject { - NSPredicate._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSPredicate] that points to the same underlying object as [other]. - static NSPredicate castFrom(T other) { - return NSPredicate._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSPredicate] that wraps the given raw object pointer. - static NSPredicate castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSPredicate._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSPredicate]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSPredicate1); - } - - static NSPredicate predicateWithFormat_argumentArray_( - HidListenerBindingsSwift _lib, - NSString? predicateFormat, - NSArray? arguments) { - final _ret = _lib._objc_msgSend_133( - _lib._class_NSPredicate1, - _lib._sel_predicateWithFormat_argumentArray_1, - predicateFormat?._id ?? ffi.nullptr, - arguments?._id ?? ffi.nullptr); - return NSPredicate._(_ret, _lib, retain: true, release: true); - } - - static NSPredicate predicateWithFormat_( - HidListenerBindingsSwift _lib, NSString? predicateFormat) { - final _ret = _lib._objc_msgSend_134(_lib._class_NSPredicate1, - _lib._sel_predicateWithFormat_1, predicateFormat?._id ?? ffi.nullptr); - return NSPredicate._(_ret, _lib, retain: true, release: true); - } - - static NSPredicate predicateWithFormat_arguments_( - HidListenerBindingsSwift _lib, - NSString? predicateFormat, - ffi.Pointer<__va_list_tag> argList) { - final _ret = _lib._objc_msgSend_135( - _lib._class_NSPredicate1, - _lib._sel_predicateWithFormat_arguments_1, - predicateFormat?._id ?? ffi.nullptr, - argList); - return NSPredicate._(_ret, _lib, retain: true, release: true); - } - - static NSPredicate predicateFromMetadataQueryString_( - HidListenerBindingsSwift _lib, NSString? queryString) { - final _ret = _lib._objc_msgSend_134( - _lib._class_NSPredicate1, - _lib._sel_predicateFromMetadataQueryString_1, - queryString?._id ?? ffi.nullptr); - return NSPredicate._(_ret, _lib, retain: true, release: true); - } - - static NSPredicate predicateWithValue_( - HidListenerBindingsSwift _lib, bool value) { - final _ret = _lib._objc_msgSend_136( - _lib._class_NSPredicate1, _lib._sel_predicateWithValue_1, value); - return NSPredicate._(_ret, _lib, retain: true, release: true); - } - - static NSPredicate predicateWithBlock_( - HidListenerBindingsSwift _lib, ObjCBlock8 block) { - final _ret = _lib._objc_msgSend_199( - _lib._class_NSPredicate1, _lib._sel_predicateWithBlock_1, block._id); - return NSPredicate._(_ret, _lib, retain: true, release: true); - } - - NSString? get predicateFormat { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_predicateFormat1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSPredicate predicateWithSubstitutionVariables_(NSDictionary? variables) { - final _ret = _lib._objc_msgSend_149( - _id, - _lib._sel_predicateWithSubstitutionVariables_1, - variables?._id ?? ffi.nullptr); - return NSPredicate._(_ret, _lib, retain: true, release: true); - } - - bool evaluateWithObject_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_evaluateWithObject_1, object._id); - } - - bool evaluateWithObject_substitutionVariables_( - NSObject object, NSDictionary? bindings) { - return _lib._objc_msgSend_200( - _id, - _lib._sel_evaluateWithObject_substitutionVariables_1, - object._id, - bindings?._id ?? ffi.nullptr); - } - - void allowEvaluation() { - return _lib._objc_msgSend_1(_id, _lib._sel_allowEvaluation1); - } - - static NSPredicate new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSPredicate1, _lib._sel_new1); - return NSPredicate._(_ret, _lib, retain: false, release: true); - } - - static NSPredicate alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPredicate1, _lib._sel_alloc1); - return NSPredicate._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSPredicate1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSPredicate1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSPredicate1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSPredicate1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSPredicate1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSPredicate1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSPredicate1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSPredicate1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSPredicate1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -final class __va_list_tag extends ffi.Struct { - @ffi.UnsignedInt() - external int gp_offset; - - @ffi.UnsignedInt() - external int fp_offset; - - external ffi.Pointer overflow_arg_area; - - external ffi.Pointer reg_save_area; -} - -bool _ObjCBlock8_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock8_closureRegistry = {}; -int _ObjCBlock8_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock8_registerClosure(Function fn) { - final id = ++_ObjCBlock8_closureRegistryIndex; - _ObjCBlock8_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -bool _ObjCBlock8_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock8_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock8 extends _ObjCBlockBase { - ObjCBlock8._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock8.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock8_fnPtrTrampoline, false) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock8.fromFunction( - HidListenerBindingsSwift lib, - bool Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock8_closureTrampoline, false) - .cast(), - _ObjCBlock8_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - bool call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } -} - -class NSDictionary extends NSObject { - NSDictionary._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSDictionary] that points to the same underlying object as [other]. - static NSDictionary castFrom(T other) { - return NSDictionary._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSDictionary] that wraps the given raw object pointer. - static NSDictionary castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSDictionary._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSDictionary]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSDictionary1); - } - - int get count { - return _lib._objc_msgSend_10(_id, _lib._sel_count1); - } - - NSObject objectForKey_(NSObject aKey) { - final _ret = _lib._objc_msgSend_16(_id, _lib._sel_objectForKey_1, aKey._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSEnumerator keyEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_keyEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); - } - - @override - NSDictionary init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSDictionary initWithObjects_forKeys_count_( - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt) { - final _ret = _lib._objc_msgSend_137( - _id, _lib._sel_initWithObjects_forKeys_count_1, objects, keys, cnt); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSDictionary initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSArray? get allKeys { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray allKeysForObject_(NSObject anObject) { - final _ret = - _lib._objc_msgSend_62(_id, _lib._sel_allKeysForObject_1, anObject._id); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get allValues { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allValues1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get descriptionInStringsFileFormat { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_descriptionInStringsFileFormat1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString descriptionWithLocale_indent_(NSObject locale, int level) { - final _ret = _lib._objc_msgSend_66( - _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); - return NSString._(_ret, _lib, retain: true, release: true); - } - - bool isEqualToDictionary_(NSDictionary? otherDictionary) { - return _lib._objc_msgSend_138(_id, _lib._sel_isEqualToDictionary_1, - otherDictionary?._id ?? ffi.nullptr); - } - - NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); - } - - NSArray objectsForKeys_notFoundMarker_(NSArray? keys, NSObject marker) { - final _ret = _lib._objc_msgSend_139( - _id, - _lib._sel_objectsForKeys_notFoundMarker_1, - keys?._id ?? ffi.nullptr, - marker._id); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - bool writeToURL_error_( - NSURL? url, ffi.Pointer> error) { - return _lib._objc_msgSend_83( - _id, _lib._sel_writeToURL_error_1, url?._id ?? ffi.nullptr, error); - } - - NSArray keysSortedByValueUsingSelector_(ffi.Pointer comparator) { - final _ret = _lib._objc_msgSend_75( - _id, _lib._sel_keysSortedByValueUsingSelector_1, comparator); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - void getObjects_andKeys_count_(ffi.Pointer> objects, - ffi.Pointer> keys, int count) { - return _lib._objc_msgSend_140( - _id, _lib._sel_getObjects_andKeys_count_1, objects, keys, count); - } - - NSObject objectForKeyedSubscript_(NSObject key) { - final _ret = _lib._objc_msgSend_16( - _id, _lib._sel_objectForKeyedSubscript_1, key._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void enumerateKeysAndObjectsUsingBlock_(ObjCBlock9 block) { - return _lib._objc_msgSend_141( - _id, _lib._sel_enumerateKeysAndObjectsUsingBlock_1, block._id); - } - - void enumerateKeysAndObjectsWithOptions_usingBlock_( - int opts, ObjCBlock9 block) { - return _lib._objc_msgSend_142( - _id, - _lib._sel_enumerateKeysAndObjectsWithOptions_usingBlock_1, - opts, - block._id); - } - - NSArray keysSortedByValueUsingComparator_(ObjCBlock6 cmptr) { - final _ret = _lib._objc_msgSend_115( - _id, _lib._sel_keysSortedByValueUsingComparator_1, cmptr._id); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray keysSortedByValueWithOptions_usingComparator_( - int opts, ObjCBlock6 cmptr) { - final _ret = _lib._objc_msgSend_116( - _id, - _lib._sel_keysSortedByValueWithOptions_usingComparator_1, - opts, - cmptr._id); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSObject keysOfEntriesPassingTest_(ObjCBlock10 predicate) { - final _ret = _lib._objc_msgSend_143( - _id, _lib._sel_keysOfEntriesPassingTest_1, predicate._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject keysOfEntriesWithOptions_passingTest_( - int opts, ObjCBlock10 predicate) { - final _ret = _lib._objc_msgSend_144(_id, - _lib._sel_keysOfEntriesWithOptions_passingTest_1, opts, predicate._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void getObjects_andKeys_(ffi.Pointer> objects, - ffi.Pointer> keys) { - return _lib._objc_msgSend_145( - _id, _lib._sel_getObjects_andKeys_1, objects, keys); - } - - static NSDictionary dictionaryWithContentsOfFile_( - HidListenerBindingsSwift _lib, NSString? path) { - final _ret = _lib._objc_msgSend_146(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSDictionary dictionaryWithContentsOfURL_( - HidListenerBindingsSwift _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_147(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSDictionary initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_146( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSDictionary initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_147( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { - return _lib._objc_msgSend_25(_id, _lib._sel_writeToFile_atomically_1, - path?._id ?? ffi.nullptr, useAuxiliaryFile); - } - - bool writeToURL_atomically_(NSURL? url, bool atomically) { - return _lib._objc_msgSend_125(_id, _lib._sel_writeToURL_atomically_1, - url?._id ?? ffi.nullptr, atomically); - } - - static NSDictionary dictionary(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_dictionary1); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSDictionary dictionaryWithObject_forKey_( - HidListenerBindingsSwift _lib, NSObject object, NSObject? key) { - final _ret = _lib._objc_msgSend_148( - _lib._class_NSDictionary1, - _lib._sel_dictionaryWithObject_forKey_1, - object._id, - key?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSDictionary dictionaryWithObjects_forKeys_count_( - HidListenerBindingsSwift _lib, - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt) { - final _ret = _lib._objc_msgSend_137(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSDictionary dictionaryWithObjectsAndKeys_( - HidListenerBindingsSwift _lib, NSObject firstObject) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithObjectsAndKeys_1, firstObject._id); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSDictionary dictionaryWithDictionary_( - HidListenerBindingsSwift _lib, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_149(_lib._class_NSDictionary1, - _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSDictionary dictionaryWithObjects_forKeys_( - HidListenerBindingsSwift _lib, NSArray? objects, NSArray? keys) { - final _ret = _lib._objc_msgSend_150( - _lib._class_NSDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSDictionary initWithObjectsAndKeys_(NSObject firstObject) { - final _ret = _lib._objc_msgSend_16( - _id, _lib._sel_initWithObjectsAndKeys_1, firstObject._id); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSDictionary initWithDictionary_(NSDictionary? otherDictionary) { - final _ret = _lib._objc_msgSend_149(_id, _lib._sel_initWithDictionary_1, - otherDictionary?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSDictionary initWithDictionary_copyItems_( - NSDictionary? otherDictionary, bool flag) { - final _ret = _lib._objc_msgSend_151( - _id, - _lib._sel_initWithDictionary_copyItems_1, - otherDictionary?._id ?? ffi.nullptr, - flag); - return NSDictionary._(_ret, _lib, retain: false, release: true); - } - - NSDictionary initWithObjects_forKeys_(NSArray? objects, NSArray? keys) { - final _ret = _lib._objc_msgSend_150( - _id, - _lib._sel_initWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSDictionary initWithContentsOfURL_error_( - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_152( - _id, - _lib._sel_initWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSDictionary dictionaryWithContentsOfURL_error_( - HidListenerBindingsSwift _lib, - NSURL? url, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_152( - _lib._class_NSDictionary1, - _lib._sel_dictionaryWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSObject sharedKeySetForKeys_( - HidListenerBindingsSwift _lib, NSArray? keys) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSDictionary1, - _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - int countByEnumeratingWithState_objects_count_( - ffi.Pointer state, - ffi.Pointer> buffer, - int len) { - return _lib._objc_msgSend_153( - _id, - _lib._sel_countByEnumeratingWithState_objects_count_1, - state, - buffer, - len); - } - - int fileSize() { - return _lib._objc_msgSend_154(_id, _lib._sel_fileSize1); - } - - NSDate fileModificationDate() { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_fileModificationDate1); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - NSString fileType() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fileType1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - int filePosixPermissions() { - return _lib._objc_msgSend_10(_id, _lib._sel_filePosixPermissions1); - } - - NSString fileOwnerAccountName() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fileOwnerAccountName1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString fileGroupOwnerAccountName() { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_fileGroupOwnerAccountName1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - int fileSystemNumber() { - return _lib._objc_msgSend_78(_id, _lib._sel_fileSystemNumber1); - } - - int fileSystemFileNumber() { - return _lib._objc_msgSend_10(_id, _lib._sel_fileSystemFileNumber1); - } - - bool fileExtensionHidden() { - return _lib._objc_msgSend_12(_id, _lib._sel_fileExtensionHidden1); - } - - int fileHFSCreatorCode() { - return _lib._objc_msgSend_197(_id, _lib._sel_fileHFSCreatorCode1); - } - - int fileHFSTypeCode() { - return _lib._objc_msgSend_197(_id, _lib._sel_fileHFSTypeCode1); - } - - bool fileIsImmutable() { - return _lib._objc_msgSend_12(_id, _lib._sel_fileIsImmutable1); - } - - bool fileIsAppendOnly() { - return _lib._objc_msgSend_12(_id, _lib._sel_fileIsAppendOnly1); - } - - NSDate fileCreationDate() { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_fileCreationDate1); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - NSNumber fileOwnerAccountID() { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_fileOwnerAccountID1); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - NSNumber fileGroupOwnerAccountID() { - final _ret = - _lib._objc_msgSend_198(_id, _lib._sel_fileGroupOwnerAccountID1); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - @override - NSObject valueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSDictionary new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_new1); - return NSDictionary._(_ret, _lib, retain: false, release: true); - } - - static NSDictionary alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_alloc1); - return NSDictionary._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSDictionary1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSDictionary1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSDictionary1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSDictionary1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSDictionary1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSDictionary1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSDictionary1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSDictionary1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSDictionary1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -void _ObjCBlock9_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1, ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock9_closureRegistry = {}; -int _ObjCBlock9_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock9_registerClosure(Function fn) { - final id = ++_ObjCBlock9_closureRegistryIndex; - _ObjCBlock9_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock9_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock9_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock9 extends _ObjCBlockBase { - ObjCBlock9._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock9.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock9_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock9.fromFunction( - HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock9_closureTrampoline) - .cast(), - _ObjCBlock9_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } -} - -bool _ObjCBlock10_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1, ffi.Pointer arg2)>>() - .asFunction< - bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock10_closureRegistry = {}; -int _ObjCBlock10_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock10_registerClosure(Function fn) { - final id = ++_ObjCBlock10_closureRegistryIndex; - _ObjCBlock10_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -bool _ObjCBlock10_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock10_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock10 extends _ObjCBlockBase { - ObjCBlock10._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock10.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi - .NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib - ._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock10_fnPtrTrampoline, false) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock10.fromFunction( - HidListenerBindingsSwift lib, - bool Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock10_closureTrampoline, false) - .cast(), - _ObjCBlock10_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - bool call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } -} - -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; -} - -class NSDate extends NSObject { - NSDate._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSDate] that points to the same underlying object as [other]. - static NSDate castFrom(T other) { - return NSDate._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSDate] that wraps the given raw object pointer. - static NSDate castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSDate._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSDate]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSDate1); - } - - double get timeIntervalSinceReferenceDate { - return _lib._objc_msgSend_155( - _id, _lib._sel_timeIntervalSinceReferenceDate1); - } - - @override - NSDate init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - NSDate initWithTimeIntervalSinceReferenceDate_(double ti) { - final _ret = _lib._objc_msgSend_156( - _id, _lib._sel_initWithTimeIntervalSinceReferenceDate_1, ti); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - NSDate initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - double timeIntervalSinceDate_(NSDate? anotherDate) { - return _lib._objc_msgSend_157(_id, _lib._sel_timeIntervalSinceDate_1, - anotherDate?._id ?? ffi.nullptr); - } - - double get timeIntervalSinceNow { - return _lib._objc_msgSend_155(_id, _lib._sel_timeIntervalSinceNow1); - } - - double get timeIntervalSince1970 { - return _lib._objc_msgSend_155(_id, _lib._sel_timeIntervalSince19701); - } - - NSObject addTimeInterval_(double seconds) { - final _ret = - _lib._objc_msgSend_156(_id, _lib._sel_addTimeInterval_1, seconds); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSDate dateByAddingTimeInterval_(double ti) { - final _ret = - _lib._objc_msgSend_156(_id, _lib._sel_dateByAddingTimeInterval_1, ti); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - NSDate earlierDate_(NSDate? anotherDate) { - final _ret = _lib._objc_msgSend_158( - _id, _lib._sel_earlierDate_1, anotherDate?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - NSDate laterDate_(NSDate? anotherDate) { - final _ret = _lib._objc_msgSend_158( - _id, _lib._sel_laterDate_1, anotherDate?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - int compare_(NSDate? other) { - return _lib._objc_msgSend_159( - _id, _lib._sel_compare_1, other?._id ?? ffi.nullptr); - } - - bool isEqualToDate_(NSDate? otherDate) { - return _lib._objc_msgSend_160( - _id, _lib._sel_isEqualToDate_1, otherDate?._id ?? ffi.nullptr); - } - - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSDate date(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_date1); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - static NSDate dateWithTimeIntervalSinceNow_( - HidListenerBindingsSwift _lib, double secs) { - final _ret = _lib._objc_msgSend_156( - _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSinceNow_1, secs); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - static NSDate dateWithTimeIntervalSinceReferenceDate_( - HidListenerBindingsSwift _lib, double ti) { - final _ret = _lib._objc_msgSend_156(_lib._class_NSDate1, - _lib._sel_dateWithTimeIntervalSinceReferenceDate_1, ti); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - static NSDate dateWithTimeIntervalSince1970_( - HidListenerBindingsSwift _lib, double secs) { - final _ret = _lib._objc_msgSend_156( - _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSince1970_1, secs); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - static NSDate dateWithTimeInterval_sinceDate_( - HidListenerBindingsSwift _lib, double secsToBeAdded, NSDate? date) { - final _ret = _lib._objc_msgSend_161( - _lib._class_NSDate1, - _lib._sel_dateWithTimeInterval_sinceDate_1, - secsToBeAdded, - date?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - static NSDate? getDistantFuture(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_162(_lib._class_NSDate1, _lib._sel_distantFuture1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } - - static NSDate? getDistantPast(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_162(_lib._class_NSDate1, _lib._sel_distantPast1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } - - static NSDate? getNow(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_162(_lib._class_NSDate1, _lib._sel_now1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } - - NSDate initWithTimeIntervalSinceNow_(double secs) { - final _ret = _lib._objc_msgSend_156( - _id, _lib._sel_initWithTimeIntervalSinceNow_1, secs); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - NSDate initWithTimeIntervalSince1970_(double secs) { - final _ret = _lib._objc_msgSend_156( - _id, _lib._sel_initWithTimeIntervalSince1970_1, secs); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - NSDate initWithTimeInterval_sinceDate_(double secsToBeAdded, NSDate? date) { - final _ret = _lib._objc_msgSend_161( - _id, - _lib._sel_initWithTimeInterval_sinceDate_1, - secsToBeAdded, - date?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - static NSObject dateWithNaturalLanguageString_locale_( - HidListenerBindingsSwift _lib, NSString? string, NSObject locale) { - final _ret = _lib._objc_msgSend_163( - _lib._class_NSDate1, - _lib._sel_dateWithNaturalLanguageString_locale_1, - string?._id ?? ffi.nullptr, - locale._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject dateWithNaturalLanguageString_( - HidListenerBindingsSwift _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSDate1, - _lib._sel_dateWithNaturalLanguageString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject dateWithString_( - HidListenerBindingsSwift _lib, NSString? aString) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSDate1, - _lib._sel_dateWithString_1, aString?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSCalendarDate dateWithCalendarFormat_timeZone_( - NSString? format, NSTimeZone? aTimeZone) { - final _ret = _lib._objc_msgSend_195( - _id, - _lib._sel_dateWithCalendarFormat_timeZone_1, - format?._id ?? ffi.nullptr, - aTimeZone?._id ?? ffi.nullptr); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); - } - - NSString descriptionWithCalendarFormat_timeZone_locale_( - NSString? format, NSTimeZone? aTimeZone, NSObject locale) { - final _ret = _lib._objc_msgSend_196( - _id, - _lib._sel_descriptionWithCalendarFormat_timeZone_locale_1, - format?._id ?? ffi.nullptr, - aTimeZone?._id ?? ffi.nullptr, - locale._id); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSObject initWithString_(NSString? description) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, description?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSDate new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_new1); - return NSDate._(_ret, _lib, retain: false, release: true); - } - - static NSDate alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_alloc1); - return NSDate._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSDate1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSDate1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSDate1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSDate1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSDate1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSDate1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSDate1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSDate1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSDate1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSCalendarDate extends NSDate { - NSCalendarDate._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSCalendarDate] that points to the same underlying object as [other]. - static NSCalendarDate castFrom(T other) { - return NSCalendarDate._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSCalendarDate] that wraps the given raw object pointer. - static NSCalendarDate castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSCalendarDate._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSCalendarDate]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSCalendarDate1); - } - - static NSObject calendarDate(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSCalendarDate1, _lib._sel_calendarDate1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject dateWithString_calendarFormat_locale_( - HidListenerBindingsSwift _lib, - NSString? description, - NSString? format, - NSObject locale) { - final _ret = _lib._objc_msgSend_164( - _lib._class_NSCalendarDate1, - _lib._sel_dateWithString_calendarFormat_locale_1, - description?._id ?? ffi.nullptr, - format?._id ?? ffi.nullptr, - locale._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject dateWithString_calendarFormat_( - HidListenerBindingsSwift _lib, NSString? description, NSString? format) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSCalendarDate1, - _lib._sel_dateWithString_calendarFormat_1, - description?._id ?? ffi.nullptr, - format?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject dateWithYear_month_day_hour_minute_second_timeZone_( - HidListenerBindingsSwift _lib, - int year, - int month, - int day, - int hour, - int minute, - int second, - NSTimeZone? aTimeZone) { - final _ret = _lib._objc_msgSend_190( - _lib._class_NSCalendarDate1, - _lib._sel_dateWithYear_month_day_hour_minute_second_timeZone_1, - year, - month, - day, - hour, - minute, - second, - aTimeZone?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSCalendarDate dateByAddingYears_months_days_hours_minutes_seconds_( - int year, int month, int day, int hour, int minute, int second) { - final _ret = _lib._objc_msgSend_191( - _id, - _lib._sel_dateByAddingYears_months_days_hours_minutes_seconds_1, - year, - month, - day, - hour, - minute, - second); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); - } - - int dayOfCommonEra() { - return _lib._objc_msgSend_78(_id, _lib._sel_dayOfCommonEra1); - } - - int dayOfMonth() { - return _lib._objc_msgSend_78(_id, _lib._sel_dayOfMonth1); - } - - int dayOfWeek() { - return _lib._objc_msgSend_78(_id, _lib._sel_dayOfWeek1); - } - - int dayOfYear() { - return _lib._objc_msgSend_78(_id, _lib._sel_dayOfYear1); - } - - int hourOfDay() { - return _lib._objc_msgSend_78(_id, _lib._sel_hourOfDay1); - } - - int minuteOfHour() { - return _lib._objc_msgSend_78(_id, _lib._sel_minuteOfHour1); - } - - int monthOfYear() { - return _lib._objc_msgSend_78(_id, _lib._sel_monthOfYear1); - } - - int secondOfMinute() { - return _lib._objc_msgSend_78(_id, _lib._sel_secondOfMinute1); - } - - int yearOfCommonEra() { - return _lib._objc_msgSend_78(_id, _lib._sel_yearOfCommonEra1); - } - - NSString calendarFormat() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_calendarFormat1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString descriptionWithCalendarFormat_locale_( - NSString? format, NSObject locale) { - final _ret = _lib._objc_msgSend_173( - _id, - _lib._sel_descriptionWithCalendarFormat_locale_1, - format?._id ?? ffi.nullptr, - locale._id); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString descriptionWithCalendarFormat_(NSString? format) { - final _ret = _lib._objc_msgSend_64(_id, - _lib._sel_descriptionWithCalendarFormat_1, format?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - @override - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSTimeZone timeZone() { - final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); - return NSTimeZone._(_ret, _lib, retain: true, release: true); - } - - NSObject initWithString_calendarFormat_locale_( - NSString? description, NSString? format, NSObject locale) { - final _ret = _lib._objc_msgSend_164( - _id, - _lib._sel_initWithString_calendarFormat_locale_1, - description?._id ?? ffi.nullptr, - format?._id ?? ffi.nullptr, - locale._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject initWithString_calendarFormat_( - NSString? description, NSString? format) { - final _ret = _lib._objc_msgSend_165( - _id, - _lib._sel_initWithString_calendarFormat_1, - description?._id ?? ffi.nullptr, - format?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - @override - NSObject initWithString_(NSString? description) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, description?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject initWithYear_month_day_hour_minute_second_timeZone_( - int year, - int month, - int day, - int hour, - int minute, - int second, - NSTimeZone? aTimeZone) { - final _ret = _lib._objc_msgSend_190( - _id, - _lib._sel_initWithYear_month_day_hour_minute_second_timeZone_1, - year, - month, - day, - hour, - minute, - second, - aTimeZone?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void setCalendarFormat_(NSString? format) { - return _lib._objc_msgSend_192( - _id, _lib._sel_setCalendarFormat_1, format?._id ?? ffi.nullptr); - } - - void setTimeZone_(NSTimeZone? aTimeZone) { - return _lib._objc_msgSend_193( - _id, _lib._sel_setTimeZone_1, aTimeZone?._id ?? ffi.nullptr); - } - - void years_months_days_hours_minutes_seconds_sinceDate_( - ffi.Pointer yp, - ffi.Pointer mop, - ffi.Pointer dp, - ffi.Pointer hp, - ffi.Pointer mip, - ffi.Pointer sp, - NSCalendarDate? date) { - return _lib._objc_msgSend_194( - _id, - _lib._sel_years_months_days_hours_minutes_seconds_sinceDate_1, - yp, - mop, - dp, - hp, - mip, - sp, - date?._id ?? ffi.nullptr); - } - - static NSDate? getDistantFuture(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_162( - _lib._class_NSCalendarDate1, _lib._sel_distantFuture1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } - - static NSDate? getDistantPast(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_162( - _lib._class_NSCalendarDate1, _lib._sel_distantPast1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } - - static NSCalendarDate date(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSCalendarDate1, _lib._sel_date1); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); - } - - static NSCalendarDate dateWithTimeIntervalSinceNow_( - HidListenerBindingsSwift _lib, double secs) { - final _ret = _lib._objc_msgSend_156(_lib._class_NSCalendarDate1, - _lib._sel_dateWithTimeIntervalSinceNow_1, secs); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); - } - - static NSCalendarDate dateWithTimeIntervalSinceReferenceDate_( - HidListenerBindingsSwift _lib, double ti) { - final _ret = _lib._objc_msgSend_156(_lib._class_NSCalendarDate1, - _lib._sel_dateWithTimeIntervalSinceReferenceDate_1, ti); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); - } - - static NSCalendarDate dateWithTimeIntervalSince1970_( - HidListenerBindingsSwift _lib, double secs) { - final _ret = _lib._objc_msgSend_156(_lib._class_NSCalendarDate1, - _lib._sel_dateWithTimeIntervalSince1970_1, secs); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); - } - - static NSCalendarDate dateWithTimeInterval_sinceDate_( - HidListenerBindingsSwift _lib, double secsToBeAdded, NSDate? date) { - final _ret = _lib._objc_msgSend_161( - _lib._class_NSCalendarDate1, - _lib._sel_dateWithTimeInterval_sinceDate_1, - secsToBeAdded, - date?._id ?? ffi.nullptr); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); - } - - static NSDate? getNow(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_162(_lib._class_NSCalendarDate1, _lib._sel_now1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } - - static NSObject dateWithNaturalLanguageString_locale_( - HidListenerBindingsSwift _lib, NSString? string, NSObject locale) { - final _ret = _lib._objc_msgSend_163( - _lib._class_NSCalendarDate1, - _lib._sel_dateWithNaturalLanguageString_locale_1, - string?._id ?? ffi.nullptr, - locale._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject dateWithNaturalLanguageString_( - HidListenerBindingsSwift _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSCalendarDate1, - _lib._sel_dateWithNaturalLanguageString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject dateWithString_( - HidListenerBindingsSwift _lib, NSString? aString) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSCalendarDate1, - _lib._sel_dateWithString_1, aString?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSCalendarDate new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSCalendarDate1, _lib._sel_new1); - return NSCalendarDate._(_ret, _lib, retain: false, release: true); - } - - static NSCalendarDate alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSCalendarDate1, _lib._sel_alloc1); - return NSCalendarDate._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSCalendarDate1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSCalendarDate1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSCalendarDate1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSCalendarDate1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSCalendarDate1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSCalendarDate1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSCalendarDate1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSCalendarDate1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSCalendarDate1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSTimeZone extends NSObject { - NSTimeZone._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSTimeZone] that points to the same underlying object as [other]. - static NSTimeZone castFrom(T other) { - return NSTimeZone._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSTimeZone] that wraps the given raw object pointer. - static NSTimeZone castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSTimeZone._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSTimeZone]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSTimeZone1); - } - - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSData? get data { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); - } - - int secondsFromGMTForDate_(NSDate? aDate) { - return _lib._objc_msgSend_166( - _id, _lib._sel_secondsFromGMTForDate_1, aDate?._id ?? ffi.nullptr); - } - - NSString abbreviationForDate_(NSDate? aDate) { - final _ret = _lib._objc_msgSend_167( - _id, _lib._sel_abbreviationForDate_1, aDate?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - bool isDaylightSavingTimeForDate_(NSDate? aDate) { - return _lib._objc_msgSend_160(_id, _lib._sel_isDaylightSavingTimeForDate_1, - aDate?._id ?? ffi.nullptr); - } - - double daylightSavingTimeOffsetForDate_(NSDate? aDate) { - return _lib._objc_msgSend_157(_id, - _lib._sel_daylightSavingTimeOffsetForDate_1, aDate?._id ?? ffi.nullptr); - } - - NSDate nextDaylightSavingTimeTransitionAfterDate_(NSDate? aDate) { - final _ret = _lib._objc_msgSend_158( - _id, - _lib._sel_nextDaylightSavingTimeTransitionAfterDate_1, - aDate?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - static NSTimeZone? getSystemTimeZone(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_168( - _lib._class_NSTimeZone1, _lib._sel_systemTimeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); - } - - static void resetSystemTimeZone(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_1( - _lib._class_NSTimeZone1, _lib._sel_resetSystemTimeZone1); - } - - static NSTimeZone? getDefaultTimeZone(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_168( - _lib._class_NSTimeZone1, _lib._sel_defaultTimeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); - } - - static void setDefaultTimeZone( - HidListenerBindingsSwift _lib, NSTimeZone? value) { - _lib._objc_msgSend_169(_lib._class_NSTimeZone1, - _lib._sel_setDefaultTimeZone_1, value?._id ?? ffi.nullptr); - } - - static NSTimeZone? getLocalTimeZone(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_168( - _lib._class_NSTimeZone1, _lib._sel_localTimeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); - } - - static NSArray? getKnownTimeZoneNames(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSTimeZone1, _lib._sel_knownTimeZoneNames1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSDictionary? getAbbreviationDictionary( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_170( - _lib._class_NSTimeZone1, _lib._sel_abbreviationDictionary1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - static void setAbbreviationDictionary( - HidListenerBindingsSwift _lib, NSDictionary? value) { - _lib._objc_msgSend_171(_lib._class_NSTimeZone1, - _lib._sel_setAbbreviationDictionary_1, value?._id ?? ffi.nullptr); - } - - static NSString? getTimeZoneDataVersion(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_20( - _lib._class_NSTimeZone1, _lib._sel_timeZoneDataVersion1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - int get secondsFromGMT { - return _lib._objc_msgSend_78(_id, _lib._sel_secondsFromGMT1); - } - - NSString? get abbreviation { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_abbreviation1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - bool get daylightSavingTime { - return _lib._objc_msgSend_12(_id, _lib._sel_isDaylightSavingTime1); - } - - double get daylightSavingTimeOffset { - return _lib._objc_msgSend_155(_id, _lib._sel_daylightSavingTimeOffset1); - } - - NSDate? get nextDaylightSavingTimeTransition { - final _ret = _lib._objc_msgSend_162( - _id, _lib._sel_nextDaylightSavingTimeTransition1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } - - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - bool isEqualToTimeZone_(NSTimeZone? aTimeZone) { - return _lib._objc_msgSend_172( - _id, _lib._sel_isEqualToTimeZone_1, aTimeZone?._id ?? ffi.nullptr); - } - - NSString localizedName_locale_(int style, NSLocale? locale) { - final _ret = _lib._objc_msgSend_187(_id, _lib._sel_localizedName_locale_1, - style, locale?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSTimeZone timeZoneWithName_( - HidListenerBindingsSwift _lib, NSString? tzName) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSTimeZone1, - _lib._sel_timeZoneWithName_1, tzName?._id ?? ffi.nullptr); - return NSTimeZone._(_ret, _lib, retain: true, release: true); - } - - static NSTimeZone timeZoneWithName_data_( - HidListenerBindingsSwift _lib, NSString? tzName, NSData? aData) { - final _ret = _lib._objc_msgSend_188( - _lib._class_NSTimeZone1, - _lib._sel_timeZoneWithName_data_1, - tzName?._id ?? ffi.nullptr, - aData?._id ?? ffi.nullptr); - return NSTimeZone._(_ret, _lib, retain: true, release: true); - } - - NSTimeZone initWithName_(NSString? tzName) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithName_1, tzName?._id ?? ffi.nullptr); - return NSTimeZone._(_ret, _lib, retain: true, release: true); - } - - NSTimeZone initWithName_data_(NSString? tzName, NSData? aData) { - final _ret = _lib._objc_msgSend_188(_id, _lib._sel_initWithName_data_1, - tzName?._id ?? ffi.nullptr, aData?._id ?? ffi.nullptr); - return NSTimeZone._(_ret, _lib, retain: true, release: true); - } - - static NSTimeZone timeZoneForSecondsFromGMT_( - HidListenerBindingsSwift _lib, int seconds) { - final _ret = _lib._objc_msgSend_189(_lib._class_NSTimeZone1, - _lib._sel_timeZoneForSecondsFromGMT_1, seconds); - return NSTimeZone._(_ret, _lib, retain: true, release: true); - } - - static NSTimeZone timeZoneWithAbbreviation_( - HidListenerBindingsSwift _lib, NSString? abbreviation) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSTimeZone1, - _lib._sel_timeZoneWithAbbreviation_1, abbreviation?._id ?? ffi.nullptr); - return NSTimeZone._(_ret, _lib, retain: true, release: true); - } - - static NSTimeZone new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSTimeZone1, _lib._sel_new1); - return NSTimeZone._(_ret, _lib, retain: false, release: true); - } - - static NSTimeZone alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSTimeZone1, _lib._sel_alloc1); - return NSTimeZone._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSTimeZone1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSTimeZone1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSTimeZone1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSTimeZone1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSTimeZone1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSTimeZone1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSTimeZone1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSTimeZone1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSTimeZone1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSTimeZoneNameStyle { - static const int NSTimeZoneNameStyleStandard = 0; - static const int NSTimeZoneNameStyleShortStandard = 1; - static const int NSTimeZoneNameStyleDaylightSaving = 2; - static const int NSTimeZoneNameStyleShortDaylightSaving = 3; - static const int NSTimeZoneNameStyleGeneric = 4; - static const int NSTimeZoneNameStyleShortGeneric = 5; -} - -class NSLocale extends NSObject { - NSLocale._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSLocale] that points to the same underlying object as [other]. - static NSLocale castFrom(T other) { - return NSLocale._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSLocale] that wraps the given raw object pointer. - static NSLocale castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSLocale._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSLocale]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSLocale1); - } - - NSObject objectForKey_(NSString key) { - final _ret = _lib._objc_msgSend_30(_id, _lib._sel_objectForKey_1, key._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSString displayNameForKey_value_(NSString key, NSObject value) { - final _ret = _lib._objc_msgSend_173( - _id, _lib._sel_displayNameForKey_value_1, key._id, value._id); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSLocale initWithLocaleIdentifier_(NSString? string) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithLocaleIdentifier_1, string?._id ?? ffi.nullptr); - return NSLocale._(_ret, _lib, retain: true, release: true); - } - - NSLocale initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSLocale._(_ret, _lib, retain: true, release: true); - } - - NSString? get localeIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localeIdentifier1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString localizedStringForLocaleIdentifier_(NSString? localeIdentifier) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForLocaleIdentifier_1, - localeIdentifier?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get languageCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_languageCode1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString localizedStringForLanguageCode_(NSString? languageCode) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForLanguageCode_1, - languageCode?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get countryCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_countryCode1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString localizedStringForCountryCode_(NSString? countryCode) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForCountryCode_1, - countryCode?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get scriptCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_scriptCode1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString localizedStringForScriptCode_(NSString? scriptCode) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForScriptCode_1, - scriptCode?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get variantCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_variantCode1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString localizedStringForVariantCode_(NSString? variantCode) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForVariantCode_1, - variantCode?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSCharacterSet? get exemplarCharacterSet { - final _ret = _lib._objc_msgSend_174(_id, _lib._sel_exemplarCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - NSString? get calendarIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_calendarIdentifier1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString localizedStringForCalendarIdentifier_(NSString? calendarIdentifier) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForCalendarIdentifier_1, - calendarIdentifier?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get collationIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_collationIdentifier1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString localizedStringForCollationIdentifier_( - NSString? collationIdentifier) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForCollationIdentifier_1, - collationIdentifier?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - bool get usesMetricSystem { - return _lib._objc_msgSend_12(_id, _lib._sel_usesMetricSystem1); - } - - NSString? get decimalSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_decimalSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get groupingSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_groupingSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get currencySymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencySymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get currencyCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencyCode1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString localizedStringForCurrencyCode_(NSString? currencyCode) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForCurrencyCode_1, - currencyCode?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get collatorIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_collatorIdentifier1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString localizedStringForCollatorIdentifier_(NSString? collatorIdentifier) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_localizedStringForCollatorIdentifier_1, - collatorIdentifier?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get quotationBeginDelimiter { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_quotationBeginDelimiter1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get quotationEndDelimiter { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_quotationEndDelimiter1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get alternateQuotationBeginDelimiter { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_alternateQuotationBeginDelimiter1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get alternateQuotationEndDelimiter { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_alternateQuotationEndDelimiter1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - static NSLocale? getAutoupdatingCurrentLocale(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_182( - _lib._class_NSLocale1, _lib._sel_autoupdatingCurrentLocale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); - } - - static NSLocale? getCurrentLocale(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_182(_lib._class_NSLocale1, _lib._sel_currentLocale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); - } - - static NSLocale? getSystemLocale(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_182(_lib._class_NSLocale1, _lib._sel_systemLocale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); - } - - static NSLocale localeWithLocaleIdentifier_( - HidListenerBindingsSwift _lib, NSString? ident) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSLocale1, - _lib._sel_localeWithLocaleIdentifier_1, ident?._id ?? ffi.nullptr); - return NSLocale._(_ret, _lib, retain: true, release: true); - } - - @override - NSLocale init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSLocale._(_ret, _lib, retain: true, release: true); - } - - static NSArray? getAvailableLocaleIdentifiers(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSLocale1, _lib._sel_availableLocaleIdentifiers1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSArray? getISOLanguageCodes(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSLocale1, _lib._sel_ISOLanguageCodes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSArray? getISOCountryCodes(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSLocale1, _lib._sel_ISOCountryCodes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSArray? getISOCurrencyCodes(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSLocale1, _lib._sel_ISOCurrencyCodes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSArray? getCommonISOCurrencyCodes(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSLocale1, _lib._sel_commonISOCurrencyCodes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSArray? getPreferredLanguages(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSLocale1, _lib._sel_preferredLanguages1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSDictionary componentsFromLocaleIdentifier_( - HidListenerBindingsSwift _lib, NSString? string) { - final _ret = _lib._objc_msgSend_146(_lib._class_NSLocale1, - _lib._sel_componentsFromLocaleIdentifier_1, string?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSString localeIdentifierFromComponents_( - HidListenerBindingsSwift _lib, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_183(_lib._class_NSLocale1, - _lib._sel_localeIdentifierFromComponents_1, dict?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString canonicalLocaleIdentifierFromString_( - HidListenerBindingsSwift _lib, NSString? string) { - final _ret = _lib._objc_msgSend_64( - _lib._class_NSLocale1, - _lib._sel_canonicalLocaleIdentifierFromString_1, - string?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString canonicalLanguageIdentifierFromString_( - HidListenerBindingsSwift _lib, NSString? string) { - final _ret = _lib._objc_msgSend_64( - _lib._class_NSLocale1, - _lib._sel_canonicalLanguageIdentifierFromString_1, - string?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString localeIdentifierFromWindowsLocaleCode_( - HidListenerBindingsSwift _lib, int lcid) { - final _ret = _lib._objc_msgSend_184(_lib._class_NSLocale1, - _lib._sel_localeIdentifierFromWindowsLocaleCode_1, lcid); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static int windowsLocaleCodeFromLocaleIdentifier_( - HidListenerBindingsSwift _lib, NSString? localeIdentifier) { - return _lib._objc_msgSend_185( - _lib._class_NSLocale1, - _lib._sel_windowsLocaleCodeFromLocaleIdentifier_1, - localeIdentifier?._id ?? ffi.nullptr); - } - - static int characterDirectionForLanguage_( - HidListenerBindingsSwift _lib, NSString? isoLangCode) { - return _lib._objc_msgSend_186( - _lib._class_NSLocale1, - _lib._sel_characterDirectionForLanguage_1, - isoLangCode?._id ?? ffi.nullptr); - } - - static int lineDirectionForLanguage_( - HidListenerBindingsSwift _lib, NSString? isoLangCode) { - return _lib._objc_msgSend_186(_lib._class_NSLocale1, - _lib._sel_lineDirectionForLanguage_1, isoLangCode?._id ?? ffi.nullptr); - } - - static NSLocale new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSLocale1, _lib._sel_new1); - return NSLocale._(_ret, _lib, retain: false, release: true); - } - - static NSLocale alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSLocale1, _lib._sel_alloc1); - return NSLocale._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSLocale1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSLocale1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSLocale1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSLocale1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSLocale1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSLocale1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSLocale1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSLocale1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSLocale1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSCharacterSet extends NSObject { - NSCharacterSet._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSCharacterSet] that points to the same underlying object as [other]. - static NSCharacterSet castFrom(T other) { - return NSCharacterSet._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSCharacterSet] that wraps the given raw object pointer. - static NSCharacterSet castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSCharacterSet._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSCharacterSet]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSCharacterSet1); - } - - static NSCharacterSet? getControlCharacterSet(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_controlCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet? getWhitespaceCharacterSet( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_whitespaceCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet? getWhitespaceAndNewlineCharacterSet( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_174(_lib._class_NSCharacterSet1, - _lib._sel_whitespaceAndNewlineCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet? getDecimalDigitCharacterSet( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_decimalDigitCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet? getLetterCharacterSet(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_letterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet? getLowercaseLetterCharacterSet( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_lowercaseLetterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet? getUppercaseLetterCharacterSet( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_uppercaseLetterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet? getNonBaseCharacterSet(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_nonBaseCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet? getAlphanumericCharacterSet( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_alphanumericCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet? getDecomposableCharacterSet( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_decomposableCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet? getIllegalCharacterSet(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_illegalCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet? getPunctuationCharacterSet( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_punctuationCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet? getCapitalizedLetterCharacterSet( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_capitalizedLetterCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet? getSymbolCharacterSet(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_symbolCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet? getNewlineCharacterSet(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_newlineCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: false, release: true); - } - - static NSCharacterSet characterSetWithRange_( - HidListenerBindingsSwift _lib, _NSRange aRange) { - final _ret = _lib._objc_msgSend_175( - _lib._class_NSCharacterSet1, _lib._sel_characterSetWithRange_1, aRange); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet characterSetWithCharactersInString_( - HidListenerBindingsSwift _lib, NSString? aString) { - final _ret = _lib._objc_msgSend_176( - _lib._class_NSCharacterSet1, - _lib._sel_characterSetWithCharactersInString_1, - aString?._id ?? ffi.nullptr); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet characterSetWithBitmapRepresentation_( - HidListenerBindingsSwift _lib, NSData? data) { - final _ret = _lib._objc_msgSend_177( - _lib._class_NSCharacterSet1, - _lib._sel_characterSetWithBitmapRepresentation_1, - data?._id ?? ffi.nullptr); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet characterSetWithContentsOfFile_( - HidListenerBindingsSwift _lib, NSString? fName) { - final _ret = _lib._objc_msgSend_176(_lib._class_NSCharacterSet1, - _lib._sel_characterSetWithContentsOfFile_1, fName?._id ?? ffi.nullptr); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - NSCharacterSet initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - bool characterIsMember_(int aCharacter) { - return _lib._objc_msgSend_178( - _id, _lib._sel_characterIsMember_1, aCharacter); - } - - NSData? get bitmapRepresentation { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_bitmapRepresentation1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); - } - - NSCharacterSet? get invertedSet { - final _ret = _lib._objc_msgSend_174(_id, _lib._sel_invertedSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - bool longCharacterIsMember_(int theLongChar) { - return _lib._objc_msgSend_179( - _id, _lib._sel_longCharacterIsMember_1, theLongChar); - } - - bool isSupersetOfSet_(NSCharacterSet? theOtherSet) { - return _lib._objc_msgSend_180( - _id, _lib._sel_isSupersetOfSet_1, theOtherSet?._id ?? ffi.nullptr); - } - - bool hasMemberInPlane_(int thePlane) { - return _lib._objc_msgSend_181(_id, _lib._sel_hasMemberInPlane_1, thePlane); - } - - static NSCharacterSet? getURLUserAllowedCharacterSet( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_URLUserAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet? getURLPasswordAllowedCharacterSet( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_URLPasswordAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet? getURLHostAllowedCharacterSet( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_URLHostAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet? getURLPathAllowedCharacterSet( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_URLPathAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet? getURLQueryAllowedCharacterSet( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_URLQueryAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet? getURLFragmentAllowedCharacterSet( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_174( - _lib._class_NSCharacterSet1, _lib._sel_URLFragmentAllowedCharacterSet1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - static NSCharacterSet new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSCharacterSet1, _lib._sel_new1); - return NSCharacterSet._(_ret, _lib, retain: false, release: true); - } - - static NSCharacterSet alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSCharacterSet1, _lib._sel_alloc1); - return NSCharacterSet._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSCharacterSet1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSCharacterSet1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSCharacterSet1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSCharacterSet1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSCharacterSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSCharacterSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSCharacterSet1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSCharacterSet1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSCharacterSet1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSLocaleLanguageDirection { - static const int NSLocaleLanguageDirectionUnknown = 0; - static const int NSLocaleLanguageDirectionLeftToRight = 1; - static const int NSLocaleLanguageDirectionRightToLeft = 2; - static const int NSLocaleLanguageDirectionTopToBottom = 3; - static const int NSLocaleLanguageDirectionBottomToTop = 4; -} - -abstract class NSURLBookmarkCreationOptions { - static const int NSURLBookmarkCreationPreferFileIDResolution = 256; - static const int NSURLBookmarkCreationMinimalBookmark = 512; - static const int NSURLBookmarkCreationSuitableForBookmarkFile = 1024; - static const int NSURLBookmarkCreationWithSecurityScope = 2048; - static const int NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess = 4096; - static const int NSURLBookmarkCreationWithoutImplicitSecurityScope = - 536870912; -} - -abstract class NSURLBookmarkResolutionOptions { - static const int NSURLBookmarkResolutionWithoutUI = 256; - static const int NSURLBookmarkResolutionWithoutMounting = 512; - static const int NSURLBookmarkResolutionWithSecurityScope = 1024; - static const int NSURLBookmarkResolutionWithoutImplicitStartAccessing = 32768; -} - -class NSURLHandle extends NSObject { - NSURLHandle._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSURLHandle] that points to the same underlying object as [other]. - static NSURLHandle castFrom(T other) { - return NSURLHandle._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSURLHandle] that wraps the given raw object pointer. - static NSURLHandle castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLHandle._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSURLHandle]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLHandle1); - } - - static void registerURLHandleClass_( - HidListenerBindingsSwift _lib, NSObject anURLHandleSubclass) { - return _lib._objc_msgSend_15(_lib._class_NSURLHandle1, - _lib._sel_registerURLHandleClass_1, anURLHandleSubclass._id); - } - - static NSObject URLHandleClassForURL_( - HidListenerBindingsSwift _lib, NSURL? anURL) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSURLHandle1, - _lib._sel_URLHandleClassForURL_1, anURL?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - int status() { - return _lib._objc_msgSend_242(_id, _lib._sel_status1); - } - - NSString failureReason() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_failureReason1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - void addClient_(NSObject? client) { - return _lib._objc_msgSend_15( - _id, _lib._sel_addClient_1, client?._id ?? ffi.nullptr); - } - - void removeClient_(NSObject? client) { - return _lib._objc_msgSend_15( - _id, _lib._sel_removeClient_1, client?._id ?? ffi.nullptr); - } - - void loadInBackground() { - return _lib._objc_msgSend_1(_id, _lib._sel_loadInBackground1); - } - - void cancelLoadInBackground() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancelLoadInBackground1); - } - - NSData resourceData() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_resourceData1); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSData availableResourceData() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_availableResourceData1); - return NSData._(_ret, _lib, retain: true, release: true); - } - - int expectedResourceDataSize() { - return _lib._objc_msgSend_220(_id, _lib._sel_expectedResourceDataSize1); - } - - void flushCachedData() { - return _lib._objc_msgSend_1(_id, _lib._sel_flushCachedData1); - } - - void backgroundLoadDidFailWithReason_(NSString? reason) { - return _lib._objc_msgSend_192( - _id, - _lib._sel_backgroundLoadDidFailWithReason_1, - reason?._id ?? ffi.nullptr); - } - - void didLoadBytes_loadComplete_(NSData? newBytes, bool yorn) { - return _lib._objc_msgSend_243(_id, _lib._sel_didLoadBytes_loadComplete_1, - newBytes?._id ?? ffi.nullptr, yorn); - } - - static bool canInitWithURL_(HidListenerBindingsSwift _lib, NSURL? anURL) { - return _lib._objc_msgSend_244(_lib._class_NSURLHandle1, - _lib._sel_canInitWithURL_1, anURL?._id ?? ffi.nullptr); - } - - static NSURLHandle cachedHandleForURL_( - HidListenerBindingsSwift _lib, NSURL? anURL) { - final _ret = _lib._objc_msgSend_245(_lib._class_NSURLHandle1, - _lib._sel_cachedHandleForURL_1, anURL?._id ?? ffi.nullptr); - return NSURLHandle._(_ret, _lib, retain: true, release: true); - } - - NSObject initWithURL_cached_(NSURL? anURL, bool willCache) { - final _ret = _lib._objc_msgSend_246(_id, _lib._sel_initWithURL_cached_1, - anURL?._id ?? ffi.nullptr, willCache); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject propertyForKey_(NSString? propertyKey) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_propertyForKey_1, propertyKey?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject propertyForKeyIfAvailable_(NSString? propertyKey) { - final _ret = _lib._objc_msgSend_30(_id, - _lib._sel_propertyForKeyIfAvailable_1, propertyKey?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - bool writeProperty_forKey_(NSObject propertyValue, NSString? propertyKey) { - return _lib._objc_msgSend_240(_id, _lib._sel_writeProperty_forKey_1, - propertyValue._id, propertyKey?._id ?? ffi.nullptr); - } - - bool writeData_(NSData? data) { - return _lib._objc_msgSend_23( - _id, _lib._sel_writeData_1, data?._id ?? ffi.nullptr); - } - - NSData loadInForeground() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_loadInForeground1); - return NSData._(_ret, _lib, retain: true, release: true); - } - - void beginLoadInBackground() { - return _lib._objc_msgSend_1(_id, _lib._sel_beginLoadInBackground1); - } - - void endLoadInBackground() { - return _lib._objc_msgSend_1(_id, _lib._sel_endLoadInBackground1); - } - - static NSURLHandle new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLHandle1, _lib._sel_new1); - return NSURLHandle._(_ret, _lib, retain: false, release: true); - } - - static NSURLHandle alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLHandle1, _lib._sel_alloc1); - return NSURLHandle._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLHandle1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLHandle1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLHandle1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLHandle1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLHandle1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLHandle1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSURLHandle1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSURLHandle1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLHandle1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSURLHandleStatus { - static const int NSURLHandleNotLoaded = 0; - static const int NSURLHandleLoadSucceeded = 1; - static const int NSURLHandleLoadInProgress = 2; - static const int NSURLHandleLoadFailed = 3; -} - -abstract class NSDataWritingOptions { - static const int NSDataWritingAtomic = 1; - static const int NSDataWritingWithoutOverwriting = 2; - static const int NSDataWritingFileProtectionNone = 268435456; - static const int NSDataWritingFileProtectionComplete = 536870912; - static const int NSDataWritingFileProtectionCompleteUnlessOpen = 805306368; - static const int - NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication = - 1073741824; - static const int NSDataWritingFileProtectionMask = 4026531840; - static const int NSAtomicWrite = 1; -} - -abstract class NSDataSearchOptions { - static const int NSDataSearchBackwards = 1; - static const int NSDataSearchAnchored = 2; -} - -void _ObjCBlock11_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock11_closureRegistry = {}; -int _ObjCBlock11_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock11_registerClosure(Function fn) { - final id = ++_ObjCBlock11_closureRegistryIndex; - _ObjCBlock11_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock11_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { - return _ObjCBlock11_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock11 extends _ObjCBlockBase { - ObjCBlock11._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock11.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock11_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock11.fromFunction( - HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock11_closureTrampoline) - .cast(), - _ObjCBlock11_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } -} - -abstract class NSDataReadingOptions { - static const int NSDataReadingMappedIfSafe = 1; - static const int NSDataReadingUncached = 2; - static const int NSDataReadingMappedAlways = 8; - static const int NSDataReadingMapped = 1; - static const int NSMappedRead = 1; - static const int NSUncachedRead = 2; -} - -void _ObjCBlock12_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, ffi.UnsignedLong arg1)>>() - .asFunction arg0, int arg1)>()( - arg0, arg1); -} - -final _ObjCBlock12_closureRegistry = {}; -int _ObjCBlock12_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock12_registerClosure(Function fn) { - final id = ++_ObjCBlock12_closureRegistryIndex; - _ObjCBlock12_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock12_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { - return _ObjCBlock12_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock12 extends _ObjCBlockBase { - ObjCBlock12._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock12.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, ffi.UnsignedLong arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1)>( - _ObjCBlock12_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock12.fromFunction(HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0, int arg1) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1)>( - _ObjCBlock12_closureTrampoline) - .cast(), - _ObjCBlock12_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, int arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.UnsignedLong arg1)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1)>()(_id, arg0, arg1); - } -} - -abstract class NSDataBase64DecodingOptions { - static const int NSDataBase64DecodingIgnoreUnknownCharacters = 1; -} - -abstract class NSDataBase64EncodingOptions { - static const int NSDataBase64Encoding64CharacterLineLength = 1; - static const int NSDataBase64Encoding76CharacterLineLength = 2; - static const int NSDataBase64EncodingEndLineWithCarriageReturn = 16; - static const int NSDataBase64EncodingEndLineWithLineFeed = 32; -} - -abstract class NSDataCompressionAlgorithm { - static const int NSDataCompressionAlgorithmLZFSE = 0; - static const int NSDataCompressionAlgorithmLZ4 = 1; - static const int NSDataCompressionAlgorithmLZMA = 2; - static const int NSDataCompressionAlgorithmZlib = 3; -} - -abstract class NSDecodingFailurePolicy { - static const int NSDecodingFailurePolicyRaiseException = 0; - static const int NSDecodingFailurePolicySetErrorAndReturn = 1; -} - -abstract class NSStringCompareOptions { - static const int NSCaseInsensitiveSearch = 1; - static const int NSLiteralSearch = 2; - static const int NSBackwardsSearch = 4; - static const int NSAnchoredSearch = 8; - static const int NSNumericSearch = 64; - static const int NSDiacriticInsensitiveSearch = 128; - static const int NSWidthInsensitiveSearch = 256; - static const int NSForcedOrderingSearch = 512; - static const int NSRegularExpressionSearch = 1024; -} - -abstract class NSStringEnumerationOptions { - static const int NSStringEnumerationByLines = 0; - static const int NSStringEnumerationByParagraphs = 1; - static const int NSStringEnumerationByComposedCharacterSequences = 2; - static const int NSStringEnumerationByWords = 3; - static const int NSStringEnumerationBySentences = 4; - static const int NSStringEnumerationByCaretPositions = 5; - static const int NSStringEnumerationByDeletionClusters = 6; - static const int NSStringEnumerationReverse = 256; - static const int NSStringEnumerationSubstringNotRequired = 512; - static const int NSStringEnumerationLocalized = 1024; -} - -void _ObjCBlock13_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - _NSRange arg2, - ffi.Pointer arg3) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, - _NSRange arg2, ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - _NSRange arg1, - _NSRange arg2, - ffi.Pointer arg3)>()(arg0, arg1, arg2, arg3); -} - -final _ObjCBlock13_closureRegistry = {}; -int _ObjCBlock13_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock13_registerClosure(Function fn) { - final id = ++_ObjCBlock13_closureRegistryIndex; - _ObjCBlock13_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock13_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - _NSRange arg2, - ffi.Pointer arg3) { - return _ObjCBlock13_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2, arg3); -} - -class ObjCBlock13 extends _ObjCBlockBase { - ObjCBlock13._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock13.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, - _NSRange arg2, ffi.Pointer arg3)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - _NSRange arg2, - ffi.Pointer arg3)>( - _ObjCBlock13_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock13.fromFunction( - HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0, _NSRange arg1, _NSRange arg2, - ffi.Pointer arg3) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - _NSRange arg2, - ffi.Pointer arg3)>( - _ObjCBlock13_closureTrampoline) - .cast(), - _ObjCBlock13_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, _NSRange arg1, _NSRange arg2, - ffi.Pointer arg3) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - _NSRange arg2, - ffi.Pointer arg3)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - _NSRange arg2, - ffi.Pointer arg3)>()(_id, arg0, arg1, arg2, arg3); - } -} - -void _ObjCBlock14_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock14_closureRegistry = {}; -int _ObjCBlock14_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock14_registerClosure(Function fn) { - final id = ++_ObjCBlock14_closureRegistryIndex; - _ObjCBlock14_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock14_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock14_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock14 extends _ObjCBlockBase { - ObjCBlock14._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock14.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock14_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock14.fromFunction( - HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock14_closureTrampoline) - .cast(), - _ObjCBlock14_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } -} - -abstract class NSStringEncodingConversionOptions { - static const int NSStringEncodingConversionAllowLossy = 1; - static const int NSStringEncodingConversionExternalRepresentation = 2; -} - -void _ObjCBlock15_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.UnsignedLong arg1)>>() - .asFunction< - void Function( - ffi.Pointer arg0, int arg1)>()(arg0, arg1); -} - -final _ObjCBlock15_closureRegistry = {}; -int _ObjCBlock15_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock15_registerClosure(Function fn) { - final id = ++_ObjCBlock15_closureRegistryIndex; - _ObjCBlock15_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock15_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1) { - return _ObjCBlock15_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock15 extends _ObjCBlockBase { - ObjCBlock15._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock15.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.UnsignedLong arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1)>( - _ObjCBlock15_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock15.fromFunction(HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0, int arg1) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1)>( - _ObjCBlock15_closureTrampoline) - .cast(), - _ObjCBlock15_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, int arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.UnsignedLong arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1)>()(_id, arg0, arg1); - } -} - -abstract class NSLinguisticTaggerOptions { - static const int NSLinguisticTaggerOmitWords = 1; - static const int NSLinguisticTaggerOmitPunctuation = 2; - static const int NSLinguisticTaggerOmitWhitespace = 4; - static const int NSLinguisticTaggerOmitOther = 8; - static const int NSLinguisticTaggerJoinNames = 16; -} - -class NSOrthography extends NSObject { - NSOrthography._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSOrthography] that points to the same underlying object as [other]. - static NSOrthography castFrom(T other) { - return NSOrthography._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSOrthography] that wraps the given raw object pointer. - static NSOrthography castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSOrthography._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSOrthography]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSOrthography1); - } - - NSString? get dominantScript { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_dominantScript1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSDictionary? get languageMap { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_languageMap1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSOrthography initWithDominantScript_languageMap_( - NSString? script, NSDictionary? map) { - final _ret = _lib._objc_msgSend_371( - _id, - _lib._sel_initWithDominantScript_languageMap_1, - script?._id ?? ffi.nullptr, - map?._id ?? ffi.nullptr); - return NSOrthography._(_ret, _lib, retain: true, release: true); - } - - NSOrthography initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSOrthography._(_ret, _lib, retain: true, release: true); - } - - NSArray languagesForScript_(NSString? script) { - final _ret = _lib._objc_msgSend_123( - _id, _lib._sel_languagesForScript_1, script?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSString dominantLanguageForScript_(NSString? script) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_dominantLanguageForScript_1, script?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get dominantLanguage { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_dominantLanguage1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSArray? get allScripts { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allScripts1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get allLanguages { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allLanguages1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSOrthography defaultOrthographyForLanguage_( - HidListenerBindingsSwift _lib, NSString? language) { - final _ret = _lib._objc_msgSend_30( - _lib._class_NSOrthography1, - _lib._sel_defaultOrthographyForLanguage_1, - language?._id ?? ffi.nullptr); - return NSOrthography._(_ret, _lib, retain: true, release: true); - } - - static NSOrthography orthographyWithDominantScript_languageMap_( - HidListenerBindingsSwift _lib, NSString? script, NSDictionary? map) { - final _ret = _lib._objc_msgSend_371( - _lib._class_NSOrthography1, - _lib._sel_orthographyWithDominantScript_languageMap_1, - script?._id ?? ffi.nullptr, - map?._id ?? ffi.nullptr); - return NSOrthography._(_ret, _lib, retain: true, release: true); - } - - static NSOrthography new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSOrthography1, _lib._sel_new1); - return NSOrthography._(_ret, _lib, retain: false, release: true); - } - - static NSOrthography alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSOrthography1, _lib._sel_alloc1); - return NSOrthography._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSOrthography1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSOrthography1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSOrthography1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSOrthography1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSOrthography1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSOrthography1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSOrthography1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSOrthography1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSOrthography1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -void _ObjCBlock16_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock16_closureRegistry = {}; -int _ObjCBlock16_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock16_registerClosure(Function fn) { - final id = ++_ObjCBlock16_closureRegistryIndex; - _ObjCBlock16_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock16_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock16_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock16 extends _ObjCBlockBase { - ObjCBlock16._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock16.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock16_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock16.fromFunction( - HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock16_closureTrampoline) - .cast(), - _ObjCBlock16_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } -} - -bool _ObjCBlock17_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer arg0, ffi.Pointer arg1)>>() - .asFunction< - bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock17_closureRegistry = {}; -int _ObjCBlock17_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock17_registerClosure(Function fn) { - final id = ++_ObjCBlock17_closureRegistryIndex; - _ObjCBlock17_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -bool _ObjCBlock17_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock17_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock17 extends _ObjCBlockBase { - ObjCBlock17._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock17.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock17_fnPtrTrampoline, false) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock17.fromFunction( - HidListenerBindingsSwift lib, - bool Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock17_closureTrampoline, false) - .cast(), - _ObjCBlock17_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - bool call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } -} - -class NSFileManager extends NSObject { - NSFileManager._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSFileManager] that points to the same underlying object as [other]. - static NSFileManager castFrom(T other) { - return NSFileManager._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSFileManager] that wraps the given raw object pointer. - static NSFileManager castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSFileManager._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSFileManager]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileManager1); - } - - static NSFileManager? getDefaultManager(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_402( - _lib._class_NSFileManager1, _lib._sel_defaultManager1); - return _ret.address == 0 - ? null - : NSFileManager._(_ret, _lib, retain: true, release: true); - } - - NSArray mountedVolumeURLsIncludingResourceValuesForKeys_options_( - NSArray? propertyKeys, int options) { - final _ret = _lib._objc_msgSend_403( - _id, - _lib._sel_mountedVolumeURLsIncludingResourceValuesForKeys_options_1, - propertyKeys?._id ?? ffi.nullptr, - options); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - void unmountVolumeAtURL_options_completionHandler_( - NSURL? url, int mask, ObjCBlock18 completionHandler) { - return _lib._objc_msgSend_404( - _id, - _lib._sel_unmountVolumeAtURL_options_completionHandler_1, - url?._id ?? ffi.nullptr, - mask, - completionHandler._id); - } - - NSArray contentsOfDirectoryAtURL_includingPropertiesForKeys_options_error_( - NSURL? url, - NSArray? keys, - int mask, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_405( - _id, - _lib._sel_contentsOfDirectoryAtURL_includingPropertiesForKeys_options_error_1, - url?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr, - mask, - error); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray URLsForDirectory_inDomains_(int directory, int domainMask) { - final _ret = _lib._objc_msgSend_406( - _id, _lib._sel_URLsForDirectory_inDomains_1, directory, domainMask); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSURL URLForDirectory_inDomain_appropriateForURL_create_error_( - int directory, - int domain, - NSURL? url, - bool shouldCreate, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_407( - _id, - _lib._sel_URLForDirectory_inDomain_appropriateForURL_create_error_1, - directory, - domain, - url?._id ?? ffi.nullptr, - shouldCreate, - error); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - bool getRelationship_ofDirectoryAtURL_toItemAtURL_error_( - ffi.Pointer outRelationship, - NSURL? directoryURL, - NSURL? otherURL, - ffi.Pointer> error) { - return _lib._objc_msgSend_408( - _id, - _lib._sel_getRelationship_ofDirectoryAtURL_toItemAtURL_error_1, - outRelationship, - directoryURL?._id ?? ffi.nullptr, - otherURL?._id ?? ffi.nullptr, - error); - } - - bool getRelationship_ofDirectory_inDomain_toItemAtURL_error_( - ffi.Pointer outRelationship, - int directory, - int domainMask, - NSURL? url, - ffi.Pointer> error) { - return _lib._objc_msgSend_409( - _id, - _lib._sel_getRelationship_ofDirectory_inDomain_toItemAtURL_error_1, - outRelationship, - directory, - domainMask, - url?._id ?? ffi.nullptr, - error); - } - - bool createDirectoryAtURL_withIntermediateDirectories_attributes_error_( - NSURL? url, - bool createIntermediates, - NSDictionary? attributes, - ffi.Pointer> error) { - return _lib._objc_msgSend_410( - _id, - _lib._sel_createDirectoryAtURL_withIntermediateDirectories_attributes_error_1, - url?._id ?? ffi.nullptr, - createIntermediates, - attributes?._id ?? ffi.nullptr, - error); - } - - bool createSymbolicLinkAtURL_withDestinationURL_error_( - NSURL? url, NSURL? destURL, ffi.Pointer> error) { - return _lib._objc_msgSend_411( - _id, - _lib._sel_createSymbolicLinkAtURL_withDestinationURL_error_1, - url?._id ?? ffi.nullptr, - destURL?._id ?? ffi.nullptr, - error); - } - - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); - } - - set delegate(NSObject? value) { - _lib._objc_msgSend_387( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); - } - - bool setAttributes_ofItemAtPath_error_(NSDictionary? attributes, - NSString? path, ffi.Pointer> error) { - return _lib._objc_msgSend_412( - _id, - _lib._sel_setAttributes_ofItemAtPath_error_1, - attributes?._id ?? ffi.nullptr, - path?._id ?? ffi.nullptr, - error); - } - - bool createDirectoryAtPath_withIntermediateDirectories_attributes_error_( - NSString? path, - bool createIntermediates, - NSDictionary? attributes, - ffi.Pointer> error) { - return _lib._objc_msgSend_413( - _id, - _lib._sel_createDirectoryAtPath_withIntermediateDirectories_attributes_error_1, - path?._id ?? ffi.nullptr, - createIntermediates, - attributes?._id ?? ffi.nullptr, - error); - } - - NSArray contentsOfDirectoryAtPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_414( - _id, - _lib._sel_contentsOfDirectoryAtPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray subpathsOfDirectoryAtPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_414( - _id, - _lib._sel_subpathsOfDirectoryAtPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSDictionary attributesOfItemAtPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_415( - _id, - _lib._sel_attributesOfItemAtPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSDictionary attributesOfFileSystemForPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_415( - _id, - _lib._sel_attributesOfFileSystemForPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - bool createSymbolicLinkAtPath_withDestinationPath_error_(NSString? path, - NSString? destPath, ffi.Pointer> error) { - return _lib._objc_msgSend_416( - _id, - _lib._sel_createSymbolicLinkAtPath_withDestinationPath_error_1, - path?._id ?? ffi.nullptr, - destPath?._id ?? ffi.nullptr, - error); - } - - NSString destinationOfSymbolicLinkAtPath_error_( - NSString? path, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_417( - _id, - _lib._sel_destinationOfSymbolicLinkAtPath_error_1, - path?._id ?? ffi.nullptr, - error); - return NSString._(_ret, _lib, retain: true, release: true); - } - - bool copyItemAtPath_toPath_error_(NSString? srcPath, NSString? dstPath, - ffi.Pointer> error) { - return _lib._objc_msgSend_416(_id, _lib._sel_copyItemAtPath_toPath_error_1, - srcPath?._id ?? ffi.nullptr, dstPath?._id ?? ffi.nullptr, error); - } - - bool moveItemAtPath_toPath_error_(NSString? srcPath, NSString? dstPath, - ffi.Pointer> error) { - return _lib._objc_msgSend_416(_id, _lib._sel_moveItemAtPath_toPath_error_1, - srcPath?._id ?? ffi.nullptr, dstPath?._id ?? ffi.nullptr, error); - } - - bool linkItemAtPath_toPath_error_(NSString? srcPath, NSString? dstPath, - ffi.Pointer> error) { - return _lib._objc_msgSend_416(_id, _lib._sel_linkItemAtPath_toPath_error_1, - srcPath?._id ?? ffi.nullptr, dstPath?._id ?? ffi.nullptr, error); - } - - bool removeItemAtPath_error_( - NSString? path, ffi.Pointer> error) { - return _lib._objc_msgSend_418(_id, _lib._sel_removeItemAtPath_error_1, - path?._id ?? ffi.nullptr, error); - } - - bool copyItemAtURL_toURL_error_(NSURL? srcURL, NSURL? dstURL, - ffi.Pointer> error) { - return _lib._objc_msgSend_411(_id, _lib._sel_copyItemAtURL_toURL_error_1, - srcURL?._id ?? ffi.nullptr, dstURL?._id ?? ffi.nullptr, error); - } - - bool moveItemAtURL_toURL_error_(NSURL? srcURL, NSURL? dstURL, - ffi.Pointer> error) { - return _lib._objc_msgSend_411(_id, _lib._sel_moveItemAtURL_toURL_error_1, - srcURL?._id ?? ffi.nullptr, dstURL?._id ?? ffi.nullptr, error); - } - - bool linkItemAtURL_toURL_error_(NSURL? srcURL, NSURL? dstURL, - ffi.Pointer> error) { - return _lib._objc_msgSend_411(_id, _lib._sel_linkItemAtURL_toURL_error_1, - srcURL?._id ?? ffi.nullptr, dstURL?._id ?? ffi.nullptr, error); - } - - bool removeItemAtURL_error_( - NSURL? URL, ffi.Pointer> error) { - return _lib._objc_msgSend_83( - _id, _lib._sel_removeItemAtURL_error_1, URL?._id ?? ffi.nullptr, error); - } - - bool trashItemAtURL_resultingItemURL_error_( - NSURL? url, - ffi.Pointer> outResultingURL, - ffi.Pointer> error) { - return _lib._objc_msgSend_419( - _id, - _lib._sel_trashItemAtURL_resultingItemURL_error_1, - url?._id ?? ffi.nullptr, - outResultingURL, - error); - } - - NSDictionary fileAttributesAtPath_traverseLink_(NSString? path, bool yorn) { - final _ret = _lib._objc_msgSend_420( - _id, - _lib._sel_fileAttributesAtPath_traverseLink_1, - path?._id ?? ffi.nullptr, - yorn); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - bool changeFileAttributes_atPath_(NSDictionary? attributes, NSString? path) { - return _lib._objc_msgSend_421(_id, _lib._sel_changeFileAttributes_atPath_1, - attributes?._id ?? ffi.nullptr, path?._id ?? ffi.nullptr); - } - - NSArray directoryContentsAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_123( - _id, _lib._sel_directoryContentsAtPath_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSDictionary fileSystemAttributesAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_146( - _id, _lib._sel_fileSystemAttributesAtPath_1, path?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSString pathContentOfSymbolicLinkAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_64(_id, - _lib._sel_pathContentOfSymbolicLinkAtPath_1, path?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - bool createSymbolicLinkAtPath_pathContent_( - NSString? path, NSString? otherpath) { - return _lib._objc_msgSend_422( - _id, - _lib._sel_createSymbolicLinkAtPath_pathContent_1, - path?._id ?? ffi.nullptr, - otherpath?._id ?? ffi.nullptr); - } - - bool createDirectoryAtPath_attributes_( - NSString? path, NSDictionary? attributes) { - return _lib._objc_msgSend_423( - _id, - _lib._sel_createDirectoryAtPath_attributes_1, - path?._id ?? ffi.nullptr, - attributes?._id ?? ffi.nullptr); - } - - bool linkPath_toPath_handler_( - NSString? src, NSString? dest, NSObject handler) { - return _lib._objc_msgSend_424(_id, _lib._sel_linkPath_toPath_handler_1, - src?._id ?? ffi.nullptr, dest?._id ?? ffi.nullptr, handler._id); - } - - bool copyPath_toPath_handler_( - NSString? src, NSString? dest, NSObject handler) { - return _lib._objc_msgSend_424(_id, _lib._sel_copyPath_toPath_handler_1, - src?._id ?? ffi.nullptr, dest?._id ?? ffi.nullptr, handler._id); - } - - bool movePath_toPath_handler_( - NSString? src, NSString? dest, NSObject handler) { - return _lib._objc_msgSend_424(_id, _lib._sel_movePath_toPath_handler_1, - src?._id ?? ffi.nullptr, dest?._id ?? ffi.nullptr, handler._id); - } - - bool removeFileAtPath_handler_(NSString? path, NSObject handler) { - return _lib._objc_msgSend_425(_id, _lib._sel_removeFileAtPath_handler_1, - path?._id ?? ffi.nullptr, handler._id); - } - - NSString? get currentDirectoryPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currentDirectoryPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - bool changeCurrentDirectoryPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_changeCurrentDirectoryPath_1, path?._id ?? ffi.nullptr); - } - - bool fileExistsAtPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_fileExistsAtPath_1, path?._id ?? ffi.nullptr); - } - - bool fileExistsAtPath_isDirectory_( - NSString? path, ffi.Pointer isDirectory) { - return _lib._objc_msgSend_426(_id, _lib._sel_fileExistsAtPath_isDirectory_1, - path?._id ?? ffi.nullptr, isDirectory); - } - - bool isReadableFileAtPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isReadableFileAtPath_1, path?._id ?? ffi.nullptr); - } - - bool isWritableFileAtPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isWritableFileAtPath_1, path?._id ?? ffi.nullptr); - } - - bool isExecutableFileAtPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isExecutableFileAtPath_1, path?._id ?? ffi.nullptr); - } - - bool isDeletableFileAtPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isDeletableFileAtPath_1, path?._id ?? ffi.nullptr); - } - - bool contentsEqualAtPath_andPath_(NSString? path1, NSString? path2) { - return _lib._objc_msgSend_422(_id, _lib._sel_contentsEqualAtPath_andPath_1, - path1?._id ?? ffi.nullptr, path2?._id ?? ffi.nullptr); - } - - NSString displayNameAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_displayNameAtPath_1, path?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSArray componentsToDisplayForPath_(NSString? path) { - final _ret = _lib._objc_msgSend_123( - _id, _lib._sel_componentsToDisplayForPath_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSObject enumeratorAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_enumeratorAtPath_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject enumeratorAtURL_includingPropertiesForKeys_options_errorHandler_( - NSURL? url, NSArray? keys, int mask, ObjCBlock19 handler) { - final _ret = _lib._objc_msgSend_427( - _id, - _lib._sel_enumeratorAtURL_includingPropertiesForKeys_options_errorHandler_1, - url?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr, - mask, - handler._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSArray subpathsAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_123( - _id, _lib._sel_subpathsAtPath_1, path?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSData contentsAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_428( - _id, _lib._sel_contentsAtPath_1, path?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); - } - - bool createFileAtPath_contents_attributes_( - NSString? path, NSData? data, NSDictionary? attr) { - return _lib._objc_msgSend_429( - _id, - _lib._sel_createFileAtPath_contents_attributes_1, - path?._id ?? ffi.nullptr, - data?._id ?? ffi.nullptr, - attr?._id ?? ffi.nullptr); - } - - ffi.Pointer fileSystemRepresentationWithPath_(NSString? path) { - return _lib._objc_msgSend_430(_id, - _lib._sel_fileSystemRepresentationWithPath_1, path?._id ?? ffi.nullptr); - } - - NSString stringWithFileSystemRepresentation_length_( - ffi.Pointer str, int len) { - final _ret = _lib._objc_msgSend_431( - _id, _lib._sel_stringWithFileSystemRepresentation_length_1, str, len); - return NSString._(_ret, _lib, retain: true, release: true); - } - - bool - replaceItemAtURL_withItemAtURL_backupItemName_options_resultingItemURL_error_( - NSURL? originalItemURL, - NSURL? newItemURL, - NSString? backupItemName, - int options, - ffi.Pointer> resultingURL, - ffi.Pointer> error) { - return _lib._objc_msgSend_432( - _id, - _lib._sel_replaceItemAtURL_withItemAtURL_backupItemName_options_resultingItemURL_error_1, - originalItemURL?._id ?? ffi.nullptr, - newItemURL?._id ?? ffi.nullptr, - backupItemName?._id ?? ffi.nullptr, - options, - resultingURL, - error); - } - - bool setUbiquitous_itemAtURL_destinationURL_error_(bool flag, NSURL? url, - NSURL? destinationURL, ffi.Pointer> error) { - return _lib._objc_msgSend_433( - _id, - _lib._sel_setUbiquitous_itemAtURL_destinationURL_error_1, - flag, - url?._id ?? ffi.nullptr, - destinationURL?._id ?? ffi.nullptr, - error); - } - - bool isUbiquitousItemAtURL_(NSURL? url) { - return _lib._objc_msgSend_244( - _id, _lib._sel_isUbiquitousItemAtURL_1, url?._id ?? ffi.nullptr); - } - - bool startDownloadingUbiquitousItemAtURL_error_( - NSURL? url, ffi.Pointer> error) { - return _lib._objc_msgSend_83( - _id, - _lib._sel_startDownloadingUbiquitousItemAtURL_error_1, - url?._id ?? ffi.nullptr, - error); - } - - bool evictUbiquitousItemAtURL_error_( - NSURL? url, ffi.Pointer> error) { - return _lib._objc_msgSend_83( - _id, - _lib._sel_evictUbiquitousItemAtURL_error_1, - url?._id ?? ffi.nullptr, - error); - } - - NSURL URLForUbiquityContainerIdentifier_(NSString? containerIdentifier) { - final _ret = _lib._objc_msgSend_34( - _id, - _lib._sel_URLForUbiquityContainerIdentifier_1, - containerIdentifier?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL URLForPublishingUbiquitousItemAtURL_expirationDate_error_( - NSURL? url, - ffi.Pointer> outDate, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_434( - _id, - _lib._sel_URLForPublishingUbiquitousItemAtURL_expirationDate_error_1, - url?._id ?? ffi.nullptr, - outDate, - error); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - NSObject? get ubiquityIdentityToken { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_ubiquityIdentityToken1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); - } - - void getFileProviderServicesForItemAtURL_completionHandler_( - NSURL? url, ObjCBlock20 completionHandler) { - return _lib._objc_msgSend_435( - _id, - _lib._sel_getFileProviderServicesForItemAtURL_completionHandler_1, - url?._id ?? ffi.nullptr, - completionHandler._id); - } - - NSURL containerURLForSecurityApplicationGroupIdentifier_( - NSString? groupIdentifier) { - final _ret = _lib._objc_msgSend_34( - _id, - _lib._sel_containerURLForSecurityApplicationGroupIdentifier_1, - groupIdentifier?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL? get homeDirectoryForCurrentUser { - final _ret = - _lib._objc_msgSend_40(_id, _lib._sel_homeDirectoryForCurrentUser1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL? get temporaryDirectory { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_temporaryDirectory1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL homeDirectoryForUser_(NSString? userName) { - final _ret = _lib._objc_msgSend_34( - _id, _lib._sel_homeDirectoryForUser_1, userName?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - static NSFileManager new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSFileManager1, _lib._sel_new1); - return NSFileManager._(_ret, _lib, retain: false, release: true); - } - - static NSFileManager alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSFileManager1, _lib._sel_alloc1); - return NSFileManager._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSFileManager1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSFileManager1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSFileManager1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSFileManager1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSFileManager1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSFileManager1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSFileManager1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSFileManager1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSFileManager1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSVolumeEnumerationOptions { - static const int NSVolumeEnumerationSkipHiddenVolumes = 2; - static const int NSVolumeEnumerationProduceFileReferenceURLs = 4; -} - -abstract class NSFileManagerUnmountOptions { - static const int NSFileManagerUnmountAllPartitionsAndEjectDisk = 1; - static const int NSFileManagerUnmountWithoutUI = 2; -} - -void _ObjCBlock18_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock18_closureRegistry = {}; -int _ObjCBlock18_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock18_registerClosure(Function fn) { - final id = ++_ObjCBlock18_closureRegistryIndex; - _ObjCBlock18_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock18_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock18_closureRegistry[block.ref.target.address]!(arg0); -} - -class ObjCBlock18 extends _ObjCBlockBase { - ObjCBlock18._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock18.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock18_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock18.fromFunction(HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock18_closureTrampoline) - .cast(), - _ObjCBlock18_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } -} - -abstract class NSDirectoryEnumerationOptions { - static const int NSDirectoryEnumerationSkipsSubdirectoryDescendants = 1; - static const int NSDirectoryEnumerationSkipsPackageDescendants = 2; - static const int NSDirectoryEnumerationSkipsHiddenFiles = 4; - static const int NSDirectoryEnumerationIncludesDirectoriesPostOrder = 8; - static const int NSDirectoryEnumerationProducesRelativePathURLs = 16; -} - -abstract class NSSearchPathDirectory { - static const int NSApplicationDirectory = 1; - static const int NSDemoApplicationDirectory = 2; - static const int NSDeveloperApplicationDirectory = 3; - static const int NSAdminApplicationDirectory = 4; - static const int NSLibraryDirectory = 5; - static const int NSDeveloperDirectory = 6; - static const int NSUserDirectory = 7; - static const int NSDocumentationDirectory = 8; - static const int NSDocumentDirectory = 9; - static const int NSCoreServiceDirectory = 10; - static const int NSAutosavedInformationDirectory = 11; - static const int NSDesktopDirectory = 12; - static const int NSCachesDirectory = 13; - static const int NSApplicationSupportDirectory = 14; - static const int NSDownloadsDirectory = 15; - static const int NSInputMethodsDirectory = 16; - static const int NSMoviesDirectory = 17; - static const int NSMusicDirectory = 18; - static const int NSPicturesDirectory = 19; - static const int NSPrinterDescriptionDirectory = 20; - static const int NSSharedPublicDirectory = 21; - static const int NSPreferencePanesDirectory = 22; - static const int NSApplicationScriptsDirectory = 23; - static const int NSItemReplacementDirectory = 99; - static const int NSAllApplicationsDirectory = 100; - static const int NSAllLibrariesDirectory = 101; - static const int NSTrashDirectory = 102; -} - -abstract class NSSearchPathDomainMask { - static const int NSUserDomainMask = 1; - static const int NSLocalDomainMask = 2; - static const int NSNetworkDomainMask = 4; - static const int NSSystemDomainMask = 8; - static const int NSAllDomainsMask = 65535; -} - -abstract class NSURLRelationship { - static const int NSURLRelationshipContains = 0; - static const int NSURLRelationshipSame = 1; - static const int NSURLRelationshipOther = 2; -} - -bool _ObjCBlock19_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock19_closureRegistry = {}; -int _ObjCBlock19_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock19_registerClosure(Function fn) { - final id = ++_ObjCBlock19_closureRegistryIndex; - _ObjCBlock19_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -bool _ObjCBlock19_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock19_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock19 extends _ObjCBlockBase { - ObjCBlock19._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock19.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock19_fnPtrTrampoline, false) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock19.fromFunction( - HidListenerBindingsSwift lib, - bool Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock19_closureTrampoline, false) - .cast(), - _ObjCBlock19_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - bool call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } -} - -abstract class NSFileManagerItemReplacementOptions { - static const int NSFileManagerItemReplacementUsingNewMetadataOnly = 1; - static const int NSFileManagerItemReplacementWithoutDeletingBackupItem = 2; -} - -void _ObjCBlock20_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock20_closureRegistry = {}; -int _ObjCBlock20_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock20_registerClosure(Function fn) { - final id = ++_ObjCBlock20_closureRegistryIndex; - _ObjCBlock20_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock20_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock20_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock20 extends _ObjCBlockBase { - ObjCBlock20._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock20.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock20_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock20.fromFunction( - HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock20_closureTrampoline) - .cast(), - _ObjCBlock20_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } -} - -class NSMutableArray extends NSArray { - NSMutableArray._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSMutableArray] that points to the same underlying object as [other]. - static NSMutableArray castFrom(T other) { - return NSMutableArray._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSMutableArray] that wraps the given raw object pointer. - static NSMutableArray castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMutableArray._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSMutableArray]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableArray1); - } - - void addObject_(NSObject anObject) { - return _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, anObject._id); - } - - void insertObject_atIndex_(NSObject anObject, int index) { - return _lib._objc_msgSend_438( - _id, _lib._sel_insertObject_atIndex_1, anObject._id, index); - } - - void removeLastObject() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeLastObject1); - } - - void removeObjectAtIndex_(int index) { - return _lib._objc_msgSend_439(_id, _lib._sel_removeObjectAtIndex_1, index); - } - - void replaceObjectAtIndex_withObject_(int index, NSObject anObject) { - return _lib._objc_msgSend_440( - _id, _lib._sel_replaceObjectAtIndex_withObject_1, index, anObject._id); - } - - @override - NSMutableArray init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableArray._(_ret, _lib, retain: true, release: true); - } - - NSMutableArray initWithCapacity_(int numItems) { - final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); - return NSMutableArray._(_ret, _lib, retain: true, release: true); - } - - @override - NSMutableArray initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); - } - - void addObjectsFromArray_(NSArray? otherArray) { - return _lib._objc_msgSend_441( - _id, _lib._sel_addObjectsFromArray_1, otherArray?._id ?? ffi.nullptr); - } - - void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { - return _lib._objc_msgSend_442( - _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); - } - - void removeAllObjects() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); - } - - void removeObject_inRange_(NSObject anObject, _NSRange range) { - return _lib._objc_msgSend_443( - _id, _lib._sel_removeObject_inRange_1, anObject._id, range); - } - - void removeObject_(NSObject anObject) { - return _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, anObject._id); - } - - void removeObjectIdenticalTo_inRange_(NSObject anObject, _NSRange range) { - return _lib._objc_msgSend_443( - _id, _lib._sel_removeObjectIdenticalTo_inRange_1, anObject._id, range); - } - - void removeObjectIdenticalTo_(NSObject anObject) { - return _lib._objc_msgSend_15( - _id, _lib._sel_removeObjectIdenticalTo_1, anObject._id); - } - - void removeObjectsFromIndices_numIndices_( - ffi.Pointer indices, int cnt) { - return _lib._objc_msgSend_444( - _id, _lib._sel_removeObjectsFromIndices_numIndices_1, indices, cnt); - } - - void removeObjectsInArray_(NSArray? otherArray) { - return _lib._objc_msgSend_441( - _id, _lib._sel_removeObjectsInArray_1, otherArray?._id ?? ffi.nullptr); - } - - void removeObjectsInRange_(_NSRange range) { - return _lib._objc_msgSend_445(_id, _lib._sel_removeObjectsInRange_1, range); - } - - void replaceObjectsInRange_withObjectsFromArray_range_( - _NSRange range, NSArray? otherArray, _NSRange otherRange) { - return _lib._objc_msgSend_446( - _id, - _lib._sel_replaceObjectsInRange_withObjectsFromArray_range_1, - range, - otherArray?._id ?? ffi.nullptr, - otherRange); - } - - void replaceObjectsInRange_withObjectsFromArray_( - _NSRange range, NSArray? otherArray) { - return _lib._objc_msgSend_447( - _id, - _lib._sel_replaceObjectsInRange_withObjectsFromArray_1, - range, - otherArray?._id ?? ffi.nullptr); - } - - void setArray_(NSArray? otherArray) { - return _lib._objc_msgSend_441( - _id, _lib._sel_setArray_1, otherArray?._id ?? ffi.nullptr); - } - - void sortUsingFunction_context_( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - compare, - ffi.Pointer context) { - return _lib._objc_msgSend_448( - _id, _lib._sel_sortUsingFunction_context_1, compare, context); - } - - void sortUsingSelector_(ffi.Pointer comparator) { - return _lib._objc_msgSend_7(_id, _lib._sel_sortUsingSelector_1, comparator); - } - - void insertObjects_atIndexes_(NSArray? objects, NSIndexSet? indexes) { - return _lib._objc_msgSend_449(_id, _lib._sel_insertObjects_atIndexes_1, - objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); - } - - void removeObjectsAtIndexes_(NSIndexSet? indexes) { - return _lib._objc_msgSend_450( - _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); - } - - void replaceObjectsAtIndexes_withObjects_( - NSIndexSet? indexes, NSArray? objects) { - return _lib._objc_msgSend_451( - _id, - _lib._sel_replaceObjectsAtIndexes_withObjects_1, - indexes?._id ?? ffi.nullptr, - objects?._id ?? ffi.nullptr); - } - - void setObject_atIndexedSubscript_(NSObject obj, int idx) { - return _lib._objc_msgSend_438( - _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); - } - - void sortUsingComparator_(ObjCBlock6 cmptr) { - return _lib._objc_msgSend_452( - _id, _lib._sel_sortUsingComparator_1, cmptr._id); - } - - void sortWithOptions_usingComparator_(int opts, ObjCBlock6 cmptr) { - return _lib._objc_msgSend_453( - _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr._id); - } - - static NSMutableArray arrayWithCapacity_( - HidListenerBindingsSwift _lib, int numItems) { - final _ret = _lib._objc_msgSend_60( - _lib._class_NSMutableArray1, _lib._sel_arrayWithCapacity_1, numItems); - return NSMutableArray._(_ret, _lib, retain: true, release: true); - } - - static NSMutableArray arrayWithContentsOfFile_( - HidListenerBindingsSwift _lib, NSString? path) { - final _ret = _lib._objc_msgSend_454(_lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); - } - - static NSMutableArray arrayWithContentsOfURL_( - HidListenerBindingsSwift _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_455(_lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); - } - - NSMutableArray initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_454( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); - } - - NSMutableArray initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_455( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); - } - - void applyDifference_(NSObject? difference) { - return _lib._objc_msgSend_15( - _id, _lib._sel_applyDifference_1, difference?._id ?? ffi.nullptr); - } - - void sortUsingDescriptors_(NSArray? sortDescriptors) { - return _lib._objc_msgSend_441(_id, _lib._sel_sortUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); - } - - void filterUsingPredicate_(NSPredicate? predicate) { - return _lib._objc_msgSend_456( - _id, _lib._sel_filterUsingPredicate_1, predicate?._id ?? ffi.nullptr); - } - - static NSMutableArray array(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_array1); - return NSMutableArray._(_ret, _lib, retain: true, release: true); - } - - static NSMutableArray arrayWithObject_( - HidListenerBindingsSwift _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_16( - _lib._class_NSMutableArray1, _lib._sel_arrayWithObject_1, anObject._id); - return NSMutableArray._(_ret, _lib, retain: true, release: true); - } - - static NSMutableArray arrayWithObjects_count_(HidListenerBindingsSwift _lib, - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableArray1, - _lib._sel_arrayWithObjects_count_1, objects, cnt); - return NSMutableArray._(_ret, _lib, retain: true, release: true); - } - - static NSMutableArray arrayWithObjects_( - HidListenerBindingsSwift _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableArray1, - _lib._sel_arrayWithObjects_1, firstObj._id); - return NSMutableArray._(_ret, _lib, retain: true, release: true); - } - - static NSMutableArray arrayWithArray_( - HidListenerBindingsSwift _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableArray1, - _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); - } - - static NSArray arrayWithContentsOfURL_error_(HidListenerBindingsSwift _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_119( - _lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSMutableArray new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_new1); - return NSMutableArray._(_ret, _lib, retain: false, release: true); - } - - static NSMutableArray alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_alloc1); - return NSMutableArray._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSMutableArray1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableArray1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableArray1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableArray1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableArray1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableArray1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSMutableArray1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSMutableArray1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableArray1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSMutableOrderedSet extends NSOrderedSet { - NSMutableOrderedSet._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSMutableOrderedSet] that points to the same underlying object as [other]. - static NSMutableOrderedSet castFrom(T other) { - return NSMutableOrderedSet._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSMutableOrderedSet] that wraps the given raw object pointer. - static NSMutableOrderedSet castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMutableOrderedSet._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSMutableOrderedSet]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableOrderedSet1); - } - - void insertObject_atIndex_(NSObject object, int idx) { - return _lib._objc_msgSend_438( - _id, _lib._sel_insertObject_atIndex_1, object._id, idx); - } - - void removeObjectAtIndex_(int idx) { - return _lib._objc_msgSend_439(_id, _lib._sel_removeObjectAtIndex_1, idx); - } - - void replaceObjectAtIndex_withObject_(int idx, NSObject object) { - return _lib._objc_msgSend_440( - _id, _lib._sel_replaceObjectAtIndex_withObject_1, idx, object._id); - } - - @override - NSMutableOrderedSet initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - @override - NSMutableOrderedSet init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - NSMutableOrderedSet initWithCapacity_(int numItems) { - final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - void addObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); - } - - void addObjects_count_( - ffi.Pointer> objects, int count) { - return _lib._objc_msgSend_467( - _id, _lib._sel_addObjects_count_1, objects, count); - } - - void addObjectsFromArray_(NSArray? array) { - return _lib._objc_msgSend_441( - _id, _lib._sel_addObjectsFromArray_1, array?._id ?? ffi.nullptr); - } - - void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { - return _lib._objc_msgSend_442( - _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); - } - - void moveObjectsAtIndexes_toIndex_(NSIndexSet? indexes, int idx) { - return _lib._objc_msgSend_468(_id, _lib._sel_moveObjectsAtIndexes_toIndex_1, - indexes?._id ?? ffi.nullptr, idx); - } - - void insertObjects_atIndexes_(NSArray? objects, NSIndexSet? indexes) { - return _lib._objc_msgSend_449(_id, _lib._sel_insertObjects_atIndexes_1, - objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); - } - - void setObject_atIndex_(NSObject obj, int idx) { - return _lib._objc_msgSend_438( - _id, _lib._sel_setObject_atIndex_1, obj._id, idx); - } - - void setObject_atIndexedSubscript_(NSObject obj, int idx) { - return _lib._objc_msgSend_438( - _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); - } - - void replaceObjectsInRange_withObjects_count_( - _NSRange range, ffi.Pointer> objects, int count) { - return _lib._objc_msgSend_469( - _id, - _lib._sel_replaceObjectsInRange_withObjects_count_1, - range, - objects, - count); - } - - void replaceObjectsAtIndexes_withObjects_( - NSIndexSet? indexes, NSArray? objects) { - return _lib._objc_msgSend_451( - _id, - _lib._sel_replaceObjectsAtIndexes_withObjects_1, - indexes?._id ?? ffi.nullptr, - objects?._id ?? ffi.nullptr); - } - - void removeObjectsInRange_(_NSRange range) { - return _lib._objc_msgSend_445(_id, _lib._sel_removeObjectsInRange_1, range); - } - - void removeObjectsAtIndexes_(NSIndexSet? indexes) { - return _lib._objc_msgSend_450( - _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); - } - - void removeAllObjects() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); - } - - void removeObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); - } - - void removeObjectsInArray_(NSArray? array) { - return _lib._objc_msgSend_441( - _id, _lib._sel_removeObjectsInArray_1, array?._id ?? ffi.nullptr); - } - - void intersectOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_470( - _id, _lib._sel_intersectOrderedSet_1, other?._id ?? ffi.nullptr); - } - - void minusOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_470( - _id, _lib._sel_minusOrderedSet_1, other?._id ?? ffi.nullptr); - } - - void unionOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_470( - _id, _lib._sel_unionOrderedSet_1, other?._id ?? ffi.nullptr); - } - - void intersectSet_(NSSet? other) { - return _lib._objc_msgSend_471( - _id, _lib._sel_intersectSet_1, other?._id ?? ffi.nullptr); - } - - void minusSet_(NSSet? other) { - return _lib._objc_msgSend_471( - _id, _lib._sel_minusSet_1, other?._id ?? ffi.nullptr); - } - - void unionSet_(NSSet? other) { - return _lib._objc_msgSend_471( - _id, _lib._sel_unionSet_1, other?._id ?? ffi.nullptr); - } - - void sortUsingComparator_(ObjCBlock6 cmptr) { - return _lib._objc_msgSend_452( - _id, _lib._sel_sortUsingComparator_1, cmptr._id); - } - - void sortWithOptions_usingComparator_(int opts, ObjCBlock6 cmptr) { - return _lib._objc_msgSend_453( - _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr._id); - } - - void sortRange_options_usingComparator_( - _NSRange range, int opts, ObjCBlock6 cmptr) { - return _lib._objc_msgSend_472(_id, - _lib._sel_sortRange_options_usingComparator_1, range, opts, cmptr._id); - } - - static NSMutableOrderedSet orderedSetWithCapacity_( - HidListenerBindingsSwift _lib, int numItems) { - final _ret = _lib._objc_msgSend_60(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithCapacity_1, numItems); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - void applyDifference_(NSObject? difference) { - return _lib._objc_msgSend_15( - _id, _lib._sel_applyDifference_1, difference?._id ?? ffi.nullptr); - } - - void sortUsingDescriptors_(NSArray? sortDescriptors) { - return _lib._objc_msgSend_441(_id, _lib._sel_sortUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); - } - - void filterUsingPredicate_(NSPredicate? p) { - return _lib._objc_msgSend_456( - _id, _lib._sel_filterUsingPredicate_1, p?._id ?? ffi.nullptr); - } - - static NSMutableOrderedSet orderedSet(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableOrderedSet1, _lib._sel_orderedSet1); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableOrderedSet orderedSetWithObject_( - HidListenerBindingsSwift _lib, NSObject object) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithObject_1, object._id); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableOrderedSet orderedSetWithObjects_count_( - HidListenerBindingsSwift _lib, - ffi.Pointer> objects, - int cnt) { - final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithObjects_count_1, objects, cnt); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableOrderedSet orderedSetWithObjects_( - HidListenerBindingsSwift _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithObjects_1, firstObj._id); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableOrderedSet orderedSetWithOrderedSet_( - HidListenerBindingsSwift _lib, NSOrderedSet? set) { - final _ret = _lib._objc_msgSend_459(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithOrderedSet_1, set?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableOrderedSet orderedSetWithOrderedSet_range_copyItems_( - HidListenerBindingsSwift _lib, - NSOrderedSet? set, - _NSRange range, - bool flag) { - final _ret = _lib._objc_msgSend_460( - _lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithOrderedSet_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); - } - - static NSMutableOrderedSet orderedSetWithArray_( - HidListenerBindingsSwift _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithArray_1, array?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableOrderedSet orderedSetWithArray_range_copyItems_( - HidListenerBindingsSwift _lib, - NSArray? array, - _NSRange range, - bool flag) { - final _ret = _lib._objc_msgSend_461( - _lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithArray_range_copyItems_1, - array?._id ?? ffi.nullptr, - range, - flag); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); - } - - static NSMutableOrderedSet orderedSetWithSet_( - HidListenerBindingsSwift _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_382(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithSet_1, set?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableOrderedSet orderedSetWithSet_copyItems_( - HidListenerBindingsSwift _lib, NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_383(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); - } - - static NSMutableOrderedSet new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableOrderedSet1, _lib._sel_new1); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); - } - - static NSMutableOrderedSet alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableOrderedSet1, _lib._sel_alloc1); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSMutableOrderedSet1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableOrderedSet1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableOrderedSet1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableOrderedSet1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableOrderedSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableOrderedSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSMutableOrderedSet1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableOrderedSet1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableOrderedSet1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSOrderedSet extends NSObject { - NSOrderedSet._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSOrderedSet] that points to the same underlying object as [other]. - static NSOrderedSet castFrom(T other) { - return NSOrderedSet._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSOrderedSet] that wraps the given raw object pointer. - static NSOrderedSet castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSOrderedSet._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSOrderedSet]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSOrderedSet1); - } - - int get count { - return _lib._objc_msgSend_10(_id, _lib._sel_count1); - } - - NSObject objectAtIndex_(int idx) { - final _ret = _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndex_1, idx); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - int indexOfObject_(NSObject object) { - return _lib._objc_msgSend_69(_id, _lib._sel_indexOfObject_1, object._id); - } - - @override - NSOrderedSet init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - NSOrderedSet initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( - _id, _lib._sel_initWithObjects_count_1, objects, cnt); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - NSOrderedSet initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - void getObjects_range_( - ffi.Pointer> objects, _NSRange range) { - return _lib._objc_msgSend_68( - _id, _lib._sel_getObjects_range_1, objects, range); - } - - NSArray objectsAtIndexes_(NSIndexSet? indexes) { - final _ret = _lib._objc_msgSend_105( - _id, _lib._sel_objectsAtIndexes_1, indexes?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSObject get firstObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_firstObject1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject get lastObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_lastObject1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - bool isEqualToOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_457( - _id, _lib._sel_isEqualToOrderedSet_1, other?._id ?? ffi.nullptr); - } - - bool containsObject_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, object._id); - } - - bool intersectsOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_457( - _id, _lib._sel_intersectsOrderedSet_1, other?._id ?? ffi.nullptr); - } - - bool intersectsSet_(NSSet? set) { - return _lib._objc_msgSend_374( - _id, _lib._sel_intersectsSet_1, set?._id ?? ffi.nullptr); - } - - bool isSubsetOfOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_457( - _id, _lib._sel_isSubsetOfOrderedSet_1, other?._id ?? ffi.nullptr); - } - - bool isSubsetOfSet_(NSSet? set) { - return _lib._objc_msgSend_374( - _id, _lib._sel_isSubsetOfSet_1, set?._id ?? ffi.nullptr); - } - - NSObject objectAtIndexedSubscript_(int idx) { - final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndexedSubscript_1, idx); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); - } - - NSEnumerator reverseObjectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_reverseObjectEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); - } - - NSOrderedSet? get reversedOrderedSet { - final _ret = _lib._objc_msgSend_458(_id, _lib._sel_reversedOrderedSet1); - return _ret.address == 0 - ? null - : NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - NSArray? get array { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_array1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSSet? get set1 { - final _ret = _lib._objc_msgSend_295(_id, _lib._sel_set1); - return _ret.address == 0 - ? null - : NSSet._(_ret, _lib, retain: true, release: true); - } - - void enumerateObjectsUsingBlock_(ObjCBlock4 block) { - return _lib._objc_msgSend_106( - _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); - } - - void enumerateObjectsWithOptions_usingBlock_(int opts, ObjCBlock4 block) { - return _lib._objc_msgSend_107(_id, - _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); - } - - void enumerateObjectsAtIndexes_options_usingBlock_( - NSIndexSet? s, int opts, ObjCBlock4 block) { - return _lib._objc_msgSend_108( - _id, - _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, - s?._id ?? ffi.nullptr, - opts, - block._id); - } - - int indexOfObjectPassingTest_(ObjCBlock5 predicate) { - return _lib._objc_msgSend_109( - _id, _lib._sel_indexOfObjectPassingTest_1, predicate._id); - } - - int indexOfObjectWithOptions_passingTest_(int opts, ObjCBlock5 predicate) { - return _lib._objc_msgSend_110(_id, - _lib._sel_indexOfObjectWithOptions_passingTest_1, opts, predicate._id); - } - - int indexOfObjectAtIndexes_options_passingTest_( - NSIndexSet? s, int opts, ObjCBlock5 predicate) { - return _lib._objc_msgSend_111( - _id, - _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, - opts, - predicate._id); - } - - NSIndexSet indexesOfObjectsPassingTest_(ObjCBlock5 predicate) { - final _ret = _lib._objc_msgSend_112( - _id, _lib._sel_indexesOfObjectsPassingTest_1, predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } - - NSIndexSet indexesOfObjectsWithOptions_passingTest_( - int opts, ObjCBlock5 predicate) { - final _ret = _lib._objc_msgSend_113( - _id, - _lib._sel_indexesOfObjectsWithOptions_passingTest_1, - opts, - predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } - - NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_( - NSIndexSet? s, int opts, ObjCBlock5 predicate) { - final _ret = _lib._objc_msgSend_114( - _id, - _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, - opts, - predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } - - int indexOfObject_inSortedRange_options_usingComparator_( - NSObject object, _NSRange range, int opts, ObjCBlock6 cmp) { - return _lib._objc_msgSend_117( - _id, - _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, - object._id, - range, - opts, - cmp._id); - } - - NSArray sortedArrayUsingComparator_(ObjCBlock6 cmptr) { - final _ret = _lib._objc_msgSend_115( - _id, _lib._sel_sortedArrayUsingComparator_1, cmptr._id); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray sortedArrayWithOptions_usingComparator_(int opts, ObjCBlock6 cmptr) { - final _ret = _lib._objc_msgSend_116(_id, - _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr._id); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString descriptionWithLocale_indent_(NSObject locale, int level) { - final _ret = _lib._objc_msgSend_66( - _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSOrderedSet orderedSet(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_orderedSet1); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSOrderedSet orderedSetWithObject_( - HidListenerBindingsSwift _lib, NSObject object) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithObject_1, object._id); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSOrderedSet orderedSetWithObjects_count_( - HidListenerBindingsSwift _lib, - ffi.Pointer> objects, - int cnt) { - final _ret = _lib._objc_msgSend_61(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithObjects_count_1, objects, cnt); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSOrderedSet orderedSetWithObjects_( - HidListenerBindingsSwift _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithObjects_1, firstObj._id); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSOrderedSet orderedSetWithOrderedSet_( - HidListenerBindingsSwift _lib, NSOrderedSet? set) { - final _ret = _lib._objc_msgSend_459(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithOrderedSet_1, set?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSOrderedSet orderedSetWithOrderedSet_range_copyItems_( - HidListenerBindingsSwift _lib, - NSOrderedSet? set, - _NSRange range, - bool flag) { - final _ret = _lib._objc_msgSend_460( - _lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithOrderedSet_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); - } - - static NSOrderedSet orderedSetWithArray_( - HidListenerBindingsSwift _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithArray_1, array?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSOrderedSet orderedSetWithArray_range_copyItems_( - HidListenerBindingsSwift _lib, - NSArray? array, - _NSRange range, - bool flag) { - final _ret = _lib._objc_msgSend_461( - _lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithArray_range_copyItems_1, - array?._id ?? ffi.nullptr, - range, - flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); - } - - static NSOrderedSet orderedSetWithSet_( - HidListenerBindingsSwift _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_382(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithSet_1, set?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSOrderedSet orderedSetWithSet_copyItems_( - HidListenerBindingsSwift _lib, NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_383(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); - } - - NSOrderedSet initWithObject_(NSObject object) { - final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObject_1, object._id); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - NSOrderedSet initWithObjects_(NSObject firstObj) { - final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - NSOrderedSet initWithOrderedSet_(NSOrderedSet? set) { - final _ret = _lib._objc_msgSend_459( - _id, _lib._sel_initWithOrderedSet_1, set?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - NSOrderedSet initWithOrderedSet_copyItems_(NSOrderedSet? set, bool flag) { - final _ret = _lib._objc_msgSend_462( - _id, - _lib._sel_initWithOrderedSet_copyItems_1, - set?._id ?? ffi.nullptr, - flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); - } - - NSOrderedSet initWithOrderedSet_range_copyItems_( - NSOrderedSet? set, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_460( - _id, - _lib._sel_initWithOrderedSet_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); - } - - NSOrderedSet initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_67( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - NSOrderedSet initWithArray_copyItems_(NSArray? set, bool flag) { - final _ret = _lib._objc_msgSend_118(_id, - _lib._sel_initWithArray_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); - } - - NSOrderedSet initWithArray_range_copyItems_( - NSArray? set, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_461( - _id, - _lib._sel_initWithArray_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); - } - - NSOrderedSet initWithSet_(NSSet? set) { - final _ret = _lib._objc_msgSend_382( - _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - NSOrderedSet initWithSet_copyItems_(NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_383( - _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); - } - - NSObject differenceFromOrderedSet_withOptions_usingEquivalenceTest_( - NSOrderedSet? other, int options, ObjCBlock7 block) { - final _ret = _lib._objc_msgSend_463( - _id, - _lib._sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_1, - other?._id ?? ffi.nullptr, - options, - block._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject differenceFromOrderedSet_withOptions_( - NSOrderedSet? other, int options) { - final _ret = _lib._objc_msgSend_464( - _id, - _lib._sel_differenceFromOrderedSet_withOptions_1, - other?._id ?? ffi.nullptr, - options); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject differenceFromOrderedSet_(NSOrderedSet? other) { - final _ret = _lib._objc_msgSend_459( - _id, _lib._sel_differenceFromOrderedSet_1, other?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSOrderedSet orderedSetByApplyingDifference_(NSObject? difference) { - final _ret = _lib._objc_msgSend_465( - _id, - _lib._sel_orderedSetByApplyingDifference_1, - difference?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - @override - NSObject valueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - @override - void setValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_126( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); - } - - @override - void addObserver_forKeyPath_options_context_(NSObject? observer, - NSString? keyPath, int options, ffi.Pointer context) { - return _lib._objc_msgSend_130( - _id, - _lib._sel_addObserver_forKeyPath_options_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - options, - context); - } - - @override - void removeObserver_forKeyPath_context_( - NSObject? observer, NSString? keyPath, ffi.Pointer context) { - return _lib._objc_msgSend_131( - _id, - _lib._sel_removeObserver_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - context); - } - - @override - void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { - return _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); - } - - NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { - final _ret = _lib._objc_msgSend_63( - _id, - _lib._sel_sortedArrayUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSOrderedSet filteredOrderedSetUsingPredicate_(NSPredicate? p) { - final _ret = _lib._objc_msgSend_466(_id, - _lib._sel_filteredOrderedSetUsingPredicate_1, p?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSOrderedSet new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_new1); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); - } - - static NSOrderedSet alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_alloc1); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSOrderedSet1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSOrderedSet1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSOrderedSet1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSOrderedSet1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSOrderedSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSOrderedSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSOrderedSet1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSOrderedSet1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSOrderedSet1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSMutableSet extends NSSet { - NSMutableSet._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSMutableSet] that points to the same underlying object as [other]. - static NSMutableSet castFrom(T other) { - return NSMutableSet._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSMutableSet] that wraps the given raw object pointer. - static NSMutableSet castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMutableSet._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSMutableSet]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSMutableSet1); - } - - void addObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); - } - - void removeObject_(NSObject object) { - return _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); - } - - @override - NSMutableSet initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); - } - - @override - NSMutableSet init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableSet._(_ret, _lib, retain: true, release: true); - } - - NSMutableSet initWithCapacity_(int numItems) { - final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); - return NSMutableSet._(_ret, _lib, retain: true, release: true); - } - - void addObjectsFromArray_(NSArray? array) { - return _lib._objc_msgSend_441( - _id, _lib._sel_addObjectsFromArray_1, array?._id ?? ffi.nullptr); - } - - void intersectSet_(NSSet? otherSet) { - return _lib._objc_msgSend_471( - _id, _lib._sel_intersectSet_1, otherSet?._id ?? ffi.nullptr); - } - - void minusSet_(NSSet? otherSet) { - return _lib._objc_msgSend_471( - _id, _lib._sel_minusSet_1, otherSet?._id ?? ffi.nullptr); - } - - void removeAllObjects() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); - } - - void unionSet_(NSSet? otherSet) { - return _lib._objc_msgSend_471( - _id, _lib._sel_unionSet_1, otherSet?._id ?? ffi.nullptr); - } - - void setSet_(NSSet? otherSet) { - return _lib._objc_msgSend_471( - _id, _lib._sel_setSet_1, otherSet?._id ?? ffi.nullptr); - } - - static NSMutableSet setWithCapacity_( - HidListenerBindingsSwift _lib, int numItems) { - final _ret = _lib._objc_msgSend_60( - _lib._class_NSMutableSet1, _lib._sel_setWithCapacity_1, numItems); - return NSMutableSet._(_ret, _lib, retain: true, release: true); - } - - void filterUsingPredicate_(NSPredicate? predicate) { - return _lib._objc_msgSend_456( - _id, _lib._sel_filterUsingPredicate_1, predicate?._id ?? ffi.nullptr); - } - - static NSMutableSet set1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_set1); - return NSMutableSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableSet setWithObject_( - HidListenerBindingsSwift _lib, NSObject object) { - final _ret = _lib._objc_msgSend_16( - _lib._class_NSMutableSet1, _lib._sel_setWithObject_1, object._id); - return NSMutableSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableSet setWithObjects_count_(HidListenerBindingsSwift _lib, - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableSet1, - _lib._sel_setWithObjects_count_1, objects, cnt); - return NSMutableSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableSet setWithObjects_( - HidListenerBindingsSwift _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16( - _lib._class_NSMutableSet1, _lib._sel_setWithObjects_1, firstObj._id); - return NSMutableSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableSet setWithSet_(HidListenerBindingsSwift _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_382(_lib._class_NSMutableSet1, - _lib._sel_setWithSet_1, set?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableSet setWithArray_( - HidListenerBindingsSwift _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableSet1, - _lib._sel_setWithArray_1, array?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableSet new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_new1); - return NSMutableSet._(_ret, _lib, retain: false, release: true); - } - - static NSMutableSet alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_alloc1); - return NSMutableSet._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSMutableSet1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableSet1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableSet1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableSet1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSMutableSet1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSMutableSet1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableSet1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSKeyValueChange { - static const int NSKeyValueChangeSetting = 1; - static const int NSKeyValueChangeInsertion = 2; - static const int NSKeyValueChangeRemoval = 3; - static const int NSKeyValueChangeReplacement = 4; -} - -abstract class NSKeyValueSetMutationKind { - static const int NSKeyValueUnionSetMutation = 1; - static const int NSKeyValueMinusSetMutation = 2; - static const int NSKeyValueIntersectSetMutation = 3; - static const int NSKeyValueSetSetMutation = 4; -} - -class NSKeyedArchiver extends NSCoder { - NSKeyedArchiver._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSKeyedArchiver] that points to the same underlying object as [other]. - static NSKeyedArchiver castFrom(T other) { - return NSKeyedArchiver._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSKeyedArchiver] that wraps the given raw object pointer. - static NSKeyedArchiver castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSKeyedArchiver._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSKeyedArchiver]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSKeyedArchiver1); - } - - NSKeyedArchiver initRequiringSecureCoding_(bool requiresSecureCoding) { - final _ret = _lib._objc_msgSend_481( - _id, _lib._sel_initRequiringSecureCoding_1, requiresSecureCoding); - return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); - } - - static NSData archivedDataWithRootObject_requiringSecureCoding_error_( - HidListenerBindingsSwift _lib, - NSObject object, - bool requiresSecureCoding, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_482( - _lib._class_NSKeyedArchiver1, - _lib._sel_archivedDataWithRootObject_requiringSecureCoding_error_1, - object._id, - requiresSecureCoding, - error); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSKeyedArchiver init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); - } - - NSKeyedArchiver initForWritingWithMutableData_(NSMutableData? data) { - final _ret = _lib._objc_msgSend_487(_id, - _lib._sel_initForWritingWithMutableData_1, data?._id ?? ffi.nullptr); - return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); - } - - static NSData archivedDataWithRootObject_( - HidListenerBindingsSwift _lib, NSObject rootObject) { - final _ret = _lib._objc_msgSend_488(_lib._class_NSKeyedArchiver1, - _lib._sel_archivedDataWithRootObject_1, rootObject._id); - return NSData._(_ret, _lib, retain: true, release: true); - } - - static bool archiveRootObject_toFile_( - HidListenerBindingsSwift _lib, NSObject rootObject, NSString? path) { - return _lib._objc_msgSend_240( - _lib._class_NSKeyedArchiver1, - _lib._sel_archiveRootObject_toFile_1, - rootObject._id, - path?._id ?? ffi.nullptr); - } - - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); - } - - set delegate(NSObject? value) { - _lib._objc_msgSend_387( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); - } - - int get outputFormat { - return _lib._objc_msgSend_489(_id, _lib._sel_outputFormat1); - } - - set outputFormat(int value) { - _lib._objc_msgSend_490(_id, _lib._sel_setOutputFormat_1, value); - } - - NSData? get encodedData { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_encodedData1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); - } - - void finishEncoding() { - return _lib._objc_msgSend_1(_id, _lib._sel_finishEncoding1); - } - - static void setClassName_forClass_( - HidListenerBindingsSwift _lib, NSString? codedName, NSObject cls) { - return _lib._objc_msgSend_491( - _lib._class_NSKeyedArchiver1, - _lib._sel_setClassName_forClass_1, - codedName?._id ?? ffi.nullptr, - cls._id); - } - - static NSString classNameForClass_( - HidListenerBindingsSwift _lib, NSObject cls) { - final _ret = _lib._objc_msgSend_65( - _lib._class_NSKeyedArchiver1, _lib._sel_classNameForClass_1, cls._id); - return NSString._(_ret, _lib, retain: true, release: true); - } - - @override - void encodeObject_forKey_(NSObject object, NSString? key) { - return _lib._objc_msgSend_126(_id, _lib._sel_encodeObject_forKey_1, - object._id, key?._id ?? ffi.nullptr); - } - - @override - void encodeConditionalObject_forKey_(NSObject object, NSString? key) { - return _lib._objc_msgSend_126( - _id, - _lib._sel_encodeConditionalObject_forKey_1, - object._id, - key?._id ?? ffi.nullptr); - } - - @override - void encodeBool_forKey_(bool value, NSString? key) { - return _lib._objc_msgSend_272( - _id, _lib._sel_encodeBool_forKey_1, value, key?._id ?? ffi.nullptr); - } - - @override - void encodeInt_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_273( - _id, _lib._sel_encodeInt_forKey_1, value, key?._id ?? ffi.nullptr); - } - - @override - void encodeInt32_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_274( - _id, _lib._sel_encodeInt32_forKey_1, value, key?._id ?? ffi.nullptr); - } - - @override - void encodeInt64_forKey_(int value, NSString? key) { - return _lib._objc_msgSend_275( - _id, _lib._sel_encodeInt64_forKey_1, value, key?._id ?? ffi.nullptr); - } - - @override - void encodeFloat_forKey_(double value, NSString? key) { - return _lib._objc_msgSend_276( - _id, _lib._sel_encodeFloat_forKey_1, value, key?._id ?? ffi.nullptr); - } - - @override - void encodeDouble_forKey_(double value, NSString? key) { - return _lib._objc_msgSend_277( - _id, _lib._sel_encodeDouble_forKey_1, value, key?._id ?? ffi.nullptr); - } - - @override - void encodeBytes_length_forKey_( - ffi.Pointer bytes, int length, NSString? key) { - return _lib._objc_msgSend_278(_id, _lib._sel_encodeBytes_length_forKey_1, - bytes, length, key?._id ?? ffi.nullptr); - } - - @override - bool get requiresSecureCoding { - return _lib._objc_msgSend_12(_id, _lib._sel_requiresSecureCoding1); - } - - set requiresSecureCoding(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setRequiresSecureCoding_1, value); - } - - static NSKeyedArchiver new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSKeyedArchiver1, _lib._sel_new1); - return NSKeyedArchiver._(_ret, _lib, retain: false, release: true); - } - - static NSKeyedArchiver alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSKeyedArchiver1, _lib._sel_alloc1); - return NSKeyedArchiver._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSKeyedArchiver1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSKeyedArchiver1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSKeyedArchiver1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSKeyedArchiver1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSKeyedArchiver1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSKeyedArchiver1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSKeyedArchiver1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSKeyedArchiver1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSKeyedArchiver1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSMutableData extends NSData { - NSMutableData._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSMutableData] that points to the same underlying object as [other]. - static NSMutableData castFrom(T other) { - return NSMutableData._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSMutableData] that wraps the given raw object pointer. - static NSMutableData castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMutableData._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSMutableData]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSMutableData1); - } - - ffi.Pointer get mutableBytes { - return _lib._objc_msgSend_19(_id, _lib._sel_mutableBytes1); - } - - @override - int get length { - return _lib._objc_msgSend_10(_id, _lib._sel_length1); - } - - set length(int value) { - _lib._objc_msgSend_483(_id, _lib._sel_setLength_1, value); - } - - void appendBytes_length_(ffi.Pointer bytes, int length) { - return _lib._objc_msgSend_21( - _id, _lib._sel_appendBytes_length_1, bytes, length); - } - - void appendData_(NSData? other) { - return _lib._objc_msgSend_263( - _id, _lib._sel_appendData_1, other?._id ?? ffi.nullptr); - } - - void increaseLengthBy_(int extraLength) { - return _lib._objc_msgSend_439( - _id, _lib._sel_increaseLengthBy_1, extraLength); - } - - void replaceBytesInRange_withBytes_( - _NSRange range, ffi.Pointer bytes) { - return _lib._objc_msgSend_484( - _id, _lib._sel_replaceBytesInRange_withBytes_1, range, bytes); - } - - void resetBytesInRange_(_NSRange range) { - return _lib._objc_msgSend_445(_id, _lib._sel_resetBytesInRange_1, range); - } - - void setData_(NSData? data) { - return _lib._objc_msgSend_263( - _id, _lib._sel_setData_1, data?._id ?? ffi.nullptr); - } - - void replaceBytesInRange_withBytes_length_(_NSRange range, - ffi.Pointer replacementBytes, int replacementLength) { - return _lib._objc_msgSend_485( - _id, - _lib._sel_replaceBytesInRange_withBytes_length_1, - range, - replacementBytes, - replacementLength); - } - - static NSMutableData dataWithCapacity_( - HidListenerBindingsSwift _lib, int aNumItems) { - final _ret = _lib._objc_msgSend_60( - _lib._class_NSMutableData1, _lib._sel_dataWithCapacity_1, aNumItems); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } - - static NSMutableData dataWithLength_( - HidListenerBindingsSwift _lib, int length) { - final _ret = _lib._objc_msgSend_60( - _lib._class_NSMutableData1, _lib._sel_dataWithLength_1, length); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } - - NSMutableData initWithCapacity_(int capacity) { - final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, capacity); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } - - NSMutableData initWithLength_(int length) { - final _ret = _lib._objc_msgSend_60(_id, _lib._sel_initWithLength_1, length); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } - - bool decompressUsingAlgorithm_error_( - int algorithm, ffi.Pointer> error) { - return _lib._objc_msgSend_486( - _id, _lib._sel_decompressUsingAlgorithm_error_1, algorithm, error); - } - - bool compressUsingAlgorithm_error_( - int algorithm, ffi.Pointer> error) { - return _lib._objc_msgSend_486( - _id, _lib._sel_compressUsingAlgorithm_error_1, algorithm, error); - } - - static NSMutableData data(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_data1); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } - - static NSMutableData dataWithBytes_length_( - HidListenerBindingsSwift _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_252(_lib._class_NSMutableData1, - _lib._sel_dataWithBytes_length_1, bytes, length); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } - - static NSMutableData dataWithBytesNoCopy_length_( - HidListenerBindingsSwift _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_252(_lib._class_NSMutableData1, - _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); - return NSMutableData._(_ret, _lib, retain: false, release: true); - } - - static NSMutableData dataWithBytesNoCopy_length_freeWhenDone_( - HidListenerBindingsSwift _lib, - ffi.Pointer bytes, - int length, - bool b) { - final _ret = _lib._objc_msgSend_253(_lib._class_NSMutableData1, - _lib._sel_dataWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); - return NSMutableData._(_ret, _lib, retain: false, release: true); - } - - static NSMutableData dataWithContentsOfFile_options_error_( - HidListenerBindingsSwift _lib, - NSString? path, - int readOptionsMask, - ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_254( - _lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfFile_options_error_1, - path?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } - - static NSMutableData dataWithContentsOfURL_options_error_( - HidListenerBindingsSwift _lib, - NSURL? url, - int readOptionsMask, - ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_255( - _lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } - - static NSMutableData dataWithContentsOfFile_( - HidListenerBindingsSwift _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } - - static NSMutableData dataWithContentsOfURL_( - HidListenerBindingsSwift _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } - - static NSMutableData dataWithData_( - HidListenerBindingsSwift _lib, NSData? data) { - final _ret = _lib._objc_msgSend_257(_lib._class_NSMutableData1, - _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); - return NSMutableData._(_ret, _lib, retain: true, release: true); - } - - static NSObject dataWithContentsOfMappedFile_( - HidListenerBindingsSwift _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSMutableData new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_new1); - return NSMutableData._(_ret, _lib, retain: false, release: true); - } - - static NSMutableData alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_alloc1); - return NSMutableData._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSMutableData1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableData1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableData1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableData1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableData1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableData1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSMutableData1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSMutableData1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableData1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSPropertyListFormat { - static const int NSPropertyListOpenStepFormat = 1; - static const int NSPropertyListXMLFormat_v1_0 = 100; - static const int NSPropertyListBinaryFormat_v1_0 = 200; -} - -class NSThread extends NSObject { - NSThread._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSThread] that points to the same underlying object as [other]. - static NSThread castFrom(T other) { - return NSThread._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSThread] that wraps the given raw object pointer. - static NSThread castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSThread._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSThread]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSThread1); - } - - static NSThread? getCurrentThread(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_496(_lib._class_NSThread1, _lib._sel_currentThread1); - return _ret.address == 0 - ? null - : NSThread._(_ret, _lib, retain: true, release: true); - } - - static void detachNewThreadWithBlock_( - HidListenerBindingsSwift _lib, ObjCBlock21 block) { - return _lib._objc_msgSend_497( - _lib._class_NSThread1, _lib._sel_detachNewThreadWithBlock_1, block._id); - } - - static void detachNewThreadSelector_toTarget_withObject_( - HidListenerBindingsSwift _lib, - ffi.Pointer selector, - NSObject target, - NSObject argument) { - return _lib._objc_msgSend_498( - _lib._class_NSThread1, - _lib._sel_detachNewThreadSelector_toTarget_withObject_1, - selector, - target._id, - argument._id); - } - - static bool isMultiThreaded(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSThread1, _lib._sel_isMultiThreaded1); - } - - NSMutableDictionary? get threadDictionary { - final _ret = _lib._objc_msgSend_503(_id, _lib._sel_threadDictionary1); - return _ret.address == 0 - ? null - : NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - static void sleepUntilDate_(HidListenerBindingsSwift _lib, NSDate? date) { - return _lib._objc_msgSend_504(_lib._class_NSThread1, - _lib._sel_sleepUntilDate_1, date?._id ?? ffi.nullptr); - } - - static void sleepForTimeInterval_(HidListenerBindingsSwift _lib, double ti) { - return _lib._objc_msgSend_505( - _lib._class_NSThread1, _lib._sel_sleepForTimeInterval_1, ti); - } - - static void exit(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_1(_lib._class_NSThread1, _lib._sel_exit1); - } - - double get threadPriority { - return _lib._objc_msgSend_155(_id, _lib._sel_threadPriority1); - } - - set threadPriority(double value) { - _lib._objc_msgSend_506(_id, _lib._sel_setThreadPriority_1, value); - } - - int get qualityOfService { - return _lib._objc_msgSend_507(_id, _lib._sel_qualityOfService1); - } - - set qualityOfService(int value) { - _lib._objc_msgSend_508(_id, _lib._sel_setQualityOfService_1, value); - } - - static NSArray? getCallStackReturnAddresses(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSThread1, _lib._sel_callStackReturnAddresses1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSArray? getCallStackSymbols(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSThread1, _lib._sel_callStackSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set name(NSString? value) { - _lib._objc_msgSend_509(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); - } - - int get stackSize { - return _lib._objc_msgSend_10(_id, _lib._sel_stackSize1); - } - - set stackSize(int value) { - _lib._objc_msgSend_483(_id, _lib._sel_setStackSize_1, value); - } - - bool get isMainThread { - return _lib._objc_msgSend_12(_id, _lib._sel_isMainThread1); - } - - static NSThread? getMainThread(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_496(_lib._class_NSThread1, _lib._sel_mainThread1); - return _ret.address == 0 - ? null - : NSThread._(_ret, _lib, retain: true, release: true); - } - - @override - NSThread init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSThread._(_ret, _lib, retain: true, release: true); - } - - NSThread initWithTarget_selector_object_( - NSObject target, ffi.Pointer selector, NSObject argument) { - final _ret = _lib._objc_msgSend_510( - _id, - _lib._sel_initWithTarget_selector_object_1, - target._id, - selector, - argument._id); - return NSThread._(_ret, _lib, retain: true, release: true); - } - - NSThread initWithBlock_(ObjCBlock21 block) { - final _ret = - _lib._objc_msgSend_511(_id, _lib._sel_initWithBlock_1, block._id); - return NSThread._(_ret, _lib, retain: true, release: true); - } - - bool get executing { - return _lib._objc_msgSend_12(_id, _lib._sel_isExecuting1); - } - - bool get finished { - return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); - } - - bool get cancelled { - return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); - } - - void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); - } - - void start() { - return _lib._objc_msgSend_1(_id, _lib._sel_start1); - } - - void main() { - return _lib._objc_msgSend_1(_id, _lib._sel_main1); - } - - static NSThread new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSThread1, _lib._sel_new1); - return NSThread._(_ret, _lib, retain: false, release: true); - } - - static NSThread alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSThread1, _lib._sel_alloc1); - return NSThread._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSThread1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSThread1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSThread1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSThread1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSThread1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSThread1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSThread1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSThread1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSThread1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -void _ObjCBlock21_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block) { - return block.ref.target - .cast>() - .asFunction()(); -} - -final _ObjCBlock21_closureRegistry = {}; -int _ObjCBlock21_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock21_registerClosure(Function fn) { - final id = ++_ObjCBlock21_closureRegistryIndex; - _ObjCBlock21_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock21_closureTrampoline(ffi.Pointer<_ObjCBlock> block) { - return _ObjCBlock21_closureRegistry[block.ref.target.address]!(); -} - -class ObjCBlock21 extends _ObjCBlockBase { - ObjCBlock21._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock21.fromFunctionPointer(HidListenerBindingsSwift lib, - ffi.Pointer> ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( - _ObjCBlock21_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock21.fromFunction(HidListenerBindingsSwift lib, void Function() fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( - _ObjCBlock21_closureTrampoline) - .cast(), - _ObjCBlock21_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call() { - return _id.ref.invoke - .cast< - ffi - .NativeFunction block)>>() - .asFunction block)>()(_id); - } -} - -class NSMutableDictionary extends NSDictionary { - NSMutableDictionary._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSMutableDictionary] that points to the same underlying object as [other]. - static NSMutableDictionary castFrom(T other) { - return NSMutableDictionary._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSMutableDictionary] that wraps the given raw object pointer. - static NSMutableDictionary castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMutableDictionary._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSMutableDictionary]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableDictionary1); - } - - void removeObjectForKey_(NSObject aKey) { - return _lib._objc_msgSend_15(_id, _lib._sel_removeObjectForKey_1, aKey._id); - } - - void setObject_forKey_(NSObject anObject, NSObject? aKey) { - return _lib._objc_msgSend_499(_id, _lib._sel_setObject_forKey_1, - anObject._id, aKey?._id ?? ffi.nullptr); - } - - @override - NSMutableDictionary init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - NSMutableDictionary initWithCapacity_(int numItems) { - final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - @override - NSMutableDictionary initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - void addEntriesFromDictionary_(NSDictionary? otherDictionary) { - return _lib._objc_msgSend_476(_id, _lib._sel_addEntriesFromDictionary_1, - otherDictionary?._id ?? ffi.nullptr); - } - - void removeAllObjects() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); - } - - void removeObjectsForKeys_(NSArray? keyArray) { - return _lib._objc_msgSend_441( - _id, _lib._sel_removeObjectsForKeys_1, keyArray?._id ?? ffi.nullptr); - } - - void setDictionary_(NSDictionary? otherDictionary) { - return _lib._objc_msgSend_476( - _id, _lib._sel_setDictionary_1, otherDictionary?._id ?? ffi.nullptr); - } - - void setObject_forKeyedSubscript_(NSObject obj, NSObject? key) { - return _lib._objc_msgSend_499(_id, _lib._sel_setObject_forKeyedSubscript_1, - obj._id, key?._id ?? ffi.nullptr); - } - - static NSMutableDictionary dictionaryWithCapacity_( - HidListenerBindingsSwift _lib, int numItems) { - final _ret = _lib._objc_msgSend_60(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithCapacity_1, numItems); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSMutableDictionary dictionaryWithContentsOfFile_( - HidListenerBindingsSwift _lib, NSString? path) { - final _ret = _lib._objc_msgSend_500(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSMutableDictionary dictionaryWithContentsOfURL_( - HidListenerBindingsSwift _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_501(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - NSMutableDictionary initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_500( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - NSMutableDictionary initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_501( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSMutableDictionary dictionaryWithSharedKeySet_( - HidListenerBindingsSwift _lib, NSObject keyset) { - final _ret = _lib._objc_msgSend_502(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithSharedKeySet_1, keyset._id); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - void setValue_forKey_(NSObject value, NSString? key) { - return _lib._objc_msgSend_126( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); - } - - static NSMutableDictionary dictionary(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableDictionary1, _lib._sel_dictionary1); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSMutableDictionary dictionaryWithObject_forKey_( - HidListenerBindingsSwift _lib, NSObject object, NSObject? key) { - final _ret = _lib._objc_msgSend_148( - _lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObject_forKey_1, - object._id, - key?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSMutableDictionary dictionaryWithObjects_forKeys_count_( - HidListenerBindingsSwift _lib, - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt) { - final _ret = _lib._objc_msgSend_137(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSMutableDictionary dictionaryWithObjectsAndKeys_( - HidListenerBindingsSwift _lib, NSObject firstObject) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObjectsAndKeys_1, firstObject._id); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSMutableDictionary dictionaryWithDictionary_( - HidListenerBindingsSwift _lib, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_149(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSMutableDictionary dictionaryWithObjects_forKeys_( - HidListenerBindingsSwift _lib, NSArray? objects, NSArray? keys) { - final _ret = _lib._objc_msgSend_150( - _lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSDictionary dictionaryWithContentsOfURL_error_( - HidListenerBindingsSwift _lib, - NSURL? url, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_152( - _lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSObject sharedKeySetForKeys_( - HidListenerBindingsSwift _lib, NSArray? keys) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableDictionary1, - _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSMutableDictionary new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableDictionary1, _lib._sel_new1); - return NSMutableDictionary._(_ret, _lib, retain: false, release: true); - } - - static NSMutableDictionary alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableDictionary1, _lib._sel_alloc1); - return NSMutableDictionary._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSMutableDictionary1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableDictionary1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableDictionary1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableDictionary1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableDictionary1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableDictionary1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSMutableDictionary1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableDictionary1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableDictionary1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSQualityOfService { - static const int NSQualityOfServiceUserInteractive = 33; - static const int NSQualityOfServiceUserInitiated = 25; - static const int NSQualityOfServiceUtility = 17; - static const int NSQualityOfServiceBackground = 9; - static const int NSQualityOfServiceDefault = -1; -} - -class NSArchiver extends NSCoder { - NSArchiver._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSArchiver] that points to the same underlying object as [other]. - static NSArchiver castFrom(T other) { - return NSArchiver._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSArchiver] that wraps the given raw object pointer. - static NSArchiver castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSArchiver._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSArchiver]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSArchiver1); - } - - NSArchiver initForWritingWithMutableData_(NSMutableData? mdata) { - final _ret = _lib._objc_msgSend_487(_id, - _lib._sel_initForWritingWithMutableData_1, mdata?._id ?? ffi.nullptr); - return NSArchiver._(_ret, _lib, retain: true, release: true); - } - - NSMutableData? get archiverData { - final _ret = _lib._objc_msgSend_514(_id, _lib._sel_archiverData1); - return _ret.address == 0 - ? null - : NSMutableData._(_ret, _lib, retain: true, release: true); - } - - @override - void encodeRootObject_(NSObject rootObject) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodeRootObject_1, rootObject._id); - } - - @override - void encodeConditionalObject_(NSObject object) { - return _lib._objc_msgSend_15( - _id, _lib._sel_encodeConditionalObject_1, object._id); - } - - static NSData archivedDataWithRootObject_( - HidListenerBindingsSwift _lib, NSObject rootObject) { - final _ret = _lib._objc_msgSend_488(_lib._class_NSArchiver1, - _lib._sel_archivedDataWithRootObject_1, rootObject._id); - return NSData._(_ret, _lib, retain: true, release: true); - } - - static bool archiveRootObject_toFile_( - HidListenerBindingsSwift _lib, NSObject rootObject, NSString? path) { - return _lib._objc_msgSend_240( - _lib._class_NSArchiver1, - _lib._sel_archiveRootObject_toFile_1, - rootObject._id, - path?._id ?? ffi.nullptr); - } - - void encodeClassName_intoClassName_( - NSString? trueName, NSString? inArchiveName) { - return _lib._objc_msgSend_515( - _id, - _lib._sel_encodeClassName_intoClassName_1, - trueName?._id ?? ffi.nullptr, - inArchiveName?._id ?? ffi.nullptr); - } - - NSString classNameEncodedForTrueClassName_(NSString? trueName) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_classNameEncodedForTrueClassName_1, - trueName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - void replaceObject_withObject_(NSObject object, NSObject newObject) { - return _lib._objc_msgSend_499( - _id, _lib._sel_replaceObject_withObject_1, object._id, newObject._id); - } - - static NSArchiver new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSArchiver1, _lib._sel_new1); - return NSArchiver._(_ret, _lib, retain: false, release: true); - } - - static NSArchiver alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSArchiver1, _lib._sel_alloc1); - return NSArchiver._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSArchiver1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSArchiver1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSArchiver1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSArchiver1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSArchiver1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSArchiver1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSArchiver1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSArchiver1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSArchiver1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSPortCoder extends NSCoder { - NSPortCoder._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSPortCoder] that points to the same underlying object as [other]. - static NSPortCoder castFrom(T other) { - return NSPortCoder._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSPortCoder] that wraps the given raw object pointer. - static NSPortCoder castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSPortCoder._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSPortCoder]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSPortCoder1); - } - - bool isBycopy() { - return _lib._objc_msgSend_12(_id, _lib._sel_isBycopy1); - } - - bool isByref() { - return _lib._objc_msgSend_12(_id, _lib._sel_isByref1); - } - - void encodePortObject_(NSPort? aport) { - return _lib._objc_msgSend_552( - _id, _lib._sel_encodePortObject_1, aport?._id ?? ffi.nullptr); - } - - NSPort decodePortObject() { - final _ret = _lib._objc_msgSend_517(_id, _lib._sel_decodePortObject1); - return NSPort._(_ret, _lib, retain: true, release: true); - } - - NSConnection connection() { - final _ret = _lib._objc_msgSend_536(_id, _lib._sel_connection1); - return NSConnection._(_ret, _lib, retain: true, release: true); - } - - static NSObject portCoderWithReceivePort_sendPort_components_( - HidListenerBindingsSwift _lib, - NSPort? rcvPort, - NSPort? sndPort, - NSArray? comps) { - final _ret = _lib._objc_msgSend_553( - _lib._class_NSPortCoder1, - _lib._sel_portCoderWithReceivePort_sendPort_components_1, - rcvPort?._id ?? ffi.nullptr, - sndPort?._id ?? ffi.nullptr, - comps?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject initWithReceivePort_sendPort_components_( - NSPort? rcvPort, NSPort? sndPort, NSArray? comps) { - final _ret = _lib._objc_msgSend_553( - _id, - _lib._sel_initWithReceivePort_sendPort_components_1, - rcvPort?._id ?? ffi.nullptr, - sndPort?._id ?? ffi.nullptr, - comps?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void dispatch() { - return _lib._objc_msgSend_1(_id, _lib._sel_dispatch1); - } - - static NSPortCoder new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSPortCoder1, _lib._sel_new1); - return NSPortCoder._(_ret, _lib, retain: false, release: true); - } - - static NSPortCoder alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPortCoder1, _lib._sel_alloc1); - return NSPortCoder._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSPortCoder1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSPortCoder1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSPortCoder1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSPortCoder1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSPortCoder1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSPortCoder1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSPortCoder1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSPortCoder1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSPortCoder1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSPort extends NSObject { - NSPort._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSPort] that points to the same underlying object as [other]. - static NSPort castFrom(T other) { - return NSPort._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSPort] that wraps the given raw object pointer. - static NSPort castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSPort._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSPort]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSPort1); - } - - static NSPort port(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_517(_lib._class_NSPort1, _lib._sel_port1); - return NSPort._(_ret, _lib, retain: true, release: true); - } - - void invalidate() { - return _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); - } - - bool get valid { - return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); - } - - void setDelegate_(NSObject? anObject) { - return _lib._objc_msgSend_15( - _id, _lib._sel_setDelegate_1, anObject?._id ?? ffi.nullptr); - } - - NSObject delegate() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void scheduleInRunLoop_forMode_(NSRunLoop? runLoop, NSString mode) { - return _lib._objc_msgSend_533(_id, _lib._sel_scheduleInRunLoop_forMode_1, - runLoop?._id ?? ffi.nullptr, mode._id); - } - - void removeFromRunLoop_forMode_(NSRunLoop? runLoop, NSString mode) { - return _lib._objc_msgSend_533(_id, _lib._sel_removeFromRunLoop_forMode_1, - runLoop?._id ?? ffi.nullptr, mode._id); - } - - int get reservedSpaceLength { - return _lib._objc_msgSend_10(_id, _lib._sel_reservedSpaceLength1); - } - - bool sendBeforeDate_components_from_reserved_( - NSDate? limitDate, - NSMutableArray? components, - NSPort? receivePort, - int headerSpaceReserved) { - return _lib._objc_msgSend_534( - _id, - _lib._sel_sendBeforeDate_components_from_reserved_1, - limitDate?._id ?? ffi.nullptr, - components?._id ?? ffi.nullptr, - receivePort?._id ?? ffi.nullptr, - headerSpaceReserved); - } - - bool sendBeforeDate_msgid_components_from_reserved_( - NSDate? limitDate, - int msgID, - NSMutableArray? components, - NSPort? receivePort, - int headerSpaceReserved) { - return _lib._objc_msgSend_535( - _id, - _lib._sel_sendBeforeDate_msgid_components_from_reserved_1, - limitDate?._id ?? ffi.nullptr, - msgID, - components?._id ?? ffi.nullptr, - receivePort?._id ?? ffi.nullptr, - headerSpaceReserved); - } - - void addConnection_toRunLoop_forMode_( - NSConnection? conn, NSRunLoop? runLoop, NSString mode) { - return _lib._objc_msgSend_551( - _id, - _lib._sel_addConnection_toRunLoop_forMode_1, - conn?._id ?? ffi.nullptr, - runLoop?._id ?? ffi.nullptr, - mode._id); - } - - void removeConnection_fromRunLoop_forMode_( - NSConnection? conn, NSRunLoop? runLoop, NSString mode) { - return _lib._objc_msgSend_551( - _id, - _lib._sel_removeConnection_fromRunLoop_forMode_1, - conn?._id ?? ffi.nullptr, - runLoop?._id ?? ffi.nullptr, - mode._id); - } - - static NSPort new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSPort1, _lib._sel_new1); - return NSPort._(_ret, _lib, retain: false, release: true); - } - - static NSPort alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSPort1, _lib._sel_alloc1); - return NSPort._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSPort1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSPort1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSPort1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSPort1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSPort1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSPort1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSPort1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSPort1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSPort1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSRunLoop extends NSObject { - NSRunLoop._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSRunLoop] that points to the same underlying object as [other]. - static NSRunLoop castFrom(T other) { - return NSRunLoop._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSRunLoop] that wraps the given raw object pointer. - static NSRunLoop castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSRunLoop._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSRunLoop]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSRunLoop1); - } - - static NSRunLoop? getCurrentRunLoop(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_518( - _lib._class_NSRunLoop1, _lib._sel_currentRunLoop1); - return _ret.address == 0 - ? null - : NSRunLoop._(_ret, _lib, retain: true, release: true); - } - - static NSRunLoop? getMainRunLoop(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_518(_lib._class_NSRunLoop1, _lib._sel_mainRunLoop1); - return _ret.address == 0 - ? null - : NSRunLoop._(_ret, _lib, retain: true, release: true); - } - - NSString get currentMode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currentMode1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - ffi.Pointer<__CFRunLoop> getCFRunLoop() { - return _lib._objc_msgSend_519(_id, _lib._sel_getCFRunLoop1); - } - - void addTimer_forMode_(NSTimer? timer, NSString mode) { - return _lib._objc_msgSend_526( - _id, _lib._sel_addTimer_forMode_1, timer?._id ?? ffi.nullptr, mode._id); - } - - void addPort_forMode_(NSPort? aPort, NSString mode) { - return _lib._objc_msgSend_527( - _id, _lib._sel_addPort_forMode_1, aPort?._id ?? ffi.nullptr, mode._id); - } - - void removePort_forMode_(NSPort? aPort, NSString mode) { - return _lib._objc_msgSend_527(_id, _lib._sel_removePort_forMode_1, - aPort?._id ?? ffi.nullptr, mode._id); - } - - NSDate limitDateForMode_(NSString mode) { - final _ret = - _lib._objc_msgSend_528(_id, _lib._sel_limitDateForMode_1, mode._id); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - void acceptInputForMode_beforeDate_(NSString mode, NSDate? limitDate) { - return _lib._objc_msgSend_529( - _id, - _lib._sel_acceptInputForMode_beforeDate_1, - mode._id, - limitDate?._id ?? ffi.nullptr); - } - - void run() { - return _lib._objc_msgSend_1(_id, _lib._sel_run1); - } - - void runUntilDate_(NSDate? limitDate) { - return _lib._objc_msgSend_504( - _id, _lib._sel_runUntilDate_1, limitDate?._id ?? ffi.nullptr); - } - - bool runMode_beforeDate_(NSString mode, NSDate? limitDate) { - return _lib._objc_msgSend_530(_id, _lib._sel_runMode_beforeDate_1, mode._id, - limitDate?._id ?? ffi.nullptr); - } - - void configureAsServer() { - return _lib._objc_msgSend_1(_id, _lib._sel_configureAsServer1); - } - - void performInModes_block_(NSArray? modes, ObjCBlock21 block) { - return _lib._objc_msgSend_531(_id, _lib._sel_performInModes_block_1, - modes?._id ?? ffi.nullptr, block._id); - } - - void performBlock_(ObjCBlock21 block) { - return _lib._objc_msgSend_497(_id, _lib._sel_performBlock_1, block._id); - } - - void performSelector_target_argument_order_modes_( - ffi.Pointer aSelector, - NSObject target, - NSObject arg, - int order, - NSArray? modes) { - return _lib._objc_msgSend_532( - _id, - _lib._sel_performSelector_target_argument_order_modes_1, - aSelector, - target._id, - arg._id, - order, - modes?._id ?? ffi.nullptr); - } - - void cancelPerformSelector_target_argument_( - ffi.Pointer aSelector, NSObject target, NSObject arg) { - return _lib._objc_msgSend_498( - _id, - _lib._sel_cancelPerformSelector_target_argument_1, - aSelector, - target._id, - arg._id); - } - - void cancelPerformSelectorsWithTarget_(NSObject target) { - return _lib._objc_msgSend_15( - _id, _lib._sel_cancelPerformSelectorsWithTarget_1, target._id); - } - - static NSRunLoop new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSRunLoop1, _lib._sel_new1); - return NSRunLoop._(_ret, _lib, retain: false, release: true); - } - - static NSRunLoop alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSRunLoop1, _lib._sel_alloc1); - return NSRunLoop._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSRunLoop1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSRunLoop1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSRunLoop1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSRunLoop1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSRunLoop1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSRunLoop1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSRunLoop1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSRunLoop1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSRunLoop1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -final class __CFRunLoop extends ffi.Opaque {} - -class NSTimer extends NSObject { - NSTimer._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSTimer] that points to the same underlying object as [other]. - static NSTimer castFrom(T other) { - return NSTimer._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSTimer] that wraps the given raw object pointer. - static NSTimer castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSTimer._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSTimer]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSTimer1); - } - - static NSTimer timerWithTimeInterval_invocation_repeats_( - HidListenerBindingsSwift _lib, - double ti, - NSInvocation? invocation, - bool yesOrNo) { - final _ret = _lib._objc_msgSend_520( - _lib._class_NSTimer1, - _lib._sel_timerWithTimeInterval_invocation_repeats_1, - ti, - invocation?._id ?? ffi.nullptr, - yesOrNo); - return NSTimer._(_ret, _lib, retain: true, release: true); - } - - static NSTimer scheduledTimerWithTimeInterval_invocation_repeats_( - HidListenerBindingsSwift _lib, - double ti, - NSInvocation? invocation, - bool yesOrNo) { - final _ret = _lib._objc_msgSend_520( - _lib._class_NSTimer1, - _lib._sel_scheduledTimerWithTimeInterval_invocation_repeats_1, - ti, - invocation?._id ?? ffi.nullptr, - yesOrNo); - return NSTimer._(_ret, _lib, retain: true, release: true); - } - - static NSTimer timerWithTimeInterval_target_selector_userInfo_repeats_( - HidListenerBindingsSwift _lib, - double ti, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject userInfo, - bool yesOrNo) { - final _ret = _lib._objc_msgSend_521( - _lib._class_NSTimer1, - _lib._sel_timerWithTimeInterval_target_selector_userInfo_repeats_1, - ti, - aTarget._id, - aSelector, - userInfo._id, - yesOrNo); - return NSTimer._(_ret, _lib, retain: true, release: true); - } - - static NSTimer - scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_( - HidListenerBindingsSwift _lib, - double ti, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject userInfo, - bool yesOrNo) { - final _ret = _lib._objc_msgSend_521( - _lib._class_NSTimer1, - _lib._sel_scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_1, - ti, - aTarget._id, - aSelector, - userInfo._id, - yesOrNo); - return NSTimer._(_ret, _lib, retain: true, release: true); - } - - static NSTimer timerWithTimeInterval_repeats_block_( - HidListenerBindingsSwift _lib, - double interval, - bool repeats, - ObjCBlock22 block) { - final _ret = _lib._objc_msgSend_522( - _lib._class_NSTimer1, - _lib._sel_timerWithTimeInterval_repeats_block_1, - interval, - repeats, - block._id); - return NSTimer._(_ret, _lib, retain: true, release: true); - } - - static NSTimer scheduledTimerWithTimeInterval_repeats_block_( - HidListenerBindingsSwift _lib, - double interval, - bool repeats, - ObjCBlock22 block) { - final _ret = _lib._objc_msgSend_522( - _lib._class_NSTimer1, - _lib._sel_scheduledTimerWithTimeInterval_repeats_block_1, - interval, - repeats, - block._id); - return NSTimer._(_ret, _lib, retain: true, release: true); - } - - NSTimer initWithFireDate_interval_repeats_block_( - NSDate? date, double interval, bool repeats, ObjCBlock22 block) { - final _ret = _lib._objc_msgSend_523( - _id, - _lib._sel_initWithFireDate_interval_repeats_block_1, - date?._id ?? ffi.nullptr, - interval, - repeats, - block._id); - return NSTimer._(_ret, _lib, retain: true, release: true); - } - - NSTimer initWithFireDate_interval_target_selector_userInfo_repeats_( - NSDate? date, - double ti, - NSObject t, - ffi.Pointer s, - NSObject ui, - bool rep) { - final _ret = _lib._objc_msgSend_524( - _id, - _lib._sel_initWithFireDate_interval_target_selector_userInfo_repeats_1, - date?._id ?? ffi.nullptr, - ti, - t._id, - s, - ui._id, - rep); - return NSTimer._(_ret, _lib, retain: true, release: true); - } - - void fire() { - return _lib._objc_msgSend_1(_id, _lib._sel_fire1); - } - - NSDate? get fireDate { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_fireDate1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } - - set fireDate(NSDate? value) { - _lib._objc_msgSend_525( - _id, _lib._sel_setFireDate_1, value?._id ?? ffi.nullptr); - } - - double get timeInterval { - return _lib._objc_msgSend_155(_id, _lib._sel_timeInterval1); - } - - double get tolerance { - return _lib._objc_msgSend_155(_id, _lib._sel_tolerance1); - } - - set tolerance(double value) { - _lib._objc_msgSend_506(_id, _lib._sel_setTolerance_1, value); - } - - void invalidate() { - return _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); - } - - bool get valid { - return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); - } - - NSObject get userInfo { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_userInfo1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSTimer new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSTimer1, _lib._sel_new1); - return NSTimer._(_ret, _lib, retain: false, release: true); - } - - static NSTimer alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSTimer1, _lib._sel_alloc1); - return NSTimer._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSTimer1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSTimer1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSTimer1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSTimer1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSTimer1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSTimer1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSTimer1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSTimer1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSTimer1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -void _ObjCBlock22_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock22_closureRegistry = {}; -int _ObjCBlock22_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock22_registerClosure(Function fn) { - final id = ++_ObjCBlock22_closureRegistryIndex; - _ObjCBlock22_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock22_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock22_closureRegistry[block.ref.target.address]!(arg0); -} - -class ObjCBlock22 extends _ObjCBlockBase { - ObjCBlock22._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock22.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock22_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock22.fromFunction(HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock22_closureTrampoline) - .cast(), - _ObjCBlock22_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } -} - -class NSConnection extends NSObject { - NSConnection._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSConnection] that points to the same underlying object as [other]. - static NSConnection castFrom(T other) { - return NSConnection._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSConnection] that wraps the given raw object pointer. - static NSConnection castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSConnection._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSConnection]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSConnection1); - } - - NSDictionary? get statistics { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_statistics1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSArray allConnections(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSConnection1, _lib._sel_allConnections1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSConnection defaultConnection(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_536( - _lib._class_NSConnection1, _lib._sel_defaultConnection1); - return NSConnection._(_ret, _lib, retain: true, release: true); - } - - static NSConnection connectionWithRegisteredName_host_( - HidListenerBindingsSwift _lib, NSString? name, NSString? hostName) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSConnection1, - _lib._sel_connectionWithRegisteredName_host_1, - name?._id ?? ffi.nullptr, - hostName?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); - } - - static NSConnection connectionWithRegisteredName_host_usingNameServer_( - HidListenerBindingsSwift _lib, - NSString? name, - NSString? hostName, - NSPortNameServer? server) { - final _ret = _lib._objc_msgSend_541( - _lib._class_NSConnection1, - _lib._sel_connectionWithRegisteredName_host_usingNameServer_1, - name?._id ?? ffi.nullptr, - hostName?._id ?? ffi.nullptr, - server?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); - } - - static NSDistantObject rootProxyForConnectionWithRegisteredName_host_( - HidListenerBindingsSwift _lib, NSString? name, NSString? hostName) { - final _ret = _lib._objc_msgSend_544( - _lib._class_NSConnection1, - _lib._sel_rootProxyForConnectionWithRegisteredName_host_1, - name?._id ?? ffi.nullptr, - hostName?._id ?? ffi.nullptr); - return NSDistantObject._(_ret, _lib, retain: true, release: true); - } - - static NSDistantObject - rootProxyForConnectionWithRegisteredName_host_usingNameServer_( - HidListenerBindingsSwift _lib, - NSString? name, - NSString? hostName, - NSPortNameServer? server) { - final _ret = _lib._objc_msgSend_545( - _lib._class_NSConnection1, - _lib._sel_rootProxyForConnectionWithRegisteredName_host_usingNameServer_1, - name?._id ?? ffi.nullptr, - hostName?._id ?? ffi.nullptr, - server?._id ?? ffi.nullptr); - return NSDistantObject._(_ret, _lib, retain: true, release: true); - } - - static NSConnection serviceConnectionWithName_rootObject_usingNameServer_( - HidListenerBindingsSwift _lib, - NSString? name, - NSObject root, - NSPortNameServer? server) { - final _ret = _lib._objc_msgSend_546( - _lib._class_NSConnection1, - _lib._sel_serviceConnectionWithName_rootObject_usingNameServer_1, - name?._id ?? ffi.nullptr, - root._id, - server?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); - } - - static NSConnection serviceConnectionWithName_rootObject_( - HidListenerBindingsSwift _lib, NSString? name, NSObject root) { - final _ret = _lib._objc_msgSend_163( - _lib._class_NSConnection1, - _lib._sel_serviceConnectionWithName_rootObject_1, - name?._id ?? ffi.nullptr, - root._id); - return NSConnection._(_ret, _lib, retain: true, release: true); - } - - double get requestTimeout { - return _lib._objc_msgSend_155(_id, _lib._sel_requestTimeout1); - } - - set requestTimeout(double value) { - _lib._objc_msgSend_506(_id, _lib._sel_setRequestTimeout_1, value); - } - - double get replyTimeout { - return _lib._objc_msgSend_155(_id, _lib._sel_replyTimeout1); - } - - set replyTimeout(double value) { - _lib._objc_msgSend_506(_id, _lib._sel_setReplyTimeout_1, value); - } - - NSObject get rootObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_rootObject1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - set rootObject(NSObject value) { - _lib._objc_msgSend_387(_id, _lib._sel_setRootObject_1, value._id); - } - - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); - } - - set delegate(NSObject? value) { - _lib._objc_msgSend_387( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); - } - - bool get independentConversationQueueing { - return _lib._objc_msgSend_12( - _id, _lib._sel_independentConversationQueueing1); - } - - set independentConversationQueueing(bool value) { - _lib._objc_msgSend_492( - _id, _lib._sel_setIndependentConversationQueueing_1, value); - } - - bool get valid { - return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); - } - - NSDistantObject? get rootProxy { - final _ret = _lib._objc_msgSend_547(_id, _lib._sel_rootProxy1); - return _ret.address == 0 - ? null - : NSDistantObject._(_ret, _lib, retain: true, release: true); - } - - void invalidate() { - return _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); - } - - void addRequestMode_(NSString? rmode) { - return _lib._objc_msgSend_192( - _id, _lib._sel_addRequestMode_1, rmode?._id ?? ffi.nullptr); - } - - void removeRequestMode_(NSString? rmode) { - return _lib._objc_msgSend_192( - _id, _lib._sel_removeRequestMode_1, rmode?._id ?? ffi.nullptr); - } - - NSArray? get requestModes { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_requestModes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - bool registerName_(NSString? name) { - return _lib._objc_msgSend_59( - _id, _lib._sel_registerName_1, name?._id ?? ffi.nullptr); - } - - bool registerName_withNameServer_(NSString? name, NSPortNameServer? server) { - return _lib._objc_msgSend_548(_id, _lib._sel_registerName_withNameServer_1, - name?._id ?? ffi.nullptr, server?._id ?? ffi.nullptr); - } - - static NSConnection connectionWithReceivePort_sendPort_( - HidListenerBindingsSwift _lib, NSPort? receivePort, NSPort? sendPort) { - final _ret = _lib._objc_msgSend_549( - _lib._class_NSConnection1, - _lib._sel_connectionWithReceivePort_sendPort_1, - receivePort?._id ?? ffi.nullptr, - sendPort?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); - } - - static NSObject currentConversation(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSConnection1, _lib._sel_currentConversation1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSConnection initWithReceivePort_sendPort_( - NSPort? receivePort, NSPort? sendPort) { - final _ret = _lib._objc_msgSend_549( - _id, - _lib._sel_initWithReceivePort_sendPort_1, - receivePort?._id ?? ffi.nullptr, - sendPort?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); - } - - NSPort? get sendPort { - final _ret = _lib._objc_msgSend_517(_id, _lib._sel_sendPort1); - return _ret.address == 0 - ? null - : NSPort._(_ret, _lib, retain: true, release: true); - } - - NSPort? get receivePort { - final _ret = _lib._objc_msgSend_517(_id, _lib._sel_receivePort1); - return _ret.address == 0 - ? null - : NSPort._(_ret, _lib, retain: true, release: true); - } - - void enableMultipleThreads() { - return _lib._objc_msgSend_1(_id, _lib._sel_enableMultipleThreads1); - } - - bool get multipleThreadsEnabled { - return _lib._objc_msgSend_12(_id, _lib._sel_multipleThreadsEnabled1); - } - - void addRunLoop_(NSRunLoop? runloop) { - return _lib._objc_msgSend_550( - _id, _lib._sel_addRunLoop_1, runloop?._id ?? ffi.nullptr); - } - - void removeRunLoop_(NSRunLoop? runloop) { - return _lib._objc_msgSend_550( - _id, _lib._sel_removeRunLoop_1, runloop?._id ?? ffi.nullptr); - } - - void runInNewThread() { - return _lib._objc_msgSend_1(_id, _lib._sel_runInNewThread1); - } - - NSArray? get remoteObjects { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_remoteObjects1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get localObjects { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_localObjects1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - void dispatchWithComponents_(NSArray? components) { - return _lib._objc_msgSend_441(_id, _lib._sel_dispatchWithComponents_1, - components?._id ?? ffi.nullptr); - } - - static NSConnection new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSConnection1, _lib._sel_new1); - return NSConnection._(_ret, _lib, retain: false, release: true); - } - - static NSConnection alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSConnection1, _lib._sel_alloc1); - return NSConnection._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSConnection1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSConnection1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSConnection1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSConnection1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSConnection1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSConnection1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSConnection1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSConnection1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSConnection1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSPortNameServer extends NSObject { - NSPortNameServer._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSPortNameServer] that points to the same underlying object as [other]. - static NSPortNameServer castFrom(T other) { - return NSPortNameServer._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSPortNameServer] that wraps the given raw object pointer. - static NSPortNameServer castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSPortNameServer._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSPortNameServer]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSPortNameServer1); - } - - static NSPortNameServer systemDefaultPortNameServer( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_537( - _lib._class_NSPortNameServer1, _lib._sel_systemDefaultPortNameServer1); - return NSPortNameServer._(_ret, _lib, retain: true, release: true); - } - - NSPort portForName_(NSString? name) { - final _ret = _lib._objc_msgSend_538( - _id, _lib._sel_portForName_1, name?._id ?? ffi.nullptr); - return NSPort._(_ret, _lib, retain: true, release: true); - } - - NSPort portForName_host_(NSString? name, NSString? host) { - final _ret = _lib._objc_msgSend_539(_id, _lib._sel_portForName_host_1, - name?._id ?? ffi.nullptr, host?._id ?? ffi.nullptr); - return NSPort._(_ret, _lib, retain: true, release: true); - } - - bool registerPort_name_(NSPort? port, NSString? name) { - return _lib._objc_msgSend_540(_id, _lib._sel_registerPort_name_1, - port?._id ?? ffi.nullptr, name?._id ?? ffi.nullptr); - } - - bool removePortForName_(NSString? name) { - return _lib._objc_msgSend_59( - _id, _lib._sel_removePortForName_1, name?._id ?? ffi.nullptr); - } - - static NSPortNameServer new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPortNameServer1, _lib._sel_new1); - return NSPortNameServer._(_ret, _lib, retain: false, release: true); - } - - static NSPortNameServer alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPortNameServer1, _lib._sel_alloc1); - return NSPortNameServer._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSPortNameServer1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSPortNameServer1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSPortNameServer1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSPortNameServer1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSPortNameServer1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSPortNameServer1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSPortNameServer1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSPortNameServer1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSPortNameServer1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSDistantObject extends NSProxy { - NSDistantObject._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSDistantObject] that points to the same underlying object as [other]. - static NSDistantObject castFrom(T other) { - return NSDistantObject._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSDistantObject] that wraps the given raw object pointer. - static NSDistantObject castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSDistantObject._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSDistantObject]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSDistantObject1); - } - - static NSObject proxyWithTarget_connection_(HidListenerBindingsSwift _lib, - NSObject target, NSConnection? connection) { - final _ret = _lib._objc_msgSend_542( - _lib._class_NSDistantObject1, - _lib._sel_proxyWithTarget_connection_1, - target._id, - connection?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSDistantObject initWithTarget_connection_( - NSObject target, NSConnection? connection) { - final _ret = _lib._objc_msgSend_542( - _id, - _lib._sel_initWithTarget_connection_1, - target._id, - connection?._id ?? ffi.nullptr); - return NSDistantObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject proxyWithLocal_connection_(HidListenerBindingsSwift _lib, - NSObject target, NSConnection? connection) { - final _ret = _lib._objc_msgSend_542( - _lib._class_NSDistantObject1, - _lib._sel_proxyWithLocal_connection_1, - target._id, - connection?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSDistantObject initWithLocal_connection_( - NSObject target, NSConnection? connection) { - final _ret = _lib._objc_msgSend_542( - _id, - _lib._sel_initWithLocal_connection_1, - target._id, - connection?._id ?? ffi.nullptr); - return NSDistantObject._(_ret, _lib, retain: true, release: true); - } - - NSDistantObject initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); - return NSDistantObject._(_ret, _lib, retain: true, release: true); - } - - void setProtocolForProxy_(Protocol? proto) { - return _lib._objc_msgSend_543( - _id, _lib._sel_setProtocolForProxy_1, proto?._id ?? ffi.nullptr); - } - - NSConnection? get connectionForProxy { - final _ret = _lib._objc_msgSend_536(_id, _lib._sel_connectionForProxy1); - return _ret.address == 0 - ? null - : NSConnection._(_ret, _lib, retain: true, release: true); - } - - static NSObject alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSDistantObject1, _lib._sel_alloc1); - return NSObject._(_ret, _lib, retain: false, release: true); - } - - static bool respondsToSelector_( - HidListenerBindingsSwift _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_4(_lib._class_NSDistantObject1, - _lib._sel_respondsToSelector_1, aSelector); - } -} - -class NSProxy extends _ObjCWrapper { - NSProxy._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSProxy] that points to the same underlying object as [other]. - static NSProxy castFrom(T other) { - return NSProxy._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSProxy] that wraps the given raw object pointer. - static NSProxy castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSProxy._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSProxy]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProxy1); - } - - static NSObject alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSProxy1, _lib._sel_alloc1); - return NSObject._(_ret, _lib, retain: false, release: true); - } - - static NSObject allocWithZone_( - HidListenerBindingsSwift _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSProxy1, _lib._sel_allocWithZone_1, zone); - return NSObject._(_ret, _lib, retain: false, release: true); - } - - static NSObject class1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSProxy1, _lib._sel_class1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void forwardInvocation_(NSInvocation? invocation) { - return _lib._objc_msgSend_392( - _id, _lib._sel_forwardInvocation_1, invocation?._id ?? ffi.nullptr); - } - - NSMethodSignature methodSignatureForSelector_(ffi.Pointer sel) { - final _ret = _lib._objc_msgSend_393( - _id, _lib._sel_methodSignatureForSelector_1, sel); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); - } - - void dealloc() { - return _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); - } - - void finalize() { - return _lib._objc_msgSend_1(_id, _lib._sel_finalize1); - } - - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get debugDescription { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_debugDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - static bool respondsToSelector_( - HidListenerBindingsSwift _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_4( - _lib._class_NSProxy1, _lib._sel_respondsToSelector_1, aSelector); - } - - bool allowsWeakReference() { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsWeakReference1); - } - - bool retainWeakReference() { - return _lib._objc_msgSend_12(_id, _lib._sel_retainWeakReference1); - } -} - -class NSClassDescription extends NSObject { - NSClassDescription._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSClassDescription] that points to the same underlying object as [other]. - static NSClassDescription castFrom(T other) { - return NSClassDescription._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSClassDescription] that wraps the given raw object pointer. - static NSClassDescription castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSClassDescription._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSClassDescription]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSClassDescription1); - } - - static void registerClassDescription_forClass_(HidListenerBindingsSwift _lib, - NSClassDescription? description, NSObject aClass) { - return _lib._objc_msgSend_555( - _lib._class_NSClassDescription1, - _lib._sel_registerClassDescription_forClass_1, - description?._id ?? ffi.nullptr, - aClass._id); - } - - static void invalidateClassDescriptionCache(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_1(_lib._class_NSClassDescription1, - _lib._sel_invalidateClassDescriptionCache1); - } - - static NSClassDescription classDescriptionForClass_( - HidListenerBindingsSwift _lib, NSObject aClass) { - final _ret = _lib._objc_msgSend_556(_lib._class_NSClassDescription1, - _lib._sel_classDescriptionForClass_1, aClass._id); - return NSClassDescription._(_ret, _lib, retain: true, release: true); - } - - @override - NSArray? get attributeKeys { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attributeKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - @override - NSArray? get toOneRelationshipKeys { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toOneRelationshipKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - @override - NSArray? get toManyRelationshipKeys { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toManyRelationshipKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - @override - NSString inverseForRelationshipKey_(NSString? relationshipKey) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_inverseForRelationshipKey_1, - relationshipKey?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSClassDescription new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSClassDescription1, _lib._sel_new1); - return NSClassDescription._(_ret, _lib, retain: false, release: true); - } - - static NSClassDescription alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSClassDescription1, _lib._sel_alloc1); - return NSClassDescription._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSClassDescription1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSClassDescription1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSClassDescription1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSClassDescription1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSClassDescription1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSClassDescription1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSClassDescription1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSClassDescription1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSClassDescription1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSScriptObjectSpecifier extends NSObject { - NSScriptObjectSpecifier._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSScriptObjectSpecifier] that points to the same underlying object as [other]. - static NSScriptObjectSpecifier castFrom(T other) { - return NSScriptObjectSpecifier._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSScriptObjectSpecifier] that wraps the given raw object pointer. - static NSScriptObjectSpecifier castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSScriptObjectSpecifier._(other, lib, - retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSScriptObjectSpecifier]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSScriptObjectSpecifier1); - } - - static NSScriptObjectSpecifier objectSpecifierWithDescriptor_( - HidListenerBindingsSwift _lib, NSAppleEventDescriptor? descriptor) { - final _ret = _lib._objc_msgSend_580( - _lib._class_NSScriptObjectSpecifier1, - _lib._sel_objectSpecifierWithDescriptor_1, - descriptor?._id ?? ffi.nullptr); - return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); - } - - NSScriptObjectSpecifier initWithContainerSpecifier_key_( - NSScriptObjectSpecifier? container, NSString? property) { - final _ret = _lib._objc_msgSend_581( - _id, - _lib._sel_initWithContainerSpecifier_key_1, - container?._id ?? ffi.nullptr, - property?._id ?? ffi.nullptr); - return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); - } - - NSScriptObjectSpecifier - initWithContainerClassDescription_containerSpecifier_key_( - NSScriptClassDescription? classDesc, - NSScriptObjectSpecifier? container, - NSString? property) { - final _ret = _lib._objc_msgSend_598( - _id, - _lib._sel_initWithContainerClassDescription_containerSpecifier_key_1, - classDesc?._id ?? ffi.nullptr, - container?._id ?? ffi.nullptr, - property?._id ?? ffi.nullptr); - return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); - } - - NSScriptObjectSpecifier initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); - return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); - } - - NSScriptObjectSpecifier? get childSpecifier { - final _ret = _lib._objc_msgSend_588(_id, _lib._sel_childSpecifier1); - return _ret.address == 0 - ? null - : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); - } - - set childSpecifier(NSScriptObjectSpecifier? value) { - _lib._objc_msgSend_589( - _id, _lib._sel_setChildSpecifier_1, value?._id ?? ffi.nullptr); - } - - NSScriptObjectSpecifier? get containerSpecifier { - final _ret = _lib._objc_msgSend_588(_id, _lib._sel_containerSpecifier1); - return _ret.address == 0 - ? null - : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); - } - - set containerSpecifier(NSScriptObjectSpecifier? value) { - _lib._objc_msgSend_589( - _id, _lib._sel_setContainerSpecifier_1, value?._id ?? ffi.nullptr); - } - - bool get containerIsObjectBeingTested { - return _lib._objc_msgSend_12(_id, _lib._sel_containerIsObjectBeingTested1); - } - - set containerIsObjectBeingTested(bool value) { - _lib._objc_msgSend_492( - _id, _lib._sel_setContainerIsObjectBeingTested_1, value); - } - - bool get containerIsRangeContainerObject { - return _lib._objc_msgSend_12( - _id, _lib._sel_containerIsRangeContainerObject1); - } - - set containerIsRangeContainerObject(bool value) { - _lib._objc_msgSend_492( - _id, _lib._sel_setContainerIsRangeContainerObject_1, value); - } - - NSString? get key { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_key1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set key(NSString? value) { - _lib._objc_msgSend_509(_id, _lib._sel_setKey_1, value?._id ?? ffi.nullptr); - } - - NSScriptClassDescription? get containerClassDescription { - final _ret = - _lib._objc_msgSend_584(_id, _lib._sel_containerClassDescription1); - return _ret.address == 0 - ? null - : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); - } - - set containerClassDescription(NSScriptClassDescription? value) { - _lib._objc_msgSend_599(_id, _lib._sel_setContainerClassDescription_1, - value?._id ?? ffi.nullptr); - } - - NSScriptClassDescription? get keyClassDescription { - final _ret = _lib._objc_msgSend_584(_id, _lib._sel_keyClassDescription1); - return _ret.address == 0 - ? null - : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); - } - - ffi.Pointer indicesOfObjectsByEvaluatingWithContainer_count_( - NSObject container, ffi.Pointer count) { - return _lib._objc_msgSend_600( - _id, - _lib._sel_indicesOfObjectsByEvaluatingWithContainer_count_1, - container._id, - count); - } - - NSObject objectsByEvaluatingWithContainers_(NSObject containers) { - final _ret = _lib._objc_msgSend_16( - _id, _lib._sel_objectsByEvaluatingWithContainers_1, containers._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject get objectsByEvaluatingSpecifier { - final _ret = - _lib._objc_msgSend_2(_id, _lib._sel_objectsByEvaluatingSpecifier1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - int get evaluationErrorNumber { - return _lib._objc_msgSend_78(_id, _lib._sel_evaluationErrorNumber1); - } - - set evaluationErrorNumber(int value) { - _lib._objc_msgSend_590(_id, _lib._sel_setEvaluationErrorNumber_1, value); - } - - NSScriptObjectSpecifier? get evaluationErrorSpecifier { - final _ret = - _lib._objc_msgSend_588(_id, _lib._sel_evaluationErrorSpecifier1); - return _ret.address == 0 - ? null - : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); - } - - NSAppleEventDescriptor? get descriptor { - final _ret = _lib._objc_msgSend_558(_id, _lib._sel_descriptor1); - return _ret.address == 0 - ? null - : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - static NSScriptObjectSpecifier new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSScriptObjectSpecifier1, _lib._sel_new1); - return NSScriptObjectSpecifier._(_ret, _lib, retain: false, release: true); - } - - static NSScriptObjectSpecifier alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSScriptObjectSpecifier1, _lib._sel_alloc1); - return NSScriptObjectSpecifier._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSScriptObjectSpecifier1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSScriptObjectSpecifier1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSScriptObjectSpecifier1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSScriptObjectSpecifier1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSScriptObjectSpecifier1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSScriptObjectSpecifier1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSScriptObjectSpecifier1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptObjectSpecifier1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSScriptObjectSpecifier1, - _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSAppleEventDescriptor extends NSObject { - NSAppleEventDescriptor._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSAppleEventDescriptor] that points to the same underlying object as [other]. - static NSAppleEventDescriptor castFrom(T other) { - return NSAppleEventDescriptor._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSAppleEventDescriptor] that wraps the given raw object pointer. - static NSAppleEventDescriptor castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSAppleEventDescriptor._(other, lib, - retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSAppleEventDescriptor]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSAppleEventDescriptor1); - } - - static NSAppleEventDescriptor nullDescriptor(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_558( - _lib._class_NSAppleEventDescriptor1, _lib._sel_nullDescriptor1); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - static NSAppleEventDescriptor descriptorWithDescriptorType_bytes_length_( - HidListenerBindingsSwift _lib, - int descriptorType, - ffi.Pointer bytes, - int byteCount) { - final _ret = _lib._objc_msgSend_559( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithDescriptorType_bytes_length_1, - descriptorType, - bytes, - byteCount); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - static NSAppleEventDescriptor descriptorWithDescriptorType_data_( - HidListenerBindingsSwift _lib, int descriptorType, NSData? data) { - final _ret = _lib._objc_msgSend_560( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithDescriptorType_data_1, - descriptorType, - data?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - static NSAppleEventDescriptor descriptorWithBoolean_( - HidListenerBindingsSwift _lib, int boolean) { - final _ret = _lib._objc_msgSend_561(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithBoolean_1, boolean); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - static NSAppleEventDescriptor descriptorWithEnumCode_( - HidListenerBindingsSwift _lib, int enumerator) { - final _ret = _lib._objc_msgSend_562(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithEnumCode_1, enumerator); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - static NSAppleEventDescriptor descriptorWithInt32_( - HidListenerBindingsSwift _lib, int signedInt) { - final _ret = _lib._objc_msgSend_563(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithInt32_1, signedInt); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - static NSAppleEventDescriptor descriptorWithDouble_( - HidListenerBindingsSwift _lib, double doubleValue) { - final _ret = _lib._objc_msgSend_564(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithDouble_1, doubleValue); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - static NSAppleEventDescriptor descriptorWithTypeCode_( - HidListenerBindingsSwift _lib, int typeCode) { - final _ret = _lib._objc_msgSend_562(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithTypeCode_1, typeCode); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - static NSAppleEventDescriptor descriptorWithString_( - HidListenerBindingsSwift _lib, NSString? string) { - final _ret = _lib._objc_msgSend_565(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithString_1, string?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - static NSAppleEventDescriptor descriptorWithDate_( - HidListenerBindingsSwift _lib, NSDate? date) { - final _ret = _lib._objc_msgSend_566(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithDate_1, date?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - static NSAppleEventDescriptor descriptorWithFileURL_( - HidListenerBindingsSwift _lib, NSURL? fileURL) { - final _ret = _lib._objc_msgSend_567(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithFileURL_1, fileURL?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - static NSAppleEventDescriptor - appleEventWithEventClass_eventID_targetDescriptor_returnID_transactionID_( - HidListenerBindingsSwift _lib, - int eventClass, - int eventID, - NSAppleEventDescriptor? targetDescriptor, - int returnID, - int transactionID) { - final _ret = _lib._objc_msgSend_568( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_appleEventWithEventClass_eventID_targetDescriptor_returnID_transactionID_1, - eventClass, - eventID, - targetDescriptor?._id ?? ffi.nullptr, - returnID, - transactionID); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - static NSAppleEventDescriptor listDescriptor(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_558( - _lib._class_NSAppleEventDescriptor1, _lib._sel_listDescriptor1); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - static NSAppleEventDescriptor recordDescriptor( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_558( - _lib._class_NSAppleEventDescriptor1, _lib._sel_recordDescriptor1); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - static NSAppleEventDescriptor currentProcessDescriptor( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_558(_lib._class_NSAppleEventDescriptor1, - _lib._sel_currentProcessDescriptor1); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - static NSAppleEventDescriptor descriptorWithProcessIdentifier_( - HidListenerBindingsSwift _lib, int processIdentifier) { - final _ret = _lib._objc_msgSend_563(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithProcessIdentifier_1, processIdentifier); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - static NSAppleEventDescriptor descriptorWithBundleIdentifier_( - HidListenerBindingsSwift _lib, NSString? bundleIdentifier) { - final _ret = _lib._objc_msgSend_565( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithBundleIdentifier_1, - bundleIdentifier?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - static NSAppleEventDescriptor descriptorWithApplicationURL_( - HidListenerBindingsSwift _lib, NSURL? applicationURL) { - final _ret = _lib._objc_msgSend_567( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithApplicationURL_1, - applicationURL?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - NSAppleEventDescriptor initWithAEDescNoCopy_(ffi.Pointer aeDesc) { - final _ret = - _lib._objc_msgSend_569(_id, _lib._sel_initWithAEDescNoCopy_1, aeDesc); - return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); - } - - NSAppleEventDescriptor initWithDescriptorType_bytes_length_( - int descriptorType, ffi.Pointer bytes, int byteCount) { - final _ret = _lib._objc_msgSend_570( - _id, - _lib._sel_initWithDescriptorType_bytes_length_1, - descriptorType, - bytes, - byteCount); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - NSAppleEventDescriptor initWithDescriptorType_data_( - int descriptorType, NSData? data) { - final _ret = _lib._objc_msgSend_571( - _id, - _lib._sel_initWithDescriptorType_data_1, - descriptorType, - data?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - NSAppleEventDescriptor - initWithEventClass_eventID_targetDescriptor_returnID_transactionID_( - int eventClass, - int eventID, - NSAppleEventDescriptor? targetDescriptor, - int returnID, - int transactionID) { - final _ret = _lib._objc_msgSend_572( - _id, - _lib._sel_initWithEventClass_eventID_targetDescriptor_returnID_transactionID_1, - eventClass, - eventID, - targetDescriptor?._id ?? ffi.nullptr, - returnID, - transactionID); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - NSAppleEventDescriptor initListDescriptor() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_initListDescriptor1); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - NSAppleEventDescriptor initRecordDescriptor() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_initRecordDescriptor1); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - ffi.Pointer get aeDesc { - return _lib._objc_msgSend_573(_id, _lib._sel_aeDesc1); - } - - int get descriptorType { - return _lib._objc_msgSend_197(_id, _lib._sel_descriptorType1); - } - - NSData? get data { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); - } - - int get booleanValue { - return _lib._objc_msgSend_216(_id, _lib._sel_booleanValue1); - } - - int get enumCodeValue { - return _lib._objc_msgSend_197(_id, _lib._sel_enumCodeValue1); - } - - int get int32Value { - return _lib._objc_msgSend_219(_id, _lib._sel_int32Value1); - } - - double get doubleValue { - return _lib._objc_msgSend_155(_id, _lib._sel_doubleValue1); - } - - int get typeCodeValue { - return _lib._objc_msgSend_197(_id, _lib._sel_typeCodeValue1); - } - - NSString? get stringValue { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_stringValue1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSDate? get dateValue { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_dateValue1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } - - NSURL? get fileURLValue { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_fileURLValue1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - int get eventClass { - return _lib._objc_msgSend_197(_id, _lib._sel_eventClass1); - } - - int get eventID { - return _lib._objc_msgSend_197(_id, _lib._sel_eventID1); - } - - int get returnID { - return _lib._objc_msgSend_217(_id, _lib._sel_returnID1); - } - - int get transactionID { - return _lib._objc_msgSend_219(_id, _lib._sel_transactionID1); - } - - void setParamDescriptor_forKeyword_( - NSAppleEventDescriptor? descriptor, int keyword) { - return _lib._objc_msgSend_574( - _id, - _lib._sel_setParamDescriptor_forKeyword_1, - descriptor?._id ?? ffi.nullptr, - keyword); - } - - NSAppleEventDescriptor paramDescriptorForKeyword_(int keyword) { - final _ret = _lib._objc_msgSend_562( - _id, _lib._sel_paramDescriptorForKeyword_1, keyword); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - void removeParamDescriptorWithKeyword_(int keyword) { - return _lib._objc_msgSend_575( - _id, _lib._sel_removeParamDescriptorWithKeyword_1, keyword); - } - - void setAttributeDescriptor_forKeyword_( - NSAppleEventDescriptor? descriptor, int keyword) { - return _lib._objc_msgSend_574( - _id, - _lib._sel_setAttributeDescriptor_forKeyword_1, - descriptor?._id ?? ffi.nullptr, - keyword); - } - - NSAppleEventDescriptor attributeDescriptorForKeyword_(int keyword) { - final _ret = _lib._objc_msgSend_562( - _id, _lib._sel_attributeDescriptorForKeyword_1, keyword); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - NSAppleEventDescriptor sendEventWithOptions_timeout_error_(int sendOptions, - double timeoutInSeconds, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_576( - _id, - _lib._sel_sendEventWithOptions_timeout_error_1, - sendOptions, - timeoutInSeconds, - error); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - bool get isRecordDescriptor { - return _lib._objc_msgSend_12(_id, _lib._sel_isRecordDescriptor1); - } - - int get numberOfItems { - return _lib._objc_msgSend_78(_id, _lib._sel_numberOfItems1); - } - - void insertDescriptor_atIndex_( - NSAppleEventDescriptor? descriptor, int index) { - return _lib._objc_msgSend_577(_id, _lib._sel_insertDescriptor_atIndex_1, - descriptor?._id ?? ffi.nullptr, index); - } - - NSAppleEventDescriptor descriptorAtIndex_(int index) { - final _ret = - _lib._objc_msgSend_578(_id, _lib._sel_descriptorAtIndex_1, index); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - void removeDescriptorAtIndex_(int index) { - return _lib._objc_msgSend_394( - _id, _lib._sel_removeDescriptorAtIndex_1, index); - } - - void setDescriptor_forKeyword_( - NSAppleEventDescriptor? descriptor, int keyword) { - return _lib._objc_msgSend_574(_id, _lib._sel_setDescriptor_forKeyword_1, - descriptor?._id ?? ffi.nullptr, keyword); - } - - NSAppleEventDescriptor descriptorForKeyword_(int keyword) { - final _ret = - _lib._objc_msgSend_562(_id, _lib._sel_descriptorForKeyword_1, keyword); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - void removeDescriptorWithKeyword_(int keyword) { - return _lib._objc_msgSend_575( - _id, _lib._sel_removeDescriptorWithKeyword_1, keyword); - } - - int keywordForDescriptorAtIndex_(int index) { - return _lib._objc_msgSend_579( - _id, _lib._sel_keywordForDescriptorAtIndex_1, index); - } - - NSAppleEventDescriptor coerceToDescriptorType_(int descriptorType) { - final _ret = _lib._objc_msgSend_562( - _id, _lib._sel_coerceToDescriptorType_1, descriptorType); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - static NSAppleEventDescriptor new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSAppleEventDescriptor1, _lib._sel_new1); - return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); - } - - static NSAppleEventDescriptor alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSAppleEventDescriptor1, _lib._sel_alloc1); - return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSAppleEventDescriptor1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSAppleEventDescriptor1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSAppleEventDescriptor1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSAppleEventDescriptor1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSAppleEventDescriptor1, - _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -@ffi.Packed(2) -final class AEDesc extends ffi.Struct { - @ffi.UnsignedInt() - external int descriptorType; - - external ffi.Pointer> dataHandle; -} - -final class OpaqueAEDataStorageType extends ffi.Opaque {} - -abstract class NSAppleEventSendOptions { - static const int NSAppleEventSendNoReply = 1; - static const int NSAppleEventSendQueueReply = 2; - static const int NSAppleEventSendWaitForReply = 3; - static const int NSAppleEventSendNeverInteract = 16; - static const int NSAppleEventSendCanInteract = 32; - static const int NSAppleEventSendAlwaysInteract = 48; - static const int NSAppleEventSendCanSwitchLayer = 64; - static const int NSAppleEventSendDontRecord = 4096; - static const int NSAppleEventSendDontExecute = 8192; - static const int NSAppleEventSendDontAnnotate = 65536; - static const int NSAppleEventSendDefaultOptions = 35; -} - -class NSScriptClassDescription extends NSClassDescription { - NSScriptClassDescription._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSScriptClassDescription] that points to the same underlying object as [other]. - static NSScriptClassDescription castFrom(T other) { - return NSScriptClassDescription._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSScriptClassDescription] that wraps the given raw object pointer. - static NSScriptClassDescription castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSScriptClassDescription._(other, lib, - retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSScriptClassDescription]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSScriptClassDescription1); - } - - static NSScriptClassDescription classDescriptionForClass_( - HidListenerBindingsSwift _lib, NSObject aClass) { - final _ret = _lib._objc_msgSend_582(_lib._class_NSScriptClassDescription1, - _lib._sel_classDescriptionForClass_1, aClass._id); - return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); - } - - NSScriptClassDescription initWithSuiteName_className_dictionary_( - NSString? suiteName, - NSString? className, - NSDictionary? classDeclaration) { - final _ret = _lib._objc_msgSend_583( - _id, - _lib._sel_initWithSuiteName_className_dictionary_1, - suiteName?._id ?? ffi.nullptr, - className?._id ?? ffi.nullptr, - classDeclaration?._id ?? ffi.nullptr); - return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); - } - - NSString? get suiteName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suiteName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get className { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_className1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get implementationClassName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_implementationClassName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSScriptClassDescription? get superclassDescription { - final _ret = _lib._objc_msgSend_584(_id, _lib._sel_superclassDescription1); - return _ret.address == 0 - ? null - : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); - } - - int get appleEventCode { - return _lib._objc_msgSend_197(_id, _lib._sel_appleEventCode1); - } - - bool matchesAppleEventCode_(int appleEventCode) { - return _lib._objc_msgSend_179( - _id, _lib._sel_matchesAppleEventCode_1, appleEventCode); - } - - bool supportsCommand_(NSScriptCommandDescription? commandDescription) { - return _lib._objc_msgSend_594(_id, _lib._sel_supportsCommand_1, - commandDescription?._id ?? ffi.nullptr); - } - - ffi.Pointer selectorForCommand_( - NSScriptCommandDescription? commandDescription) { - return _lib._objc_msgSend_595(_id, _lib._sel_selectorForCommand_1, - commandDescription?._id ?? ffi.nullptr); - } - - NSString typeForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_typeForKey_1, key?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSScriptClassDescription classDescriptionForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_596( - _id, _lib._sel_classDescriptionForKey_1, key?._id ?? ffi.nullptr); - return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); - } - - int appleEventCodeForKey_(NSString? key) { - return _lib._objc_msgSend_585( - _id, _lib._sel_appleEventCodeForKey_1, key?._id ?? ffi.nullptr); - } - - NSString keyWithAppleEventCode_(int appleEventCode) { - final _ret = _lib._objc_msgSend_597( - _id, _lib._sel_keyWithAppleEventCode_1, appleEventCode); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get defaultSubcontainerAttributeKey { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_defaultSubcontainerAttributeKey1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - bool isLocationRequiredToCreateForKey_(NSString? toManyRelationshipKey) { - return _lib._objc_msgSend_59( - _id, - _lib._sel_isLocationRequiredToCreateForKey_1, - toManyRelationshipKey?._id ?? ffi.nullptr); - } - - bool hasPropertyForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasPropertyForKey_1, key?._id ?? ffi.nullptr); - } - - bool hasOrderedToManyRelationshipForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, - _lib._sel_hasOrderedToManyRelationshipForKey_1, - key?._id ?? ffi.nullptr); - } - - bool hasReadablePropertyForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasReadablePropertyForKey_1, key?._id ?? ffi.nullptr); - } - - bool hasWritablePropertyForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasWritablePropertyForKey_1, key?._id ?? ffi.nullptr); - } - - bool isReadOnlyKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isReadOnlyKey_1, key?._id ?? ffi.nullptr); - } - - static void registerClassDescription_forClass_(HidListenerBindingsSwift _lib, - NSClassDescription? description, NSObject aClass) { - return _lib._objc_msgSend_555( - _lib._class_NSScriptClassDescription1, - _lib._sel_registerClassDescription_forClass_1, - description?._id ?? ffi.nullptr, - aClass._id); - } - - static void invalidateClassDescriptionCache(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_1(_lib._class_NSScriptClassDescription1, - _lib._sel_invalidateClassDescriptionCache1); - } - - static NSScriptClassDescription new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSScriptClassDescription1, _lib._sel_new1); - return NSScriptClassDescription._(_ret, _lib, retain: false, release: true); - } - - static NSScriptClassDescription alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSScriptClassDescription1, _lib._sel_alloc1); - return NSScriptClassDescription._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSScriptClassDescription1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSScriptClassDescription1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSScriptClassDescription1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSScriptClassDescription1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSScriptClassDescription1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSScriptClassDescription1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSScriptClassDescription1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptClassDescription1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSScriptClassDescription1, - _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSScriptCommandDescription extends NSObject { - NSScriptCommandDescription._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSScriptCommandDescription] that points to the same underlying object as [other]. - static NSScriptCommandDescription castFrom(T other) { - return NSScriptCommandDescription._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSScriptCommandDescription] that wraps the given raw object pointer. - static NSScriptCommandDescription castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSScriptCommandDescription._(other, lib, - retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSScriptCommandDescription]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSScriptCommandDescription1); - } - - @override - NSObject init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSScriptCommandDescription initWithSuiteName_commandName_dictionary_( - NSString? suiteName, - NSString? commandName, - NSDictionary? commandDeclaration) { - final _ret = _lib._objc_msgSend_583( - _id, - _lib._sel_initWithSuiteName_commandName_dictionary_1, - suiteName?._id ?? ffi.nullptr, - commandName?._id ?? ffi.nullptr, - commandDeclaration?._id ?? ffi.nullptr); - return NSScriptCommandDescription._(_ret, _lib, - retain: true, release: true); - } - - NSScriptCommandDescription initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); - return NSScriptCommandDescription._(_ret, _lib, - retain: true, release: true); - } - - NSString? get suiteName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suiteName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get commandName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_commandName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - int get appleEventClassCode { - return _lib._objc_msgSend_197(_id, _lib._sel_appleEventClassCode1); - } - - int get appleEventCode { - return _lib._objc_msgSend_197(_id, _lib._sel_appleEventCode1); - } - - NSString? get commandClassName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_commandClassName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get returnType { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_returnType1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - int get appleEventCodeForReturnType { - return _lib._objc_msgSend_197(_id, _lib._sel_appleEventCodeForReturnType1); - } - - NSArray? get argumentNames { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_argumentNames1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSString typeForArgumentWithName_(NSString? argumentName) { - final _ret = _lib._objc_msgSend_64(_id, _lib._sel_typeForArgumentWithName_1, - argumentName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - int appleEventCodeForArgumentWithName_(NSString? argumentName) { - return _lib._objc_msgSend_585( - _id, - _lib._sel_appleEventCodeForArgumentWithName_1, - argumentName?._id ?? ffi.nullptr); - } - - bool isOptionalArgumentWithName_(NSString? argumentName) { - return _lib._objc_msgSend_59(_id, _lib._sel_isOptionalArgumentWithName_1, - argumentName?._id ?? ffi.nullptr); - } - - NSScriptCommand createCommandInstance() { - final _ret = _lib._objc_msgSend_592(_id, _lib._sel_createCommandInstance1); - return NSScriptCommand._(_ret, _lib, retain: true, release: true); - } - - NSScriptCommand createCommandInstanceWithZone_(ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_593( - _id, _lib._sel_createCommandInstanceWithZone_1, zone); - return NSScriptCommand._(_ret, _lib, retain: true, release: true); - } - - static NSScriptCommandDescription new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSScriptCommandDescription1, _lib._sel_new1); - return NSScriptCommandDescription._(_ret, _lib, - retain: false, release: true); - } - - static NSScriptCommandDescription alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSScriptCommandDescription1, _lib._sel_alloc1); - return NSScriptCommandDescription._(_ret, _lib, - retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSScriptCommandDescription1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSScriptCommandDescription1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSScriptCommandDescription1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSScriptCommandDescription1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSScriptCommandDescription1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSScriptCommandDescription1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSScriptCommandDescription1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptCommandDescription1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSScriptCommandDescription1, - _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSScriptCommand extends NSObject { - NSScriptCommand._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSScriptCommand] that points to the same underlying object as [other]. - static NSScriptCommand castFrom(T other) { - return NSScriptCommand._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSScriptCommand] that wraps the given raw object pointer. - static NSScriptCommand castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSScriptCommand._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSScriptCommand]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSScriptCommand1); - } - - NSScriptCommand initWithCommandDescription_( - NSScriptCommandDescription? commandDef) { - final _ret = _lib._objc_msgSend_586(_id, - _lib._sel_initWithCommandDescription_1, commandDef?._id ?? ffi.nullptr); - return NSScriptCommand._(_ret, _lib, retain: true, release: true); - } - - NSScriptCommand initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); - return NSScriptCommand._(_ret, _lib, retain: true, release: true); - } - - NSScriptCommandDescription? get commandDescription { - final _ret = _lib._objc_msgSend_587(_id, _lib._sel_commandDescription1); - return _ret.address == 0 - ? null - : NSScriptCommandDescription._(_ret, _lib, retain: true, release: true); - } - - NSObject get directParameter { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_directParameter1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - set directParameter(NSObject value) { - _lib._objc_msgSend_387(_id, _lib._sel_setDirectParameter_1, value._id); - } - - NSScriptObjectSpecifier? get receiversSpecifier { - final _ret = _lib._objc_msgSend_588(_id, _lib._sel_receiversSpecifier1); - return _ret.address == 0 - ? null - : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); - } - - set receiversSpecifier(NSScriptObjectSpecifier? value) { - _lib._objc_msgSend_589( - _id, _lib._sel_setReceiversSpecifier_1, value?._id ?? ffi.nullptr); - } - - NSObject get evaluatedReceivers { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_evaluatedReceivers1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSDictionary? get arguments { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_arguments1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - set arguments(NSDictionary? value) { - _lib._objc_msgSend_171( - _id, _lib._sel_setArguments_1, value?._id ?? ffi.nullptr); - } - - NSDictionary? get evaluatedArguments { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_evaluatedArguments1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - bool get wellFormed { - return _lib._objc_msgSend_12(_id, _lib._sel_isWellFormed1); - } - - NSObject performDefaultImplementation() { - final _ret = - _lib._objc_msgSend_2(_id, _lib._sel_performDefaultImplementation1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject executeCommand() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_executeCommand1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - int get scriptErrorNumber { - return _lib._objc_msgSend_78(_id, _lib._sel_scriptErrorNumber1); - } - - set scriptErrorNumber(int value) { - _lib._objc_msgSend_590(_id, _lib._sel_setScriptErrorNumber_1, value); - } - - NSAppleEventDescriptor? get scriptErrorOffendingObjectDescriptor { - final _ret = _lib._objc_msgSend_558( - _id, _lib._sel_scriptErrorOffendingObjectDescriptor1); - return _ret.address == 0 - ? null - : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - set scriptErrorOffendingObjectDescriptor(NSAppleEventDescriptor? value) { - _lib._objc_msgSend_591( - _id, - _lib._sel_setScriptErrorOffendingObjectDescriptor_1, - value?._id ?? ffi.nullptr); - } - - NSAppleEventDescriptor? get scriptErrorExpectedTypeDescriptor { - final _ret = _lib._objc_msgSend_558( - _id, _lib._sel_scriptErrorExpectedTypeDescriptor1); - return _ret.address == 0 - ? null - : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - set scriptErrorExpectedTypeDescriptor(NSAppleEventDescriptor? value) { - _lib._objc_msgSend_591( - _id, - _lib._sel_setScriptErrorExpectedTypeDescriptor_1, - value?._id ?? ffi.nullptr); - } - - NSString? get scriptErrorString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_scriptErrorString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set scriptErrorString(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setScriptErrorString_1, value?._id ?? ffi.nullptr); - } - - static NSScriptCommand currentCommand(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_592( - _lib._class_NSScriptCommand1, _lib._sel_currentCommand1); - return NSScriptCommand._(_ret, _lib, retain: true, release: true); - } - - NSAppleEventDescriptor? get appleEvent { - final _ret = _lib._objc_msgSend_558(_id, _lib._sel_appleEvent1); - return _ret.address == 0 - ? null - : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - void suspendExecution() { - return _lib._objc_msgSend_1(_id, _lib._sel_suspendExecution1); - } - - void resumeExecutionWithResult_(NSObject result) { - return _lib._objc_msgSend_15( - _id, _lib._sel_resumeExecutionWithResult_1, result._id); - } - - static NSScriptCommand new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSScriptCommand1, _lib._sel_new1); - return NSScriptCommand._(_ret, _lib, retain: false, release: true); - } - - static NSScriptCommand alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSScriptCommand1, _lib._sel_alloc1); - return NSScriptCommand._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSScriptCommand1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSScriptCommand1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSScriptCommand1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSScriptCommand1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSScriptCommand1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSScriptCommand1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSScriptCommand1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptCommand1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSScriptCommand1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSItemProvider extends NSObject { - NSItemProvider._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSItemProvider] that points to the same underlying object as [other]. - static NSItemProvider castFrom(T other) { - return NSItemProvider._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSItemProvider] that wraps the given raw object pointer. - static NSItemProvider castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSItemProvider._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSItemProvider]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSItemProvider1); - } - - @override - NSItemProvider init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSItemProvider._(_ret, _lib, retain: true, release: true); - } - - void registerDataRepresentationForTypeIdentifier_visibility_loadHandler_( - NSString? typeIdentifier, int visibility, ObjCBlock23 loadHandler) { - return _lib._objc_msgSend_623( - _id, - _lib._sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - visibility, - loadHandler._id); - } - - void - registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_( - NSString? typeIdentifier, - int fileOptions, - int visibility, - ObjCBlock26 loadHandler) { - return _lib._objc_msgSend_624( - _id, - _lib._sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - fileOptions, - visibility, - loadHandler._id); - } - - NSArray? get registeredTypeIdentifiers { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_registeredTypeIdentifiers1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray registeredTypeIdentifiersWithFileOptions_(int fileOptions) { - final _ret = _lib._objc_msgSend_625( - _id, _lib._sel_registeredTypeIdentifiersWithFileOptions_1, fileOptions); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - bool hasItemConformingToTypeIdentifier_(NSString? typeIdentifier) { - return _lib._objc_msgSend_59( - _id, - _lib._sel_hasItemConformingToTypeIdentifier_1, - typeIdentifier?._id ?? ffi.nullptr); - } - - bool hasRepresentationConformingToTypeIdentifier_fileOptions_( - NSString? typeIdentifier, int fileOptions) { - return _lib._objc_msgSend_626( - _id, - _lib._sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1, - typeIdentifier?._id ?? ffi.nullptr, - fileOptions); - } - - NSProgress loadDataRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, ObjCBlock25 completionHandler) { - final _ret = _lib._objc_msgSend_627( - _id, - _lib._sel_loadDataRepresentationForTypeIdentifier_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - completionHandler._id); - return NSProgress._(_ret, _lib, retain: true, release: true); - } - - NSProgress loadFileRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, ObjCBlock28 completionHandler) { - final _ret = _lib._objc_msgSend_628( - _id, - _lib._sel_loadFileRepresentationForTypeIdentifier_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - completionHandler._id); - return NSProgress._(_ret, _lib, retain: true, release: true); - } - - NSProgress loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, ObjCBlock27 completionHandler) { - final _ret = _lib._objc_msgSend_629( - _id, - _lib._sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - completionHandler._id); - return NSProgress._(_ret, _lib, retain: true, release: true); - } - - NSString? get suggestedName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suggestedName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set suggestedName(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setSuggestedName_1, value?._id ?? ffi.nullptr); - } - - NSItemProvider initWithObject_(NSObject? object) { - final _ret = _lib._objc_msgSend_16( - _id, _lib._sel_initWithObject_1, object?._id ?? ffi.nullptr); - return NSItemProvider._(_ret, _lib, retain: true, release: true); - } - - void registerObject_visibility_(NSObject? object, int visibility) { - return _lib._objc_msgSend_630(_id, _lib._sel_registerObject_visibility_1, - object?._id ?? ffi.nullptr, visibility); - } - - void registerObjectOfClass_visibility_loadHandler_( - NSObject? aClass, int visibility, ObjCBlock29 loadHandler) { - return _lib._objc_msgSend_631( - _id, - _lib._sel_registerObjectOfClass_visibility_loadHandler_1, - aClass?._id ?? ffi.nullptr, - visibility, - loadHandler._id); - } - - bool canLoadObjectOfClass_(NSObject? aClass) { - return _lib._objc_msgSend_0( - _id, _lib._sel_canLoadObjectOfClass_1, aClass?._id ?? ffi.nullptr); - } - - NSProgress loadObjectOfClass_completionHandler_( - NSObject? aClass, ObjCBlock30 completionHandler) { - final _ret = _lib._objc_msgSend_632( - _id, - _lib._sel_loadObjectOfClass_completionHandler_1, - aClass?._id ?? ffi.nullptr, - completionHandler._id); - return NSProgress._(_ret, _lib, retain: true, release: true); - } - - NSItemProvider initWithItem_typeIdentifier_( - NSObject? item, NSString? typeIdentifier) { - final _ret = _lib._objc_msgSend_287( - _id, - _lib._sel_initWithItem_typeIdentifier_1, - item?._id ?? ffi.nullptr, - typeIdentifier?._id ?? ffi.nullptr); - return NSItemProvider._(_ret, _lib, retain: true, release: true); - } - - NSItemProvider initWithContentsOfURL_(NSURL? fileURL) { - final _ret = _lib._objc_msgSend_241( - _id, _lib._sel_initWithContentsOfURL_1, fileURL?._id ?? ffi.nullptr); - return NSItemProvider._(_ret, _lib, retain: true, release: true); - } - - void registerItemForTypeIdentifier_loadHandler_( - NSString? typeIdentifier, ObjCBlock31 loadHandler) { - return _lib._objc_msgSend_633( - _id, - _lib._sel_registerItemForTypeIdentifier_loadHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - loadHandler._id); - } - - void loadItemForTypeIdentifier_options_completionHandler_( - NSString? typeIdentifier, - NSDictionary? options, - ObjCBlock30 completionHandler) { - return _lib._objc_msgSend_634( - _id, - _lib._sel_loadItemForTypeIdentifier_options_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - completionHandler._id); - } - - ObjCBlock31 get previewImageHandler { - final _ret = _lib._objc_msgSend_635(_id, _lib._sel_previewImageHandler1); - return ObjCBlock31._(_ret, _lib); - } - - set previewImageHandler(ObjCBlock31 value) { - _lib._objc_msgSend_636(_id, _lib._sel_setPreviewImageHandler_1, value._id); - } - - void loadPreviewImageWithOptions_completionHandler_( - NSDictionary? options, ObjCBlock30 completionHandler) { - return _lib._objc_msgSend_637( - _id, - _lib._sel_loadPreviewImageWithOptions_completionHandler_1, - options?._id ?? ffi.nullptr, - completionHandler._id); - } - - static NSItemProvider new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSItemProvider1, _lib._sel_new1); - return NSItemProvider._(_ret, _lib, retain: false, release: true); - } - - static NSItemProvider alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSItemProvider1, _lib._sel_alloc1); - return NSItemProvider._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSItemProvider1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSItemProvider1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSItemProvider1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSItemProvider1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSItemProvider1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSItemProvider1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSItemProvider1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSItemProvider1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSItemProvider1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSItemProviderRepresentationVisibility { - static const int NSItemProviderRepresentationVisibilityAll = 0; - static const int NSItemProviderRepresentationVisibilityTeam = 1; - static const int NSItemProviderRepresentationVisibilityGroup = 2; - static const int NSItemProviderRepresentationVisibilityOwnProcess = 3; -} - -ffi.Pointer _ObjCBlock23_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>()(arg0); -} - -final _ObjCBlock23_closureRegistry = {}; -int _ObjCBlock23_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock23_registerClosure(Function fn) { - final id = ++_ObjCBlock23_closureRegistryIndex; - _ObjCBlock23_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -ffi.Pointer _ObjCBlock23_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return _ObjCBlock23_closureRegistry[block.ref.target.address]!(arg0); -} - -class ObjCBlock23 extends _ObjCBlockBase { - ObjCBlock23._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock23.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock23_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock23.fromFunction(HidListenerBindingsSwift lib, - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock23_closureTrampoline) - .cast(), - _ObjCBlock23_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>()(_id, arg0); - } -} - -class NSProgress extends NSObject { - NSProgress._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSProgress] that points to the same underlying object as [other]. - static NSProgress castFrom(T other) { - return NSProgress._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSProgress] that wraps the given raw object pointer. - static NSProgress castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSProgress._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSProgress]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProgress1); - } - - static NSProgress currentProgress(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_609( - _lib._class_NSProgress1, _lib._sel_currentProgress1); - return NSProgress._(_ret, _lib, retain: true, release: true); - } - - static NSProgress progressWithTotalUnitCount_( - HidListenerBindingsSwift _lib, int unitCount) { - final _ret = _lib._objc_msgSend_610(_lib._class_NSProgress1, - _lib._sel_progressWithTotalUnitCount_1, unitCount); - return NSProgress._(_ret, _lib, retain: true, release: true); - } - - static NSProgress discreteProgressWithTotalUnitCount_( - HidListenerBindingsSwift _lib, int unitCount) { - final _ret = _lib._objc_msgSend_610(_lib._class_NSProgress1, - _lib._sel_discreteProgressWithTotalUnitCount_1, unitCount); - return NSProgress._(_ret, _lib, retain: true, release: true); - } - - static NSProgress progressWithTotalUnitCount_parent_pendingUnitCount_( - HidListenerBindingsSwift _lib, - int unitCount, - NSProgress? parent, - int portionOfParentTotalUnitCount) { - final _ret = _lib._objc_msgSend_611( - _lib._class_NSProgress1, - _lib._sel_progressWithTotalUnitCount_parent_pendingUnitCount_1, - unitCount, - parent?._id ?? ffi.nullptr, - portionOfParentTotalUnitCount); - return NSProgress._(_ret, _lib, retain: true, release: true); - } - - NSProgress initWithParent_userInfo_( - NSProgress? parentProgressOrNil, NSObject? userInfoOrNil) { - final _ret = _lib._objc_msgSend_612( - _id, - _lib._sel_initWithParent_userInfo_1, - parentProgressOrNil?._id ?? ffi.nullptr, - userInfoOrNil?._id ?? ffi.nullptr); - return NSProgress._(_ret, _lib, retain: true, release: true); - } - - void becomeCurrentWithPendingUnitCount_(int unitCount) { - return _lib._objc_msgSend_613( - _id, _lib._sel_becomeCurrentWithPendingUnitCount_1, unitCount); - } - - void performAsCurrentWithPendingUnitCount_usingBlock_( - int unitCount, ObjCBlock21 work) { - return _lib._objc_msgSend_614( - _id, - _lib._sel_performAsCurrentWithPendingUnitCount_usingBlock_1, - unitCount, - work._id); - } - - void resignCurrent() { - return _lib._objc_msgSend_1(_id, _lib._sel_resignCurrent1); - } - - void addChild_withPendingUnitCount_(NSProgress? child, int inUnitCount) { - return _lib._objc_msgSend_615( - _id, - _lib._sel_addChild_withPendingUnitCount_1, - child?._id ?? ffi.nullptr, - inUnitCount); - } - - int get totalUnitCount { - return _lib._objc_msgSend_616(_id, _lib._sel_totalUnitCount1); - } - - set totalUnitCount(int value) { - _lib._objc_msgSend_617(_id, _lib._sel_setTotalUnitCount_1, value); - } - - int get completedUnitCount { - return _lib._objc_msgSend_616(_id, _lib._sel_completedUnitCount1); - } - - set completedUnitCount(int value) { - _lib._objc_msgSend_617(_id, _lib._sel_setCompletedUnitCount_1, value); - } - - NSString? get localizedDescription { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localizedDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set localizedDescription(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setLocalizedDescription_1, value?._id ?? ffi.nullptr); - } - - NSString? get localizedAdditionalDescription { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_localizedAdditionalDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set localizedAdditionalDescription(NSString? value) { - _lib._objc_msgSend_509(_id, _lib._sel_setLocalizedAdditionalDescription_1, - value?._id ?? ffi.nullptr); - } - - bool get cancellable { - return _lib._objc_msgSend_12(_id, _lib._sel_isCancellable1); - } - - set cancellable(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setCancellable_1, value); - } - - bool get pausable { - return _lib._objc_msgSend_12(_id, _lib._sel_isPausable1); - } - - set pausable(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setPausable_1, value); - } - - bool get cancelled { - return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); - } - - bool get paused { - return _lib._objc_msgSend_12(_id, _lib._sel_isPaused1); - } - - ObjCBlock21 get cancellationHandler { - final _ret = _lib._objc_msgSend_618(_id, _lib._sel_cancellationHandler1); - return ObjCBlock21._(_ret, _lib); - } - - set cancellationHandler(ObjCBlock21 value) { - _lib._objc_msgSend_619(_id, _lib._sel_setCancellationHandler_1, value._id); - } - - ObjCBlock21 get pausingHandler { - final _ret = _lib._objc_msgSend_618(_id, _lib._sel_pausingHandler1); - return ObjCBlock21._(_ret, _lib); - } - - set pausingHandler(ObjCBlock21 value) { - _lib._objc_msgSend_619(_id, _lib._sel_setPausingHandler_1, value._id); - } - - ObjCBlock21 get resumingHandler { - final _ret = _lib._objc_msgSend_618(_id, _lib._sel_resumingHandler1); - return ObjCBlock21._(_ret, _lib); - } - - set resumingHandler(ObjCBlock21 value) { - _lib._objc_msgSend_619(_id, _lib._sel_setResumingHandler_1, value._id); - } - - void setUserInfoObject_forKey_(NSObject objectOrNil, NSString key) { - return _lib._objc_msgSend_126( - _id, _lib._sel_setUserInfoObject_forKey_1, objectOrNil._id, key._id); - } - - bool get indeterminate { - return _lib._objc_msgSend_12(_id, _lib._sel_isIndeterminate1); - } - - double get fractionCompleted { - return _lib._objc_msgSend_155(_id, _lib._sel_fractionCompleted1); - } - - bool get finished { - return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); - } - - void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); - } - - void pause() { - return _lib._objc_msgSend_1(_id, _lib._sel_pause1); - } - - void resume() { - return _lib._objc_msgSend_1(_id, _lib._sel_resume1); - } - - NSObject? get userInfo { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_userInfo1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); - } - - NSString get kind { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_kind1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - set kind(NSString value) { - _lib._objc_msgSend_509(_id, _lib._sel_setKind_1, value._id); - } - - NSNumber? get estimatedTimeRemaining { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_estimatedTimeRemaining1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); - } - - set estimatedTimeRemaining(NSNumber? value) { - _lib._objc_msgSend_620( - _id, _lib._sel_setEstimatedTimeRemaining_1, value?._id ?? ffi.nullptr); - } - - NSNumber? get throughput { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_throughput1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); - } - - set throughput(NSNumber? value) { - _lib._objc_msgSend_620( - _id, _lib._sel_setThroughput_1, value?._id ?? ffi.nullptr); - } - - NSString get fileOperationKind { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fileOperationKind1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - set fileOperationKind(NSString value) { - _lib._objc_msgSend_509(_id, _lib._sel_setFileOperationKind_1, value._id); - } - - NSURL? get fileURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_fileURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - set fileURL(NSURL? value) { - _lib._objc_msgSend_621( - _id, _lib._sel_setFileURL_1, value?._id ?? ffi.nullptr); - } - - NSNumber? get fileTotalCount { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_fileTotalCount1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); - } - - set fileTotalCount(NSNumber? value) { - _lib._objc_msgSend_620( - _id, _lib._sel_setFileTotalCount_1, value?._id ?? ffi.nullptr); - } - - NSNumber? get fileCompletedCount { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_fileCompletedCount1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); - } - - set fileCompletedCount(NSNumber? value) { - _lib._objc_msgSend_620( - _id, _lib._sel_setFileCompletedCount_1, value?._id ?? ffi.nullptr); - } - - void publish() { - return _lib._objc_msgSend_1(_id, _lib._sel_publish1); - } - - void unpublish() { - return _lib._objc_msgSend_1(_id, _lib._sel_unpublish1); - } - - static NSObject addSubscriberForFileURL_withPublishingHandler_( - HidListenerBindingsSwift _lib, - NSURL? url, - ObjCBlock24 publishingHandler) { - final _ret = _lib._objc_msgSend_622( - _lib._class_NSProgress1, - _lib._sel_addSubscriberForFileURL_withPublishingHandler_1, - url?._id ?? ffi.nullptr, - publishingHandler._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static void removeSubscriber_( - HidListenerBindingsSwift _lib, NSObject subscriber) { - return _lib._objc_msgSend_15( - _lib._class_NSProgress1, _lib._sel_removeSubscriber_1, subscriber._id); - } - - bool get old { - return _lib._objc_msgSend_12(_id, _lib._sel_isOld1); - } - - static NSProgress new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_new1); - return NSProgress._(_ret, _lib, retain: false, release: true); - } - - static NSProgress alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_alloc1); - return NSProgress._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSProgress1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSProgress1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSProgress1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSProgress1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSProgress1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSProgress1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSProgress1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSProgress1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSProgress1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -ffi.Pointer<_ObjCBlock> _ObjCBlock24_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function(ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer arg0)>()(arg0); -} - -final _ObjCBlock24_closureRegistry = {}; -int _ObjCBlock24_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock24_registerClosure(Function fn) { - final id = ++_ObjCBlock24_closureRegistryIndex; - _ObjCBlock24_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -ffi.Pointer<_ObjCBlock> _ObjCBlock24_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock24_closureRegistry[block.ref.target.address]!(arg0); -} - -class ObjCBlock24 extends _ObjCBlockBase { - ObjCBlock24._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock24.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock24_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock24.fromFunction(HidListenerBindingsSwift lib, - ffi.Pointer<_ObjCBlock> Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock24_closureTrampoline) - .cast(), - _ObjCBlock24_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer<_ObjCBlock> call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - ffi.Pointer<_ObjCBlock> Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } -} - -void _ObjCBlock25_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock25_closureRegistry = {}; -int _ObjCBlock25_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock25_registerClosure(Function fn) { - final id = ++_ObjCBlock25_closureRegistryIndex; - _ObjCBlock25_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock25_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock25_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock25 extends _ObjCBlockBase { - ObjCBlock25._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock25.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock25_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock25.fromFunction( - HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock25_closureTrampoline) - .cast(), - _ObjCBlock25_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } -} - -abstract class NSItemProviderFileOptions { - static const int NSItemProviderFileOptionOpenInPlace = 1; -} - -ffi.Pointer _ObjCBlock26_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>()(arg0); -} - -final _ObjCBlock26_closureRegistry = {}; -int _ObjCBlock26_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock26_registerClosure(Function fn) { - final id = ++_ObjCBlock26_closureRegistryIndex; - _ObjCBlock26_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -ffi.Pointer _ObjCBlock26_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return _ObjCBlock26_closureRegistry[block.ref.target.address]!(arg0); -} - -class ObjCBlock26 extends _ObjCBlockBase { - ObjCBlock26._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock26.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock26_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock26.fromFunction(HidListenerBindingsSwift lib, - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock26_closureTrampoline) - .cast(), - _ObjCBlock26_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>()(_id, arg0); - } -} - -void _ObjCBlock27_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock27_closureRegistry = {}; -int _ObjCBlock27_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock27_registerClosure(Function fn) { - final id = ++_ObjCBlock27_closureRegistryIndex; - _ObjCBlock27_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock27_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _ObjCBlock27_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock27 extends _ObjCBlockBase { - ObjCBlock27._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock27.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock27_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock27.fromFunction( - HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock27_closureTrampoline) - .cast(), - _ObjCBlock27_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } -} - -void _ObjCBlock28_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock28_closureRegistry = {}; -int _ObjCBlock28_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock28_registerClosure(Function fn) { - final id = ++_ObjCBlock28_closureRegistryIndex; - _ObjCBlock28_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock28_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock28_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock28 extends _ObjCBlockBase { - ObjCBlock28._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock28.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock28_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock28.fromFunction( - HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock28_closureTrampoline) - .cast(), - _ObjCBlock28_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } -} - -ffi.Pointer _ObjCBlock29_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>()(arg0); -} - -final _ObjCBlock29_closureRegistry = {}; -int _ObjCBlock29_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock29_registerClosure(Function fn) { - final id = ++_ObjCBlock29_closureRegistryIndex; - _ObjCBlock29_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -ffi.Pointer _ObjCBlock29_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return _ObjCBlock29_closureRegistry[block.ref.target.address]!(arg0); -} - -class ObjCBlock29 extends _ObjCBlockBase { - ObjCBlock29._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock29.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock29_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock29.fromFunction(HidListenerBindingsSwift lib, - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock29_closureTrampoline) - .cast(), - _ObjCBlock29_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>()(_id, arg0); - } -} - -void _ObjCBlock30_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock30_closureRegistry = {}; -int _ObjCBlock30_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock30_registerClosure(Function fn) { - final id = ++_ObjCBlock30_closureRegistryIndex; - _ObjCBlock30_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock30_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock30_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock30 extends _ObjCBlockBase { - ObjCBlock30._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock30.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock30_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock30.fromFunction( - HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock30_closureTrampoline) - .cast(), - _ObjCBlock30_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } -} - -void _ObjCBlock31_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock31_closureRegistry = {}; -int _ObjCBlock31_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock31_registerClosure(Function fn) { - final id = ++_ObjCBlock31_closureRegistryIndex; - _ObjCBlock31_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock31_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock31_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock31 extends _ObjCBlockBase { - ObjCBlock31._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock31.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock31_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock31.fromFunction( - HidListenerBindingsSwift lib, - void Function(ffi.Pointer<_ObjCBlock> arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock31_closureTrampoline) - .cast(), - _ObjCBlock31_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer<_ObjCBlock> arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } -} - -class NSMutableString extends NSString { - NSMutableString._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSMutableString] that points to the same underlying object as [other]. - static NSMutableString castFrom(T other) { - return NSMutableString._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSMutableString] that wraps the given raw object pointer. - static NSMutableString castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMutableString._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSMutableString]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableString1); - } - - void replaceCharactersInRange_withString_(_NSRange range, NSString? aString) { - return _lib._objc_msgSend_638( - _id, - _lib._sel_replaceCharactersInRange_withString_1, - range, - aString?._id ?? ffi.nullptr); - } - - void insertString_atIndex_(NSString? aString, int loc) { - return _lib._objc_msgSend_639(_id, _lib._sel_insertString_atIndex_1, - aString?._id ?? ffi.nullptr, loc); - } - - void deleteCharactersInRange_(_NSRange range) { - return _lib._objc_msgSend_445( - _id, _lib._sel_deleteCharactersInRange_1, range); - } - - void appendString_(NSString? aString) { - return _lib._objc_msgSend_192( - _id, _lib._sel_appendString_1, aString?._id ?? ffi.nullptr); - } - - void appendFormat_(NSString? format) { - return _lib._objc_msgSend_192( - _id, _lib._sel_appendFormat_1, format?._id ?? ffi.nullptr); - } - - void setString_(NSString? aString) { - return _lib._objc_msgSend_192( - _id, _lib._sel_setString_1, aString?._id ?? ffi.nullptr); - } - - int replaceOccurrencesOfString_withString_options_range_(NSString? target, - NSString? replacement, int options, _NSRange searchRange) { - return _lib._objc_msgSend_640( - _id, - _lib._sel_replaceOccurrencesOfString_withString_options_range_1, - target?._id ?? ffi.nullptr, - replacement?._id ?? ffi.nullptr, - options, - searchRange); - } - - bool applyTransform_reverse_range_updatedRange_(NSString transform, - bool reverse, _NSRange range, ffi.Pointer<_NSRange> resultingRange) { - return _lib._objc_msgSend_641( - _id, - _lib._sel_applyTransform_reverse_range_updatedRange_1, - transform._id, - reverse, - range, - resultingRange); - } - - NSMutableString initWithCapacity_(int capacity) { - final _ret = - _lib._objc_msgSend_642(_id, _lib._sel_initWithCapacity_1, capacity); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } - - static NSMutableString stringWithCapacity_( - HidListenerBindingsSwift _lib, int capacity) { - final _ret = _lib._objc_msgSend_642( - _lib._class_NSMutableString1, _lib._sel_stringWithCapacity_1, capacity); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } - - static ffi.Pointer getAvailableStringEncodings( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_333( - _lib._class_NSMutableString1, _lib._sel_availableStringEncodings1); - } - - static NSString localizedNameOfStringEncoding_( - HidListenerBindingsSwift _lib, int encoding) { - final _ret = _lib._objc_msgSend_308(_lib._class_NSMutableString1, - _lib._sel_localizedNameOfStringEncoding_1, encoding); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static int getDefaultCStringEncoding(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_10( - _lib._class_NSMutableString1, _lib._sel_defaultCStringEncoding1); - } - - static NSMutableString string(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_string1); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } - - static NSMutableString stringWithString_( - HidListenerBindingsSwift _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, - _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } - - static NSMutableString stringWithCharacters_length_( - HidListenerBindingsSwift _lib, - ffi.Pointer characters, - int length) { - final _ret = _lib._objc_msgSend_346(_lib._class_NSMutableString1, - _lib._sel_stringWithCharacters_length_1, characters, length); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } - - static NSMutableString stringWithUTF8String_(HidListenerBindingsSwift _lib, - ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_347(_lib._class_NSMutableString1, - _lib._sel_stringWithUTF8String_1, nullTerminatedCString); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } - - static NSMutableString stringWithFormat_( - HidListenerBindingsSwift _lib, NSString? format) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, - _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } - - static NSMutableString localizedStringWithFormat_( - HidListenerBindingsSwift _lib, NSString? format) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, - _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } - - static NSMutableString stringWithValidatedFormat_validFormatSpecifiers_error_( - HidListenerBindingsSwift _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_350( - _lib._class_NSMutableString1, - _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } - - static NSMutableString - localizedStringWithValidatedFormat_validFormatSpecifiers_error_( - HidListenerBindingsSwift _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_350( - _lib._class_NSMutableString1, - _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } - - static NSMutableString stringWithCString_encoding_( - HidListenerBindingsSwift _lib, ffi.Pointer cString, int enc) { - final _ret = _lib._objc_msgSend_358(_lib._class_NSMutableString1, - _lib._sel_stringWithCString_encoding_1, cString, enc); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } - - static NSMutableString stringWithContentsOfURL_encoding_error_( - HidListenerBindingsSwift _lib, - NSURL? url, - int enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_359( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } - - static NSMutableString stringWithContentsOfFile_encoding_error_( - HidListenerBindingsSwift _lib, - NSString? path, - int enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_360( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } - - static NSMutableString stringWithContentsOfURL_usedEncoding_error_( - HidListenerBindingsSwift _lib, - NSURL? url, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_361( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } - - static NSMutableString stringWithContentsOfFile_usedEncoding_error_( - HidListenerBindingsSwift _lib, - NSString? path, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_362( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); - } - - static int - stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( - HidListenerBindingsSwift _lib, - NSData? data, - NSDictionary? opts, - ffi.Pointer> string, - ffi.Pointer usedLossyConversion) { - return _lib._objc_msgSend_363( - _lib._class_NSMutableString1, - _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, - data?._id ?? ffi.nullptr, - opts?._id ?? ffi.nullptr, - string, - usedLossyConversion); - } - - static NSObject stringWithContentsOfFile_( - HidListenerBindingsSwift _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject stringWithContentsOfURL_( - HidListenerBindingsSwift _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject stringWithCString_length_( - HidListenerBindingsSwift _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_358(_lib._class_NSMutableString1, - _lib._sel_stringWithCString_length_1, bytes, length); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject stringWithCString_( - HidListenerBindingsSwift _lib, ffi.Pointer bytes) { - final _ret = _lib._objc_msgSend_347( - _lib._class_NSMutableString1, _lib._sel_stringWithCString_1, bytes); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSString pathWithComponents_( - HidListenerBindingsSwift _lib, NSArray? components) { - final _ret = _lib._objc_msgSend_369(_lib._class_NSMutableString1, - _lib._sel_pathWithComponents_1, components?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSMutableString new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_new1); - return NSMutableString._(_ret, _lib, retain: false, release: true); - } - - static NSMutableString alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_alloc1); - return NSMutableString._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSMutableString1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableString1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableString1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableString1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableString1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableString1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSMutableString1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableString1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableString1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSNotification extends NSObject { - NSNotification._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSNotification] that points to the same underlying object as [other]. - static NSNotification castFrom(T other) { - return NSNotification._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSNotification] that wraps the given raw object pointer. - static NSNotification castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSNotification._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSNotification]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSNotification1); - } - - NSString get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSObject get object { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_object1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_userInfo1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSNotification initWithName_object_userInfo_( - NSString name, NSObject object, NSDictionary? userInfo) { - final _ret = _lib._objc_msgSend_643( - _id, - _lib._sel_initWithName_object_userInfo_1, - name._id, - object._id, - userInfo?._id ?? ffi.nullptr); - return NSNotification._(_ret, _lib, retain: true, release: true); - } - - NSNotification initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSNotification._(_ret, _lib, retain: true, release: true); - } - - static NSNotification notificationWithName_object_( - HidListenerBindingsSwift _lib, NSString aName, NSObject anObject) { - final _ret = _lib._objc_msgSend_163(_lib._class_NSNotification1, - _lib._sel_notificationWithName_object_1, aName._id, anObject._id); - return NSNotification._(_ret, _lib, retain: true, release: true); - } - - static NSNotification notificationWithName_object_userInfo_( - HidListenerBindingsSwift _lib, - NSString aName, - NSObject anObject, - NSDictionary? aUserInfo) { - final _ret = _lib._objc_msgSend_643( - _lib._class_NSNotification1, - _lib._sel_notificationWithName_object_userInfo_1, - aName._id, - anObject._id, - aUserInfo?._id ?? ffi.nullptr); - return NSNotification._(_ret, _lib, retain: true, release: true); - } - - @override - NSNotification init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSNotification._(_ret, _lib, retain: true, release: true); - } - - static NSNotification new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_new1); - return NSNotification._(_ret, _lib, retain: false, release: true); - } - - static NSNotification alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_alloc1); - return NSNotification._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSNotification1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSNotification1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSNotification1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSNotification1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSNotification1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSNotification1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSNotification1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSNotification1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSNotification1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSBundle extends NSObject { - NSBundle._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSBundle] that points to the same underlying object as [other]. - static NSBundle castFrom(T other) { - return NSBundle._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSBundle] that wraps the given raw object pointer. - static NSBundle castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSBundle._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSBundle]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSBundle1); - } - - static NSBundle? getMainBundle(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_644(_lib._class_NSBundle1, _lib._sel_mainBundle1); - return _ret.address == 0 - ? null - : NSBundle._(_ret, _lib, retain: true, release: true); - } - - static NSBundle bundleWithPath_( - HidListenerBindingsSwift _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSBundle1, - _lib._sel_bundleWithPath_1, path?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); - } - - NSBundle initWithPath_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithPath_1, path?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); - } - - static NSBundle bundleWithURL_(HidListenerBindingsSwift _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSBundle1, - _lib._sel_bundleWithURL_1, url?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); - } - - NSBundle initWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_241( - _id, _lib._sel_initWithURL_1, url?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); - } - - static NSBundle bundleForClass_( - HidListenerBindingsSwift _lib, NSObject aClass) { - final _ret = _lib._objc_msgSend_645( - _lib._class_NSBundle1, _lib._sel_bundleForClass_1, aClass._id); - return NSBundle._(_ret, _lib, retain: true, release: true); - } - - static NSBundle bundleWithIdentifier_( - HidListenerBindingsSwift _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_646(_lib._class_NSBundle1, - _lib._sel_bundleWithIdentifier_1, identifier?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); - } - - static NSArray? getAllBundles(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_79(_lib._class_NSBundle1, _lib._sel_allBundles1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSArray? getAllFrameworks(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_79(_lib._class_NSBundle1, _lib._sel_allFrameworks1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - bool load() { - return _lib._objc_msgSend_12(_id, _lib._sel_load1); - } - - bool get loaded { - return _lib._objc_msgSend_12(_id, _lib._sel_isLoaded1); - } - - bool unload() { - return _lib._objc_msgSend_12(_id, _lib._sel_unload1); - } - - bool preflightAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_225( - _id, _lib._sel_preflightAndReturnError_1, error); - } - - bool loadAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_225(_id, _lib._sel_loadAndReturnError_1, error); - } - - NSURL? get bundleURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_bundleURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL? get resourceURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_resourceURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL? get executableURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_executableURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL URLForAuxiliaryExecutable_(NSString? executableName) { - final _ret = _lib._objc_msgSend_34( - _id, - _lib._sel_URLForAuxiliaryExecutable_1, - executableName?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL? get privateFrameworksURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_privateFrameworksURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL? get sharedFrameworksURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_sharedFrameworksURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL? get sharedSupportURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_sharedSupportURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL? get builtInPlugInsURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_builtInPlugInsURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL? get appStoreReceiptURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_appStoreReceiptURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - NSString? get bundlePath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_bundlePath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get resourcePath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_resourcePath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get executablePath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_executablePath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString pathForAuxiliaryExecutable_(NSString? executableName) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_pathForAuxiliaryExecutable_1, - executableName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get privateFrameworksPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_privateFrameworksPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get sharedFrameworksPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sharedFrameworksPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get sharedSupportPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sharedSupportPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get builtInPlugInsPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_builtInPlugInsPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - static NSURL URLForResource_withExtension_subdirectory_inBundleWithURL_( - HidListenerBindingsSwift _lib, - NSString? name, - NSString? ext, - NSString? subpath, - NSURL? bundleURL) { - final _ret = _lib._objc_msgSend_647( - _lib._class_NSBundle1, - _lib._sel_URLForResource_withExtension_subdirectory_inBundleWithURL_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - bundleURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - static NSArray URLsForResourcesWithExtension_subdirectory_inBundleWithURL_( - HidListenerBindingsSwift _lib, - NSString? ext, - NSString? subpath, - NSURL? bundleURL) { - final _ret = _lib._objc_msgSend_648( - _lib._class_NSBundle1, - _lib._sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_1, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - bundleURL?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSURL URLForResource_withExtension_(NSString? name, NSString? ext) { - final _ret = _lib._objc_msgSend_649( - _id, - _lib._sel_URLForResource_withExtension_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL URLForResource_withExtension_subdirectory_( - NSString? name, NSString? ext, NSString? subpath) { - final _ret = _lib._objc_msgSend_650( - _id, - _lib._sel_URLForResource_withExtension_subdirectory_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - NSURL URLForResource_withExtension_subdirectory_localization_(NSString? name, - NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_651( - _id, - _lib._sel_URLForResource_withExtension_subdirectory_localization_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - localizationName?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); - } - - NSArray URLsForResourcesWithExtension_subdirectory_( - NSString? ext, NSString? subpath) { - final _ret = _lib._objc_msgSend_652( - _id, - _lib._sel_URLsForResourcesWithExtension_subdirectory_1, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray URLsForResourcesWithExtension_subdirectory_localization_( - NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_653( - _id, - _lib._sel_URLsForResourcesWithExtension_subdirectory_localization_1, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - localizationName?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSString pathForResource_ofType_inDirectory_( - HidListenerBindingsSwift _lib, - NSString? name, - NSString? ext, - NSString? bundlePath) { - final _ret = _lib._objc_msgSend_654( - _lib._class_NSBundle1, - _lib._sel_pathForResource_ofType_inDirectory_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr, - bundlePath?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSArray pathsForResourcesOfType_inDirectory_( - HidListenerBindingsSwift _lib, NSString? ext, NSString? bundlePath) { - final _ret = _lib._objc_msgSend_652( - _lib._class_NSBundle1, - _lib._sel_pathsForResourcesOfType_inDirectory_1, - ext?._id ?? ffi.nullptr, - bundlePath?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSString pathForResource_ofType_(NSString? name, NSString? ext) { - final _ret = _lib._objc_msgSend_339(_id, _lib._sel_pathForResource_ofType_1, - name?._id ?? ffi.nullptr, ext?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString pathForResource_ofType_inDirectory_forLocalization_(NSString? name, - NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_655( - _id, - _lib._sel_pathForResource_ofType_inDirectory_forLocalization_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - localizationName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSArray pathsForResourcesOfType_inDirectory_forLocalization_( - NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_653( - _id, - _lib._sel_pathsForResourcesOfType_inDirectory_forLocalization_1, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - localizationName?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSString localizedStringForKey_value_table_( - NSString? key, NSString? value, NSString? tableName) { - final _ret = _lib._objc_msgSend_654( - _id, - _lib._sel_localizedStringForKey_value_table_1, - key?._id ?? ffi.nullptr, - value?._id ?? ffi.nullptr, - tableName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSAttributedString localizedAttributedStringForKey_value_table_( - NSString? key, NSString? value, NSString? tableName) { - final _ret = _lib._objc_msgSend_676( - _id, - _lib._sel_localizedAttributedStringForKey_value_table_1, - key?._id ?? ffi.nullptr, - value?._id ?? ffi.nullptr, - tableName?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); - } - - NSString? get bundleIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_bundleIdentifier1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSDictionary? get infoDictionary { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_infoDictionary1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSDictionary? get localizedInfoDictionary { - final _ret = - _lib._objc_msgSend_170(_id, _lib._sel_localizedInfoDictionary1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSObject objectForInfoDictionaryKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_objectForInfoDictionaryKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject classNamed_(NSString? className) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_classNamed_1, className?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject get principalClass { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_principalClass1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSArray? get preferredLocalizations { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_preferredLocalizations1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get localizations { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_localizations1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSString? get developmentLocalization { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_developmentLocalization1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - static NSArray preferredLocalizationsFromArray_( - HidListenerBindingsSwift _lib, NSArray? localizationsArray) { - final _ret = _lib._objc_msgSend_63( - _lib._class_NSBundle1, - _lib._sel_preferredLocalizationsFromArray_1, - localizationsArray?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSArray preferredLocalizationsFromArray_forPreferences_( - HidListenerBindingsSwift _lib, - NSArray? localizationsArray, - NSArray? preferencesArray) { - final _ret = _lib._objc_msgSend_677( - _lib._class_NSBundle1, - _lib._sel_preferredLocalizationsFromArray_forPreferences_1, - localizationsArray?._id ?? ffi.nullptr, - preferencesArray?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get executableArchitectures { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_executableArchitectures1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - void setPreservationPriority_forTags_(double priority, NSSet? tags) { - return _lib._objc_msgSend_678( - _id, - _lib._sel_setPreservationPriority_forTags_1, - priority, - tags?._id ?? ffi.nullptr); - } - - double preservationPriorityForTag_(NSString? tag) { - return _lib._objc_msgSend_284( - _id, _lib._sel_preservationPriorityForTag_1, tag?._id ?? ffi.nullptr); - } - - static NSBundle new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSBundle1, _lib._sel_new1); - return NSBundle._(_ret, _lib, retain: false, release: true); - } - - static NSBundle alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSBundle1, _lib._sel_alloc1); - return NSBundle._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSBundle1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSBundle1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSBundle1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSBundle1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSBundle1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSBundle1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSBundle1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSBundle1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSBundle1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSAttributedString extends NSObject { - NSAttributedString._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSAttributedString] that points to the same underlying object as [other]. - static NSAttributedString castFrom(T other) { - return NSAttributedString._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSAttributedString] that wraps the given raw object pointer. - static NSAttributedString castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSAttributedString._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSAttributedString]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSAttributedString1); - } - - NSString? get string { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_string1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSDictionary attributesAtIndex_effectiveRange_( - int location, ffi.Pointer<_NSRange> range) { - final _ret = _lib._objc_msgSend_656( - _id, _lib._sel_attributesAtIndex_effectiveRange_1, location, range); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - int get length { - return _lib._objc_msgSend_10(_id, _lib._sel_length1); - } - - NSObject attribute_atIndex_effectiveRange_( - NSString attrName, int location, ffi.Pointer<_NSRange> range) { - final _ret = _lib._objc_msgSend_657( - _id, - _lib._sel_attribute_atIndex_effectiveRange_1, - attrName._id, - location, - range); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSAttributedString attributedSubstringFromRange_(_NSRange range) { - final _ret = _lib._objc_msgSend_658( - _id, _lib._sel_attributedSubstringFromRange_1, range); - return NSAttributedString._(_ret, _lib, retain: true, release: true); - } - - NSDictionary attributesAtIndex_longestEffectiveRange_inRange_( - int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit) { - final _ret = _lib._objc_msgSend_659( - _id, - _lib._sel_attributesAtIndex_longestEffectiveRange_inRange_1, - location, - range, - rangeLimit); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSObject attribute_atIndex_longestEffectiveRange_inRange_(NSString attrName, - int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit) { - final _ret = _lib._objc_msgSend_660( - _id, - _lib._sel_attribute_atIndex_longestEffectiveRange_inRange_1, - attrName._id, - location, - range, - rangeLimit); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - bool isEqualToAttributedString_(NSAttributedString? other) { - return _lib._objc_msgSend_661( - _id, _lib._sel_isEqualToAttributedString_1, other?._id ?? ffi.nullptr); - } - - NSAttributedString initWithString_(NSString? str) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, str?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); - } - - NSAttributedString initWithString_attributes_( - NSString? str, NSDictionary? attrs) { - final _ret = _lib._objc_msgSend_371( - _id, - _lib._sel_initWithString_attributes_1, - str?._id ?? ffi.nullptr, - attrs?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); - } - - NSAttributedString initWithAttributedString_(NSAttributedString? attrStr) { - final _ret = _lib._objc_msgSend_662( - _id, _lib._sel_initWithAttributedString_1, attrStr?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); - } - - void enumerateAttributesInRange_options_usingBlock_( - _NSRange enumerationRange, int opts, ObjCBlock32 block) { - return _lib._objc_msgSend_663( - _id, - _lib._sel_enumerateAttributesInRange_options_usingBlock_1, - enumerationRange, - opts, - block._id); - } - - void enumerateAttribute_inRange_options_usingBlock_(NSString attrName, - _NSRange enumerationRange, int opts, ObjCBlock33 block) { - return _lib._objc_msgSend_664( - _id, - _lib._sel_enumerateAttribute_inRange_options_usingBlock_1, - attrName._id, - enumerationRange, - opts, - block._id); - } - - NSAttributedString initWithContentsOfMarkdownFileAtURL_options_baseURL_error_( - NSURL? markdownFile, - NSAttributedStringMarkdownParsingOptions? options, - NSURL? baseURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_669( - _id, - _lib._sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1, - markdownFile?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr, - error); - return NSAttributedString._(_ret, _lib, retain: true, release: true); - } - - NSAttributedString initWithMarkdown_options_baseURL_error_( - NSData? markdown, - NSAttributedStringMarkdownParsingOptions? options, - NSURL? baseURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_670( - _id, - _lib._sel_initWithMarkdown_options_baseURL_error_1, - markdown?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr, - error); - return NSAttributedString._(_ret, _lib, retain: true, release: true); - } - - NSAttributedString initWithMarkdownString_options_baseURL_error_( - NSString? markdownString, - NSAttributedStringMarkdownParsingOptions? options, - NSURL? baseURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_671( - _id, - _lib._sel_initWithMarkdownString_options_baseURL_error_1, - markdownString?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr, - error); - return NSAttributedString._(_ret, _lib, retain: true, release: true); - } - - NSAttributedString initWithFormat_options_locale_( - NSAttributedString? format, int options, NSLocale? locale) { - final _ret = _lib._objc_msgSend_672( - _id, - _lib._sel_initWithFormat_options_locale_1, - format?._id ?? ffi.nullptr, - options, - locale?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); - } - - NSAttributedString initWithFormat_options_locale_arguments_( - NSAttributedString? format, - int options, - NSLocale? locale, - ffi.Pointer<__va_list_tag> arguments) { - final _ret = _lib._objc_msgSend_673( - _id, - _lib._sel_initWithFormat_options_locale_arguments_1, - format?._id ?? ffi.nullptr, - options, - locale?._id ?? ffi.nullptr, - arguments); - return NSAttributedString._(_ret, _lib, retain: true, release: true); - } - - static NSAttributedString localizedAttributedStringWithFormat_( - HidListenerBindingsSwift _lib, NSAttributedString? format) { - final _ret = _lib._objc_msgSend_662( - _lib._class_NSAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_1, - format?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); - } - - static NSAttributedString localizedAttributedStringWithFormat_options_( - HidListenerBindingsSwift _lib, NSAttributedString? format, int options) { - final _ret = _lib._objc_msgSend_674( - _lib._class_NSAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_options_1, - format?._id ?? ffi.nullptr, - options); - return NSAttributedString._(_ret, _lib, retain: true, release: true); - } - - NSAttributedString attributedStringByInflectingString() { - final _ret = _lib._objc_msgSend_675( - _id, _lib._sel_attributedStringByInflectingString1); - return NSAttributedString._(_ret, _lib, retain: true, release: true); - } - - static NSAttributedString new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSAttributedString1, _lib._sel_new1); - return NSAttributedString._(_ret, _lib, retain: false, release: true); - } - - static NSAttributedString alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSAttributedString1, _lib._sel_alloc1); - return NSAttributedString._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSAttributedString1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSAttributedString1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSAttributedString1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSAttributedString1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSAttributedString1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSAttributedString1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSAttributedString1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSAttributedString1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSAttributedString1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSAttributedStringEnumerationOptions { - static const int NSAttributedStringEnumerationReverse = 2; - static const int - NSAttributedStringEnumerationLongestEffectiveRangeNotRequired = 1048576; -} - -void _ObjCBlock32_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock32_closureRegistry = {}; -int _ObjCBlock32_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock32_registerClosure(Function fn) { - final id = ++_ObjCBlock32_closureRegistryIndex; - _ObjCBlock32_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock32_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { - return _ObjCBlock32_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock32 extends _ObjCBlockBase { - ObjCBlock32._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock32.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock32_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock32.fromFunction( - HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock32_closureTrampoline) - .cast(), - _ObjCBlock32_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } -} - -void _ObjCBlock33_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock33_closureRegistry = {}; -int _ObjCBlock33_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock33_registerClosure(Function fn) { - final id = ++_ObjCBlock33_closureRegistryIndex; - _ObjCBlock33_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock33_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { - return _ObjCBlock33_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock33 extends _ObjCBlockBase { - ObjCBlock33._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock33.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock33_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock33.fromFunction( - HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock33_closureTrampoline) - .cast(), - _ObjCBlock33_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } -} - -class NSAttributedStringMarkdownParsingOptions extends NSObject { - NSAttributedStringMarkdownParsingOptions._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSAttributedStringMarkdownParsingOptions] that points to the same underlying object as [other]. - static NSAttributedStringMarkdownParsingOptions - castFrom(T other) { - return NSAttributedStringMarkdownParsingOptions._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSAttributedStringMarkdownParsingOptions] that wraps the given raw object pointer. - static NSAttributedStringMarkdownParsingOptions castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSAttributedStringMarkdownParsingOptions._(other, lib, - retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSAttributedStringMarkdownParsingOptions]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSAttributedStringMarkdownParsingOptions1); - } - - @override - NSAttributedStringMarkdownParsingOptions init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, - retain: true, release: true); - } - - bool get allowsExtendedAttributes { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsExtendedAttributes1); - } - - set allowsExtendedAttributes(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setAllowsExtendedAttributes_1, value); - } - - int get interpretedSyntax { - return _lib._objc_msgSend_665(_id, _lib._sel_interpretedSyntax1); - } - - set interpretedSyntax(int value) { - _lib._objc_msgSend_666(_id, _lib._sel_setInterpretedSyntax_1, value); - } - - int get failurePolicy { - return _lib._objc_msgSend_667(_id, _lib._sel_failurePolicy1); - } - - set failurePolicy(int value) { - _lib._objc_msgSend_668(_id, _lib._sel_setFailurePolicy_1, value); - } - - NSString? get languageCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_languageCode1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set languageCode(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setLanguageCode_1, value?._id ?? ffi.nullptr); - } - - bool get appliesSourcePositionAttributes { - return _lib._objc_msgSend_12( - _id, _lib._sel_appliesSourcePositionAttributes1); - } - - set appliesSourcePositionAttributes(bool value) { - _lib._objc_msgSend_492( - _id, _lib._sel_setAppliesSourcePositionAttributes_1, value); - } - - static NSAttributedStringMarkdownParsingOptions new1( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_new1); - return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, - retain: false, release: true); - } - - static NSAttributedStringMarkdownParsingOptions alloc( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_alloc1); - return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, - retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, - aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSAttributedStringMarkdownInterpretedSyntax { - static const int NSAttributedStringMarkdownInterpretedSyntaxFull = 0; - static const int NSAttributedStringMarkdownInterpretedSyntaxInlineOnly = 1; - static const int - NSAttributedStringMarkdownInterpretedSyntaxInlineOnlyPreservingWhitespace = - 2; -} - -abstract class NSAttributedStringMarkdownParsingFailurePolicy { - static const int NSAttributedStringMarkdownParsingFailureReturnError = 0; - static const int - NSAttributedStringMarkdownParsingFailureReturnPartiallyParsedIfPossible = - 1; -} - -abstract class NSAttributedStringFormattingOptions { - static const int - NSAttributedStringFormattingInsertArgumentAttributesWithoutMerging = 1; - static const int NSAttributedStringFormattingApplyReplacementIndexAttribute = - 2; -} - -class NSMutableAttributedString extends NSAttributedString { - NSMutableAttributedString._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSMutableAttributedString] that points to the same underlying object as [other]. - static NSMutableAttributedString castFrom(T other) { - return NSMutableAttributedString._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSMutableAttributedString] that wraps the given raw object pointer. - static NSMutableAttributedString castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMutableAttributedString._(other, lib, - retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSMutableAttributedString]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableAttributedString1); - } - - void replaceCharactersInRange_withString_(_NSRange range, NSString? str) { - return _lib._objc_msgSend_638( - _id, - _lib._sel_replaceCharactersInRange_withString_1, - range, - str?._id ?? ffi.nullptr); - } - - void setAttributes_range_(NSDictionary? attrs, _NSRange range) { - return _lib._objc_msgSend_679( - _id, _lib._sel_setAttributes_range_1, attrs?._id ?? ffi.nullptr, range); - } - - NSMutableString? get mutableString { - final _ret = _lib._objc_msgSend_680(_id, _lib._sel_mutableString1); - return _ret.address == 0 - ? null - : NSMutableString._(_ret, _lib, retain: true, release: true); - } - - void addAttribute_value_range_( - NSString name, NSObject value, _NSRange range) { - return _lib._objc_msgSend_681( - _id, _lib._sel_addAttribute_value_range_1, name._id, value._id, range); - } - - void addAttributes_range_(NSDictionary? attrs, _NSRange range) { - return _lib._objc_msgSend_679( - _id, _lib._sel_addAttributes_range_1, attrs?._id ?? ffi.nullptr, range); - } - - void removeAttribute_range_(NSString name, _NSRange range) { - return _lib._objc_msgSend_682( - _id, _lib._sel_removeAttribute_range_1, name._id, range); - } - - void replaceCharactersInRange_withAttributedString_( - _NSRange range, NSAttributedString? attrString) { - return _lib._objc_msgSend_683( - _id, - _lib._sel_replaceCharactersInRange_withAttributedString_1, - range, - attrString?._id ?? ffi.nullptr); - } - - void insertAttributedString_atIndex_( - NSAttributedString? attrString, int loc) { - return _lib._objc_msgSend_684( - _id, - _lib._sel_insertAttributedString_atIndex_1, - attrString?._id ?? ffi.nullptr, - loc); - } - - void appendAttributedString_(NSAttributedString? attrString) { - return _lib._objc_msgSend_685(_id, _lib._sel_appendAttributedString_1, - attrString?._id ?? ffi.nullptr); - } - - void deleteCharactersInRange_(_NSRange range) { - return _lib._objc_msgSend_445( - _id, _lib._sel_deleteCharactersInRange_1, range); - } - - void setAttributedString_(NSAttributedString? attrString) { - return _lib._objc_msgSend_685( - _id, _lib._sel_setAttributedString_1, attrString?._id ?? ffi.nullptr); - } - - void beginEditing() { - return _lib._objc_msgSend_1(_id, _lib._sel_beginEditing1); - } - - void endEditing() { - return _lib._objc_msgSend_1(_id, _lib._sel_endEditing1); - } - - void appendLocalizedFormat_(NSAttributedString? format) { - return _lib._objc_msgSend_685( - _id, _lib._sel_appendLocalizedFormat_1, format?._id ?? ffi.nullptr); - } - - static NSMutableAttributedString localizedAttributedStringWithFormat_( - HidListenerBindingsSwift _lib, NSAttributedString? format) { - final _ret = _lib._objc_msgSend_662( - _lib._class_NSMutableAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_1, - format?._id ?? ffi.nullptr); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); - } - - static NSMutableAttributedString localizedAttributedStringWithFormat_options_( - HidListenerBindingsSwift _lib, NSAttributedString? format, int options) { - final _ret = _lib._objc_msgSend_674( - _lib._class_NSMutableAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_options_1, - format?._id ?? ffi.nullptr, - options); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); - } - - static NSMutableAttributedString new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableAttributedString1, _lib._sel_new1); - return NSMutableAttributedString._(_ret, _lib, - retain: false, release: true); - } - - static NSMutableAttributedString alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableAttributedString1, _lib._sel_alloc1); - return NSMutableAttributedString._(_ret, _lib, - retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSMutableAttributedString1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableAttributedString1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableAttributedString1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableAttributedString1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableAttributedString1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableAttributedString1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSMutableAttributedString1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableAttributedString1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableAttributedString1, - _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSDateFormatter extends NSFormatter { - NSDateFormatter._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSDateFormatter] that points to the same underlying object as [other]. - static NSDateFormatter castFrom(T other) { - return NSDateFormatter._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSDateFormatter] that wraps the given raw object pointer. - static NSDateFormatter castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSDateFormatter._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSDateFormatter]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSDateFormatter1); - } - - int get formattingContext { - return _lib._objc_msgSend_690(_id, _lib._sel_formattingContext1); - } - - set formattingContext(int value) { - _lib._objc_msgSend_691(_id, _lib._sel_setFormattingContext_1, value); - } - - bool getObjectValue_forString_range_error_( - ffi.Pointer> obj, - NSString? string, - ffi.Pointer<_NSRange> rangep, - ffi.Pointer> error) { - return _lib._objc_msgSend_692( - _id, - _lib._sel_getObjectValue_forString_range_error_1, - obj, - string?._id ?? ffi.nullptr, - rangep, - error); - } - - NSString stringFromDate_(NSDate? date) { - final _ret = _lib._objc_msgSend_167( - _id, _lib._sel_stringFromDate_1, date?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSDate dateFromString_(NSString? string) { - final _ret = _lib._objc_msgSend_528( - _id, _lib._sel_dateFromString_1, string?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - static NSString localizedStringFromDate_dateStyle_timeStyle_( - HidListenerBindingsSwift _lib, NSDate? date, int dstyle, int tstyle) { - final _ret = _lib._objc_msgSend_693( - _lib._class_NSDateFormatter1, - _lib._sel_localizedStringFromDate_dateStyle_timeStyle_1, - date?._id ?? ffi.nullptr, - dstyle, - tstyle); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString dateFormatFromTemplate_options_locale_( - HidListenerBindingsSwift _lib, - NSString? tmplate, - int opts, - NSLocale? locale) { - final _ret = _lib._objc_msgSend_694( - _lib._class_NSDateFormatter1, - _lib._sel_dateFormatFromTemplate_options_locale_1, - tmplate?._id ?? ffi.nullptr, - opts, - locale?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static int getDefaultFormatterBehavior(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_695( - _lib._class_NSDateFormatter1, _lib._sel_defaultFormatterBehavior1); - } - - static void setDefaultFormatterBehavior( - HidListenerBindingsSwift _lib, int value) { - _lib._objc_msgSend_696(_lib._class_NSDateFormatter1, - _lib._sel_setDefaultFormatterBehavior_1, value); - } - - void setLocalizedDateFormatFromTemplate_(NSString? dateFormatTemplate) { - return _lib._objc_msgSend_192( - _id, - _lib._sel_setLocalizedDateFormatFromTemplate_1, - dateFormatTemplate?._id ?? ffi.nullptr); - } - - NSString? get dateFormat { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_dateFormat1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set dateFormat(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setDateFormat_1, value?._id ?? ffi.nullptr); - } - - int get dateStyle { - return _lib._objc_msgSend_697(_id, _lib._sel_dateStyle1); - } - - set dateStyle(int value) { - _lib._objc_msgSend_698(_id, _lib._sel_setDateStyle_1, value); - } - - int get timeStyle { - return _lib._objc_msgSend_697(_id, _lib._sel_timeStyle1); - } - - set timeStyle(int value) { - _lib._objc_msgSend_698(_id, _lib._sel_setTimeStyle_1, value); - } - - NSLocale? get locale { - final _ret = _lib._objc_msgSend_182(_id, _lib._sel_locale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); - } - - set locale(NSLocale? value) { - _lib._objc_msgSend_699( - _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); - } - - bool get generatesCalendarDates { - return _lib._objc_msgSend_12(_id, _lib._sel_generatesCalendarDates1); - } - - set generatesCalendarDates(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setGeneratesCalendarDates_1, value); - } - - int get formatterBehavior { - return _lib._objc_msgSend_695(_id, _lib._sel_formatterBehavior1); - } - - set formatterBehavior(int value) { - _lib._objc_msgSend_696(_id, _lib._sel_setFormatterBehavior_1, value); - } - - NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); - } - - set timeZone(NSTimeZone? value) { - _lib._objc_msgSend_169( - _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); - } - - NSCalendar? get calendar { - final _ret = _lib._objc_msgSend_700(_id, _lib._sel_calendar1); - return _ret.address == 0 - ? null - : NSCalendar._(_ret, _lib, retain: true, release: true); - } - - set calendar(NSCalendar? value) { - _lib._objc_msgSend_706( - _id, _lib._sel_setCalendar_1, value?._id ?? ffi.nullptr); - } - - bool get lenient { - return _lib._objc_msgSend_12(_id, _lib._sel_isLenient1); - } - - set lenient(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setLenient_1, value); - } - - NSDate? get twoDigitStartDate { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_twoDigitStartDate1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } - - set twoDigitStartDate(NSDate? value) { - _lib._objc_msgSend_525( - _id, _lib._sel_setTwoDigitStartDate_1, value?._id ?? ffi.nullptr); - } - - NSDate? get defaultDate { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_defaultDate1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } - - set defaultDate(NSDate? value) { - _lib._objc_msgSend_525( - _id, _lib._sel_setDefaultDate_1, value?._id ?? ffi.nullptr); - } - - NSArray? get eraSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_eraSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set eraSymbols(NSArray? value) { - _lib._objc_msgSend_731( - _id, _lib._sel_setEraSymbols_1, value?._id ?? ffi.nullptr); - } - - NSArray? get monthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_monthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set monthSymbols(NSArray? value) { - _lib._objc_msgSend_731( - _id, _lib._sel_setMonthSymbols_1, value?._id ?? ffi.nullptr); - } - - NSArray? get shortMonthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set shortMonthSymbols(NSArray? value) { - _lib._objc_msgSend_731( - _id, _lib._sel_setShortMonthSymbols_1, value?._id ?? ffi.nullptr); - } - - NSArray? get weekdaySymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_weekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set weekdaySymbols(NSArray? value) { - _lib._objc_msgSend_731( - _id, _lib._sel_setWeekdaySymbols_1, value?._id ?? ffi.nullptr); - } - - NSArray? get shortWeekdaySymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set shortWeekdaySymbols(NSArray? value) { - _lib._objc_msgSend_731( - _id, _lib._sel_setShortWeekdaySymbols_1, value?._id ?? ffi.nullptr); - } - - NSString? get AMSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_AMSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set AMSymbol(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setAMSymbol_1, value?._id ?? ffi.nullptr); - } - - NSString? get PMSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_PMSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set PMSymbol(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setPMSymbol_1, value?._id ?? ffi.nullptr); - } - - NSArray? get longEraSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_longEraSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set longEraSymbols(NSArray? value) { - _lib._objc_msgSend_731( - _id, _lib._sel_setLongEraSymbols_1, value?._id ?? ffi.nullptr); - } - - NSArray? get veryShortMonthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set veryShortMonthSymbols(NSArray? value) { - _lib._objc_msgSend_731( - _id, _lib._sel_setVeryShortMonthSymbols_1, value?._id ?? ffi.nullptr); - } - - NSArray? get standaloneMonthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_standaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set standaloneMonthSymbols(NSArray? value) { - _lib._objc_msgSend_731( - _id, _lib._sel_setStandaloneMonthSymbols_1, value?._id ?? ffi.nullptr); - } - - NSArray? get shortStandaloneMonthSymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set shortStandaloneMonthSymbols(NSArray? value) { - _lib._objc_msgSend_731(_id, _lib._sel_setShortStandaloneMonthSymbols_1, - value?._id ?? ffi.nullptr); - } - - NSArray? get veryShortStandaloneMonthSymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_veryShortStandaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set veryShortStandaloneMonthSymbols(NSArray? value) { - _lib._objc_msgSend_731(_id, _lib._sel_setVeryShortStandaloneMonthSymbols_1, - value?._id ?? ffi.nullptr); - } - - NSArray? get veryShortWeekdaySymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set veryShortWeekdaySymbols(NSArray? value) { - _lib._objc_msgSend_731( - _id, _lib._sel_setVeryShortWeekdaySymbols_1, value?._id ?? ffi.nullptr); - } - - NSArray? get standaloneWeekdaySymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_standaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set standaloneWeekdaySymbols(NSArray? value) { - _lib._objc_msgSend_731(_id, _lib._sel_setStandaloneWeekdaySymbols_1, - value?._id ?? ffi.nullptr); - } - - NSArray? get shortStandaloneWeekdaySymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set shortStandaloneWeekdaySymbols(NSArray? value) { - _lib._objc_msgSend_731(_id, _lib._sel_setShortStandaloneWeekdaySymbols_1, - value?._id ?? ffi.nullptr); - } - - NSArray? get veryShortStandaloneWeekdaySymbols { - final _ret = _lib._objc_msgSend_79( - _id, _lib._sel_veryShortStandaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set veryShortStandaloneWeekdaySymbols(NSArray? value) { - _lib._objc_msgSend_731( - _id, - _lib._sel_setVeryShortStandaloneWeekdaySymbols_1, - value?._id ?? ffi.nullptr); - } - - NSArray? get quarterSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_quarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set quarterSymbols(NSArray? value) { - _lib._objc_msgSend_731( - _id, _lib._sel_setQuarterSymbols_1, value?._id ?? ffi.nullptr); - } - - NSArray? get shortQuarterSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set shortQuarterSymbols(NSArray? value) { - _lib._objc_msgSend_731( - _id, _lib._sel_setShortQuarterSymbols_1, value?._id ?? ffi.nullptr); - } - - NSArray? get standaloneQuarterSymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_standaloneQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set standaloneQuarterSymbols(NSArray? value) { - _lib._objc_msgSend_731(_id, _lib._sel_setStandaloneQuarterSymbols_1, - value?._id ?? ffi.nullptr); - } - - NSArray? get shortStandaloneQuarterSymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set shortStandaloneQuarterSymbols(NSArray? value) { - _lib._objc_msgSend_731(_id, _lib._sel_setShortStandaloneQuarterSymbols_1, - value?._id ?? ffi.nullptr); - } - - NSDate? get gregorianStartDate { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_gregorianStartDate1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } - - set gregorianStartDate(NSDate? value) { - _lib._objc_msgSend_525( - _id, _lib._sel_setGregorianStartDate_1, value?._id ?? ffi.nullptr); - } - - bool get doesRelativeDateFormatting { - return _lib._objc_msgSend_12(_id, _lib._sel_doesRelativeDateFormatting1); - } - - set doesRelativeDateFormatting(bool value) { - _lib._objc_msgSend_492( - _id, _lib._sel_setDoesRelativeDateFormatting_1, value); - } - - NSObject initWithDateFormat_allowNaturalLanguage_( - NSString? format, bool flag) { - final _ret = _lib._objc_msgSend_29( - _id, - _lib._sel_initWithDateFormat_allowNaturalLanguage_1, - format?._id ?? ffi.nullptr, - flag); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - bool allowsNaturalLanguage() { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsNaturalLanguage1); - } - - static NSDateFormatter new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSDateFormatter1, _lib._sel_new1); - return NSDateFormatter._(_ret, _lib, retain: false, release: true); - } - - static NSDateFormatter alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSDateFormatter1, _lib._sel_alloc1); - return NSDateFormatter._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSDateFormatter1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSDateFormatter1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSDateFormatter1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSDateFormatter1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSDateFormatter1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSDateFormatter1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSDateFormatter1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSDateFormatter1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSDateFormatter1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSFormatter extends NSObject { - NSFormatter._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSFormatter] that points to the same underlying object as [other]. - static NSFormatter castFrom(T other) { - return NSFormatter._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSFormatter] that wraps the given raw object pointer. - static NSFormatter castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSFormatter._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSFormatter]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFormatter1); - } - - NSString stringForObjectValue_(NSObject obj) { - final _ret = - _lib._objc_msgSend_65(_id, _lib._sel_stringForObjectValue_1, obj._id); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSAttributedString attributedStringForObjectValue_withDefaultAttributes_( - NSObject obj, NSDictionary? attrs) { - final _ret = _lib._objc_msgSend_686( - _id, - _lib._sel_attributedStringForObjectValue_withDefaultAttributes_1, - obj._id, - attrs?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); - } - - NSString editingStringForObjectValue_(NSObject obj) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_editingStringForObjectValue_1, obj._id); - return NSString._(_ret, _lib, retain: true, release: true); - } - - bool getObjectValue_forString_errorDescription_( - ffi.Pointer> obj, - NSString? string, - ffi.Pointer> error) { - return _lib._objc_msgSend_687( - _id, - _lib._sel_getObjectValue_forString_errorDescription_1, - obj, - string?._id ?? ffi.nullptr, - error); - } - - bool isPartialStringValid_newEditingString_errorDescription_( - NSString? partialString, - ffi.Pointer> newString, - ffi.Pointer> error) { - return _lib._objc_msgSend_688( - _id, - _lib._sel_isPartialStringValid_newEditingString_errorDescription_1, - partialString?._id ?? ffi.nullptr, - newString, - error); - } - - bool - isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_( - ffi.Pointer> partialStringPtr, - ffi.Pointer<_NSRange> proposedSelRangePtr, - NSString? origString, - _NSRange origSelRange, - ffi.Pointer> error) { - return _lib._objc_msgSend_689( - _id, - _lib._sel_isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_1, - partialStringPtr, - proposedSelRangePtr, - origString?._id ?? ffi.nullptr, - origSelRange, - error); - } - - static NSFormatter new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSFormatter1, _lib._sel_new1); - return NSFormatter._(_ret, _lib, retain: false, release: true); - } - - static NSFormatter alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSFormatter1, _lib._sel_alloc1); - return NSFormatter._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSFormatter1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSFormatter1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSFormatter1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSFormatter1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSFormatter1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSFormatter1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSFormatter1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSFormatter1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSFormatter1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSFormattingContext { - static const int NSFormattingContextUnknown = 0; - static const int NSFormattingContextDynamic = 1; - static const int NSFormattingContextStandalone = 2; - static const int NSFormattingContextListItem = 3; - static const int NSFormattingContextBeginningOfSentence = 4; - static const int NSFormattingContextMiddleOfSentence = 5; -} - -abstract class NSDateFormatterStyle { - static const int NSDateFormatterNoStyle = 0; - static const int NSDateFormatterShortStyle = 1; - static const int NSDateFormatterMediumStyle = 2; - static const int NSDateFormatterLongStyle = 3; - static const int NSDateFormatterFullStyle = 4; -} - -abstract class NSDateFormatterBehavior { - static const int NSDateFormatterBehaviorDefault = 0; - static const int NSDateFormatterBehavior10_0 = 1000; - static const int NSDateFormatterBehavior10_4 = 1040; -} - -class NSCalendar extends NSObject { - NSCalendar._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSCalendar] that points to the same underlying object as [other]. - static NSCalendar castFrom(T other) { - return NSCalendar._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSCalendar] that wraps the given raw object pointer. - static NSCalendar castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSCalendar._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSCalendar]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSCalendar1); - } - - static NSCalendar? getCurrentCalendar(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_700( - _lib._class_NSCalendar1, _lib._sel_currentCalendar1); - return _ret.address == 0 - ? null - : NSCalendar._(_ret, _lib, retain: true, release: true); - } - - static NSCalendar? getAutoupdatingCurrentCalendar( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_700( - _lib._class_NSCalendar1, _lib._sel_autoupdatingCurrentCalendar1); - return _ret.address == 0 - ? null - : NSCalendar._(_ret, _lib, retain: true, release: true); - } - - static NSCalendar calendarWithIdentifier_( - HidListenerBindingsSwift _lib, NSString calendarIdentifierConstant) { - final _ret = _lib._objc_msgSend_701(_lib._class_NSCalendar1, - _lib._sel_calendarWithIdentifier_1, calendarIdentifierConstant._id); - return NSCalendar._(_ret, _lib, retain: true, release: true); - } - - @override - NSCalendar init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSCalendar._(_ret, _lib, retain: true, release: true); - } - - NSObject initWithCalendarIdentifier_(NSString ident) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithCalendarIdentifier_1, ident._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSString get calendarIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_calendarIdentifier1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSLocale? get locale { - final _ret = _lib._objc_msgSend_182(_id, _lib._sel_locale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); - } - - set locale(NSLocale? value) { - _lib._objc_msgSend_699( - _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); - } - - NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); - } - - set timeZone(NSTimeZone? value) { - _lib._objc_msgSend_169( - _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); - } - - int get firstWeekday { - return _lib._objc_msgSend_10(_id, _lib._sel_firstWeekday1); - } - - set firstWeekday(int value) { - _lib._objc_msgSend_483(_id, _lib._sel_setFirstWeekday_1, value); - } - - int get minimumDaysInFirstWeek { - return _lib._objc_msgSend_10(_id, _lib._sel_minimumDaysInFirstWeek1); - } - - set minimumDaysInFirstWeek(int value) { - _lib._objc_msgSend_483(_id, _lib._sel_setMinimumDaysInFirstWeek_1, value); - } - - NSArray? get eraSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_eraSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get longEraSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_longEraSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get monthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_monthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get shortMonthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get veryShortMonthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get standaloneMonthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_standaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get shortStandaloneMonthSymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get veryShortStandaloneMonthSymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_veryShortStandaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get weekdaySymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_weekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get shortWeekdaySymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get veryShortWeekdaySymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get standaloneWeekdaySymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_standaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get shortStandaloneWeekdaySymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get veryShortStandaloneWeekdaySymbols { - final _ret = _lib._objc_msgSend_79( - _id, _lib._sel_veryShortStandaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get quarterSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_quarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get shortQuarterSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get standaloneQuarterSymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_standaloneQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get shortStandaloneQuarterSymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSString? get AMSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_AMSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get PMSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_PMSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - _NSRange minimumRangeOfUnit_(int unit) { - return _lib._objc_msgSend_702(_id, _lib._sel_minimumRangeOfUnit_1, unit); - } - - _NSRange maximumRangeOfUnit_(int unit) { - return _lib._objc_msgSend_702(_id, _lib._sel_maximumRangeOfUnit_1, unit); - } - - _NSRange rangeOfUnit_inUnit_forDate_(int smaller, int larger, NSDate? date) { - return _lib._objc_msgSend_703(_id, _lib._sel_rangeOfUnit_inUnit_forDate_1, - smaller, larger, date?._id ?? ffi.nullptr); - } - - int ordinalityOfUnit_inUnit_forDate_(int smaller, int larger, NSDate? date) { - return _lib._objc_msgSend_704( - _id, - _lib._sel_ordinalityOfUnit_inUnit_forDate_1, - smaller, - larger, - date?._id ?? ffi.nullptr); - } - - bool rangeOfUnit_startDate_interval_forDate_( - int unit, - ffi.Pointer> datep, - ffi.Pointer tip, - NSDate? date) { - return _lib._objc_msgSend_705( - _id, - _lib._sel_rangeOfUnit_startDate_interval_forDate_1, - unit, - datep, - tip, - date?._id ?? ffi.nullptr); - } - - NSDate dateFromComponents_(NSDateComponents? comps) { - final _ret = _lib._objc_msgSend_710( - _id, _lib._sel_dateFromComponents_1, comps?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - NSDateComponents components_fromDate_(int unitFlags, NSDate? date) { - final _ret = _lib._objc_msgSend_711(_id, _lib._sel_components_fromDate_1, - unitFlags, date?._id ?? ffi.nullptr); - return NSDateComponents._(_ret, _lib, retain: true, release: true); - } - - NSDate dateByAddingComponents_toDate_options_( - NSDateComponents? comps, NSDate? date, int opts) { - final _ret = _lib._objc_msgSend_712( - _id, - _lib._sel_dateByAddingComponents_toDate_options_1, - comps?._id ?? ffi.nullptr, - date?._id ?? ffi.nullptr, - opts); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - NSDateComponents components_fromDate_toDate_options_( - int unitFlags, NSDate? startingDate, NSDate? resultDate, int opts) { - final _ret = _lib._objc_msgSend_713( - _id, - _lib._sel_components_fromDate_toDate_options_1, - unitFlags, - startingDate?._id ?? ffi.nullptr, - resultDate?._id ?? ffi.nullptr, - opts); - return NSDateComponents._(_ret, _lib, retain: true, release: true); - } - - void getEra_year_month_day_fromDate_( - ffi.Pointer eraValuePointer, - ffi.Pointer yearValuePointer, - ffi.Pointer monthValuePointer, - ffi.Pointer dayValuePointer, - NSDate? date) { - return _lib._objc_msgSend_714( - _id, - _lib._sel_getEra_year_month_day_fromDate_1, - eraValuePointer, - yearValuePointer, - monthValuePointer, - dayValuePointer, - date?._id ?? ffi.nullptr); - } - - void getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_( - ffi.Pointer eraValuePointer, - ffi.Pointer yearValuePointer, - ffi.Pointer weekValuePointer, - ffi.Pointer weekdayValuePointer, - NSDate? date) { - return _lib._objc_msgSend_714( - _id, - _lib._sel_getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_1, - eraValuePointer, - yearValuePointer, - weekValuePointer, - weekdayValuePointer, - date?._id ?? ffi.nullptr); - } - - void getHour_minute_second_nanosecond_fromDate_( - ffi.Pointer hourValuePointer, - ffi.Pointer minuteValuePointer, - ffi.Pointer secondValuePointer, - ffi.Pointer nanosecondValuePointer, - NSDate? date) { - return _lib._objc_msgSend_714( - _id, - _lib._sel_getHour_minute_second_nanosecond_fromDate_1, - hourValuePointer, - minuteValuePointer, - secondValuePointer, - nanosecondValuePointer, - date?._id ?? ffi.nullptr); - } - - int component_fromDate_(int unit, NSDate? date) { - return _lib._objc_msgSend_715( - _id, _lib._sel_component_fromDate_1, unit, date?._id ?? ffi.nullptr); - } - - NSDate dateWithEra_year_month_day_hour_minute_second_nanosecond_( - int eraValue, - int yearValue, - int monthValue, - int dayValue, - int hourValue, - int minuteValue, - int secondValue, - int nanosecondValue) { - final _ret = _lib._objc_msgSend_716( - _id, - _lib._sel_dateWithEra_year_month_day_hour_minute_second_nanosecond_1, - eraValue, - yearValue, - monthValue, - dayValue, - hourValue, - minuteValue, - secondValue, - nanosecondValue); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - NSDate - dateWithEra_yearForWeekOfYear_weekOfYear_weekday_hour_minute_second_nanosecond_( - int eraValue, - int yearValue, - int weekValue, - int weekdayValue, - int hourValue, - int minuteValue, - int secondValue, - int nanosecondValue) { - final _ret = _lib._objc_msgSend_716( - _id, - _lib._sel_dateWithEra_yearForWeekOfYear_weekOfYear_weekday_hour_minute_second_nanosecond_1, - eraValue, - yearValue, - weekValue, - weekdayValue, - hourValue, - minuteValue, - secondValue, - nanosecondValue); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - NSDate startOfDayForDate_(NSDate? date) { - final _ret = _lib._objc_msgSend_158( - _id, _lib._sel_startOfDayForDate_1, date?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - NSDateComponents componentsInTimeZone_fromDate_( - NSTimeZone? timezone, NSDate? date) { - final _ret = _lib._objc_msgSend_717( - _id, - _lib._sel_componentsInTimeZone_fromDate_1, - timezone?._id ?? ffi.nullptr, - date?._id ?? ffi.nullptr); - return NSDateComponents._(_ret, _lib, retain: true, release: true); - } - - int compareDate_toDate_toUnitGranularity_( - NSDate? date1, NSDate? date2, int unit) { - return _lib._objc_msgSend_718( - _id, - _lib._sel_compareDate_toDate_toUnitGranularity_1, - date1?._id ?? ffi.nullptr, - date2?._id ?? ffi.nullptr, - unit); - } - - bool isDate_equalToDate_toUnitGranularity_( - NSDate? date1, NSDate? date2, int unit) { - return _lib._objc_msgSend_719( - _id, - _lib._sel_isDate_equalToDate_toUnitGranularity_1, - date1?._id ?? ffi.nullptr, - date2?._id ?? ffi.nullptr, - unit); - } - - bool isDate_inSameDayAsDate_(NSDate? date1, NSDate? date2) { - return _lib._objc_msgSend_720(_id, _lib._sel_isDate_inSameDayAsDate_1, - date1?._id ?? ffi.nullptr, date2?._id ?? ffi.nullptr); - } - - bool isDateInToday_(NSDate? date) { - return _lib._objc_msgSend_160( - _id, _lib._sel_isDateInToday_1, date?._id ?? ffi.nullptr); - } - - bool isDateInYesterday_(NSDate? date) { - return _lib._objc_msgSend_160( - _id, _lib._sel_isDateInYesterday_1, date?._id ?? ffi.nullptr); - } - - bool isDateInTomorrow_(NSDate? date) { - return _lib._objc_msgSend_160( - _id, _lib._sel_isDateInTomorrow_1, date?._id ?? ffi.nullptr); - } - - bool isDateInWeekend_(NSDate? date) { - return _lib._objc_msgSend_160( - _id, _lib._sel_isDateInWeekend_1, date?._id ?? ffi.nullptr); - } - - bool rangeOfWeekendStartDate_interval_containingDate_( - ffi.Pointer> datep, - ffi.Pointer tip, - NSDate? date) { - return _lib._objc_msgSend_721( - _id, - _lib._sel_rangeOfWeekendStartDate_interval_containingDate_1, - datep, - tip, - date?._id ?? ffi.nullptr); - } - - bool nextWeekendStartDate_interval_options_afterDate_( - ffi.Pointer> datep, - ffi.Pointer tip, - int options, - NSDate? date) { - return _lib._objc_msgSend_722( - _id, - _lib._sel_nextWeekendStartDate_interval_options_afterDate_1, - datep, - tip, - options, - date?._id ?? ffi.nullptr); - } - - NSDateComponents components_fromDateComponents_toDateComponents_options_( - int unitFlags, - NSDateComponents? startingDateComp, - NSDateComponents? resultDateComp, - int options) { - final _ret = _lib._objc_msgSend_723( - _id, - _lib._sel_components_fromDateComponents_toDateComponents_options_1, - unitFlags, - startingDateComp?._id ?? ffi.nullptr, - resultDateComp?._id ?? ffi.nullptr, - options); - return NSDateComponents._(_ret, _lib, retain: true, release: true); - } - - NSDate dateByAddingUnit_value_toDate_options_( - int unit, int value, NSDate? date, int options) { - final _ret = _lib._objc_msgSend_724( - _id, - _lib._sel_dateByAddingUnit_value_toDate_options_1, - unit, - value, - date?._id ?? ffi.nullptr, - options); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - void enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_( - NSDate? start, NSDateComponents? comps, int opts, ObjCBlock34 block) { - return _lib._objc_msgSend_725( - _id, - _lib._sel_enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_1, - start?._id ?? ffi.nullptr, - comps?._id ?? ffi.nullptr, - opts, - block._id); - } - - NSDate nextDateAfterDate_matchingComponents_options_( - NSDate? date, NSDateComponents? comps, int options) { - final _ret = _lib._objc_msgSend_726( - _id, - _lib._sel_nextDateAfterDate_matchingComponents_options_1, - date?._id ?? ffi.nullptr, - comps?._id ?? ffi.nullptr, - options); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - NSDate nextDateAfterDate_matchingUnit_value_options_( - NSDate? date, int unit, int value, int options) { - final _ret = _lib._objc_msgSend_727( - _id, - _lib._sel_nextDateAfterDate_matchingUnit_value_options_1, - date?._id ?? ffi.nullptr, - unit, - value, - options); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - NSDate nextDateAfterDate_matchingHour_minute_second_options_(NSDate? date, - int hourValue, int minuteValue, int secondValue, int options) { - final _ret = _lib._objc_msgSend_728( - _id, - _lib._sel_nextDateAfterDate_matchingHour_minute_second_options_1, - date?._id ?? ffi.nullptr, - hourValue, - minuteValue, - secondValue, - options); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - NSDate dateBySettingUnit_value_ofDate_options_( - int unit, int v, NSDate? date, int opts) { - final _ret = _lib._objc_msgSend_724( - _id, - _lib._sel_dateBySettingUnit_value_ofDate_options_1, - unit, - v, - date?._id ?? ffi.nullptr, - opts); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - NSDate dateBySettingHour_minute_second_ofDate_options_( - int h, int m, int s, NSDate? date, int opts) { - final _ret = _lib._objc_msgSend_729( - _id, - _lib._sel_dateBySettingHour_minute_second_ofDate_options_1, - h, - m, - s, - date?._id ?? ffi.nullptr, - opts); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - bool date_matchesComponents_(NSDate? date, NSDateComponents? components) { - return _lib._objc_msgSend_730(_id, _lib._sel_date_matchesComponents_1, - date?._id ?? ffi.nullptr, components?._id ?? ffi.nullptr); - } - - static NSCalendar new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSCalendar1, _lib._sel_new1); - return NSCalendar._(_ret, _lib, retain: false, release: true); - } - - static NSCalendar alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSCalendar1, _lib._sel_alloc1); - return NSCalendar._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSCalendar1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSCalendar1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSCalendar1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSCalendar1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSCalendar1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSCalendar1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSCalendar1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSCalendar1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSCalendar1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSCalendarUnit { - static const int NSCalendarUnitEra = 2; - static const int NSCalendarUnitYear = 4; - static const int NSCalendarUnitMonth = 8; - static const int NSCalendarUnitDay = 16; - static const int NSCalendarUnitHour = 32; - static const int NSCalendarUnitMinute = 64; - static const int NSCalendarUnitSecond = 128; - static const int NSCalendarUnitWeekday = 512; - static const int NSCalendarUnitWeekdayOrdinal = 1024; - static const int NSCalendarUnitQuarter = 2048; - static const int NSCalendarUnitWeekOfMonth = 4096; - static const int NSCalendarUnitWeekOfYear = 8192; - static const int NSCalendarUnitYearForWeekOfYear = 16384; - static const int NSCalendarUnitNanosecond = 32768; - static const int NSCalendarUnitCalendar = 1048576; - static const int NSCalendarUnitTimeZone = 2097152; - static const int NSEraCalendarUnit = 2; - static const int NSYearCalendarUnit = 4; - static const int NSMonthCalendarUnit = 8; - static const int NSDayCalendarUnit = 16; - static const int NSHourCalendarUnit = 32; - static const int NSMinuteCalendarUnit = 64; - static const int NSSecondCalendarUnit = 128; - static const int NSWeekCalendarUnit = 256; - static const int NSWeekdayCalendarUnit = 512; - static const int NSWeekdayOrdinalCalendarUnit = 1024; - static const int NSQuarterCalendarUnit = 2048; - static const int NSWeekOfMonthCalendarUnit = 4096; - static const int NSWeekOfYearCalendarUnit = 8192; - static const int NSYearForWeekOfYearCalendarUnit = 16384; - static const int NSCalendarCalendarUnit = 1048576; - static const int NSTimeZoneCalendarUnit = 2097152; -} - -class NSDateComponents extends NSObject { - NSDateComponents._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSDateComponents] that points to the same underlying object as [other]. - static NSDateComponents castFrom(T other) { - return NSDateComponents._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSDateComponents] that wraps the given raw object pointer. - static NSDateComponents castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSDateComponents._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSDateComponents]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSDateComponents1); - } - - NSCalendar? get calendar { - final _ret = _lib._objc_msgSend_700(_id, _lib._sel_calendar1); - return _ret.address == 0 - ? null - : NSCalendar._(_ret, _lib, retain: true, release: true); - } - - set calendar(NSCalendar? value) { - _lib._objc_msgSend_706( - _id, _lib._sel_setCalendar_1, value?._id ?? ffi.nullptr); - } - - NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); - } - - set timeZone(NSTimeZone? value) { - _lib._objc_msgSend_169( - _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); - } - - int get era { - return _lib._objc_msgSend_78(_id, _lib._sel_era1); - } - - set era(int value) { - _lib._objc_msgSend_590(_id, _lib._sel_setEra_1, value); - } - - int get year { - return _lib._objc_msgSend_78(_id, _lib._sel_year1); - } - - set year(int value) { - _lib._objc_msgSend_590(_id, _lib._sel_setYear_1, value); - } - - int get month { - return _lib._objc_msgSend_78(_id, _lib._sel_month1); - } - - set month(int value) { - _lib._objc_msgSend_590(_id, _lib._sel_setMonth_1, value); - } - - int get day { - return _lib._objc_msgSend_78(_id, _lib._sel_day1); - } - - set day(int value) { - _lib._objc_msgSend_590(_id, _lib._sel_setDay_1, value); - } - - int get hour { - return _lib._objc_msgSend_78(_id, _lib._sel_hour1); - } - - set hour(int value) { - _lib._objc_msgSend_590(_id, _lib._sel_setHour_1, value); - } - - int get minute { - return _lib._objc_msgSend_78(_id, _lib._sel_minute1); - } - - set minute(int value) { - _lib._objc_msgSend_590(_id, _lib._sel_setMinute_1, value); - } - - int get second { - return _lib._objc_msgSend_78(_id, _lib._sel_second1); - } - - set second(int value) { - _lib._objc_msgSend_590(_id, _lib._sel_setSecond_1, value); - } - - int get nanosecond { - return _lib._objc_msgSend_78(_id, _lib._sel_nanosecond1); - } - - set nanosecond(int value) { - _lib._objc_msgSend_590(_id, _lib._sel_setNanosecond_1, value); - } - - int get weekday { - return _lib._objc_msgSend_78(_id, _lib._sel_weekday1); - } - - set weekday(int value) { - _lib._objc_msgSend_590(_id, _lib._sel_setWeekday_1, value); - } - - int get weekdayOrdinal { - return _lib._objc_msgSend_78(_id, _lib._sel_weekdayOrdinal1); - } - - set weekdayOrdinal(int value) { - _lib._objc_msgSend_590(_id, _lib._sel_setWeekdayOrdinal_1, value); - } - - int get quarter { - return _lib._objc_msgSend_78(_id, _lib._sel_quarter1); - } - - set quarter(int value) { - _lib._objc_msgSend_590(_id, _lib._sel_setQuarter_1, value); - } - - int get weekOfMonth { - return _lib._objc_msgSend_78(_id, _lib._sel_weekOfMonth1); - } - - set weekOfMonth(int value) { - _lib._objc_msgSend_590(_id, _lib._sel_setWeekOfMonth_1, value); - } - - int get weekOfYear { - return _lib._objc_msgSend_78(_id, _lib._sel_weekOfYear1); - } - - set weekOfYear(int value) { - _lib._objc_msgSend_590(_id, _lib._sel_setWeekOfYear_1, value); - } - - int get yearForWeekOfYear { - return _lib._objc_msgSend_78(_id, _lib._sel_yearForWeekOfYear1); - } - - set yearForWeekOfYear(int value) { - _lib._objc_msgSend_590(_id, _lib._sel_setYearForWeekOfYear_1, value); - } - - bool get leapMonth { - return _lib._objc_msgSend_12(_id, _lib._sel_isLeapMonth1); - } - - set leapMonth(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setLeapMonth_1, value); - } - - NSDate? get date { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_date1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } - - int week() { - return _lib._objc_msgSend_78(_id, _lib._sel_week1); - } - - void setWeek_(int v) { - return _lib._objc_msgSend_394(_id, _lib._sel_setWeek_1, v); - } - - void setValue_forComponent_(int value, int unit) { - return _lib._objc_msgSend_707( - _id, _lib._sel_setValue_forComponent_1, value, unit); - } - - int valueForComponent_(int unit) { - return _lib._objc_msgSend_708(_id, _lib._sel_valueForComponent_1, unit); - } - - bool get validDate { - return _lib._objc_msgSend_12(_id, _lib._sel_isValidDate1); - } - - bool isValidDateInCalendar_(NSCalendar? calendar) { - return _lib._objc_msgSend_709( - _id, _lib._sel_isValidDateInCalendar_1, calendar?._id ?? ffi.nullptr); - } - - static NSDateComponents new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSDateComponents1, _lib._sel_new1); - return NSDateComponents._(_ret, _lib, retain: false, release: true); - } - - static NSDateComponents alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSDateComponents1, _lib._sel_alloc1); - return NSDateComponents._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSDateComponents1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSDateComponents1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSDateComponents1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSDateComponents1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSDateComponents1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSDateComponents1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSDateComponents1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSDateComponents1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSDateComponents1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSCalendarOptions { - static const int NSCalendarWrapComponents = 1; - static const int NSCalendarMatchStrictly = 2; - static const int NSCalendarSearchBackwards = 4; - static const int NSCalendarMatchPreviousTimePreservingSmallerUnits = 256; - static const int NSCalendarMatchNextTimePreservingSmallerUnits = 512; - static const int NSCalendarMatchNextTime = 1024; - static const int NSCalendarMatchFirst = 4096; - static const int NSCalendarMatchLast = 8192; -} - -void _ObjCBlock34_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock34_closureRegistry = {}; -int _ObjCBlock34_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock34_registerClosure(Function fn) { - final id = ++_ObjCBlock34_closureRegistryIndex; - _ObjCBlock34_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock34_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _ObjCBlock34_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock34 extends _ObjCBlockBase { - ObjCBlock34._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock34.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock34_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock34.fromFunction( - HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock34_closureTrampoline) - .cast(), - _ObjCBlock34_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } -} - -class NSNumberFormatter extends NSFormatter { - NSNumberFormatter._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSNumberFormatter] that points to the same underlying object as [other]. - static NSNumberFormatter castFrom(T other) { - return NSNumberFormatter._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSNumberFormatter] that wraps the given raw object pointer. - static NSNumberFormatter castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSNumberFormatter._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSNumberFormatter]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSNumberFormatter1); - } - - int get formattingContext { - return _lib._objc_msgSend_690(_id, _lib._sel_formattingContext1); - } - - set formattingContext(int value) { - _lib._objc_msgSend_691(_id, _lib._sel_setFormattingContext_1, value); - } - - bool getObjectValue_forString_range_error_( - ffi.Pointer> obj, - NSString? string, - ffi.Pointer<_NSRange> rangep, - ffi.Pointer> error) { - return _lib._objc_msgSend_692( - _id, - _lib._sel_getObjectValue_forString_range_error_1, - obj, - string?._id ?? ffi.nullptr, - rangep, - error); - } - - NSString stringFromNumber_(NSNumber? number) { - final _ret = _lib._objc_msgSend_732( - _id, _lib._sel_stringFromNumber_1, number?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSNumber numberFromString_(NSString? string) { - final _ret = _lib._objc_msgSend_733( - _id, _lib._sel_numberFromString_1, string?._id ?? ffi.nullptr); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - - static NSString localizedStringFromNumber_numberStyle_( - HidListenerBindingsSwift _lib, NSNumber? num, int nstyle) { - final _ret = _lib._objc_msgSend_734( - _lib._class_NSNumberFormatter1, - _lib._sel_localizedStringFromNumber_numberStyle_1, - num?._id ?? ffi.nullptr, - nstyle); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static int defaultFormatterBehavior(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_735( - _lib._class_NSNumberFormatter1, _lib._sel_defaultFormatterBehavior1); - } - - static void setDefaultFormatterBehavior_( - HidListenerBindingsSwift _lib, int behavior) { - return _lib._objc_msgSend_736(_lib._class_NSNumberFormatter1, - _lib._sel_setDefaultFormatterBehavior_1, behavior); - } - - int get numberStyle { - return _lib._objc_msgSend_737(_id, _lib._sel_numberStyle1); - } - - set numberStyle(int value) { - _lib._objc_msgSend_738(_id, _lib._sel_setNumberStyle_1, value); - } - - NSLocale? get locale { - final _ret = _lib._objc_msgSend_182(_id, _lib._sel_locale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); - } - - set locale(NSLocale? value) { - _lib._objc_msgSend_699( - _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); - } - - bool get generatesDecimalNumbers { - return _lib._objc_msgSend_12(_id, _lib._sel_generatesDecimalNumbers1); - } - - set generatesDecimalNumbers(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setGeneratesDecimalNumbers_1, value); - } - - int get formatterBehavior { - return _lib._objc_msgSend_735(_id, _lib._sel_formatterBehavior1); - } - - set formatterBehavior(int value) { - _lib._objc_msgSend_739(_id, _lib._sel_setFormatterBehavior_1, value); - } - - NSString? get negativeFormat { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativeFormat1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set negativeFormat(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setNegativeFormat_1, value?._id ?? ffi.nullptr); - } - - NSDictionary? get textAttributesForNegativeValues { - final _ret = - _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForNegativeValues1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - set textAttributesForNegativeValues(NSDictionary? value) { - _lib._objc_msgSend_171(_id, _lib._sel_setTextAttributesForNegativeValues_1, - value?._id ?? ffi.nullptr); - } - - NSString? get positiveFormat { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positiveFormat1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set positiveFormat(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setPositiveFormat_1, value?._id ?? ffi.nullptr); - } - - NSDictionary? get textAttributesForPositiveValues { - final _ret = - _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForPositiveValues1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - set textAttributesForPositiveValues(NSDictionary? value) { - _lib._objc_msgSend_171(_id, _lib._sel_setTextAttributesForPositiveValues_1, - value?._id ?? ffi.nullptr); - } - - bool get allowsFloats { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsFloats1); - } - - set allowsFloats(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setAllowsFloats_1, value); - } - - NSString? get decimalSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_decimalSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set decimalSeparator(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setDecimalSeparator_1, value?._id ?? ffi.nullptr); - } - - bool get alwaysShowsDecimalSeparator { - return _lib._objc_msgSend_12(_id, _lib._sel_alwaysShowsDecimalSeparator1); - } - - set alwaysShowsDecimalSeparator(bool value) { - _lib._objc_msgSend_492( - _id, _lib._sel_setAlwaysShowsDecimalSeparator_1, value); - } - - NSString? get currencyDecimalSeparator { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_currencyDecimalSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set currencyDecimalSeparator(NSString? value) { - _lib._objc_msgSend_509(_id, _lib._sel_setCurrencyDecimalSeparator_1, - value?._id ?? ffi.nullptr); - } - - bool get usesGroupingSeparator { - return _lib._objc_msgSend_12(_id, _lib._sel_usesGroupingSeparator1); - } - - set usesGroupingSeparator(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setUsesGroupingSeparator_1, value); - } - - NSString? get groupingSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_groupingSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set groupingSeparator(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setGroupingSeparator_1, value?._id ?? ffi.nullptr); - } - - NSString? get zeroSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_zeroSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set zeroSymbol(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setZeroSymbol_1, value?._id ?? ffi.nullptr); - } - - NSDictionary? get textAttributesForZero { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForZero1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - set textAttributesForZero(NSDictionary? value) { - _lib._objc_msgSend_171( - _id, _lib._sel_setTextAttributesForZero_1, value?._id ?? ffi.nullptr); - } - - NSString? get nilSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_nilSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set nilSymbol(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setNilSymbol_1, value?._id ?? ffi.nullptr); - } - - NSDictionary? get textAttributesForNil { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForNil1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - set textAttributesForNil(NSDictionary? value) { - _lib._objc_msgSend_171( - _id, _lib._sel_setTextAttributesForNil_1, value?._id ?? ffi.nullptr); - } - - NSString? get notANumberSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_notANumberSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set notANumberSymbol(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setNotANumberSymbol_1, value?._id ?? ffi.nullptr); - } - - NSDictionary? get textAttributesForNotANumber { - final _ret = - _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForNotANumber1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - set textAttributesForNotANumber(NSDictionary? value) { - _lib._objc_msgSend_171(_id, _lib._sel_setTextAttributesForNotANumber_1, - value?._id ?? ffi.nullptr); - } - - NSString? get positiveInfinitySymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positiveInfinitySymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set positiveInfinitySymbol(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setPositiveInfinitySymbol_1, value?._id ?? ffi.nullptr); - } - - NSDictionary? get textAttributesForPositiveInfinity { - final _ret = _lib._objc_msgSend_170( - _id, _lib._sel_textAttributesForPositiveInfinity1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - set textAttributesForPositiveInfinity(NSDictionary? value) { - _lib._objc_msgSend_171( - _id, - _lib._sel_setTextAttributesForPositiveInfinity_1, - value?._id ?? ffi.nullptr); - } - - NSString? get negativeInfinitySymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativeInfinitySymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set negativeInfinitySymbol(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setNegativeInfinitySymbol_1, value?._id ?? ffi.nullptr); - } - - NSDictionary? get textAttributesForNegativeInfinity { - final _ret = _lib._objc_msgSend_170( - _id, _lib._sel_textAttributesForNegativeInfinity1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - set textAttributesForNegativeInfinity(NSDictionary? value) { - _lib._objc_msgSend_171( - _id, - _lib._sel_setTextAttributesForNegativeInfinity_1, - value?._id ?? ffi.nullptr); - } - - NSString? get positivePrefix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positivePrefix1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set positivePrefix(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setPositivePrefix_1, value?._id ?? ffi.nullptr); - } - - NSString? get positiveSuffix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positiveSuffix1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set positiveSuffix(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setPositiveSuffix_1, value?._id ?? ffi.nullptr); - } - - NSString? get negativePrefix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativePrefix1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set negativePrefix(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setNegativePrefix_1, value?._id ?? ffi.nullptr); - } - - NSString? get negativeSuffix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativeSuffix1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set negativeSuffix(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setNegativeSuffix_1, value?._id ?? ffi.nullptr); - } - - NSString? get currencyCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencyCode1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set currencyCode(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setCurrencyCode_1, value?._id ?? ffi.nullptr); - } - - NSString? get currencySymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencySymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set currencySymbol(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setCurrencySymbol_1, value?._id ?? ffi.nullptr); - } - - NSString? get internationalCurrencySymbol { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_internationalCurrencySymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set internationalCurrencySymbol(NSString? value) { - _lib._objc_msgSend_509(_id, _lib._sel_setInternationalCurrencySymbol_1, - value?._id ?? ffi.nullptr); - } - - NSString? get percentSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_percentSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set percentSymbol(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setPercentSymbol_1, value?._id ?? ffi.nullptr); - } - - NSString? get perMillSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_perMillSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set perMillSymbol(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setPerMillSymbol_1, value?._id ?? ffi.nullptr); - } - - NSString? get minusSign { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_minusSign1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set minusSign(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setMinusSign_1, value?._id ?? ffi.nullptr); - } - - NSString? get plusSign { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_plusSign1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set plusSign(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setPlusSign_1, value?._id ?? ffi.nullptr); - } - - NSString? get exponentSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_exponentSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set exponentSymbol(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setExponentSymbol_1, value?._id ?? ffi.nullptr); - } - - int get groupingSize { - return _lib._objc_msgSend_10(_id, _lib._sel_groupingSize1); - } - - set groupingSize(int value) { - _lib._objc_msgSend_483(_id, _lib._sel_setGroupingSize_1, value); - } - - int get secondaryGroupingSize { - return _lib._objc_msgSend_10(_id, _lib._sel_secondaryGroupingSize1); - } - - set secondaryGroupingSize(int value) { - _lib._objc_msgSend_483(_id, _lib._sel_setSecondaryGroupingSize_1, value); - } - - NSNumber? get multiplier { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_multiplier1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); - } - - set multiplier(NSNumber? value) { - _lib._objc_msgSend_620( - _id, _lib._sel_setMultiplier_1, value?._id ?? ffi.nullptr); - } - - int get formatWidth { - return _lib._objc_msgSend_10(_id, _lib._sel_formatWidth1); - } - - set formatWidth(int value) { - _lib._objc_msgSend_483(_id, _lib._sel_setFormatWidth_1, value); - } - - NSString? get paddingCharacter { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_paddingCharacter1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set paddingCharacter(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setPaddingCharacter_1, value?._id ?? ffi.nullptr); - } - - int get paddingPosition { - return _lib._objc_msgSend_740(_id, _lib._sel_paddingPosition1); - } - - set paddingPosition(int value) { - _lib._objc_msgSend_741(_id, _lib._sel_setPaddingPosition_1, value); - } - - int get roundingMode { - return _lib._objc_msgSend_742(_id, _lib._sel_roundingMode1); - } - - set roundingMode(int value) { - _lib._objc_msgSend_743(_id, _lib._sel_setRoundingMode_1, value); - } - - NSNumber? get roundingIncrement { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_roundingIncrement1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); - } - - set roundingIncrement(NSNumber? value) { - _lib._objc_msgSend_620( - _id, _lib._sel_setRoundingIncrement_1, value?._id ?? ffi.nullptr); - } - - int get minimumIntegerDigits { - return _lib._objc_msgSend_10(_id, _lib._sel_minimumIntegerDigits1); - } - - set minimumIntegerDigits(int value) { - _lib._objc_msgSend_483(_id, _lib._sel_setMinimumIntegerDigits_1, value); - } - - int get maximumIntegerDigits { - return _lib._objc_msgSend_10(_id, _lib._sel_maximumIntegerDigits1); - } - - set maximumIntegerDigits(int value) { - _lib._objc_msgSend_483(_id, _lib._sel_setMaximumIntegerDigits_1, value); - } - - int get minimumFractionDigits { - return _lib._objc_msgSend_10(_id, _lib._sel_minimumFractionDigits1); - } - - set minimumFractionDigits(int value) { - _lib._objc_msgSend_483(_id, _lib._sel_setMinimumFractionDigits_1, value); - } - - int get maximumFractionDigits { - return _lib._objc_msgSend_10(_id, _lib._sel_maximumFractionDigits1); - } - - set maximumFractionDigits(int value) { - _lib._objc_msgSend_483(_id, _lib._sel_setMaximumFractionDigits_1, value); - } - - NSNumber? get minimum { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_minimum1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); - } - - set minimum(NSNumber? value) { - _lib._objc_msgSend_620( - _id, _lib._sel_setMinimum_1, value?._id ?? ffi.nullptr); - } - - NSNumber? get maximum { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_maximum1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); - } - - set maximum(NSNumber? value) { - _lib._objc_msgSend_620( - _id, _lib._sel_setMaximum_1, value?._id ?? ffi.nullptr); - } - - NSString? get currencyGroupingSeparator { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_currencyGroupingSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set currencyGroupingSeparator(NSString? value) { - _lib._objc_msgSend_509(_id, _lib._sel_setCurrencyGroupingSeparator_1, - value?._id ?? ffi.nullptr); - } - - bool get lenient { - return _lib._objc_msgSend_12(_id, _lib._sel_isLenient1); - } - - set lenient(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setLenient_1, value); - } - - bool get usesSignificantDigits { - return _lib._objc_msgSend_12(_id, _lib._sel_usesSignificantDigits1); - } - - set usesSignificantDigits(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setUsesSignificantDigits_1, value); - } - - int get minimumSignificantDigits { - return _lib._objc_msgSend_10(_id, _lib._sel_minimumSignificantDigits1); - } - - set minimumSignificantDigits(int value) { - _lib._objc_msgSend_483(_id, _lib._sel_setMinimumSignificantDigits_1, value); - } - - int get maximumSignificantDigits { - return _lib._objc_msgSend_10(_id, _lib._sel_maximumSignificantDigits1); - } - - set maximumSignificantDigits(int value) { - _lib._objc_msgSend_483(_id, _lib._sel_setMaximumSignificantDigits_1, value); - } - - bool get partialStringValidationEnabled { - return _lib._objc_msgSend_12( - _id, _lib._sel_isPartialStringValidationEnabled1); - } - - set partialStringValidationEnabled(bool value) { - _lib._objc_msgSend_492( - _id, _lib._sel_setPartialStringValidationEnabled_1, value); - } - - bool get hasThousandSeparators { - return _lib._objc_msgSend_12(_id, _lib._sel_hasThousandSeparators1); - } - - set hasThousandSeparators(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setHasThousandSeparators_1, value); - } - - NSString? get thousandSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_thousandSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set thousandSeparator(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setThousandSeparator_1, value?._id ?? ffi.nullptr); - } - - bool get localizesFormat { - return _lib._objc_msgSend_12(_id, _lib._sel_localizesFormat1); - } - - set localizesFormat(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setLocalizesFormat_1, value); - } - - NSString? get format { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_format1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set format(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setFormat_1, value?._id ?? ffi.nullptr); - } - - NSAttributedString? get attributedStringForZero { - final _ret = - _lib._objc_msgSend_675(_id, _lib._sel_attributedStringForZero1); - return _ret.address == 0 - ? null - : NSAttributedString._(_ret, _lib, retain: true, release: true); - } - - set attributedStringForZero(NSAttributedString? value) { - _lib._objc_msgSend_744( - _id, _lib._sel_setAttributedStringForZero_1, value?._id ?? ffi.nullptr); - } - - NSAttributedString? get attributedStringForNil { - final _ret = _lib._objc_msgSend_675(_id, _lib._sel_attributedStringForNil1); - return _ret.address == 0 - ? null - : NSAttributedString._(_ret, _lib, retain: true, release: true); - } - - set attributedStringForNil(NSAttributedString? value) { - _lib._objc_msgSend_744( - _id, _lib._sel_setAttributedStringForNil_1, value?._id ?? ffi.nullptr); - } - - NSAttributedString? get attributedStringForNotANumber { - final _ret = - _lib._objc_msgSend_675(_id, _lib._sel_attributedStringForNotANumber1); - return _ret.address == 0 - ? null - : NSAttributedString._(_ret, _lib, retain: true, release: true); - } - - set attributedStringForNotANumber(NSAttributedString? value) { - _lib._objc_msgSend_744(_id, _lib._sel_setAttributedStringForNotANumber_1, - value?._id ?? ffi.nullptr); - } - - NSDecimalNumberHandler? get roundingBehavior { - final _ret = _lib._objc_msgSend_745(_id, _lib._sel_roundingBehavior1); - return _ret.address == 0 - ? null - : NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); - } - - set roundingBehavior(NSDecimalNumberHandler? value) { - _lib._objc_msgSend_747( - _id, _lib._sel_setRoundingBehavior_1, value?._id ?? ffi.nullptr); - } - - static NSNumberFormatter new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSNumberFormatter1, _lib._sel_new1); - return NSNumberFormatter._(_ret, _lib, retain: false, release: true); - } - - static NSNumberFormatter alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSNumberFormatter1, _lib._sel_alloc1); - return NSNumberFormatter._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSNumberFormatter1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSNumberFormatter1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSNumberFormatter1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSNumberFormatter1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSNumberFormatter1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSNumberFormatter1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSNumberFormatter1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSNumberFormatter1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSNumberFormatter1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSNumberFormatterStyle { - static const int NSNumberFormatterNoStyle = 0; - static const int NSNumberFormatterDecimalStyle = 1; - static const int NSNumberFormatterCurrencyStyle = 2; - static const int NSNumberFormatterPercentStyle = 3; - static const int NSNumberFormatterScientificStyle = 4; - static const int NSNumberFormatterSpellOutStyle = 5; - static const int NSNumberFormatterOrdinalStyle = 6; - static const int NSNumberFormatterCurrencyISOCodeStyle = 8; - static const int NSNumberFormatterCurrencyPluralStyle = 9; - static const int NSNumberFormatterCurrencyAccountingStyle = 10; -} - -abstract class NSNumberFormatterBehavior { - static const int NSNumberFormatterBehaviorDefault = 0; - static const int NSNumberFormatterBehavior10_0 = 1000; - static const int NSNumberFormatterBehavior10_4 = 1040; -} - -abstract class NSNumberFormatterPadPosition { - static const int NSNumberFormatterPadBeforePrefix = 0; - static const int NSNumberFormatterPadAfterPrefix = 1; - static const int NSNumberFormatterPadBeforeSuffix = 2; - static const int NSNumberFormatterPadAfterSuffix = 3; -} - -abstract class NSNumberFormatterRoundingMode { - static const int NSNumberFormatterRoundCeiling = 0; - static const int NSNumberFormatterRoundFloor = 1; - static const int NSNumberFormatterRoundDown = 2; - static const int NSNumberFormatterRoundUp = 3; - static const int NSNumberFormatterRoundHalfEven = 4; - static const int NSNumberFormatterRoundHalfDown = 5; - static const int NSNumberFormatterRoundHalfUp = 6; -} - -class NSDecimalNumberHandler extends NSObject { - NSDecimalNumberHandler._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSDecimalNumberHandler] that points to the same underlying object as [other]. - static NSDecimalNumberHandler castFrom(T other) { - return NSDecimalNumberHandler._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSDecimalNumberHandler] that wraps the given raw object pointer. - static NSDecimalNumberHandler castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSDecimalNumberHandler._(other, lib, - retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSDecimalNumberHandler]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSDecimalNumberHandler1); - } - - static NSDecimalNumberHandler? getDefaultDecimalNumberHandler( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_745(_lib._class_NSDecimalNumberHandler1, - _lib._sel_defaultDecimalNumberHandler1); - return _ret.address == 0 - ? null - : NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); - } - - NSDecimalNumberHandler - initWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_( - int roundingMode, - int scale, - bool exact, - bool overflow, - bool underflow, - bool divideByZero) { - final _ret = _lib._objc_msgSend_746( - _id, - _lib._sel_initWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1, - roundingMode, - scale, - exact, - overflow, - underflow, - divideByZero); - return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); - } - - static NSDecimalNumberHandler - decimalNumberHandlerWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_( - HidListenerBindingsSwift _lib, - int roundingMode, - int scale, - bool exact, - bool overflow, - bool underflow, - bool divideByZero) { - final _ret = _lib._objc_msgSend_746( - _lib._class_NSDecimalNumberHandler1, - _lib._sel_decimalNumberHandlerWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1, - roundingMode, - scale, - exact, - overflow, - underflow, - divideByZero); - return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); - } - - static NSDecimalNumberHandler new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSDecimalNumberHandler1, _lib._sel_new1); - return NSDecimalNumberHandler._(_ret, _lib, retain: false, release: true); - } - - static NSDecimalNumberHandler alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSDecimalNumberHandler1, _lib._sel_alloc1); - return NSDecimalNumberHandler._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSDecimalNumberHandler1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSDecimalNumberHandler1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSDecimalNumberHandler1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSDecimalNumberHandler1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSDecimalNumberHandler1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSDecimalNumberHandler1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSDecimalNumberHandler1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSDecimalNumberHandler1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSDecimalNumberHandler1, - _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSRoundingMode { - static const int NSRoundPlain = 0; - static const int NSRoundDown = 1; - static const int NSRoundUp = 2; - static const int NSRoundBankers = 3; -} - -class NSScanner extends NSObject { - NSScanner._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSScanner] that points to the same underlying object as [other]. - static NSScanner castFrom(T other) { - return NSScanner._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSScanner] that wraps the given raw object pointer. - static NSScanner castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSScanner._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSScanner]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSScanner1); - } - - NSString? get string { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_string1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - int get scanLocation { - return _lib._objc_msgSend_10(_id, _lib._sel_scanLocation1); - } - - set scanLocation(int value) { - _lib._objc_msgSend_483(_id, _lib._sel_setScanLocation_1, value); - } - - NSCharacterSet? get charactersToBeSkipped { - final _ret = _lib._objc_msgSend_174(_id, _lib._sel_charactersToBeSkipped1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - set charactersToBeSkipped(NSCharacterSet? value) { - _lib._objc_msgSend_748( - _id, _lib._sel_setCharactersToBeSkipped_1, value?._id ?? ffi.nullptr); - } - - bool get caseSensitive { - return _lib._objc_msgSend_12(_id, _lib._sel_caseSensitive1); - } - - set caseSensitive(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setCaseSensitive_1, value); - } - - NSObject get locale { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_locale1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - set locale(NSObject value) { - _lib._objc_msgSend_387(_id, _lib._sel_setLocale_1, value._id); - } - - NSScanner initWithString_(NSString? string) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, string?._id ?? ffi.nullptr); - return NSScanner._(_ret, _lib, retain: true, release: true); - } - - bool scanInt_(ffi.Pointer result) { - return _lib._objc_msgSend_749(_id, _lib._sel_scanInt_1, result); - } - - bool scanInteger_(ffi.Pointer result) { - return _lib._objc_msgSend_750(_id, _lib._sel_scanInteger_1, result); - } - - bool scanLongLong_(ffi.Pointer result) { - return _lib._objc_msgSend_751(_id, _lib._sel_scanLongLong_1, result); - } - - bool scanUnsignedLongLong_(ffi.Pointer result) { - return _lib._objc_msgSend_752( - _id, _lib._sel_scanUnsignedLongLong_1, result); - } - - bool scanFloat_(ffi.Pointer result) { - return _lib._objc_msgSend_753(_id, _lib._sel_scanFloat_1, result); - } - - bool scanDouble_(ffi.Pointer result) { - return _lib._objc_msgSend_754(_id, _lib._sel_scanDouble_1, result); - } - - bool scanHexInt_(ffi.Pointer result) { - return _lib._objc_msgSend_755(_id, _lib._sel_scanHexInt_1, result); - } - - bool scanHexLongLong_(ffi.Pointer result) { - return _lib._objc_msgSend_752(_id, _lib._sel_scanHexLongLong_1, result); - } - - bool scanHexFloat_(ffi.Pointer result) { - return _lib._objc_msgSend_753(_id, _lib._sel_scanHexFloat_1, result); - } - - bool scanHexDouble_(ffi.Pointer result) { - return _lib._objc_msgSend_754(_id, _lib._sel_scanHexDouble_1, result); - } - - bool scanString_intoString_( - NSString? string, ffi.Pointer> result) { - return _lib._objc_msgSend_756(_id, _lib._sel_scanString_intoString_1, - string?._id ?? ffi.nullptr, result); - } - - bool scanCharactersFromSet_intoString_( - NSCharacterSet? set, ffi.Pointer> result) { - return _lib._objc_msgSend_757( - _id, - _lib._sel_scanCharactersFromSet_intoString_1, - set?._id ?? ffi.nullptr, - result); - } - - bool scanUpToString_intoString_( - NSString? string, ffi.Pointer> result) { - return _lib._objc_msgSend_756(_id, _lib._sel_scanUpToString_intoString_1, - string?._id ?? ffi.nullptr, result); - } - - bool scanUpToCharactersFromSet_intoString_( - NSCharacterSet? set, ffi.Pointer> result) { - return _lib._objc_msgSend_757( - _id, - _lib._sel_scanUpToCharactersFromSet_intoString_1, - set?._id ?? ffi.nullptr, - result); - } - - bool get atEnd { - return _lib._objc_msgSend_12(_id, _lib._sel_isAtEnd1); - } - - static NSScanner scannerWithString_( - HidListenerBindingsSwift _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSScanner1, - _lib._sel_scannerWithString_1, string?._id ?? ffi.nullptr); - return NSScanner._(_ret, _lib, retain: true, release: true); - } - - static NSObject localizedScannerWithString_( - HidListenerBindingsSwift _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSScanner1, - _lib._sel_localizedScannerWithString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - bool scanDecimal_(ffi.Pointer dcm) { - return _lib._objc_msgSend_758(_id, _lib._sel_scanDecimal_1, dcm); - } - - static NSScanner new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSScanner1, _lib._sel_new1); - return NSScanner._(_ret, _lib, retain: false, release: true); - } - - static NSScanner alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSScanner1, _lib._sel_alloc1); - return NSScanner._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSScanner1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSScanner1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSScanner1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSScanner1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSScanner1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSScanner1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSScanner1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSScanner1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSScanner1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -final class NSDecimal extends ffi.Opaque {} - -class NSException extends NSObject { - NSException._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSException] that points to the same underlying object as [other]. - static NSException castFrom(T other) { - return NSException._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSException] that wraps the given raw object pointer. - static NSException castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSException._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSException]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSException1); - } - - static NSException exceptionWithName_reason_userInfo_( - HidListenerBindingsSwift _lib, - NSString name, - NSString? reason, - NSDictionary? userInfo) { - final _ret = _lib._objc_msgSend_759( - _lib._class_NSException1, - _lib._sel_exceptionWithName_reason_userInfo_1, - name._id, - reason?._id ?? ffi.nullptr, - userInfo?._id ?? ffi.nullptr); - return NSException._(_ret, _lib, retain: true, release: true); - } - - NSException initWithName_reason_userInfo_( - NSString aName, NSString? aReason, NSDictionary? aUserInfo) { - final _ret = _lib._objc_msgSend_583( - _id, - _lib._sel_initWithName_reason_userInfo_1, - aName._id, - aReason?._id ?? ffi.nullptr, - aUserInfo?._id ?? ffi.nullptr); - return NSException._(_ret, _lib, retain: true, release: true); - } - - NSString get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get reason { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_reason1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_userInfo1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSArray? get callStackReturnAddresses { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_callStackReturnAddresses1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get callStackSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_callStackSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - void raise() { - return _lib._objc_msgSend_1(_id, _lib._sel_raise1); - } - - static void raise_format_( - HidListenerBindingsSwift _lib, NSString name, NSString? format) { - return _lib._objc_msgSend_515(_lib._class_NSException1, - _lib._sel_raise_format_1, name._id, format?._id ?? ffi.nullptr); - } - - static void raise_format_arguments_(HidListenerBindingsSwift _lib, - NSString name, NSString? format, ffi.Pointer<__va_list_tag> argList) { - return _lib._objc_msgSend_760( - _lib._class_NSException1, - _lib._sel_raise_format_arguments_1, - name._id, - format?._id ?? ffi.nullptr, - argList); - } - - static NSException new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_new1); - return NSException._(_ret, _lib, retain: false, release: true); - } - - static NSException alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_alloc1); - return NSException._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSException1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSException1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSException1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSException1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSException1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSException1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSException1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSException1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSException1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSFileHandle extends NSObject { - NSFileHandle._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSFileHandle] that points to the same underlying object as [other]. - static NSFileHandle castFrom(T other) { - return NSFileHandle._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSFileHandle] that wraps the given raw object pointer. - static NSFileHandle castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSFileHandle._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSFileHandle]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileHandle1); - } - - NSData? get availableData { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_availableData1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); - } - - NSFileHandle initWithFileDescriptor_closeOnDealloc_(int fd, bool closeopt) { - final _ret = _lib._objc_msgSend_761( - _id, _lib._sel_initWithFileDescriptor_closeOnDealloc_1, fd, closeopt); - return NSFileHandle._(_ret, _lib, retain: true, release: true); - } - - NSFileHandle initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSFileHandle._(_ret, _lib, retain: true, release: true); - } - - NSData readDataToEndOfFileAndReturnError_( - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_762( - _id, _lib._sel_readDataToEndOfFileAndReturnError_1, error); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSData readDataUpToLength_error_( - int length, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_763( - _id, _lib._sel_readDataUpToLength_error_1, length, error); - return NSData._(_ret, _lib, retain: true, release: true); - } - - bool writeData_error_( - NSData? data, ffi.Pointer> error) { - return _lib._objc_msgSend_764( - _id, _lib._sel_writeData_error_1, data?._id ?? ffi.nullptr, error); - } - - bool getOffset_error_(ffi.Pointer offsetInFile, - ffi.Pointer> error) { - return _lib._objc_msgSend_765( - _id, _lib._sel_getOffset_error_1, offsetInFile, error); - } - - bool seekToEndReturningOffset_error_( - ffi.Pointer offsetInFile, - ffi.Pointer> error) { - return _lib._objc_msgSend_765( - _id, _lib._sel_seekToEndReturningOffset_error_1, offsetInFile, error); - } - - bool seekToOffset_error_( - int offset, ffi.Pointer> error) { - return _lib._objc_msgSend_766( - _id, _lib._sel_seekToOffset_error_1, offset, error); - } - - bool truncateAtOffset_error_( - int offset, ffi.Pointer> error) { - return _lib._objc_msgSend_766( - _id, _lib._sel_truncateAtOffset_error_1, offset, error); - } - - bool synchronizeAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_225( - _id, _lib._sel_synchronizeAndReturnError_1, error); - } - - bool closeAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_225(_id, _lib._sel_closeAndReturnError_1, error); - } - - static NSFileHandle? getFileHandleWithStandardInput( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_767( - _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardInput1); - return _ret.address == 0 - ? null - : NSFileHandle._(_ret, _lib, retain: true, release: true); - } - - static NSFileHandle? getFileHandleWithStandardOutput( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_767( - _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardOutput1); - return _ret.address == 0 - ? null - : NSFileHandle._(_ret, _lib, retain: true, release: true); - } - - static NSFileHandle? getFileHandleWithStandardError( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_767( - _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardError1); - return _ret.address == 0 - ? null - : NSFileHandle._(_ret, _lib, retain: true, release: true); - } - - static NSFileHandle? getFileHandleWithNullDevice( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_767( - _lib._class_NSFileHandle1, _lib._sel_fileHandleWithNullDevice1); - return _ret.address == 0 - ? null - : NSFileHandle._(_ret, _lib, retain: true, release: true); - } - - static NSFileHandle fileHandleForReadingAtPath_( - HidListenerBindingsSwift _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSFileHandle1, - _lib._sel_fileHandleForReadingAtPath_1, path?._id ?? ffi.nullptr); - return NSFileHandle._(_ret, _lib, retain: true, release: true); - } - - static NSFileHandle fileHandleForWritingAtPath_( - HidListenerBindingsSwift _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSFileHandle1, - _lib._sel_fileHandleForWritingAtPath_1, path?._id ?? ffi.nullptr); - return NSFileHandle._(_ret, _lib, retain: true, release: true); - } - - static NSFileHandle fileHandleForUpdatingAtPath_( - HidListenerBindingsSwift _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSFileHandle1, - _lib._sel_fileHandleForUpdatingAtPath_1, path?._id ?? ffi.nullptr); - return NSFileHandle._(_ret, _lib, retain: true, release: true); - } - - static NSFileHandle fileHandleForReadingFromURL_error_( - HidListenerBindingsSwift _lib, - NSURL? url, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_768( - _lib._class_NSFileHandle1, - _lib._sel_fileHandleForReadingFromURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSFileHandle._(_ret, _lib, retain: true, release: true); - } - - static NSFileHandle fileHandleForWritingToURL_error_( - HidListenerBindingsSwift _lib, - NSURL? url, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_768( - _lib._class_NSFileHandle1, - _lib._sel_fileHandleForWritingToURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSFileHandle._(_ret, _lib, retain: true, release: true); - } - - static NSFileHandle fileHandleForUpdatingURL_error_( - HidListenerBindingsSwift _lib, - NSURL? url, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_768( - _lib._class_NSFileHandle1, - _lib._sel_fileHandleForUpdatingURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSFileHandle._(_ret, _lib, retain: true, release: true); - } - - void readInBackgroundAndNotifyForModes_(NSArray? modes) { - return _lib._objc_msgSend_441( - _id, - _lib._sel_readInBackgroundAndNotifyForModes_1, - modes?._id ?? ffi.nullptr); - } - - void readInBackgroundAndNotify() { - return _lib._objc_msgSend_1(_id, _lib._sel_readInBackgroundAndNotify1); - } - - void readToEndOfFileInBackgroundAndNotifyForModes_(NSArray? modes) { - return _lib._objc_msgSend_441( - _id, - _lib._sel_readToEndOfFileInBackgroundAndNotifyForModes_1, - modes?._id ?? ffi.nullptr); - } - - void readToEndOfFileInBackgroundAndNotify() { - return _lib._objc_msgSend_1( - _id, _lib._sel_readToEndOfFileInBackgroundAndNotify1); - } - - void acceptConnectionInBackgroundAndNotifyForModes_(NSArray? modes) { - return _lib._objc_msgSend_441( - _id, - _lib._sel_acceptConnectionInBackgroundAndNotifyForModes_1, - modes?._id ?? ffi.nullptr); - } - - void acceptConnectionInBackgroundAndNotify() { - return _lib._objc_msgSend_1( - _id, _lib._sel_acceptConnectionInBackgroundAndNotify1); - } - - void waitForDataInBackgroundAndNotifyForModes_(NSArray? modes) { - return _lib._objc_msgSend_441( - _id, - _lib._sel_waitForDataInBackgroundAndNotifyForModes_1, - modes?._id ?? ffi.nullptr); - } - - void waitForDataInBackgroundAndNotify() { - return _lib._objc_msgSend_1( - _id, _lib._sel_waitForDataInBackgroundAndNotify1); - } - - ObjCBlock35 get readabilityHandler { - final _ret = _lib._objc_msgSend_769(_id, _lib._sel_readabilityHandler1); - return ObjCBlock35._(_ret, _lib); - } - - set readabilityHandler(ObjCBlock35 value) { - _lib._objc_msgSend_770(_id, _lib._sel_setReadabilityHandler_1, value._id); - } - - ObjCBlock35 get writeabilityHandler { - final _ret = _lib._objc_msgSend_769(_id, _lib._sel_writeabilityHandler1); - return ObjCBlock35._(_ret, _lib); - } - - set writeabilityHandler(ObjCBlock35 value) { - _lib._objc_msgSend_770(_id, _lib._sel_setWriteabilityHandler_1, value._id); - } - - NSFileHandle initWithFileDescriptor_(int fd) { - final _ret = - _lib._objc_msgSend_771(_id, _lib._sel_initWithFileDescriptor_1, fd); - return NSFileHandle._(_ret, _lib, retain: true, release: true); - } - - int get fileDescriptor { - return _lib._objc_msgSend_219(_id, _lib._sel_fileDescriptor1); - } - - NSData readDataToEndOfFile() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_readDataToEndOfFile1); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSData readDataOfLength_(int length) { - final _ret = - _lib._objc_msgSend_330(_id, _lib._sel_readDataOfLength_1, length); - return NSData._(_ret, _lib, retain: true, release: true); - } - - void writeData_(NSData? data) { - return _lib._objc_msgSend_263( - _id, _lib._sel_writeData_1, data?._id ?? ffi.nullptr); - } - - int get offsetInFile { - return _lib._objc_msgSend_154(_id, _lib._sel_offsetInFile1); - } - - int seekToEndOfFile() { - return _lib._objc_msgSend_154(_id, _lib._sel_seekToEndOfFile1); - } - - void seekToFileOffset_(int offset) { - return _lib._objc_msgSend_772(_id, _lib._sel_seekToFileOffset_1, offset); - } - - void truncateFileAtOffset_(int offset) { - return _lib._objc_msgSend_772( - _id, _lib._sel_truncateFileAtOffset_1, offset); - } - - void synchronizeFile() { - return _lib._objc_msgSend_1(_id, _lib._sel_synchronizeFile1); - } - - void closeFile() { - return _lib._objc_msgSend_1(_id, _lib._sel_closeFile1); - } - - static NSFileHandle new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSFileHandle1, _lib._sel_new1); - return NSFileHandle._(_ret, _lib, retain: false, release: true); - } - - static NSFileHandle alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSFileHandle1, _lib._sel_alloc1); - return NSFileHandle._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSFileHandle1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSFileHandle1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSFileHandle1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSFileHandle1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSFileHandle1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSFileHandle1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSFileHandle1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSFileHandle1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSFileHandle1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -void _ObjCBlock35_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock35_closureRegistry = {}; -int _ObjCBlock35_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock35_registerClosure(Function fn) { - final id = ++_ObjCBlock35_closureRegistryIndex; - _ObjCBlock35_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock35_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock35_closureRegistry[block.ref.target.address]!(arg0); -} - -class ObjCBlock35 extends _ObjCBlockBase { - ObjCBlock35._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock35.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock35_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock35.fromFunction(HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock35_closureTrampoline) - .cast(), - _ObjCBlock35_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } -} - -class NSHTTPCookieStorage extends NSObject { - NSHTTPCookieStorage._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSHTTPCookieStorage] that points to the same underlying object as [other]. - static NSHTTPCookieStorage castFrom(T other) { - return NSHTTPCookieStorage._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSHTTPCookieStorage] that wraps the given raw object pointer. - static NSHTTPCookieStorage castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSHTTPCookieStorage._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSHTTPCookieStorage]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSHTTPCookieStorage1); - } - - static NSHTTPCookieStorage? getSharedHTTPCookieStorage( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_773( - _lib._class_NSHTTPCookieStorage1, _lib._sel_sharedHTTPCookieStorage1); - return _ret.address == 0 - ? null - : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); - } - - static NSHTTPCookieStorage sharedCookieStorageForGroupContainerIdentifier_( - HidListenerBindingsSwift _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_774( - _lib._class_NSHTTPCookieStorage1, - _lib._sel_sharedCookieStorageForGroupContainerIdentifier_1, - identifier?._id ?? ffi.nullptr); - return NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); - } - - NSArray? get cookies { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_cookies1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - void setCookie_(NSHTTPCookie? cookie) { - return _lib._objc_msgSend_777( - _id, _lib._sel_setCookie_1, cookie?._id ?? ffi.nullptr); - } - - void deleteCookie_(NSHTTPCookie? cookie) { - return _lib._objc_msgSend_777( - _id, _lib._sel_deleteCookie_1, cookie?._id ?? ffi.nullptr); - } - - void removeCookiesSinceDate_(NSDate? date) { - return _lib._objc_msgSend_504( - _id, _lib._sel_removeCookiesSinceDate_1, date?._id ?? ffi.nullptr); - } - - NSArray cookiesForURL_(NSURL? URL) { - final _ret = _lib._objc_msgSend_124( - _id, _lib._sel_cookiesForURL_1, URL?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - void setCookies_forURL_mainDocumentURL_( - NSArray? cookies, NSURL? URL, NSURL? mainDocumentURL) { - return _lib._objc_msgSend_778( - _id, - _lib._sel_setCookies_forURL_mainDocumentURL_1, - cookies?._id ?? ffi.nullptr, - URL?._id ?? ffi.nullptr, - mainDocumentURL?._id ?? ffi.nullptr); - } - - int get cookieAcceptPolicy { - return _lib._objc_msgSend_779(_id, _lib._sel_cookieAcceptPolicy1); - } - - set cookieAcceptPolicy(int value) { - _lib._objc_msgSend_780(_id, _lib._sel_setCookieAcceptPolicy_1, value); - } - - NSArray sortedCookiesUsingDescriptors_(NSArray? sortOrder) { - final _ret = _lib._objc_msgSend_63( - _id, - _lib._sel_sortedCookiesUsingDescriptors_1, - sortOrder?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - void storeCookies_forTask_(NSArray? cookies, NSURLSessionTask? task) { - return _lib._objc_msgSend_800(_id, _lib._sel_storeCookies_forTask_1, - cookies?._id ?? ffi.nullptr, task?._id ?? ffi.nullptr); - } - - void getCookiesForTask_completionHandler_( - NSURLSessionTask? task, ObjCBlock36 completionHandler) { - return _lib._objc_msgSend_801( - _id, - _lib._sel_getCookiesForTask_completionHandler_1, - task?._id ?? ffi.nullptr, - completionHandler._id); - } - - static NSHTTPCookieStorage new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSHTTPCookieStorage1, _lib._sel_new1); - return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); - } - - static NSHTTPCookieStorage alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSHTTPCookieStorage1, _lib._sel_alloc1); - return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSHTTPCookieStorage1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSHTTPCookieStorage1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSHTTPCookieStorage1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSHTTPCookieStorage1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSHTTPCookieStorage1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSHTTPCookieStorage1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSHTTPCookieStorage1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSHTTPCookieStorage1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSHTTPCookieStorage1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSHTTPCookie extends NSObject { - NSHTTPCookie._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSHTTPCookie] that points to the same underlying object as [other]. - static NSHTTPCookie castFrom(T other) { - return NSHTTPCookie._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSHTTPCookie] that wraps the given raw object pointer. - static NSHTTPCookie castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSHTTPCookie._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSHTTPCookie]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSHTTPCookie1); - } - - NSHTTPCookie initWithProperties_(NSDictionary? properties) { - final _ret = _lib._objc_msgSend_149( - _id, _lib._sel_initWithProperties_1, properties?._id ?? ffi.nullptr); - return NSHTTPCookie._(_ret, _lib, retain: true, release: true); - } - - static NSHTTPCookie cookieWithProperties_( - HidListenerBindingsSwift _lib, NSDictionary? properties) { - final _ret = _lib._objc_msgSend_775(_lib._class_NSHTTPCookie1, - _lib._sel_cookieWithProperties_1, properties?._id ?? ffi.nullptr); - return NSHTTPCookie._(_ret, _lib, retain: true, release: true); - } - - static NSDictionary requestHeaderFieldsWithCookies_( - HidListenerBindingsSwift _lib, NSArray? cookies) { - final _ret = _lib._objc_msgSend_475( - _lib._class_NSHTTPCookie1, - _lib._sel_requestHeaderFieldsWithCookies_1, - cookies?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSArray cookiesWithResponseHeaderFields_forURL_( - HidListenerBindingsSwift _lib, NSDictionary? headerFields, NSURL? URL) { - final _ret = _lib._objc_msgSend_776( - _lib._class_NSHTTPCookie1, - _lib._sel_cookiesWithResponseHeaderFields_forURL_1, - headerFields?._id ?? ffi.nullptr, - URL?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSDictionary? get properties { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_properties1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - int get version { - return _lib._objc_msgSend_10(_id, _lib._sel_version1); - } - - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get value { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_value1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSDate? get expiresDate { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_expiresDate1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } - - bool get sessionOnly { - return _lib._objc_msgSend_12(_id, _lib._sel_isSessionOnly1); - } - - NSString? get domain { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_domain1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get path { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_path1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - bool get secure { - return _lib._objc_msgSend_12(_id, _lib._sel_isSecure1); - } - - bool get HTTPOnly { - return _lib._objc_msgSend_12(_id, _lib._sel_isHTTPOnly1); - } - - NSString? get comment { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_comment1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSURL? get commentURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_commentURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - NSArray? get portList { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_portList1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSString get sameSitePolicy { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sameSitePolicy1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSHTTPCookie new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSHTTPCookie1, _lib._sel_new1); - return NSHTTPCookie._(_ret, _lib, retain: false, release: true); - } - - static NSHTTPCookie alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSHTTPCookie1, _lib._sel_alloc1); - return NSHTTPCookie._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSHTTPCookie1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSHTTPCookie1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSHTTPCookie1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSHTTPCookie1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSHTTPCookie1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSHTTPCookie1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSHTTPCookie1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSHTTPCookie1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSHTTPCookie1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSHTTPCookieAcceptPolicy { - static const int NSHTTPCookieAcceptPolicyAlways = 0; - static const int NSHTTPCookieAcceptPolicyNever = 1; - static const int NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain = 2; -} - -class NSURLSessionTask extends NSObject { - NSURLSessionTask._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSURLSessionTask] that points to the same underlying object as [other]. - static NSURLSessionTask castFrom(T other) { - return NSURLSessionTask._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSURLSessionTask] that wraps the given raw object pointer. - static NSURLSessionTask castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLSessionTask._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSURLSessionTask]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionTask1); - } - - int get taskIdentifier { - return _lib._objc_msgSend_10(_id, _lib._sel_taskIdentifier1); - } - - NSURLRequest? get originalRequest { - final _ret = _lib._objc_msgSend_795(_id, _lib._sel_originalRequest1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); - } - - NSURLRequest? get currentRequest { - final _ret = _lib._objc_msgSend_795(_id, _lib._sel_currentRequest1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); - } - - NSURLResponse? get response { - final _ret = _lib._objc_msgSend_797(_id, _lib._sel_response1); - return _ret.address == 0 - ? null - : NSURLResponse._(_ret, _lib, retain: true, release: true); - } - - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); - } - - set delegate(NSObject? value) { - _lib._objc_msgSend_387( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); - } - - NSProgress? get progress { - final _ret = _lib._objc_msgSend_609(_id, _lib._sel_progress1); - return _ret.address == 0 - ? null - : NSProgress._(_ret, _lib, retain: true, release: true); - } - - NSDate? get earliestBeginDate { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_earliestBeginDate1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } - - set earliestBeginDate(NSDate? value) { - _lib._objc_msgSend_525( - _id, _lib._sel_setEarliestBeginDate_1, value?._id ?? ffi.nullptr); - } - - int get countOfBytesClientExpectsToSend { - return _lib._objc_msgSend_616( - _id, _lib._sel_countOfBytesClientExpectsToSend1); - } - - set countOfBytesClientExpectsToSend(int value) { - _lib._objc_msgSend_617( - _id, _lib._sel_setCountOfBytesClientExpectsToSend_1, value); - } - - int get countOfBytesClientExpectsToReceive { - return _lib._objc_msgSend_616( - _id, _lib._sel_countOfBytesClientExpectsToReceive1); - } - - set countOfBytesClientExpectsToReceive(int value) { - _lib._objc_msgSend_617( - _id, _lib._sel_setCountOfBytesClientExpectsToReceive_1, value); - } - - int get countOfBytesSent { - return _lib._objc_msgSend_616(_id, _lib._sel_countOfBytesSent1); - } - - int get countOfBytesReceived { - return _lib._objc_msgSend_616(_id, _lib._sel_countOfBytesReceived1); - } - - int get countOfBytesExpectedToSend { - return _lib._objc_msgSend_616(_id, _lib._sel_countOfBytesExpectedToSend1); - } - - int get countOfBytesExpectedToReceive { - return _lib._objc_msgSend_616( - _id, _lib._sel_countOfBytesExpectedToReceive1); - } - - NSString? get taskDescription { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_taskDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set taskDescription(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setTaskDescription_1, value?._id ?? ffi.nullptr); - } - - void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); - } - - int get state { - return _lib._objc_msgSend_798(_id, _lib._sel_state1); - } - - NSError? get error { - final _ret = _lib._objc_msgSend_298(_id, _lib._sel_error1); - return _ret.address == 0 - ? null - : NSError._(_ret, _lib, retain: true, release: true); - } - - void suspend() { - return _lib._objc_msgSend_1(_id, _lib._sel_suspend1); - } - - void resume() { - return _lib._objc_msgSend_1(_id, _lib._sel_resume1); - } - - double get priority { - return _lib._objc_msgSend_221(_id, _lib._sel_priority1); - } - - set priority(double value) { - _lib._objc_msgSend_799(_id, _lib._sel_setPriority_1, value); - } - - bool get prefersIncrementalDelivery { - return _lib._objc_msgSend_12(_id, _lib._sel_prefersIncrementalDelivery1); - } - - set prefersIncrementalDelivery(bool value) { - _lib._objc_msgSend_492( - _id, _lib._sel_setPrefersIncrementalDelivery_1, value); - } - - @override - NSURLSessionTask init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionTask._(_ret, _lib, retain: true, release: true); - } - - static NSURLSessionTask new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLSessionTask1, _lib._sel_new1); - return NSURLSessionTask._(_ret, _lib, retain: false, release: true); - } - - static NSURLSessionTask alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLSessionTask1, _lib._sel_alloc1); - return NSURLSessionTask._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLSessionTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionTask1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLSessionTask1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSURLSessionTask1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionTask1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionTask1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSURLRequest extends NSObject { - NSURLRequest._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSURLRequest] that points to the same underlying object as [other]. - static NSURLRequest castFrom(T other) { - return NSURLRequest._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSURLRequest] that wraps the given raw object pointer. - static NSURLRequest castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLRequest._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSURLRequest]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLRequest1); - } - - static NSURLRequest requestWithURL_( - HidListenerBindingsSwift _lib, NSURL? URL) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSURLRequest1, - _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); - return NSURLRequest._(_ret, _lib, retain: true, release: true); - } - - static bool getSupportsSecureCoding(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLRequest1, _lib._sel_supportsSecureCoding1); - } - - static NSURLRequest requestWithURL_cachePolicy_timeoutInterval_( - HidListenerBindingsSwift _lib, - NSURL? URL, - int cachePolicy, - double timeoutInterval) { - final _ret = _lib._objc_msgSend_781( - _lib._class_NSURLRequest1, - _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, - cachePolicy, - timeoutInterval); - return NSURLRequest._(_ret, _lib, retain: true, release: true); - } - - NSURLRequest initWithURL_(NSURL? URL) { - final _ret = _lib._objc_msgSend_241( - _id, _lib._sel_initWithURL_1, URL?._id ?? ffi.nullptr); - return NSURLRequest._(_ret, _lib, retain: true, release: true); - } - - NSURLRequest initWithURL_cachePolicy_timeoutInterval_( - NSURL? URL, int cachePolicy, double timeoutInterval) { - final _ret = _lib._objc_msgSend_781( - _id, - _lib._sel_initWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, - cachePolicy, - timeoutInterval); - return NSURLRequest._(_ret, _lib, retain: true, release: true); - } - - NSURL? get URL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - int get cachePolicy { - return _lib._objc_msgSend_782(_id, _lib._sel_cachePolicy1); - } - - double get timeoutInterval { - return _lib._objc_msgSend_155(_id, _lib._sel_timeoutInterval1); - } - - NSURL? get mainDocumentURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_mainDocumentURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - int get networkServiceType { - return _lib._objc_msgSend_783(_id, _lib._sel_networkServiceType1); - } - - bool get allowsCellularAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); - } - - bool get allowsExpensiveNetworkAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); - } - - bool get allowsConstrainedNetworkAccess { - return _lib._objc_msgSend_12( - _id, _lib._sel_allowsConstrainedNetworkAccess1); - } - - bool get assumesHTTP3Capable { - return _lib._objc_msgSend_12(_id, _lib._sel_assumesHTTP3Capable1); - } - - int get attribution { - return _lib._objc_msgSend_784(_id, _lib._sel_attribution1); - } - - bool get requiresDNSSECValidation { - return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); - } - - NSString? get HTTPMethod { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_HTTPMethod1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSDictionary? get allHTTPHeaderFields { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_allHTTPHeaderFields1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSString valueForHTTPHeaderField_(NSString? field) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_valueForHTTPHeaderField_1, field?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSData? get HTTPBody { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_HTTPBody1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); - } - - NSInputStream? get HTTPBodyStream { - final _ret = _lib._objc_msgSend_794(_id, _lib._sel_HTTPBodyStream1); - return _ret.address == 0 - ? null - : NSInputStream._(_ret, _lib, retain: true, release: true); - } - - bool get HTTPShouldHandleCookies { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldHandleCookies1); - } - - bool get HTTPShouldUsePipelining { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); - } - - static NSURLRequest new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_new1); - return NSURLRequest._(_ret, _lib, retain: false, release: true); - } - - static NSURLRequest alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_alloc1); - return NSURLRequest._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLRequest1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLRequest1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLRequest1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLRequest1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLRequest1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLRequest1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSURLRequest1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSURLRequest1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLRequest1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSURLRequestCachePolicy { - static const int NSURLRequestUseProtocolCachePolicy = 0; - static const int NSURLRequestReloadIgnoringLocalCacheData = 1; - static const int NSURLRequestReloadIgnoringLocalAndRemoteCacheData = 4; - static const int NSURLRequestReloadIgnoringCacheData = 1; - static const int NSURLRequestReturnCacheDataElseLoad = 2; - static const int NSURLRequestReturnCacheDataDontLoad = 3; - static const int NSURLRequestReloadRevalidatingCacheData = 5; -} - -abstract class NSURLRequestNetworkServiceType { - static const int NSURLNetworkServiceTypeDefault = 0; - static const int NSURLNetworkServiceTypeVoIP = 1; - static const int NSURLNetworkServiceTypeVideo = 2; - static const int NSURLNetworkServiceTypeBackground = 3; - static const int NSURLNetworkServiceTypeVoice = 4; - static const int NSURLNetworkServiceTypeResponsiveData = 6; - static const int NSURLNetworkServiceTypeAVStreaming = 8; - static const int NSURLNetworkServiceTypeResponsiveAV = 9; - static const int NSURLNetworkServiceTypeCallSignaling = 11; -} - -abstract class NSURLRequestAttribution { - static const int NSURLRequestAttributionDeveloper = 0; - static const int NSURLRequestAttributionUser = 1; -} - -class NSInputStream extends NSStream { - NSInputStream._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSInputStream] that points to the same underlying object as [other]. - static NSInputStream castFrom(T other) { - return NSInputStream._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSInputStream] that wraps the given raw object pointer. - static NSInputStream castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSInputStream._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSInputStream]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSInputStream1); - } - - int read_maxLength_(ffi.Pointer buffer, int len) { - return _lib._objc_msgSend_786(_id, _lib._sel_read_maxLength_1, buffer, len); - } - - bool getBuffer_length_(ffi.Pointer> buffer, - ffi.Pointer len) { - return _lib._objc_msgSend_793( - _id, _lib._sel_getBuffer_length_1, buffer, len); - } - - bool get hasBytesAvailable { - return _lib._objc_msgSend_12(_id, _lib._sel_hasBytesAvailable1); - } - - NSInputStream initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_257( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); - } - - NSInputStream initWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_241( - _id, _lib._sel_initWithURL_1, url?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); - } - - NSInputStream initWithFileAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithFileAtPath_1, path?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); - } - - static NSInputStream inputStreamWithData_( - HidListenerBindingsSwift _lib, NSData? data) { - final _ret = _lib._objc_msgSend_257(_lib._class_NSInputStream1, - _lib._sel_inputStreamWithData_1, data?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); - } - - static NSInputStream inputStreamWithFileAtPath_( - HidListenerBindingsSwift _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSInputStream1, - _lib._sel_inputStreamWithFileAtPath_1, path?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); - } - - static NSInputStream inputStreamWithURL_( - HidListenerBindingsSwift _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSInputStream1, - _lib._sel_inputStreamWithURL_1, url?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); - } - - static void getStreamsToHostWithName_port_inputStream_outputStream_( - HidListenerBindingsSwift _lib, - NSString? hostname, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - return _lib._objc_msgSend_788( - _lib._class_NSInputStream1, - _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, - hostname?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); - } - - static void getStreamsToHost_port_inputStream_outputStream_( - HidListenerBindingsSwift _lib, - NSHost? host, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - return _lib._objc_msgSend_791( - _lib._class_NSInputStream1, - _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, - host?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); - } - - static void getBoundStreamsWithBufferSize_inputStream_outputStream_( - HidListenerBindingsSwift _lib, - int bufferSize, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - return _lib._objc_msgSend_792( - _lib._class_NSInputStream1, - _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, - bufferSize, - inputStream, - outputStream); - } - - static NSInputStream new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSInputStream1, _lib._sel_new1); - return NSInputStream._(_ret, _lib, retain: false, release: true); - } - - static NSInputStream alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSInputStream1, _lib._sel_alloc1); - return NSInputStream._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSInputStream1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSInputStream1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSInputStream1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSInputStream1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSInputStream1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSInputStream1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSInputStream1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSInputStream1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSInputStream1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSStream extends NSObject { - NSStream._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSStream] that points to the same underlying object as [other]. - static NSStream castFrom(T other) { - return NSStream._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSStream] that wraps the given raw object pointer. - static NSStream castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSStream._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSStream]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSStream1); - } - - void open() { - return _lib._objc_msgSend_1(_id, _lib._sel_open1); - } - - void close() { - return _lib._objc_msgSend_1(_id, _lib._sel_close1); - } - - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); - } - - set delegate(NSObject? value) { - _lib._objc_msgSend_387( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); - } - - NSObject propertyForKey_(NSString key) { - final _ret = - _lib._objc_msgSend_30(_id, _lib._sel_propertyForKey_1, key._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - bool setProperty_forKey_(NSObject property, NSString key) { - return _lib._objc_msgSend_240( - _id, _lib._sel_setProperty_forKey_1, property._id, key._id); - } - - void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - return _lib._objc_msgSend_533(_id, _lib._sel_scheduleInRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); - } - - void removeFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - return _lib._objc_msgSend_533(_id, _lib._sel_removeFromRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); - } - - int get streamStatus { - return _lib._objc_msgSend_785(_id, _lib._sel_streamStatus1); - } - - NSError? get streamError { - final _ret = _lib._objc_msgSend_298(_id, _lib._sel_streamError1); - return _ret.address == 0 - ? null - : NSError._(_ret, _lib, retain: true, release: true); - } - - static void getStreamsToHostWithName_port_inputStream_outputStream_( - HidListenerBindingsSwift _lib, - NSString? hostname, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - return _lib._objc_msgSend_788( - _lib._class_NSStream1, - _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, - hostname?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); - } - - static void getStreamsToHost_port_inputStream_outputStream_( - HidListenerBindingsSwift _lib, - NSHost? host, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - return _lib._objc_msgSend_791( - _lib._class_NSStream1, - _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, - host?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); - } - - static void getBoundStreamsWithBufferSize_inputStream_outputStream_( - HidListenerBindingsSwift _lib, - int bufferSize, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - return _lib._objc_msgSend_792( - _lib._class_NSStream1, - _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, - bufferSize, - inputStream, - outputStream); - } - - static NSStream new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSStream1, _lib._sel_new1); - return NSStream._(_ret, _lib, retain: false, release: true); - } - - static NSStream alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSStream1, _lib._sel_alloc1); - return NSStream._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSStream1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSStream1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSStream1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSStream1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSStream1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSStream1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSStream1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSStream1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSStream1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSStreamStatus { - static const int NSStreamStatusNotOpen = 0; - static const int NSStreamStatusOpening = 1; - static const int NSStreamStatusOpen = 2; - static const int NSStreamStatusReading = 3; - static const int NSStreamStatusWriting = 4; - static const int NSStreamStatusAtEnd = 5; - static const int NSStreamStatusClosed = 6; - static const int NSStreamStatusError = 7; -} - -class NSOutputStream extends NSStream { - NSOutputStream._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSOutputStream] that points to the same underlying object as [other]. - static NSOutputStream castFrom(T other) { - return NSOutputStream._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSOutputStream] that wraps the given raw object pointer. - static NSOutputStream castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSOutputStream._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSOutputStream]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSOutputStream1); - } - - int write_maxLength_(ffi.Pointer buffer, int len) { - return _lib._objc_msgSend_786( - _id, _lib._sel_write_maxLength_1, buffer, len); - } - - bool get hasSpaceAvailable { - return _lib._objc_msgSend_12(_id, _lib._sel_hasSpaceAvailable1); - } - - NSOutputStream initToMemory() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_initToMemory1); - return NSOutputStream._(_ret, _lib, retain: true, release: true); - } - - NSOutputStream initToBuffer_capacity_( - ffi.Pointer buffer, int capacity) { - final _ret = _lib._objc_msgSend_787( - _id, _lib._sel_initToBuffer_capacity_1, buffer, capacity); - return NSOutputStream._(_ret, _lib, retain: true, release: true); - } - - NSOutputStream initWithURL_append_(NSURL? url, bool shouldAppend) { - final _ret = _lib._objc_msgSend_246(_id, _lib._sel_initWithURL_append_1, - url?._id ?? ffi.nullptr, shouldAppend); - return NSOutputStream._(_ret, _lib, retain: true, release: true); - } - - NSOutputStream initToFileAtPath_append_(NSString? path, bool shouldAppend) { - final _ret = _lib._objc_msgSend_29(_id, _lib._sel_initToFileAtPath_append_1, - path?._id ?? ffi.nullptr, shouldAppend); - return NSOutputStream._(_ret, _lib, retain: true, release: true); - } - - static NSOutputStream outputStreamToMemory(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSOutputStream1, _lib._sel_outputStreamToMemory1); - return NSOutputStream._(_ret, _lib, retain: true, release: true); - } - - static NSOutputStream outputStreamToBuffer_capacity_( - HidListenerBindingsSwift _lib, - ffi.Pointer buffer, - int capacity) { - final _ret = _lib._objc_msgSend_787(_lib._class_NSOutputStream1, - _lib._sel_outputStreamToBuffer_capacity_1, buffer, capacity); - return NSOutputStream._(_ret, _lib, retain: true, release: true); - } - - static NSOutputStream outputStreamToFileAtPath_append_( - HidListenerBindingsSwift _lib, NSString? path, bool shouldAppend) { - final _ret = _lib._objc_msgSend_29( - _lib._class_NSOutputStream1, - _lib._sel_outputStreamToFileAtPath_append_1, - path?._id ?? ffi.nullptr, - shouldAppend); - return NSOutputStream._(_ret, _lib, retain: true, release: true); - } - - static NSOutputStream outputStreamWithURL_append_( - HidListenerBindingsSwift _lib, NSURL? url, bool shouldAppend) { - final _ret = _lib._objc_msgSend_246( - _lib._class_NSOutputStream1, - _lib._sel_outputStreamWithURL_append_1, - url?._id ?? ffi.nullptr, - shouldAppend); - return NSOutputStream._(_ret, _lib, retain: true, release: true); - } - - static void getStreamsToHostWithName_port_inputStream_outputStream_( - HidListenerBindingsSwift _lib, - NSString? hostname, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - return _lib._objc_msgSend_788( - _lib._class_NSOutputStream1, - _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, - hostname?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); - } - - static void getStreamsToHost_port_inputStream_outputStream_( - HidListenerBindingsSwift _lib, - NSHost? host, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - return _lib._objc_msgSend_791( - _lib._class_NSOutputStream1, - _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, - host?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); - } - - static void getBoundStreamsWithBufferSize_inputStream_outputStream_( - HidListenerBindingsSwift _lib, - int bufferSize, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - return _lib._objc_msgSend_792( - _lib._class_NSOutputStream1, - _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, - bufferSize, - inputStream, - outputStream); - } - - static NSOutputStream new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSOutputStream1, _lib._sel_new1); - return NSOutputStream._(_ret, _lib, retain: false, release: true); - } - - static NSOutputStream alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSOutputStream1, _lib._sel_alloc1); - return NSOutputStream._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSOutputStream1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSOutputStream1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSOutputStream1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSOutputStream1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSOutputStream1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSOutputStream1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSOutputStream1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSOutputStream1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSOutputStream1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSHost extends NSObject { - NSHost._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSHost] that points to the same underlying object as [other]. - static NSHost castFrom(T other) { - return NSHost._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSHost] that wraps the given raw object pointer. - static NSHost castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSHost._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSHost]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSHost1); - } - - static NSHost currentHost(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSHost1, _lib._sel_currentHost1); - return NSHost._(_ret, _lib, retain: true, release: true); - } - - static NSHost hostWithName_(HidListenerBindingsSwift _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSHost1, - _lib._sel_hostWithName_1, name?._id ?? ffi.nullptr); - return NSHost._(_ret, _lib, retain: true, release: true); - } - - static NSHost hostWithAddress_( - HidListenerBindingsSwift _lib, NSString? address) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSHost1, - _lib._sel_hostWithAddress_1, address?._id ?? ffi.nullptr); - return NSHost._(_ret, _lib, retain: true, release: true); - } - - bool isEqualToHost_(NSHost? aHost) { - return _lib._objc_msgSend_789( - _id, _lib._sel_isEqualToHost_1, aHost?._id ?? ffi.nullptr); - } - - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSArray? get names { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_names1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSString? get address { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_address1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSArray? get addresses { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_addresses1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSString? get localizedName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localizedName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - static void setHostCacheEnabled_(HidListenerBindingsSwift _lib, bool flag) { - return _lib._objc_msgSend_790( - _lib._class_NSHost1, _lib._sel_setHostCacheEnabled_1, flag); - } - - static bool isHostCacheEnabled(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSHost1, _lib._sel_isHostCacheEnabled1); - } - - static void flushHostCache(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_1(_lib._class_NSHost1, _lib._sel_flushHostCache1); - } - - static NSHost new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSHost1, _lib._sel_new1); - return NSHost._(_ret, _lib, retain: false, release: true); - } - - static NSHost alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSHost1, _lib._sel_alloc1); - return NSHost._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSHost1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSHost1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSHost1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSHost1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSHost1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSHost1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSHost1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSHost1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSHost1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSURLResponse extends NSObject { - NSURLResponse._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSURLResponse] that points to the same underlying object as [other]. - static NSURLResponse castFrom(T other) { - return NSURLResponse._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSURLResponse] that wraps the given raw object pointer. - static NSURLResponse castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLResponse._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSURLResponse]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLResponse1); - } - - NSURLResponse initWithURL_MIMEType_expectedContentLength_textEncodingName_( - NSURL? URL, NSString? MIMEType, int length, NSString? name) { - final _ret = _lib._objc_msgSend_796( - _id, - _lib._sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1, - URL?._id ?? ffi.nullptr, - MIMEType?._id ?? ffi.nullptr, - length, - name?._id ?? ffi.nullptr); - return NSURLResponse._(_ret, _lib, retain: true, release: true); - } - - NSURL? get URL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - NSString? get MIMEType { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_MIMEType1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - int get expectedContentLength { - return _lib._objc_msgSend_220(_id, _lib._sel_expectedContentLength1); - } - - NSString? get textEncodingName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_textEncodingName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get suggestedFilename { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suggestedFilename1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - static NSURLResponse new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_new1); - return NSURLResponse._(_ret, _lib, retain: false, release: true); - } - - static NSURLResponse alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_alloc1); - return NSURLResponse._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLResponse1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLResponse1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLResponse1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLResponse1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLResponse1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLResponse1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSURLResponse1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSURLResponse1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLResponse1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSURLSessionTaskState { - static const int NSURLSessionTaskStateRunning = 0; - static const int NSURLSessionTaskStateSuspended = 1; - static const int NSURLSessionTaskStateCanceling = 2; - static const int NSURLSessionTaskStateCompleted = 3; -} - -void _ObjCBlock36_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock36_closureRegistry = {}; -int _ObjCBlock36_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock36_registerClosure(Function fn) { - final id = ++_ObjCBlock36_closureRegistryIndex; - _ObjCBlock36_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock36_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock36_closureRegistry[block.ref.target.address]!(arg0); -} - -class ObjCBlock36 extends _ObjCBlockBase { - ObjCBlock36._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock36.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock36_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock36.fromFunction(HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock36_closureTrampoline) - .cast(), - _ObjCBlock36_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } -} - -class NSIndexPath extends NSObject { - NSIndexPath._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSIndexPath] that points to the same underlying object as [other]. - static NSIndexPath castFrom(T other) { - return NSIndexPath._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSIndexPath] that wraps the given raw object pointer. - static NSIndexPath castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSIndexPath._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSIndexPath]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSIndexPath1); - } - - static NSIndexPath indexPathWithIndex_( - HidListenerBindingsSwift _lib, int index) { - final _ret = _lib._objc_msgSend_60( - _lib._class_NSIndexPath1, _lib._sel_indexPathWithIndex_1, index); - return NSIndexPath._(_ret, _lib, retain: true, release: true); - } - - static NSIndexPath indexPathWithIndexes_length_(HidListenerBindingsSwift _lib, - ffi.Pointer indexes, int length) { - final _ret = _lib._objc_msgSend_802(_lib._class_NSIndexPath1, - _lib._sel_indexPathWithIndexes_length_1, indexes, length); - return NSIndexPath._(_ret, _lib, retain: true, release: true); - } - - NSIndexPath initWithIndexes_length_( - ffi.Pointer indexes, int length) { - final _ret = _lib._objc_msgSend_802( - _id, _lib._sel_initWithIndexes_length_1, indexes, length); - return NSIndexPath._(_ret, _lib, retain: true, release: true); - } - - NSIndexPath initWithIndex_(int index) { - final _ret = _lib._objc_msgSend_60(_id, _lib._sel_initWithIndex_1, index); - return NSIndexPath._(_ret, _lib, retain: true, release: true); - } - - NSIndexPath indexPathByAddingIndex_(int index) { - final _ret = - _lib._objc_msgSend_803(_id, _lib._sel_indexPathByAddingIndex_1, index); - return NSIndexPath._(_ret, _lib, retain: true, release: true); - } - - NSIndexPath indexPathByRemovingLastIndex() { - final _ret = - _lib._objc_msgSend_804(_id, _lib._sel_indexPathByRemovingLastIndex1); - return NSIndexPath._(_ret, _lib, retain: true, release: true); - } - - int indexAtPosition_(int position) { - return _lib._objc_msgSend_88(_id, _lib._sel_indexAtPosition_1, position); - } - - int get length { - return _lib._objc_msgSend_10(_id, _lib._sel_length1); - } - - void getIndexes_range_( - ffi.Pointer indexes, _NSRange positionRange) { - return _lib._objc_msgSend_805( - _id, _lib._sel_getIndexes_range_1, indexes, positionRange); - } - - int compare_(NSIndexPath? otherObject) { - return _lib._objc_msgSend_806( - _id, _lib._sel_compare_1, otherObject?._id ?? ffi.nullptr); - } - - void getIndexes_(ffi.Pointer indexes) { - return _lib._objc_msgSend_807(_id, _lib._sel_getIndexes_1, indexes); - } - - static NSIndexPath new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexPath1, _lib._sel_new1); - return NSIndexPath._(_ret, _lib, retain: false, release: true); - } - - static NSIndexPath alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSIndexPath1, _lib._sel_alloc1); - return NSIndexPath._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSIndexPath1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSIndexPath1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSIndexPath1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSIndexPath1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSIndexPath1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSIndexPath1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSIndexPath1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSIndexPath1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSIndexPath1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSInflectionRule extends NSObject { - NSInflectionRule._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSInflectionRule] that points to the same underlying object as [other]. - static NSInflectionRule castFrom(T other) { - return NSInflectionRule._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSInflectionRule] that wraps the given raw object pointer. - static NSInflectionRule castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSInflectionRule._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSInflectionRule]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSInflectionRule1); - } - - @override - NSObject init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSInflectionRule? getAutomaticRule(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_808( - _lib._class_NSInflectionRule1, _lib._sel_automaticRule1); - return _ret.address == 0 - ? null - : NSInflectionRule._(_ret, _lib, retain: true, release: true); - } - - static bool canInflectLanguage_( - HidListenerBindingsSwift _lib, NSString? language) { - return _lib._objc_msgSend_59(_lib._class_NSInflectionRule1, - _lib._sel_canInflectLanguage_1, language?._id ?? ffi.nullptr); - } - - static bool getCanInflectPreferredLocalization( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSInflectionRule1, - _lib._sel_canInflectPreferredLocalization1); - } - - static NSInflectionRule new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSInflectionRule1, _lib._sel_new1); - return NSInflectionRule._(_ret, _lib, retain: false, release: true); - } - - static NSInflectionRule alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSInflectionRule1, _lib._sel_alloc1); - return NSInflectionRule._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSInflectionRule1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSInflectionRule1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSInflectionRule1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSInflectionRule1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSInflectionRule1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSInflectionRule1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSInflectionRule1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSInflectionRule1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSInflectionRule1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSMorphology extends NSObject { - NSMorphology._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSMorphology] that points to the same underlying object as [other]. - static NSMorphology castFrom(T other) { - return NSMorphology._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSMorphology] that wraps the given raw object pointer. - static NSMorphology castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMorphology._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSMorphology]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSMorphology1); - } - - int get grammaticalGender { - return _lib._objc_msgSend_809(_id, _lib._sel_grammaticalGender1); - } - - set grammaticalGender(int value) { - _lib._objc_msgSend_810(_id, _lib._sel_setGrammaticalGender_1, value); - } - - int get partOfSpeech { - return _lib._objc_msgSend_811(_id, _lib._sel_partOfSpeech1); - } - - set partOfSpeech(int value) { - _lib._objc_msgSend_812(_id, _lib._sel_setPartOfSpeech_1, value); - } - - int get number { - return _lib._objc_msgSend_813(_id, _lib._sel_number1); - } - - set number(int value) { - _lib._objc_msgSend_814(_id, _lib._sel_setNumber_1, value); - } - - NSMorphologyCustomPronoun customPronounForLanguage_(NSString? language) { - final _ret = _lib._objc_msgSend_815(_id, - _lib._sel_customPronounForLanguage_1, language?._id ?? ffi.nullptr); - return NSMorphologyCustomPronoun._(_ret, _lib, retain: true, release: true); - } - - bool setCustomPronoun_forLanguage_error_(NSMorphologyCustomPronoun? features, - NSString? language, ffi.Pointer> error) { - return _lib._objc_msgSend_816( - _id, - _lib._sel_setCustomPronoun_forLanguage_error_1, - features?._id ?? ffi.nullptr, - language?._id ?? ffi.nullptr, - error); - } - - bool get unspecified { - return _lib._objc_msgSend_12(_id, _lib._sel_isUnspecified1); - } - - static NSMorphology? getUserMorphology(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_817( - _lib._class_NSMorphology1, _lib._sel_userMorphology1); - return _ret.address == 0 - ? null - : NSMorphology._(_ret, _lib, retain: true, release: true); - } - - static NSMorphology new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMorphology1, _lib._sel_new1); - return NSMorphology._(_ret, _lib, retain: false, release: true); - } - - static NSMorphology alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMorphology1, _lib._sel_alloc1); - return NSMorphology._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSMorphology1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMorphology1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMorphology1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMorphology1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMorphology1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMorphology1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSMorphology1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSMorphology1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMorphology1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSGrammaticalGender { - static const int NSGrammaticalGenderNotSet = 0; - static const int NSGrammaticalGenderFeminine = 1; - static const int NSGrammaticalGenderMasculine = 2; - static const int NSGrammaticalGenderNeuter = 3; -} - -abstract class NSGrammaticalPartOfSpeech { - static const int NSGrammaticalPartOfSpeechNotSet = 0; - static const int NSGrammaticalPartOfSpeechDeterminer = 1; - static const int NSGrammaticalPartOfSpeechPronoun = 2; - static const int NSGrammaticalPartOfSpeechLetter = 3; - static const int NSGrammaticalPartOfSpeechAdverb = 4; - static const int NSGrammaticalPartOfSpeechParticle = 5; - static const int NSGrammaticalPartOfSpeechAdjective = 6; - static const int NSGrammaticalPartOfSpeechAdposition = 7; - static const int NSGrammaticalPartOfSpeechVerb = 8; - static const int NSGrammaticalPartOfSpeechNoun = 9; - static const int NSGrammaticalPartOfSpeechConjunction = 10; - static const int NSGrammaticalPartOfSpeechNumeral = 11; - static const int NSGrammaticalPartOfSpeechInterjection = 12; - static const int NSGrammaticalPartOfSpeechPreposition = 13; - static const int NSGrammaticalPartOfSpeechAbbreviation = 14; -} - -abstract class NSGrammaticalNumber { - static const int NSGrammaticalNumberNotSet = 0; - static const int NSGrammaticalNumberSingular = 1; - static const int NSGrammaticalNumberZero = 2; - static const int NSGrammaticalNumberPlural = 3; - static const int NSGrammaticalNumberPluralTwo = 4; - static const int NSGrammaticalNumberPluralFew = 5; - static const int NSGrammaticalNumberPluralMany = 6; -} - -class NSMorphologyCustomPronoun extends NSObject { - NSMorphologyCustomPronoun._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSMorphologyCustomPronoun] that points to the same underlying object as [other]. - static NSMorphologyCustomPronoun castFrom(T other) { - return NSMorphologyCustomPronoun._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSMorphologyCustomPronoun] that wraps the given raw object pointer. - static NSMorphologyCustomPronoun castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMorphologyCustomPronoun._(other, lib, - retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSMorphologyCustomPronoun]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMorphologyCustomPronoun1); - } - - static bool isSupportedForLanguage_( - HidListenerBindingsSwift _lib, NSString? language) { - return _lib._objc_msgSend_59(_lib._class_NSMorphologyCustomPronoun1, - _lib._sel_isSupportedForLanguage_1, language?._id ?? ffi.nullptr); - } - - static NSArray requiredKeysForLanguage_( - HidListenerBindingsSwift _lib, NSString? language) { - final _ret = _lib._objc_msgSend_123(_lib._class_NSMorphologyCustomPronoun1, - _lib._sel_requiredKeysForLanguage_1, language?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSString? get subjectForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_subjectForm1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set subjectForm(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setSubjectForm_1, value?._id ?? ffi.nullptr); - } - - NSString? get objectForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_objectForm1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set objectForm(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setObjectForm_1, value?._id ?? ffi.nullptr); - } - - NSString? get possessiveForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_possessiveForm1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set possessiveForm(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setPossessiveForm_1, value?._id ?? ffi.nullptr); - } - - NSString? get possessiveAdjectiveForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_possessiveAdjectiveForm1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set possessiveAdjectiveForm(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setPossessiveAdjectiveForm_1, value?._id ?? ffi.nullptr); - } - - NSString? get reflexiveForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_reflexiveForm1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set reflexiveForm(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setReflexiveForm_1, value?._id ?? ffi.nullptr); - } - - static NSMorphologyCustomPronoun new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMorphologyCustomPronoun1, _lib._sel_new1); - return NSMorphologyCustomPronoun._(_ret, _lib, - retain: false, release: true); - } - - static NSMorphologyCustomPronoun alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMorphologyCustomPronoun1, _lib._sel_alloc1); - return NSMorphologyCustomPronoun._(_ret, _lib, - retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSMorphologyCustomPronoun1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMorphologyCustomPronoun1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMorphologyCustomPronoun1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMorphologyCustomPronoun1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMorphologyCustomPronoun1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMorphologyCustomPronoun1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSMorphologyCustomPronoun1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSMorphologyCustomPronoun1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSMorphologyCustomPronoun1, - _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSOperationQueue extends NSObject { - NSOperationQueue._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSOperationQueue] that points to the same underlying object as [other]. - static NSOperationQueue castFrom(T other) { - return NSOperationQueue._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSOperationQueue] that wraps the given raw object pointer. - static NSOperationQueue castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSOperationQueue._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSOperationQueue]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSOperationQueue1); - } - - NSProgress? get progress { - final _ret = _lib._objc_msgSend_609(_id, _lib._sel_progress1); - return _ret.address == 0 - ? null - : NSProgress._(_ret, _lib, retain: true, release: true); - } - - void addOperation_(NSOperation? op) { - return _lib._objc_msgSend_818( - _id, _lib._sel_addOperation_1, op?._id ?? ffi.nullptr); - } - - void addOperations_waitUntilFinished_(NSArray? ops, bool wait) { - return _lib._objc_msgSend_821( - _id, - _lib._sel_addOperations_waitUntilFinished_1, - ops?._id ?? ffi.nullptr, - wait); - } - - void addOperationWithBlock_(ObjCBlock21 block) { - return _lib._objc_msgSend_497( - _id, _lib._sel_addOperationWithBlock_1, block._id); - } - - void addBarrierBlock_(ObjCBlock21 barrier) { - return _lib._objc_msgSend_497( - _id, _lib._sel_addBarrierBlock_1, barrier._id); - } - - int get maxConcurrentOperationCount { - return _lib._objc_msgSend_78(_id, _lib._sel_maxConcurrentOperationCount1); - } - - set maxConcurrentOperationCount(int value) { - _lib._objc_msgSend_590( - _id, _lib._sel_setMaxConcurrentOperationCount_1, value); - } - - bool get suspended { - return _lib._objc_msgSend_12(_id, _lib._sel_isSuspended1); - } - - set suspended(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setSuspended_1, value); - } - - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set name(NSString? value) { - _lib._objc_msgSend_509(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); - } - - int get qualityOfService { - return _lib._objc_msgSend_507(_id, _lib._sel_qualityOfService1); - } - - set qualityOfService(int value) { - _lib._objc_msgSend_508(_id, _lib._sel_setQualityOfService_1, value); - } - - NSObject get underlyingQueue { - final _ret = _lib._objc_msgSend_822(_id, _lib._sel_underlyingQueue1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - set underlyingQueue(NSObject value) { - _lib._objc_msgSend_823(_id, _lib._sel_setUnderlyingQueue_1, value._id); - } - - void cancelAllOperations() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancelAllOperations1); - } - - void waitUntilAllOperationsAreFinished() { - return _lib._objc_msgSend_1( - _id, _lib._sel_waitUntilAllOperationsAreFinished1); - } - - static NSOperationQueue? getCurrentQueue(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_824( - _lib._class_NSOperationQueue1, _lib._sel_currentQueue1); - return _ret.address == 0 - ? null - : NSOperationQueue._(_ret, _lib, retain: true, release: true); - } - - static NSOperationQueue? getMainQueue(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_824( - _lib._class_NSOperationQueue1, _lib._sel_mainQueue1); - return _ret.address == 0 - ? null - : NSOperationQueue._(_ret, _lib, retain: true, release: true); - } - - NSArray? get operations { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_operations1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - int get operationCount { - return _lib._objc_msgSend_10(_id, _lib._sel_operationCount1); - } - - static NSOperationQueue new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_new1); - return NSOperationQueue._(_ret, _lib, retain: false, release: true); - } - - static NSOperationQueue alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_alloc1); - return NSOperationQueue._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSOperationQueue1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSOperationQueue1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSOperationQueue1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSOperationQueue1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSOperationQueue1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSOperationQueue1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSOperationQueue1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSOperationQueue1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSOperationQueue1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSOperation extends NSObject { - NSOperation._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSOperation] that points to the same underlying object as [other]. - static NSOperation castFrom(T other) { - return NSOperation._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSOperation] that wraps the given raw object pointer. - static NSOperation castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSOperation._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSOperation]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSOperation1); - } - - void start() { - return _lib._objc_msgSend_1(_id, _lib._sel_start1); - } - - void main() { - return _lib._objc_msgSend_1(_id, _lib._sel_main1); - } - - bool get cancelled { - return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); - } - - void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); - } - - bool get executing { - return _lib._objc_msgSend_12(_id, _lib._sel_isExecuting1); - } - - bool get finished { - return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); - } - - bool get concurrent { - return _lib._objc_msgSend_12(_id, _lib._sel_isConcurrent1); - } - - bool get asynchronous { - return _lib._objc_msgSend_12(_id, _lib._sel_isAsynchronous1); - } - - bool get ready { - return _lib._objc_msgSend_12(_id, _lib._sel_isReady1); - } - - void addDependency_(NSOperation? op) { - return _lib._objc_msgSend_818( - _id, _lib._sel_addDependency_1, op?._id ?? ffi.nullptr); - } - - void removeDependency_(NSOperation? op) { - return _lib._objc_msgSend_818( - _id, _lib._sel_removeDependency_1, op?._id ?? ffi.nullptr); - } - - NSArray? get dependencies { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_dependencies1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - int get queuePriority { - return _lib._objc_msgSend_819(_id, _lib._sel_queuePriority1); - } - - set queuePriority(int value) { - _lib._objc_msgSend_820(_id, _lib._sel_setQueuePriority_1, value); - } - - ObjCBlock21 get completionBlock { - final _ret = _lib._objc_msgSend_618(_id, _lib._sel_completionBlock1); - return ObjCBlock21._(_ret, _lib); - } - - set completionBlock(ObjCBlock21 value) { - _lib._objc_msgSend_619(_id, _lib._sel_setCompletionBlock_1, value._id); - } - - void waitUntilFinished() { - return _lib._objc_msgSend_1(_id, _lib._sel_waitUntilFinished1); - } - - double get threadPriority { - return _lib._objc_msgSend_155(_id, _lib._sel_threadPriority1); - } - - set threadPriority(double value) { - _lib._objc_msgSend_506(_id, _lib._sel_setThreadPriority_1, value); - } - - int get qualityOfService { - return _lib._objc_msgSend_507(_id, _lib._sel_qualityOfService1); - } - - set qualityOfService(int value) { - _lib._objc_msgSend_508(_id, _lib._sel_setQualityOfService_1, value); - } - - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set name(NSString? value) { - _lib._objc_msgSend_509(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); - } - - static NSOperation new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_new1); - return NSOperation._(_ret, _lib, retain: false, release: true); - } - - static NSOperation alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_alloc1); - return NSOperation._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSOperation1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSOperation1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSOperation1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSOperation1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSOperation1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSOperation1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSOperation1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSOperation1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSOperation1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSOperationQueuePriority { - static const int NSOperationQueuePriorityVeryLow = -8; - static const int NSOperationQueuePriorityLow = -4; - static const int NSOperationQueuePriorityNormal = 0; - static const int NSOperationQueuePriorityHigh = 4; - static const int NSOperationQueuePriorityVeryHigh = 8; -} - -class NSPointerArray extends NSObject { - NSPointerArray._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSPointerArray] that points to the same underlying object as [other]. - static NSPointerArray castFrom(T other) { - return NSPointerArray._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSPointerArray] that wraps the given raw object pointer. - static NSPointerArray castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSPointerArray._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSPointerArray]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSPointerArray1); - } - - NSPointerArray initWithOptions_(int options) { - final _ret = - _lib._objc_msgSend_825(_id, _lib._sel_initWithOptions_1, options); - return NSPointerArray._(_ret, _lib, retain: true, release: true); - } - - NSPointerArray initWithPointerFunctions_(NSPointerFunctions? functions) { - final _ret = _lib._objc_msgSend_839(_id, - _lib._sel_initWithPointerFunctions_1, functions?._id ?? ffi.nullptr); - return NSPointerArray._(_ret, _lib, retain: true, release: true); - } - - static NSPointerArray pointerArrayWithOptions_( - HidListenerBindingsSwift _lib, int options) { - final _ret = _lib._objc_msgSend_840(_lib._class_NSPointerArray1, - _lib._sel_pointerArrayWithOptions_1, options); - return NSPointerArray._(_ret, _lib, retain: true, release: true); - } - - static NSPointerArray pointerArrayWithPointerFunctions_( - HidListenerBindingsSwift _lib, NSPointerFunctions? functions) { - final _ret = _lib._objc_msgSend_841( - _lib._class_NSPointerArray1, - _lib._sel_pointerArrayWithPointerFunctions_1, - functions?._id ?? ffi.nullptr); - return NSPointerArray._(_ret, _lib, retain: true, release: true); - } - - NSPointerFunctions? get pointerFunctions { - final _ret = _lib._objc_msgSend_842(_id, _lib._sel_pointerFunctions1); - return _ret.address == 0 - ? null - : NSPointerFunctions._(_ret, _lib, retain: true, release: true); - } - - ffi.Pointer pointerAtIndex_(int index) { - return _lib._objc_msgSend_843(_id, _lib._sel_pointerAtIndex_1, index); - } - - void addPointer_(ffi.Pointer pointer) { - return _lib._objc_msgSend_47(_id, _lib._sel_addPointer_1, pointer); - } - - void removePointerAtIndex_(int index) { - return _lib._objc_msgSend_439(_id, _lib._sel_removePointerAtIndex_1, index); - } - - void insertPointer_atIndex_(ffi.Pointer item, int index) { - return _lib._objc_msgSend_21( - _id, _lib._sel_insertPointer_atIndex_1, item, index); - } - - void replacePointerAtIndex_withPointer_( - int index, ffi.Pointer item) { - return _lib._objc_msgSend_844( - _id, _lib._sel_replacePointerAtIndex_withPointer_1, index, item); - } - - void compact() { - return _lib._objc_msgSend_1(_id, _lib._sel_compact1); - } - - int get count { - return _lib._objc_msgSend_10(_id, _lib._sel_count1); - } - - set count(int value) { - _lib._objc_msgSend_483(_id, _lib._sel_setCount_1, value); - } - - static NSObject pointerArrayWithStrongObjects(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSPointerArray1, _lib._sel_pointerArrayWithStrongObjects1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject pointerArrayWithWeakObjects(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSPointerArray1, _lib._sel_pointerArrayWithWeakObjects1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSPointerArray strongObjectsPointerArray( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_845( - _lib._class_NSPointerArray1, _lib._sel_strongObjectsPointerArray1); - return NSPointerArray._(_ret, _lib, retain: true, release: true); - } - - static NSPointerArray weakObjectsPointerArray(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_845( - _lib._class_NSPointerArray1, _lib._sel_weakObjectsPointerArray1); - return NSPointerArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get allObjects { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allObjects1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSPointerArray new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPointerArray1, _lib._sel_new1); - return NSPointerArray._(_ret, _lib, retain: false, release: true); - } - - static NSPointerArray alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPointerArray1, _lib._sel_alloc1); - return NSPointerArray._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSPointerArray1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSPointerArray1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSPointerArray1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSPointerArray1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSPointerArray1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSPointerArray1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSPointerArray1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSPointerArray1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSPointerArray1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSPointerFunctionsOptions { - static const int NSPointerFunctionsStrongMemory = 0; - static const int NSPointerFunctionsZeroingWeakMemory = 1; - static const int NSPointerFunctionsOpaqueMemory = 2; - static const int NSPointerFunctionsMallocMemory = 3; - static const int NSPointerFunctionsMachVirtualMemory = 4; - static const int NSPointerFunctionsWeakMemory = 5; - static const int NSPointerFunctionsObjectPersonality = 0; - static const int NSPointerFunctionsOpaquePersonality = 256; - static const int NSPointerFunctionsObjectPointerPersonality = 512; - static const int NSPointerFunctionsCStringPersonality = 768; - static const int NSPointerFunctionsStructPersonality = 1024; - static const int NSPointerFunctionsIntegerPersonality = 1280; - static const int NSPointerFunctionsCopyIn = 65536; -} - -class NSPointerFunctions extends NSObject { - NSPointerFunctions._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSPointerFunctions] that points to the same underlying object as [other]. - static NSPointerFunctions castFrom(T other) { - return NSPointerFunctions._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSPointerFunctions] that wraps the given raw object pointer. - static NSPointerFunctions castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSPointerFunctions._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSPointerFunctions]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSPointerFunctions1); - } - - NSPointerFunctions initWithOptions_(int options) { - final _ret = - _lib._objc_msgSend_825(_id, _lib._sel_initWithOptions_1, options); - return NSPointerFunctions._(_ret, _lib, retain: true, release: true); - } - - static NSPointerFunctions pointerFunctionsWithOptions_( - HidListenerBindingsSwift _lib, int options) { - final _ret = _lib._objc_msgSend_826(_lib._class_NSPointerFunctions1, - _lib._sel_pointerFunctionsWithOptions_1, options); - return NSPointerFunctions._(_ret, _lib, retain: true, release: true); - } - - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>)>> - get hashFunction { - return _lib._objc_msgSend_827(_id, _lib._sel_hashFunction1); - } - - set hashFunction( - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - value) { - _lib._objc_msgSend_828(_id, _lib._sel_setHashFunction_1, value); - } - - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>)>> - get isEqualFunction { - return _lib._objc_msgSend_829(_id, _lib._sel_isEqualFunction1); - } - - set isEqualFunction( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - value) { - _lib._objc_msgSend_830(_id, _lib._sel_setIsEqualFunction_1, value); - } - - ffi.Pointer< - ffi.NativeFunction)>> - get sizeFunction { - return _lib._objc_msgSend_831(_id, _lib._sel_sizeFunction1); - } - - set sizeFunction( - ffi.Pointer< - ffi - .NativeFunction)>> - value) { - _lib._objc_msgSend_832(_id, _lib._sel_setSizeFunction_1, value); - } - - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>> - get descriptionFunction { - return _lib._objc_msgSend_833(_id, _lib._sel_descriptionFunction1); - } - - set descriptionFunction( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>> - value) { - _lib._objc_msgSend_834(_id, _lib._sel_setDescriptionFunction_1, value); - } - - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>)>> - get relinquishFunction { - return _lib._objc_msgSend_835(_id, _lib._sel_relinquishFunction1); - } - - set relinquishFunction( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - value) { - _lib._objc_msgSend_836(_id, _lib._sel_setRelinquishFunction_1, value); - } - - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>, - ffi.Bool)>> get acquireFunction { - return _lib._objc_msgSend_837(_id, _lib._sel_acquireFunction1); - } - - set acquireFunction( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>, - ffi.Bool)>> - value) { - _lib._objc_msgSend_838(_id, _lib._sel_setAcquireFunction_1, value); - } - - bool get usesStrongWriteBarrier { - return _lib._objc_msgSend_12(_id, _lib._sel_usesStrongWriteBarrier1); - } - - set usesStrongWriteBarrier(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setUsesStrongWriteBarrier_1, value); - } - - bool get usesWeakReadAndWriteBarriers { - return _lib._objc_msgSend_12(_id, _lib._sel_usesWeakReadAndWriteBarriers1); - } - - set usesWeakReadAndWriteBarriers(bool value) { - _lib._objc_msgSend_492( - _id, _lib._sel_setUsesWeakReadAndWriteBarriers_1, value); - } - - static NSPointerFunctions new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPointerFunctions1, _lib._sel_new1); - return NSPointerFunctions._(_ret, _lib, retain: false, release: true); - } - - static NSPointerFunctions alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPointerFunctions1, _lib._sel_alloc1); - return NSPointerFunctions._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSPointerFunctions1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSPointerFunctions1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSPointerFunctions1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSPointerFunctions1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSPointerFunctions1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSPointerFunctions1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSPointerFunctions1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSPointerFunctions1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSPointerFunctions1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSProcessInfo extends NSObject { - NSProcessInfo._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSProcessInfo] that points to the same underlying object as [other]. - static NSProcessInfo castFrom(T other) { - return NSProcessInfo._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSProcessInfo] that wraps the given raw object pointer. - static NSProcessInfo castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSProcessInfo._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSProcessInfo]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProcessInfo1); - } - - static NSProcessInfo? getProcessInfo(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_846( - _lib._class_NSProcessInfo1, _lib._sel_processInfo1); - return _ret.address == 0 - ? null - : NSProcessInfo._(_ret, _lib, retain: true, release: true); - } - - NSDictionary? get environment { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_environment1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSArray? get arguments { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_arguments1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSString? get hostName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_hostName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get processName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_processName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set processName(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setProcessName_1, value?._id ?? ffi.nullptr); - } - - int get processIdentifier { - return _lib._objc_msgSend_219(_id, _lib._sel_processIdentifier1); - } - - NSString? get globallyUniqueString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_globallyUniqueString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - int operatingSystem() { - return _lib._objc_msgSend_10(_id, _lib._sel_operatingSystem1); - } - - NSString operatingSystemName() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_operatingSystemName1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get operatingSystemVersionString { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_operatingSystemVersionString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSOperatingSystemVersion get operatingSystemVersion { - return _lib._objc_msgSend_847(_id, _lib._sel_operatingSystemVersion1); - } - - int get processorCount { - return _lib._objc_msgSend_10(_id, _lib._sel_processorCount1); - } - - int get activeProcessorCount { - return _lib._objc_msgSend_10(_id, _lib._sel_activeProcessorCount1); - } - - int get physicalMemory { - return _lib._objc_msgSend_154(_id, _lib._sel_physicalMemory1); - } - - bool isOperatingSystemAtLeastVersion_(NSOperatingSystemVersion version) { - return _lib._objc_msgSend_848( - _id, _lib._sel_isOperatingSystemAtLeastVersion_1, version); - } - - double get systemUptime { - return _lib._objc_msgSend_155(_id, _lib._sel_systemUptime1); - } - - void disableSuddenTermination() { - return _lib._objc_msgSend_1(_id, _lib._sel_disableSuddenTermination1); - } - - void enableSuddenTermination() { - return _lib._objc_msgSend_1(_id, _lib._sel_enableSuddenTermination1); - } - - void disableAutomaticTermination_(NSString? reason) { - return _lib._objc_msgSend_192(_id, _lib._sel_disableAutomaticTermination_1, - reason?._id ?? ffi.nullptr); - } - - void enableAutomaticTermination_(NSString? reason) { - return _lib._objc_msgSend_192(_id, _lib._sel_enableAutomaticTermination_1, - reason?._id ?? ffi.nullptr); - } - - bool get automaticTerminationSupportEnabled { - return _lib._objc_msgSend_12( - _id, _lib._sel_automaticTerminationSupportEnabled1); - } - - set automaticTerminationSupportEnabled(bool value) { - _lib._objc_msgSend_492( - _id, _lib._sel_setAutomaticTerminationSupportEnabled_1, value); - } - - NSObject beginActivityWithOptions_reason_(int options, NSString? reason) { - final _ret = _lib._objc_msgSend_849( - _id, - _lib._sel_beginActivityWithOptions_reason_1, - options, - reason?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void endActivity_(NSObject? activity) { - return _lib._objc_msgSend_15( - _id, _lib._sel_endActivity_1, activity?._id ?? ffi.nullptr); - } - - void performActivityWithOptions_reason_usingBlock_( - int options, NSString? reason, ObjCBlock21 block) { - return _lib._objc_msgSend_850( - _id, - _lib._sel_performActivityWithOptions_reason_usingBlock_1, - options, - reason?._id ?? ffi.nullptr, - block._id); - } - - void performExpiringActivityWithReason_usingBlock_( - NSString? reason, ObjCBlock37 block) { - return _lib._objc_msgSend_851( - _id, - _lib._sel_performExpiringActivityWithReason_usingBlock_1, - reason?._id ?? ffi.nullptr, - block._id); - } - - NSString? get userName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_userName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get fullUserName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fullUserName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - int get thermalState { - return _lib._objc_msgSend_852(_id, _lib._sel_thermalState1); - } - - bool get lowPowerModeEnabled { - return _lib._objc_msgSend_12(_id, _lib._sel_isLowPowerModeEnabled1); - } - - bool get macCatalystApp { - return _lib._objc_msgSend_12(_id, _lib._sel_isMacCatalystApp1); - } - - bool get iOSAppOnMac { - return _lib._objc_msgSend_12(_id, _lib._sel_isiOSAppOnMac1); - } - - static NSProcessInfo new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSProcessInfo1, _lib._sel_new1); - return NSProcessInfo._(_ret, _lib, retain: false, release: true); - } - - static NSProcessInfo alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSProcessInfo1, _lib._sel_alloc1); - return NSProcessInfo._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSProcessInfo1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSProcessInfo1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSProcessInfo1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSProcessInfo1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSProcessInfo1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSProcessInfo1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSProcessInfo1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSProcessInfo1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSProcessInfo1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -final class NSOperatingSystemVersion extends ffi.Struct { - @ffi.Long() - external int majorVersion; - - @ffi.Long() - external int minorVersion; - - @ffi.Long() - external int patchVersion; -} - -abstract class NSActivityOptions { - static const int NSActivityIdleDisplaySleepDisabled = 1099511627776; - static const int NSActivityIdleSystemSleepDisabled = 1048576; - static const int NSActivitySuddenTerminationDisabled = 16384; - static const int NSActivityAutomaticTerminationDisabled = 32768; - static const int NSActivityAnimationTrackingEnabled = 35184372088832; - static const int NSActivityTrackingEnabled = 70368744177664; - static const int NSActivityUserInitiated = 16777215; - static const int NSActivityUserInitiatedAllowingIdleSystemSleep = 15728639; - static const int NSActivityBackground = 255; - static const int NSActivityLatencyCritical = 1095216660480; - static const int NSActivityUserInteractive = 1095233437695; -} - -void _ObjCBlock37_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, bool arg0) { - return block.ref.target - .cast>() - .asFunction()(arg0); -} - -final _ObjCBlock37_closureRegistry = {}; -int _ObjCBlock37_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock37_registerClosure(Function fn) { - final id = ++_ObjCBlock37_closureRegistryIndex; - _ObjCBlock37_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock37_closureTrampoline(ffi.Pointer<_ObjCBlock> block, bool arg0) { - return _ObjCBlock37_closureRegistry[block.ref.target.address]!(arg0); -} - -class ObjCBlock37 extends _ObjCBlockBase { - ObjCBlock37._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock37.fromFunctionPointer(HidListenerBindingsSwift lib, - ffi.Pointer> ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Bool arg0)>(_ObjCBlock37_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock37.fromFunction( - HidListenerBindingsSwift lib, void Function(bool arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Bool arg0)>(_ObjCBlock37_closureTrampoline) - .cast(), - _ObjCBlock37_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(bool arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, bool arg0)>()(_id, arg0); - } -} - -abstract class NSProcessInfoThermalState { - static const int NSProcessInfoThermalStateNominal = 0; - static const int NSProcessInfoThermalStateFair = 1; - static const int NSProcessInfoThermalStateSerious = 2; - static const int NSProcessInfoThermalStateCritical = 3; -} - -class NSTextCheckingResult extends NSObject { - NSTextCheckingResult._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSTextCheckingResult] that points to the same underlying object as [other]. - static NSTextCheckingResult castFrom(T other) { - return NSTextCheckingResult._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSTextCheckingResult] that wraps the given raw object pointer. - static NSTextCheckingResult castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSTextCheckingResult._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSTextCheckingResult]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSTextCheckingResult1); - } - - int get resultType { - return _lib._objc_msgSend_853(_id, _lib._sel_resultType1); - } - - _NSRange get range { - return _lib._objc_msgSend_49(_id, _lib._sel_range1); - } - - NSOrthography? get orthography { - final _ret = _lib._objc_msgSend_854(_id, _lib._sel_orthography1); - return _ret.address == 0 - ? null - : NSOrthography._(_ret, _lib, retain: true, release: true); - } - - NSArray? get grammarDetails { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_grammarDetails1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSDate? get date { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_date1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } - - NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); - } - - double get duration { - return _lib._objc_msgSend_155(_id, _lib._sel_duration1); - } - - NSDictionary? get components { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_components1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSURL? get URL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - NSString? get replacementString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_replacementString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSArray? get alternativeStrings { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_alternativeStrings1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSRegularExpression? get regularExpression { - final _ret = _lib._objc_msgSend_866(_id, _lib._sel_regularExpression1); - return _ret.address == 0 - ? null - : NSRegularExpression._(_ret, _lib, retain: true, release: true); - } - - NSString? get phoneNumber { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_phoneNumber1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - int get numberOfRanges { - return _lib._objc_msgSend_10(_id, _lib._sel_numberOfRanges1); - } - - _NSRange rangeAtIndex_(int idx) { - return _lib._objc_msgSend_323(_id, _lib._sel_rangeAtIndex_1, idx); - } - - _NSRange rangeWithName_(NSString? name) { - return _lib._objc_msgSend_316( - _id, _lib._sel_rangeWithName_1, name?._id ?? ffi.nullptr); - } - - NSTextCheckingResult resultByAdjustingRangesWithOffset_(int offset) { - final _ret = _lib._objc_msgSend_867( - _id, _lib._sel_resultByAdjustingRangesWithOffset_1, offset); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); - } - - NSDictionary? get addressComponents { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_addressComponents1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSTextCheckingResult orthographyCheckingResultWithRange_orthography_( - HidListenerBindingsSwift _lib, - _NSRange range, - NSOrthography? orthography) { - final _ret = _lib._objc_msgSend_868( - _lib._class_NSTextCheckingResult1, - _lib._sel_orthographyCheckingResultWithRange_orthography_1, - range, - orthography?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); - } - - static NSTextCheckingResult spellCheckingResultWithRange_( - HidListenerBindingsSwift _lib, _NSRange range) { - final _ret = _lib._objc_msgSend_869(_lib._class_NSTextCheckingResult1, - _lib._sel_spellCheckingResultWithRange_1, range); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); - } - - static NSTextCheckingResult grammarCheckingResultWithRange_details_( - HidListenerBindingsSwift _lib, _NSRange range, NSArray? details) { - final _ret = _lib._objc_msgSend_870( - _lib._class_NSTextCheckingResult1, - _lib._sel_grammarCheckingResultWithRange_details_1, - range, - details?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); - } - - static NSTextCheckingResult dateCheckingResultWithRange_date_( - HidListenerBindingsSwift _lib, _NSRange range, NSDate? date) { - final _ret = _lib._objc_msgSend_871( - _lib._class_NSTextCheckingResult1, - _lib._sel_dateCheckingResultWithRange_date_1, - range, - date?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); - } - - static NSTextCheckingResult - dateCheckingResultWithRange_date_timeZone_duration_( - HidListenerBindingsSwift _lib, - _NSRange range, - NSDate? date, - NSTimeZone? timeZone, - double duration) { - final _ret = _lib._objc_msgSend_872( - _lib._class_NSTextCheckingResult1, - _lib._sel_dateCheckingResultWithRange_date_timeZone_duration_1, - range, - date?._id ?? ffi.nullptr, - timeZone?._id ?? ffi.nullptr, - duration); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); - } - - static NSTextCheckingResult addressCheckingResultWithRange_components_( - HidListenerBindingsSwift _lib, _NSRange range, NSDictionary? components) { - final _ret = _lib._objc_msgSend_873( - _lib._class_NSTextCheckingResult1, - _lib._sel_addressCheckingResultWithRange_components_1, - range, - components?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); - } - - static NSTextCheckingResult linkCheckingResultWithRange_URL_( - HidListenerBindingsSwift _lib, _NSRange range, NSURL? url) { - final _ret = _lib._objc_msgSend_874( - _lib._class_NSTextCheckingResult1, - _lib._sel_linkCheckingResultWithRange_URL_1, - range, - url?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); - } - - static NSTextCheckingResult quoteCheckingResultWithRange_replacementString_( - HidListenerBindingsSwift _lib, - _NSRange range, - NSString? replacementString) { - final _ret = _lib._objc_msgSend_875( - _lib._class_NSTextCheckingResult1, - _lib._sel_quoteCheckingResultWithRange_replacementString_1, - range, - replacementString?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); - } - - static NSTextCheckingResult dashCheckingResultWithRange_replacementString_( - HidListenerBindingsSwift _lib, - _NSRange range, - NSString? replacementString) { - final _ret = _lib._objc_msgSend_875( - _lib._class_NSTextCheckingResult1, - _lib._sel_dashCheckingResultWithRange_replacementString_1, - range, - replacementString?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); - } - - static NSTextCheckingResult - replacementCheckingResultWithRange_replacementString_( - HidListenerBindingsSwift _lib, - _NSRange range, - NSString? replacementString) { - final _ret = _lib._objc_msgSend_875( - _lib._class_NSTextCheckingResult1, - _lib._sel_replacementCheckingResultWithRange_replacementString_1, - range, - replacementString?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); - } - - static NSTextCheckingResult - correctionCheckingResultWithRange_replacementString_( - HidListenerBindingsSwift _lib, - _NSRange range, - NSString? replacementString) { - final _ret = _lib._objc_msgSend_875( - _lib._class_NSTextCheckingResult1, - _lib._sel_correctionCheckingResultWithRange_replacementString_1, - range, - replacementString?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); - } - - static NSTextCheckingResult - correctionCheckingResultWithRange_replacementString_alternativeStrings_( - HidListenerBindingsSwift _lib, - _NSRange range, - NSString? replacementString, - NSArray? alternativeStrings) { - final _ret = _lib._objc_msgSend_876( - _lib._class_NSTextCheckingResult1, - _lib._sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_1, - range, - replacementString?._id ?? ffi.nullptr, - alternativeStrings?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); - } - - static NSTextCheckingResult - regularExpressionCheckingResultWithRanges_count_regularExpression_( - HidListenerBindingsSwift _lib, - ffi.Pointer<_NSRange> ranges, - int count, - NSRegularExpression? regularExpression) { - final _ret = _lib._objc_msgSend_877( - _lib._class_NSTextCheckingResult1, - _lib._sel_regularExpressionCheckingResultWithRanges_count_regularExpression_1, - ranges, - count, - regularExpression?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); - } - - static NSTextCheckingResult phoneNumberCheckingResultWithRange_phoneNumber_( - HidListenerBindingsSwift _lib, _NSRange range, NSString? phoneNumber) { - final _ret = _lib._objc_msgSend_875( - _lib._class_NSTextCheckingResult1, - _lib._sel_phoneNumberCheckingResultWithRange_phoneNumber_1, - range, - phoneNumber?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); - } - - static NSTextCheckingResult - transitInformationCheckingResultWithRange_components_( - HidListenerBindingsSwift _lib, - _NSRange range, - NSDictionary? components) { - final _ret = _lib._objc_msgSend_873( - _lib._class_NSTextCheckingResult1, - _lib._sel_transitInformationCheckingResultWithRange_components_1, - range, - components?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); - } - - static NSTextCheckingResult new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSTextCheckingResult1, _lib._sel_new1); - return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); - } - - static NSTextCheckingResult alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSTextCheckingResult1, _lib._sel_alloc1); - return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSTextCheckingResult1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSTextCheckingResult1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSTextCheckingResult1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSTextCheckingResult1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSTextCheckingResult1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSTextCheckingResult1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSTextCheckingResult1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSTextCheckingResult1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSTextCheckingResult1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSTextCheckingType { - static const int NSTextCheckingTypeOrthography = 1; - static const int NSTextCheckingTypeSpelling = 2; - static const int NSTextCheckingTypeGrammar = 4; - static const int NSTextCheckingTypeDate = 8; - static const int NSTextCheckingTypeAddress = 16; - static const int NSTextCheckingTypeLink = 32; - static const int NSTextCheckingTypeQuote = 64; - static const int NSTextCheckingTypeDash = 128; - static const int NSTextCheckingTypeReplacement = 256; - static const int NSTextCheckingTypeCorrection = 512; - static const int NSTextCheckingTypeRegularExpression = 1024; - static const int NSTextCheckingTypePhoneNumber = 2048; - static const int NSTextCheckingTypeTransitInformation = 4096; -} - -class NSRegularExpression extends NSObject { - NSRegularExpression._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSRegularExpression] that points to the same underlying object as [other]. - static NSRegularExpression castFrom(T other) { - return NSRegularExpression._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSRegularExpression] that wraps the given raw object pointer. - static NSRegularExpression castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSRegularExpression._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSRegularExpression]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSRegularExpression1); - } - - static NSRegularExpression regularExpressionWithPattern_options_error_( - HidListenerBindingsSwift _lib, - NSString? pattern, - int options, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_855( - _lib._class_NSRegularExpression1, - _lib._sel_regularExpressionWithPattern_options_error_1, - pattern?._id ?? ffi.nullptr, - options, - error); - return NSRegularExpression._(_ret, _lib, retain: true, release: true); - } - - NSRegularExpression initWithPattern_options_error_(NSString? pattern, - int options, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_856( - _id, - _lib._sel_initWithPattern_options_error_1, - pattern?._id ?? ffi.nullptr, - options, - error); - return NSRegularExpression._(_ret, _lib, retain: true, release: true); - } - - NSString? get pattern { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_pattern1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - int get options { - return _lib._objc_msgSend_857(_id, _lib._sel_options1); - } - - int get numberOfCaptureGroups { - return _lib._objc_msgSend_10(_id, _lib._sel_numberOfCaptureGroups1); - } - - static NSString escapedPatternForString_( - HidListenerBindingsSwift _lib, NSString? string) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSRegularExpression1, - _lib._sel_escapedPatternForString_1, string?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - void enumerateMatchesInString_options_range_usingBlock_( - NSString? string, int options, _NSRange range, ObjCBlock38 block) { - return _lib._objc_msgSend_858( - _id, - _lib._sel_enumerateMatchesInString_options_range_usingBlock_1, - string?._id ?? ffi.nullptr, - options, - range, - block._id); - } - - NSArray matchesInString_options_range_( - NSString? string, int options, _NSRange range) { - final _ret = _lib._objc_msgSend_859( - _id, - _lib._sel_matchesInString_options_range_1, - string?._id ?? ffi.nullptr, - options, - range); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - int numberOfMatchesInString_options_range_( - NSString? string, int options, _NSRange range) { - return _lib._objc_msgSend_860( - _id, - _lib._sel_numberOfMatchesInString_options_range_1, - string?._id ?? ffi.nullptr, - options, - range); - } - - NSTextCheckingResult firstMatchInString_options_range_( - NSString? string, int options, _NSRange range) { - final _ret = _lib._objc_msgSend_861( - _id, - _lib._sel_firstMatchInString_options_range_1, - string?._id ?? ffi.nullptr, - options, - range); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); - } - - _NSRange rangeOfFirstMatchInString_options_range_( - NSString? string, int options, _NSRange range) { - return _lib._objc_msgSend_862( - _id, - _lib._sel_rangeOfFirstMatchInString_options_range_1, - string?._id ?? ffi.nullptr, - options, - range); - } - - NSString stringByReplacingMatchesInString_options_range_withTemplate_( - NSString? string, int options, _NSRange range, NSString? templ) { - final _ret = _lib._objc_msgSend_863( - _id, - _lib._sel_stringByReplacingMatchesInString_options_range_withTemplate_1, - string?._id ?? ffi.nullptr, - options, - range, - templ?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - int replaceMatchesInString_options_range_withTemplate_( - NSMutableString? string, int options, _NSRange range, NSString? templ) { - return _lib._objc_msgSend_864( - _id, - _lib._sel_replaceMatchesInString_options_range_withTemplate_1, - string?._id ?? ffi.nullptr, - options, - range, - templ?._id ?? ffi.nullptr); - } - - NSString replacementStringForResult_inString_offset_template_( - NSTextCheckingResult? result, - NSString? string, - int offset, - NSString? templ) { - final _ret = _lib._objc_msgSend_865( - _id, - _lib._sel_replacementStringForResult_inString_offset_template_1, - result?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr, - offset, - templ?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString escapedTemplateForString_( - HidListenerBindingsSwift _lib, NSString? string) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSRegularExpression1, - _lib._sel_escapedTemplateForString_1, string?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSRegularExpression new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSRegularExpression1, _lib._sel_new1); - return NSRegularExpression._(_ret, _lib, retain: false, release: true); - } - - static NSRegularExpression alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSRegularExpression1, _lib._sel_alloc1); - return NSRegularExpression._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSRegularExpression1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSRegularExpression1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSRegularExpression1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSRegularExpression1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSRegularExpression1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSRegularExpression1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSRegularExpression1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSRegularExpression1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSRegularExpression1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSRegularExpressionOptions { - static const int NSRegularExpressionCaseInsensitive = 1; - static const int NSRegularExpressionAllowCommentsAndWhitespace = 2; - static const int NSRegularExpressionIgnoreMetacharacters = 4; - static const int NSRegularExpressionDotMatchesLineSeparators = 8; - static const int NSRegularExpressionAnchorsMatchLines = 16; - static const int NSRegularExpressionUseUnixLineSeparators = 32; - static const int NSRegularExpressionUseUnicodeWordBoundaries = 64; -} - -abstract class NSMatchingOptions { - static const int NSMatchingReportProgress = 1; - static const int NSMatchingReportCompletion = 2; - static const int NSMatchingAnchored = 4; - static const int NSMatchingWithTransparentBounds = 8; - static const int NSMatchingWithoutAnchoringBounds = 16; -} - -void _ObjCBlock38_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Int32 arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock38_closureRegistry = {}; -int _ObjCBlock38_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock38_registerClosure(Function fn) { - final id = ++_ObjCBlock38_closureRegistryIndex; - _ObjCBlock38_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock38_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _ObjCBlock38_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock38 extends _ObjCBlockBase { - ObjCBlock38._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock38.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Int32 arg1, ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Int32 arg1, - ffi.Pointer arg2)>( - _ObjCBlock38_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock38.fromFunction( - HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Int32 arg1, - ffi.Pointer arg2)>( - _ObjCBlock38_closureTrampoline) - .cast(), - _ObjCBlock38_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Int32 arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } -} - -abstract class NSMatchingFlags { - static const int NSMatchingProgress = 1; - static const int NSMatchingCompleted = 2; - static const int NSMatchingHitEnd = 4; - static const int NSMatchingRequiredEnd = 8; - static const int NSMatchingInternalError = 16; -} - -class NSURLCache extends NSObject { - NSURLCache._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSURLCache] that points to the same underlying object as [other]. - static NSURLCache castFrom(T other) { - return NSURLCache._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSURLCache] that wraps the given raw object pointer. - static NSURLCache castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLCache._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSURLCache]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLCache1); - } - - static NSURLCache? getSharedURLCache(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_878( - _lib._class_NSURLCache1, _lib._sel_sharedURLCache1); - return _ret.address == 0 - ? null - : NSURLCache._(_ret, _lib, retain: true, release: true); - } - - static void setSharedURLCache( - HidListenerBindingsSwift _lib, NSURLCache? value) { - _lib._objc_msgSend_879(_lib._class_NSURLCache1, - _lib._sel_setSharedURLCache_1, value?._id ?? ffi.nullptr); - } - - NSURLCache initWithMemoryCapacity_diskCapacity_diskPath_( - int memoryCapacity, int diskCapacity, NSString? path) { - final _ret = _lib._objc_msgSend_880( - _id, - _lib._sel_initWithMemoryCapacity_diskCapacity_diskPath_1, - memoryCapacity, - diskCapacity, - path?._id ?? ffi.nullptr); - return NSURLCache._(_ret, _lib, retain: true, release: true); - } - - NSURLCache initWithMemoryCapacity_diskCapacity_directoryURL_( - int memoryCapacity, int diskCapacity, NSURL? directoryURL) { - final _ret = _lib._objc_msgSend_881( - _id, - _lib._sel_initWithMemoryCapacity_diskCapacity_directoryURL_1, - memoryCapacity, - diskCapacity, - directoryURL?._id ?? ffi.nullptr); - return NSURLCache._(_ret, _lib, retain: true, release: true); - } - - NSCachedURLResponse cachedResponseForRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_885( - _id, _lib._sel_cachedResponseForRequest_1, request?._id ?? ffi.nullptr); - return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); - } - - void storeCachedResponse_forRequest_( - NSCachedURLResponse? cachedResponse, NSURLRequest? request) { - return _lib._objc_msgSend_886( - _id, - _lib._sel_storeCachedResponse_forRequest_1, - cachedResponse?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); - } - - void removeCachedResponseForRequest_(NSURLRequest? request) { - return _lib._objc_msgSend_887( - _id, - _lib._sel_removeCachedResponseForRequest_1, - request?._id ?? ffi.nullptr); - } - - void removeAllCachedResponses() { - return _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResponses1); - } - - void removeCachedResponsesSinceDate_(NSDate? date) { - return _lib._objc_msgSend_504(_id, - _lib._sel_removeCachedResponsesSinceDate_1, date?._id ?? ffi.nullptr); - } - - int get memoryCapacity { - return _lib._objc_msgSend_10(_id, _lib._sel_memoryCapacity1); - } - - set memoryCapacity(int value) { - _lib._objc_msgSend_483(_id, _lib._sel_setMemoryCapacity_1, value); - } - - int get diskCapacity { - return _lib._objc_msgSend_10(_id, _lib._sel_diskCapacity1); - } - - set diskCapacity(int value) { - _lib._objc_msgSend_483(_id, _lib._sel_setDiskCapacity_1, value); - } - - int get currentMemoryUsage { - return _lib._objc_msgSend_10(_id, _lib._sel_currentMemoryUsage1); - } - - int get currentDiskUsage { - return _lib._objc_msgSend_10(_id, _lib._sel_currentDiskUsage1); - } - - void storeCachedResponse_forDataTask_( - NSCachedURLResponse? cachedResponse, NSURLSessionDataTask? dataTask) { - return _lib._objc_msgSend_888( - _id, - _lib._sel_storeCachedResponse_forDataTask_1, - cachedResponse?._id ?? ffi.nullptr, - dataTask?._id ?? ffi.nullptr); - } - - void getCachedResponseForDataTask_completionHandler_( - NSURLSessionDataTask? dataTask, ObjCBlock39 completionHandler) { - return _lib._objc_msgSend_889( - _id, - _lib._sel_getCachedResponseForDataTask_completionHandler_1, - dataTask?._id ?? ffi.nullptr, - completionHandler._id); - } - - void removeCachedResponseForDataTask_(NSURLSessionDataTask? dataTask) { - return _lib._objc_msgSend_890( - _id, - _lib._sel_removeCachedResponseForDataTask_1, - dataTask?._id ?? ffi.nullptr); - } - - static NSURLCache new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCache1, _lib._sel_new1); - return NSURLCache._(_ret, _lib, retain: false, release: true); - } - - static NSURLCache alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLCache1, _lib._sel_alloc1); - return NSURLCache._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLCache1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLCache1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLCache1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLCache1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLCache1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLCache1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSURLCache1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSURLCache1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLCache1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSCachedURLResponse extends NSObject { - NSCachedURLResponse._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSCachedURLResponse] that points to the same underlying object as [other]. - static NSCachedURLResponse castFrom(T other) { - return NSCachedURLResponse._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSCachedURLResponse] that wraps the given raw object pointer. - static NSCachedURLResponse castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSCachedURLResponse._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSCachedURLResponse]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSCachedURLResponse1); - } - - NSCachedURLResponse initWithResponse_data_( - NSURLResponse? response, NSData? data) { - final _ret = _lib._objc_msgSend_882(_id, _lib._sel_initWithResponse_data_1, - response?._id ?? ffi.nullptr, data?._id ?? ffi.nullptr); - return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); - } - - NSCachedURLResponse initWithResponse_data_userInfo_storagePolicy_( - NSURLResponse? response, - NSData? data, - NSDictionary? userInfo, - int storagePolicy) { - final _ret = _lib._objc_msgSend_883( - _id, - _lib._sel_initWithResponse_data_userInfo_storagePolicy_1, - response?._id ?? ffi.nullptr, - data?._id ?? ffi.nullptr, - userInfo?._id ?? ffi.nullptr, - storagePolicy); - return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); - } - - NSURLResponse? get response { - final _ret = _lib._objc_msgSend_797(_id, _lib._sel_response1); - return _ret.address == 0 - ? null - : NSURLResponse._(_ret, _lib, retain: true, release: true); - } - - NSData? get data { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); - } - - NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_userInfo1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - int get storagePolicy { - return _lib._objc_msgSend_884(_id, _lib._sel_storagePolicy1); - } - - static NSCachedURLResponse new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSCachedURLResponse1, _lib._sel_new1); - return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); - } - - static NSCachedURLResponse alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSCachedURLResponse1, _lib._sel_alloc1); - return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSCachedURLResponse1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSCachedURLResponse1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSCachedURLResponse1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSCachedURLResponse1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSCachedURLResponse1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSCachedURLResponse1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSCachedURLResponse1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSCachedURLResponse1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSCachedURLResponse1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSURLCacheStoragePolicy { - static const int NSURLCacheStorageAllowed = 0; - static const int NSURLCacheStorageAllowedInMemoryOnly = 1; - static const int NSURLCacheStorageNotAllowed = 2; -} - -class NSURLSessionDataTask extends NSURLSessionTask { - NSURLSessionDataTask._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSURLSessionDataTask] that points to the same underlying object as [other]. - static NSURLSessionDataTask castFrom(T other) { - return NSURLSessionDataTask._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSURLSessionDataTask] that wraps the given raw object pointer. - static NSURLSessionDataTask castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLSessionDataTask._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSURLSessionDataTask]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionDataTask1); - } - - @override - NSURLSessionDataTask init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); - } - - static NSURLSessionDataTask new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLSessionDataTask1, _lib._sel_new1); - return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); - } - - static NSURLSessionDataTask alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionDataTask1, _lib._sel_alloc1); - return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLSessionDataTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionDataTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionDataTask1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLSessionDataTask1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionDataTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionDataTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSURLSessionDataTask1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionDataTask1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionDataTask1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -void _ObjCBlock39_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock39_closureRegistry = {}; -int _ObjCBlock39_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock39_registerClosure(Function fn) { - final id = ++_ObjCBlock39_closureRegistryIndex; - _ObjCBlock39_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock39_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock39_closureRegistry[block.ref.target.address]!(arg0); -} - -class ObjCBlock39 extends _ObjCBlockBase { - ObjCBlock39._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock39.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock39_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock39.fromFunction(HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock39_closureTrampoline) - .cast(), - _ObjCBlock39_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } -} - -class NSURLConnection extends NSObject { - NSURLConnection._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSURLConnection] that points to the same underlying object as [other]. - static NSURLConnection castFrom(T other) { - return NSURLConnection._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSURLConnection] that wraps the given raw object pointer. - static NSURLConnection castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLConnection._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSURLConnection]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLConnection1); - } - - NSURLConnection initWithRequest_delegate_startImmediately_( - NSURLRequest? request, NSObject delegate, bool startImmediately) { - final _ret = _lib._objc_msgSend_891( - _id, - _lib._sel_initWithRequest_delegate_startImmediately_1, - request?._id ?? ffi.nullptr, - delegate._id, - startImmediately); - return NSURLConnection._(_ret, _lib, retain: true, release: true); - } - - NSURLConnection initWithRequest_delegate_( - NSURLRequest? request, NSObject delegate) { - final _ret = _lib._objc_msgSend_892( - _id, - _lib._sel_initWithRequest_delegate_1, - request?._id ?? ffi.nullptr, - delegate._id); - return NSURLConnection._(_ret, _lib, retain: true, release: true); - } - - static NSURLConnection connectionWithRequest_delegate_( - HidListenerBindingsSwift _lib, NSURLRequest? request, NSObject delegate) { - final _ret = _lib._objc_msgSend_893( - _lib._class_NSURLConnection1, - _lib._sel_connectionWithRequest_delegate_1, - request?._id ?? ffi.nullptr, - delegate._id); - return NSURLConnection._(_ret, _lib, retain: true, release: true); - } - - NSURLRequest? get originalRequest { - final _ret = _lib._objc_msgSend_795(_id, _lib._sel_originalRequest1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); - } - - NSURLRequest? get currentRequest { - final _ret = _lib._objc_msgSend_795(_id, _lib._sel_currentRequest1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); - } - - void start() { - return _lib._objc_msgSend_1(_id, _lib._sel_start1); - } - - void cancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); - } - - void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - return _lib._objc_msgSend_533(_id, _lib._sel_scheduleInRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); - } - - void unscheduleFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - return _lib._objc_msgSend_533( - _id, - _lib._sel_unscheduleFromRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, - mode._id); - } - - void setDelegateQueue_(NSOperationQueue? queue) { - return _lib._objc_msgSend_894( - _id, _lib._sel_setDelegateQueue_1, queue?._id ?? ffi.nullptr); - } - - static bool canHandleRequest_( - HidListenerBindingsSwift _lib, NSURLRequest? request) { - return _lib._objc_msgSend_895(_lib._class_NSURLConnection1, - _lib._sel_canHandleRequest_1, request?._id ?? ffi.nullptr); - } - - static NSData sendSynchronousRequest_returningResponse_error_( - HidListenerBindingsSwift _lib, - NSURLRequest? request, - ffi.Pointer> response, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_896( - _lib._class_NSURLConnection1, - _lib._sel_sendSynchronousRequest_returningResponse_error_1, - request?._id ?? ffi.nullptr, - response, - error); - return NSData._(_ret, _lib, retain: true, release: true); - } - - static void sendAsynchronousRequest_queue_completionHandler_( - HidListenerBindingsSwift _lib, - NSURLRequest? request, - NSOperationQueue? queue, - ObjCBlock40 handler) { - return _lib._objc_msgSend_897( - _lib._class_NSURLConnection1, - _lib._sel_sendAsynchronousRequest_queue_completionHandler_1, - request?._id ?? ffi.nullptr, - queue?._id ?? ffi.nullptr, - handler._id); - } - - static NSURLConnection new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLConnection1, _lib._sel_new1); - return NSURLConnection._(_ret, _lib, retain: false, release: true); - } - - static NSURLConnection alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLConnection1, _lib._sel_alloc1); - return NSURLConnection._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLConnection1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLConnection1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLConnection1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLConnection1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLConnection1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLConnection1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSURLConnection1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLConnection1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLConnection1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -void _ObjCBlock40_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock40_closureRegistry = {}; -int _ObjCBlock40_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock40_registerClosure(Function fn) { - final id = ++_ObjCBlock40_closureRegistryIndex; - _ObjCBlock40_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock40_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock40_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock40 extends _ObjCBlockBase { - ObjCBlock40._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock40.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock40_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock40.fromFunction( - HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock40_closureTrampoline) - .cast(), - _ObjCBlock40_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } -} - -class NSURLCredential extends NSObject { - NSURLCredential._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSURLCredential] that points to the same underlying object as [other]. - static NSURLCredential castFrom(T other) { - return NSURLCredential._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSURLCredential] that wraps the given raw object pointer. - static NSURLCredential castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLCredential._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSURLCredential]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLCredential1); - } - - int get persistence { - return _lib._objc_msgSend_898(_id, _lib._sel_persistence1); - } - - NSURLCredential initWithUser_password_persistence_( - NSString? user, NSString? password, int persistence) { - final _ret = _lib._objc_msgSend_899( - _id, - _lib._sel_initWithUser_password_persistence_1, - user?._id ?? ffi.nullptr, - password?._id ?? ffi.nullptr, - persistence); - return NSURLCredential._(_ret, _lib, retain: true, release: true); - } - - static NSURLCredential credentialWithUser_password_persistence_( - HidListenerBindingsSwift _lib, - NSString? user, - NSString? password, - int persistence) { - final _ret = _lib._objc_msgSend_900( - _lib._class_NSURLCredential1, - _lib._sel_credentialWithUser_password_persistence_1, - user?._id ?? ffi.nullptr, - password?._id ?? ffi.nullptr, - persistence); - return NSURLCredential._(_ret, _lib, retain: true, release: true); - } - - NSString? get user { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_user1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get password { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_password1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - bool get hasPassword { - return _lib._objc_msgSend_12(_id, _lib._sel_hasPassword1); - } - - NSURLCredential initWithIdentity_certificates_persistence_( - ffi.Pointer<__SecIdentity> identity, - NSArray? certArray, - int persistence) { - final _ret = _lib._objc_msgSend_901( - _id, - _lib._sel_initWithIdentity_certificates_persistence_1, - identity, - certArray?._id ?? ffi.nullptr, - persistence); - return NSURLCredential._(_ret, _lib, retain: true, release: true); - } - - static NSURLCredential credentialWithIdentity_certificates_persistence_( - HidListenerBindingsSwift _lib, - ffi.Pointer<__SecIdentity> identity, - NSArray? certArray, - int persistence) { - final _ret = _lib._objc_msgSend_902( - _lib._class_NSURLCredential1, - _lib._sel_credentialWithIdentity_certificates_persistence_1, - identity, - certArray?._id ?? ffi.nullptr, - persistence); - return NSURLCredential._(_ret, _lib, retain: true, release: true); - } - - ffi.Pointer<__SecIdentity> get identity { - return _lib._objc_msgSend_903(_id, _lib._sel_identity1); - } - - NSArray? get certificates { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_certificates1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSURLCredential initWithTrust_(ffi.Pointer<__SecTrust> trust) { - final _ret = _lib._objc_msgSend_904(_id, _lib._sel_initWithTrust_1, trust); - return NSURLCredential._(_ret, _lib, retain: true, release: true); - } - - static NSURLCredential credentialForTrust_( - HidListenerBindingsSwift _lib, ffi.Pointer<__SecTrust> trust) { - final _ret = _lib._objc_msgSend_905( - _lib._class_NSURLCredential1, _lib._sel_credentialForTrust_1, trust); - return NSURLCredential._(_ret, _lib, retain: true, release: true); - } - - static NSURLCredential new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLCredential1, _lib._sel_new1); - return NSURLCredential._(_ret, _lib, retain: false, release: true); - } - - static NSURLCredential alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLCredential1, _lib._sel_alloc1); - return NSURLCredential._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLCredential1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLCredential1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLCredential1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLCredential1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLCredential1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLCredential1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSURLCredential1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLCredential1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLCredential1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSURLCredentialPersistence { - static const int NSURLCredentialPersistenceNone = 0; - static const int NSURLCredentialPersistenceForSession = 1; - static const int NSURLCredentialPersistencePermanent = 2; - static const int NSURLCredentialPersistenceSynchronizable = 3; -} - -final class __SecIdentity extends ffi.Opaque {} - -final class __SecTrust extends ffi.Opaque {} - -class NSURLProtectionSpace extends NSObject { - NSURLProtectionSpace._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSURLProtectionSpace] that points to the same underlying object as [other]. - static NSURLProtectionSpace castFrom(T other) { - return NSURLProtectionSpace._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSURLProtectionSpace] that wraps the given raw object pointer. - static NSURLProtectionSpace castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLProtectionSpace._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSURLProtectionSpace]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLProtectionSpace1); - } - - NSURLProtectionSpace initWithHost_port_protocol_realm_authenticationMethod_( - NSString? host, - int port, - NSString? protocol, - NSString? realm, - NSString? authenticationMethod) { - final _ret = _lib._objc_msgSend_906( - _id, - _lib._sel_initWithHost_port_protocol_realm_authenticationMethod_1, - host?._id ?? ffi.nullptr, - port, - protocol?._id ?? ffi.nullptr, - realm?._id ?? ffi.nullptr, - authenticationMethod?._id ?? ffi.nullptr); - return NSURLProtectionSpace._(_ret, _lib, retain: true, release: true); - } - - NSURLProtectionSpace initWithProxyHost_port_type_realm_authenticationMethod_( - NSString? host, - int port, - NSString? type, - NSString? realm, - NSString? authenticationMethod) { - final _ret = _lib._objc_msgSend_906( - _id, - _lib._sel_initWithProxyHost_port_type_realm_authenticationMethod_1, - host?._id ?? ffi.nullptr, - port, - type?._id ?? ffi.nullptr, - realm?._id ?? ffi.nullptr, - authenticationMethod?._id ?? ffi.nullptr); - return NSURLProtectionSpace._(_ret, _lib, retain: true, release: true); - } - - NSString? get realm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_realm1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - bool get receivesCredentialSecurely { - return _lib._objc_msgSend_12(_id, _lib._sel_receivesCredentialSecurely1); - } - - bool get isProxy { - return _lib._objc_msgSend_12(_id, _lib._sel_isProxy1); - } - - NSString? get host { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_host1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - int get port { - return _lib._objc_msgSend_78(_id, _lib._sel_port1); - } - - NSString? get proxyType { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_proxyType1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get protocol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_protocol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get authenticationMethod { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_authenticationMethod1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSArray? get distinguishedNames { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_distinguishedNames1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - ffi.Pointer<__SecTrust> get serverTrust { - return _lib._objc_msgSend_907(_id, _lib._sel_serverTrust1); - } - - static NSURLProtectionSpace new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLProtectionSpace1, _lib._sel_new1); - return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); - } - - static NSURLProtectionSpace alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLProtectionSpace1, _lib._sel_alloc1); - return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLProtectionSpace1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLProtectionSpace1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLProtectionSpace1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLProtectionSpace1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLProtectionSpace1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLProtectionSpace1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSURLProtectionSpace1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLProtectionSpace1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLProtectionSpace1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSURLCredentialStorage extends NSObject { - NSURLCredentialStorage._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSURLCredentialStorage] that points to the same underlying object as [other]. - static NSURLCredentialStorage castFrom(T other) { - return NSURLCredentialStorage._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSURLCredentialStorage] that wraps the given raw object pointer. - static NSURLCredentialStorage castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLCredentialStorage._(other, lib, - retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSURLCredentialStorage]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLCredentialStorage1); - } - - static NSURLCredentialStorage? getSharedCredentialStorage( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_908(_lib._class_NSURLCredentialStorage1, - _lib._sel_sharedCredentialStorage1); - return _ret.address == 0 - ? null - : NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); - } - - NSDictionary credentialsForProtectionSpace_(NSURLProtectionSpace? space) { - final _ret = _lib._objc_msgSend_909(_id, - _lib._sel_credentialsForProtectionSpace_1, space?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSDictionary? get allCredentials { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_allCredentials1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - void setCredential_forProtectionSpace_( - NSURLCredential? credential, NSURLProtectionSpace? space) { - return _lib._objc_msgSend_910( - _id, - _lib._sel_setCredential_forProtectionSpace_1, - credential?._id ?? ffi.nullptr, - space?._id ?? ffi.nullptr); - } - - void removeCredential_forProtectionSpace_( - NSURLCredential? credential, NSURLProtectionSpace? space) { - return _lib._objc_msgSend_910( - _id, - _lib._sel_removeCredential_forProtectionSpace_1, - credential?._id ?? ffi.nullptr, - space?._id ?? ffi.nullptr); - } - - void removeCredential_forProtectionSpace_options_(NSURLCredential? credential, - NSURLProtectionSpace? space, NSDictionary? options) { - return _lib._objc_msgSend_911( - _id, - _lib._sel_removeCredential_forProtectionSpace_options_1, - credential?._id ?? ffi.nullptr, - space?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr); - } - - NSURLCredential defaultCredentialForProtectionSpace_( - NSURLProtectionSpace? space) { - final _ret = _lib._objc_msgSend_912( - _id, - _lib._sel_defaultCredentialForProtectionSpace_1, - space?._id ?? ffi.nullptr); - return NSURLCredential._(_ret, _lib, retain: true, release: true); - } - - void setDefaultCredential_forProtectionSpace_( - NSURLCredential? credential, NSURLProtectionSpace? space) { - return _lib._objc_msgSend_910( - _id, - _lib._sel_setDefaultCredential_forProtectionSpace_1, - credential?._id ?? ffi.nullptr, - space?._id ?? ffi.nullptr); - } - - void getCredentialsForProtectionSpace_task_completionHandler_( - NSURLProtectionSpace? protectionSpace, - NSURLSessionTask? task, - ObjCBlock41 completionHandler) { - return _lib._objc_msgSend_913( - _id, - _lib._sel_getCredentialsForProtectionSpace_task_completionHandler_1, - protectionSpace?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr, - completionHandler._id); - } - - void setCredential_forProtectionSpace_task_(NSURLCredential? credential, - NSURLProtectionSpace? protectionSpace, NSURLSessionTask? task) { - return _lib._objc_msgSend_914( - _id, - _lib._sel_setCredential_forProtectionSpace_task_1, - credential?._id ?? ffi.nullptr, - protectionSpace?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr); - } - - void removeCredential_forProtectionSpace_options_task_( - NSURLCredential? credential, - NSURLProtectionSpace? protectionSpace, - NSDictionary? options, - NSURLSessionTask? task) { - return _lib._objc_msgSend_915( - _id, - _lib._sel_removeCredential_forProtectionSpace_options_task_1, - credential?._id ?? ffi.nullptr, - protectionSpace?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr); - } - - void getDefaultCredentialForProtectionSpace_task_completionHandler_( - NSURLProtectionSpace? space, - NSURLSessionTask? task, - ObjCBlock42 completionHandler) { - return _lib._objc_msgSend_916( - _id, - _lib._sel_getDefaultCredentialForProtectionSpace_task_completionHandler_1, - space?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr, - completionHandler._id); - } - - void setDefaultCredential_forProtectionSpace_task_( - NSURLCredential? credential, - NSURLProtectionSpace? protectionSpace, - NSURLSessionTask? task) { - return _lib._objc_msgSend_914( - _id, - _lib._sel_setDefaultCredential_forProtectionSpace_task_1, - credential?._id ?? ffi.nullptr, - protectionSpace?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr); - } - - static NSURLCredentialStorage new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLCredentialStorage1, _lib._sel_new1); - return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); - } - - static NSURLCredentialStorage alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLCredentialStorage1, _lib._sel_alloc1); - return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLCredentialStorage1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLCredentialStorage1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLCredentialStorage1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLCredentialStorage1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLCredentialStorage1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLCredentialStorage1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSURLCredentialStorage1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLCredentialStorage1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCredentialStorage1, - _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -void _ObjCBlock41_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock41_closureRegistry = {}; -int _ObjCBlock41_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock41_registerClosure(Function fn) { - final id = ++_ObjCBlock41_closureRegistryIndex; - _ObjCBlock41_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock41_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock41_closureRegistry[block.ref.target.address]!(arg0); -} - -class ObjCBlock41 extends _ObjCBlockBase { - ObjCBlock41._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock41.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock41_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock41.fromFunction(HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock41_closureTrampoline) - .cast(), - _ObjCBlock41_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } -} - -void _ObjCBlock42_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock42_closureRegistry = {}; -int _ObjCBlock42_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock42_registerClosure(Function fn) { - final id = ++_ObjCBlock42_closureRegistryIndex; - _ObjCBlock42_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock42_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock42_closureRegistry[block.ref.target.address]!(arg0); -} - -class ObjCBlock42 extends _ObjCBlockBase { - ObjCBlock42._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock42.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock42_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock42.fromFunction(HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock42_closureTrampoline) - .cast(), - _ObjCBlock42_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } -} - -class NSURLProtocol extends NSObject { - NSURLProtocol._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSURLProtocol] that points to the same underlying object as [other]. - static NSURLProtocol castFrom(T other) { - return NSURLProtocol._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSURLProtocol] that wraps the given raw object pointer. - static NSURLProtocol castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLProtocol._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSURLProtocol]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLProtocol1); - } - - NSURLProtocol initWithRequest_cachedResponse_client_(NSURLRequest? request, - NSCachedURLResponse? cachedResponse, NSObject? client) { - final _ret = _lib._objc_msgSend_917( - _id, - _lib._sel_initWithRequest_cachedResponse_client_1, - request?._id ?? ffi.nullptr, - cachedResponse?._id ?? ffi.nullptr, - client?._id ?? ffi.nullptr); - return NSURLProtocol._(_ret, _lib, retain: true, release: true); - } - - NSObject? get client { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_client1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); - } - - NSURLRequest? get request { - final _ret = _lib._objc_msgSend_795(_id, _lib._sel_request1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); - } - - NSCachedURLResponse? get cachedResponse { - final _ret = _lib._objc_msgSend_918(_id, _lib._sel_cachedResponse1); - return _ret.address == 0 - ? null - : NSCachedURLResponse._(_ret, _lib, retain: true, release: true); - } - - static bool canInitWithRequest_( - HidListenerBindingsSwift _lib, NSURLRequest? request) { - return _lib._objc_msgSend_895(_lib._class_NSURLProtocol1, - _lib._sel_canInitWithRequest_1, request?._id ?? ffi.nullptr); - } - - static NSURLRequest canonicalRequestForRequest_( - HidListenerBindingsSwift _lib, NSURLRequest? request) { - final _ret = _lib._objc_msgSend_919(_lib._class_NSURLProtocol1, - _lib._sel_canonicalRequestForRequest_1, request?._id ?? ffi.nullptr); - return NSURLRequest._(_ret, _lib, retain: true, release: true); - } - - static bool requestIsCacheEquivalent_toRequest_( - HidListenerBindingsSwift _lib, NSURLRequest? a, NSURLRequest? b) { - return _lib._objc_msgSend_920( - _lib._class_NSURLProtocol1, - _lib._sel_requestIsCacheEquivalent_toRequest_1, - a?._id ?? ffi.nullptr, - b?._id ?? ffi.nullptr); - } - - void startLoading() { - return _lib._objc_msgSend_1(_id, _lib._sel_startLoading1); - } - - void stopLoading() { - return _lib._objc_msgSend_1(_id, _lib._sel_stopLoading1); - } - - static NSObject propertyForKey_inRequest_( - HidListenerBindingsSwift _lib, NSString? key, NSURLRequest? request) { - final _ret = _lib._objc_msgSend_921( - _lib._class_NSURLProtocol1, - _lib._sel_propertyForKey_inRequest_1, - key?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static void setProperty_forKey_inRequest_(HidListenerBindingsSwift _lib, - NSObject value, NSString? key, NSMutableURLRequest? request) { - return _lib._objc_msgSend_927( - _lib._class_NSURLProtocol1, - _lib._sel_setProperty_forKey_inRequest_1, - value._id, - key?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); - } - - static void removePropertyForKey_inRequest_(HidListenerBindingsSwift _lib, - NSString? key, NSMutableURLRequest? request) { - return _lib._objc_msgSend_928( - _lib._class_NSURLProtocol1, - _lib._sel_removePropertyForKey_inRequest_1, - key?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); - } - - static bool registerClass_( - HidListenerBindingsSwift _lib, NSObject protocolClass) { - return _lib._objc_msgSend_0(_lib._class_NSURLProtocol1, - _lib._sel_registerClass_1, protocolClass._id); - } - - static void unregisterClass_( - HidListenerBindingsSwift _lib, NSObject protocolClass) { - return _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, - _lib._sel_unregisterClass_1, protocolClass._id); - } - - static bool canInitWithTask_( - HidListenerBindingsSwift _lib, NSURLSessionTask? task) { - return _lib._objc_msgSend_929(_lib._class_NSURLProtocol1, - _lib._sel_canInitWithTask_1, task?._id ?? ffi.nullptr); - } - - NSURLProtocol initWithTask_cachedResponse_client_(NSURLSessionTask? task, - NSCachedURLResponse? cachedResponse, NSObject? client) { - final _ret = _lib._objc_msgSend_930( - _id, - _lib._sel_initWithTask_cachedResponse_client_1, - task?._id ?? ffi.nullptr, - cachedResponse?._id ?? ffi.nullptr, - client?._id ?? ffi.nullptr); - return NSURLProtocol._(_ret, _lib, retain: true, release: true); - } - - NSURLSessionTask? get task { - final _ret = _lib._objc_msgSend_931(_id, _lib._sel_task1); - return _ret.address == 0 - ? null - : NSURLSessionTask._(_ret, _lib, retain: true, release: true); - } - - static NSURLProtocol new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLProtocol1, _lib._sel_new1); - return NSURLProtocol._(_ret, _lib, retain: false, release: true); - } - - static NSURLProtocol alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLProtocol1, _lib._sel_alloc1); - return NSURLProtocol._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLProtocol1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLProtocol1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLProtocol1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLProtocol1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLProtocol1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSURLProtocol1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSURLProtocol1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLProtocol1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSMutableURLRequest extends NSURLRequest { - NSMutableURLRequest._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSMutableURLRequest] that points to the same underlying object as [other]. - static NSMutableURLRequest castFrom(T other) { - return NSMutableURLRequest._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSMutableURLRequest] that wraps the given raw object pointer. - static NSMutableURLRequest castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMutableURLRequest._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSMutableURLRequest]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableURLRequest1); - } - - @override - NSURL? get URL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - set URL(NSURL? value) { - _lib._objc_msgSend_621(_id, _lib._sel_setURL_1, value?._id ?? ffi.nullptr); - } - - @override - int get cachePolicy { - return _lib._objc_msgSend_782(_id, _lib._sel_cachePolicy1); - } - - set cachePolicy(int value) { - _lib._objc_msgSend_922(_id, _lib._sel_setCachePolicy_1, value); - } - - @override - double get timeoutInterval { - return _lib._objc_msgSend_155(_id, _lib._sel_timeoutInterval1); - } - - set timeoutInterval(double value) { - _lib._objc_msgSend_506(_id, _lib._sel_setTimeoutInterval_1, value); - } - - @override - NSURL? get mainDocumentURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_mainDocumentURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - set mainDocumentURL(NSURL? value) { - _lib._objc_msgSend_621( - _id, _lib._sel_setMainDocumentURL_1, value?._id ?? ffi.nullptr); - } - - @override - int get networkServiceType { - return _lib._objc_msgSend_783(_id, _lib._sel_networkServiceType1); - } - - set networkServiceType(int value) { - _lib._objc_msgSend_923(_id, _lib._sel_setNetworkServiceType_1, value); - } - - @override - bool get allowsCellularAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); - } - - set allowsCellularAccess(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setAllowsCellularAccess_1, value); - } - - @override - bool get allowsExpensiveNetworkAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); - } - - set allowsExpensiveNetworkAccess(bool value) { - _lib._objc_msgSend_492( - _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); - } - - @override - bool get allowsConstrainedNetworkAccess { - return _lib._objc_msgSend_12( - _id, _lib._sel_allowsConstrainedNetworkAccess1); - } - - set allowsConstrainedNetworkAccess(bool value) { - _lib._objc_msgSend_492( - _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); - } - - @override - bool get assumesHTTP3Capable { - return _lib._objc_msgSend_12(_id, _lib._sel_assumesHTTP3Capable1); - } - - set assumesHTTP3Capable(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setAssumesHTTP3Capable_1, value); - } - - @override - int get attribution { - return _lib._objc_msgSend_784(_id, _lib._sel_attribution1); - } - - set attribution(int value) { - _lib._objc_msgSend_924(_id, _lib._sel_setAttribution_1, value); - } - - @override - bool get requiresDNSSECValidation { - return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); - } - - set requiresDNSSECValidation(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setRequiresDNSSECValidation_1, value); - } - - @override - NSString? get HTTPMethod { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_HTTPMethod1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set HTTPMethod(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setHTTPMethod_1, value?._id ?? ffi.nullptr); - } - - @override - NSDictionary? get allHTTPHeaderFields { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_allHTTPHeaderFields1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - set allHTTPHeaderFields(NSDictionary? value) { - _lib._objc_msgSend_171( - _id, _lib._sel_setAllHTTPHeaderFields_1, value?._id ?? ffi.nullptr); - } - - void setValue_forHTTPHeaderField_(NSString? value, NSString? field) { - return _lib._objc_msgSend_515(_id, _lib._sel_setValue_forHTTPHeaderField_1, - value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); - } - - void addValue_forHTTPHeaderField_(NSString? value, NSString? field) { - return _lib._objc_msgSend_515(_id, _lib._sel_addValue_forHTTPHeaderField_1, - value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); - } - - @override - NSData? get HTTPBody { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_HTTPBody1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); - } - - set HTTPBody(NSData? value) { - _lib._objc_msgSend_925( - _id, _lib._sel_setHTTPBody_1, value?._id ?? ffi.nullptr); - } - - @override - NSInputStream? get HTTPBodyStream { - final _ret = _lib._objc_msgSend_794(_id, _lib._sel_HTTPBodyStream1); - return _ret.address == 0 - ? null - : NSInputStream._(_ret, _lib, retain: true, release: true); - } - - set HTTPBodyStream(NSInputStream? value) { - _lib._objc_msgSend_926( - _id, _lib._sel_setHTTPBodyStream_1, value?._id ?? ffi.nullptr); - } - - @override - bool get HTTPShouldHandleCookies { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldHandleCookies1); - } - - set HTTPShouldHandleCookies(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setHTTPShouldHandleCookies_1, value); - } - - @override - bool get HTTPShouldUsePipelining { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); - } - - set HTTPShouldUsePipelining(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setHTTPShouldUsePipelining_1, value); - } - - static NSMutableURLRequest requestWithURL_( - HidListenerBindingsSwift _lib, NSURL? URL) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSMutableURLRequest1, - _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); - return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); - } - - static bool getSupportsSecureCoding(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableURLRequest1, _lib._sel_supportsSecureCoding1); - } - - static NSMutableURLRequest requestWithURL_cachePolicy_timeoutInterval_( - HidListenerBindingsSwift _lib, - NSURL? URL, - int cachePolicy, - double timeoutInterval) { - final _ret = _lib._objc_msgSend_781( - _lib._class_NSMutableURLRequest1, - _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, - cachePolicy, - timeoutInterval); - return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); - } - - static NSMutableURLRequest new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableURLRequest1, _lib._sel_new1); - return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); - } - - static NSMutableURLRequest alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableURLRequest1, _lib._sel_alloc1); - return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSMutableURLRequest1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSMutableURLRequest1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableURLRequest1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableURLRequest1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableURLRequest1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableURLRequest1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSMutableURLRequest1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableURLRequest1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableURLRequest1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSXMLParser extends NSObject { - NSXMLParser._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSXMLParser] that points to the same underlying object as [other]. - static NSXMLParser castFrom(T other) { - return NSXMLParser._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSXMLParser] that wraps the given raw object pointer. - static NSXMLParser castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSXMLParser._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSXMLParser]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLParser1); - } - - NSXMLParser initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_241( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSXMLParser._(_ret, _lib, retain: true, release: true); - } - - NSXMLParser initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_257( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); - return NSXMLParser._(_ret, _lib, retain: true, release: true); - } - - NSXMLParser initWithStream_(NSInputStream? stream) { - final _ret = _lib._objc_msgSend_932( - _id, _lib._sel_initWithStream_1, stream?._id ?? ffi.nullptr); - return NSXMLParser._(_ret, _lib, retain: true, release: true); - } - - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); - } - - set delegate(NSObject? value) { - _lib._objc_msgSend_387( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); - } - - bool get shouldProcessNamespaces { - return _lib._objc_msgSend_12(_id, _lib._sel_shouldProcessNamespaces1); - } - - set shouldProcessNamespaces(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setShouldProcessNamespaces_1, value); - } - - bool get shouldReportNamespacePrefixes { - return _lib._objc_msgSend_12(_id, _lib._sel_shouldReportNamespacePrefixes1); - } - - set shouldReportNamespacePrefixes(bool value) { - _lib._objc_msgSend_492( - _id, _lib._sel_setShouldReportNamespacePrefixes_1, value); - } - - int get externalEntityResolvingPolicy { - return _lib._objc_msgSend_933( - _id, _lib._sel_externalEntityResolvingPolicy1); - } - - set externalEntityResolvingPolicy(int value) { - _lib._objc_msgSend_934( - _id, _lib._sel_setExternalEntityResolvingPolicy_1, value); - } - - NSSet? get allowedExternalEntityURLs { - final _ret = - _lib._objc_msgSend_295(_id, _lib._sel_allowedExternalEntityURLs1); - return _ret.address == 0 - ? null - : NSSet._(_ret, _lib, retain: true, release: true); - } - - set allowedExternalEntityURLs(NSSet? value) { - _lib._objc_msgSend_935(_id, _lib._sel_setAllowedExternalEntityURLs_1, - value?._id ?? ffi.nullptr); - } - - bool parse() { - return _lib._objc_msgSend_12(_id, _lib._sel_parse1); - } - - void abortParsing() { - return _lib._objc_msgSend_1(_id, _lib._sel_abortParsing1); - } - - NSError? get parserError { - final _ret = _lib._objc_msgSend_298(_id, _lib._sel_parserError1); - return _ret.address == 0 - ? null - : NSError._(_ret, _lib, retain: true, release: true); - } - - bool get shouldResolveExternalEntities { - return _lib._objc_msgSend_12(_id, _lib._sel_shouldResolveExternalEntities1); - } - - set shouldResolveExternalEntities(bool value) { - _lib._objc_msgSend_492( - _id, _lib._sel_setShouldResolveExternalEntities_1, value); - } - - NSString? get publicID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_publicID1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get systemID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_systemID1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - int get lineNumber { - return _lib._objc_msgSend_78(_id, _lib._sel_lineNumber1); - } - - int get columnNumber { - return _lib._objc_msgSend_78(_id, _lib._sel_columnNumber1); - } - - static NSXMLParser new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLParser1, _lib._sel_new1); - return NSXMLParser._(_ret, _lib, retain: false, release: true); - } - - static NSXMLParser alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLParser1, _lib._sel_alloc1); - return NSXMLParser._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSXMLParser1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSXMLParser1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSXMLParser1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSXMLParser1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLParser1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSXMLParser1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSXMLParser1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSXMLParser1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSXMLParser1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSXMLParserExternalEntityResolvingPolicy { - static const int NSXMLParserResolveExternalEntitiesNever = 0; - static const int NSXMLParserResolveExternalEntitiesNoNetwork = 1; - static const int NSXMLParserResolveExternalEntitiesSameOriginOnly = 2; - static const int NSXMLParserResolveExternalEntitiesAlways = 3; -} - -class NSFileWrapper extends NSObject { - NSFileWrapper._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSFileWrapper] that points to the same underlying object as [other]. - static NSFileWrapper castFrom(T other) { - return NSFileWrapper._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSFileWrapper] that wraps the given raw object pointer. - static NSFileWrapper castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSFileWrapper._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSFileWrapper]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileWrapper1); - } - - NSFileWrapper initWithURL_options_error_( - NSURL? url, int options, ffi.Pointer> outError) { - final _ret = _lib._objc_msgSend_936( - _id, - _lib._sel_initWithURL_options_error_1, - url?._id ?? ffi.nullptr, - options, - outError); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); - } - - NSFileWrapper initDirectoryWithFileWrappers_( - NSDictionary? childrenByPreferredName) { - final _ret = _lib._objc_msgSend_149( - _id, - _lib._sel_initDirectoryWithFileWrappers_1, - childrenByPreferredName?._id ?? ffi.nullptr); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); - } - - NSFileWrapper initRegularFileWithContents_(NSData? contents) { - final _ret = _lib._objc_msgSend_257(_id, - _lib._sel_initRegularFileWithContents_1, contents?._id ?? ffi.nullptr); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); - } - - NSFileWrapper initSymbolicLinkWithDestinationURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_241( - _id, - _lib._sel_initSymbolicLinkWithDestinationURL_1, - url?._id ?? ffi.nullptr); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); - } - - NSFileWrapper initWithSerializedRepresentation_( - NSData? serializeRepresentation) { - final _ret = _lib._objc_msgSend_257( - _id, - _lib._sel_initWithSerializedRepresentation_1, - serializeRepresentation?._id ?? ffi.nullptr); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); - } - - NSFileWrapper initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); - } - - bool get directory { - return _lib._objc_msgSend_12(_id, _lib._sel_isDirectory1); - } - - bool get regularFile { - return _lib._objc_msgSend_12(_id, _lib._sel_isRegularFile1); - } - - bool get symbolicLink { - return _lib._objc_msgSend_12(_id, _lib._sel_isSymbolicLink1); - } - - NSString? get preferredFilename { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_preferredFilename1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set preferredFilename(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setPreferredFilename_1, value?._id ?? ffi.nullptr); - } - - NSString? get filename { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_filename1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set filename(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setFilename_1, value?._id ?? ffi.nullptr); - } - - NSDictionary? get fileAttributes { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_fileAttributes1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - set fileAttributes(NSDictionary? value) { - _lib._objc_msgSend_171( - _id, _lib._sel_setFileAttributes_1, value?._id ?? ffi.nullptr); - } - - bool matchesContentsOfURL_(NSURL? url) { - return _lib._objc_msgSend_244( - _id, _lib._sel_matchesContentsOfURL_1, url?._id ?? ffi.nullptr); - } - - bool readFromURL_options_error_( - NSURL? url, int options, ffi.Pointer> outError) { - return _lib._objc_msgSend_937(_id, _lib._sel_readFromURL_options_error_1, - url?._id ?? ffi.nullptr, options, outError); - } - - bool writeToURL_options_originalContentsURL_error_( - NSURL? url, - int options, - NSURL? originalContentsURL, - ffi.Pointer> outError) { - return _lib._objc_msgSend_938( - _id, - _lib._sel_writeToURL_options_originalContentsURL_error_1, - url?._id ?? ffi.nullptr, - options, - originalContentsURL?._id ?? ffi.nullptr, - outError); - } - - NSData? get serializedRepresentation { - final _ret = - _lib._objc_msgSend_39(_id, _lib._sel_serializedRepresentation1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); - } - - NSString addFileWrapper_(NSFileWrapper? child) { - final _ret = _lib._objc_msgSend_939( - _id, _lib._sel_addFileWrapper_1, child?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString addRegularFileWithContents_preferredFilename_( - NSData? data, NSString? fileName) { - final _ret = _lib._objc_msgSend_940( - _id, - _lib._sel_addRegularFileWithContents_preferredFilename_1, - data?._id ?? ffi.nullptr, - fileName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - void removeFileWrapper_(NSFileWrapper? child) { - return _lib._objc_msgSend_941( - _id, _lib._sel_removeFileWrapper_1, child?._id ?? ffi.nullptr); - } - - NSDictionary? get fileWrappers { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_fileWrappers1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSString keyForFileWrapper_(NSFileWrapper? child) { - final _ret = _lib._objc_msgSend_939( - _id, _lib._sel_keyForFileWrapper_1, child?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSData? get regularFileContents { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_regularFileContents1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); - } - - NSURL? get symbolicLinkDestinationURL { - final _ret = - _lib._objc_msgSend_40(_id, _lib._sel_symbolicLinkDestinationURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - NSObject initWithPath_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithPath_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject initSymbolicLinkWithDestination_(NSString? path) { - final _ret = _lib._objc_msgSend_30(_id, - _lib._sel_initSymbolicLinkWithDestination_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - bool needsToBeUpdatedFromPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_needsToBeUpdatedFromPath_1, path?._id ?? ffi.nullptr); - } - - bool updateFromPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_updateFromPath_1, path?._id ?? ffi.nullptr); - } - - bool writeToFile_atomically_updateFilenames_( - NSString? path, bool atomicFlag, bool updateFilenamesFlag) { - return _lib._objc_msgSend_942( - _id, - _lib._sel_writeToFile_atomically_updateFilenames_1, - path?._id ?? ffi.nullptr, - atomicFlag, - updateFilenamesFlag); - } - - NSString addFileWithPath_(NSString? path) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_addFileWithPath_1, path?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString addSymbolicLinkWithDestination_preferredFilename_( - NSString? path, NSString? filename) { - final _ret = _lib._objc_msgSend_339( - _id, - _lib._sel_addSymbolicLinkWithDestination_preferredFilename_1, - path?._id ?? ffi.nullptr, - filename?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString symbolicLinkDestination() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_symbolicLinkDestination1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSFileWrapper new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSFileWrapper1, _lib._sel_new1); - return NSFileWrapper._(_ret, _lib, retain: false, release: true); - } - - static NSFileWrapper alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSFileWrapper1, _lib._sel_alloc1); - return NSFileWrapper._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSFileWrapper1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSFileWrapper1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSFileWrapper1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSFileWrapper1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSFileWrapper1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSFileWrapper1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSFileWrapper1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSFileWrapper1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSFileWrapper1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSFileWrapperReadingOptions { - static const int NSFileWrapperReadingImmediate = 1; - static const int NSFileWrapperReadingWithoutMapping = 2; -} - -abstract class NSFileWrapperWritingOptions { - static const int NSFileWrapperWritingAtomic = 1; - static const int NSFileWrapperWritingWithNameUpdating = 2; -} - -class NSURLSession extends NSObject { - NSURLSession._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSURLSession] that points to the same underlying object as [other]. - static NSURLSession castFrom(T other) { - return NSURLSession._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSURLSession] that wraps the given raw object pointer. - static NSURLSession castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLSession._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSURLSession]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLSession1); - } - - static NSURLSession? getSharedSession(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_943( - _lib._class_NSURLSession1, _lib._sel_sharedSession1); - return _ret.address == 0 - ? null - : NSURLSession._(_ret, _lib, retain: true, release: true); - } - - static NSURLSession sessionWithConfiguration_( - HidListenerBindingsSwift _lib, NSURLSessionConfiguration? configuration) { - final _ret = _lib._objc_msgSend_954( - _lib._class_NSURLSession1, - _lib._sel_sessionWithConfiguration_1, - configuration?._id ?? ffi.nullptr); - return NSURLSession._(_ret, _lib, retain: true, release: true); - } - - static NSURLSession sessionWithConfiguration_delegate_delegateQueue_( - HidListenerBindingsSwift _lib, - NSURLSessionConfiguration? configuration, - NSObject? delegate, - NSOperationQueue? queue) { - final _ret = _lib._objc_msgSend_955( - _lib._class_NSURLSession1, - _lib._sel_sessionWithConfiguration_delegate_delegateQueue_1, - configuration?._id ?? ffi.nullptr, - delegate?._id ?? ffi.nullptr, - queue?._id ?? ffi.nullptr); - return NSURLSession._(_ret, _lib, retain: true, release: true); - } - - NSOperationQueue? get delegateQueue { - final _ret = _lib._objc_msgSend_824(_id, _lib._sel_delegateQueue1); - return _ret.address == 0 - ? null - : NSOperationQueue._(_ret, _lib, retain: true, release: true); - } - - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); - } - - NSURLSessionConfiguration? get configuration { - final _ret = _lib._objc_msgSend_944(_id, _lib._sel_configuration1); - return _ret.address == 0 - ? null - : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); - } - - NSString? get sessionDescription { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sessionDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set sessionDescription(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setSessionDescription_1, value?._id ?? ffi.nullptr); - } - - void finishTasksAndInvalidate() { - return _lib._objc_msgSend_1(_id, _lib._sel_finishTasksAndInvalidate1); - } - - void invalidateAndCancel() { - return _lib._objc_msgSend_1(_id, _lib._sel_invalidateAndCancel1); - } - - void resetWithCompletionHandler_(ObjCBlock21 completionHandler) { - return _lib._objc_msgSend_497( - _id, _lib._sel_resetWithCompletionHandler_1, completionHandler._id); - } - - void flushWithCompletionHandler_(ObjCBlock21 completionHandler) { - return _lib._objc_msgSend_497( - _id, _lib._sel_flushWithCompletionHandler_1, completionHandler._id); - } - - void getTasksWithCompletionHandler_(ObjCBlock43 completionHandler) { - return _lib._objc_msgSend_956( - _id, _lib._sel_getTasksWithCompletionHandler_1, completionHandler._id); - } - - void getAllTasksWithCompletionHandler_(ObjCBlock36 completionHandler) { - return _lib._objc_msgSend_957(_id, - _lib._sel_getAllTasksWithCompletionHandler_1, completionHandler._id); - } - - NSURLSessionDataTask dataTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_958( - _id, _lib._sel_dataTaskWithRequest_1, request?._id ?? ffi.nullptr); - return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); - } - - NSURLSessionDataTask dataTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_959( - _id, _lib._sel_dataTaskWithURL_1, url?._id ?? ffi.nullptr); - return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); - } - - NSURLSessionUploadTask uploadTaskWithRequest_fromFile_( - NSURLRequest? request, NSURL? fileURL) { - final _ret = _lib._objc_msgSend_960( - _id, - _lib._sel_uploadTaskWithRequest_fromFile_1, - request?._id ?? ffi.nullptr, - fileURL?._id ?? ffi.nullptr); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); - } - - NSURLSessionUploadTask uploadTaskWithRequest_fromData_( - NSURLRequest? request, NSData? bodyData) { - final _ret = _lib._objc_msgSend_961( - _id, - _lib._sel_uploadTaskWithRequest_fromData_1, - request?._id ?? ffi.nullptr, - bodyData?._id ?? ffi.nullptr); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); - } - - NSURLSessionUploadTask uploadTaskWithStreamedRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_962(_id, - _lib._sel_uploadTaskWithStreamedRequest_1, request?._id ?? ffi.nullptr); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); - } - - NSURLSessionDownloadTask downloadTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_964( - _id, _lib._sel_downloadTaskWithRequest_1, request?._id ?? ffi.nullptr); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); - } - - NSURLSessionDownloadTask downloadTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_965( - _id, _lib._sel_downloadTaskWithURL_1, url?._id ?? ffi.nullptr); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); - } - - NSURLSessionDownloadTask downloadTaskWithResumeData_(NSData? resumeData) { - final _ret = _lib._objc_msgSend_966(_id, - _lib._sel_downloadTaskWithResumeData_1, resumeData?._id ?? ffi.nullptr); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); - } - - NSURLSessionStreamTask streamTaskWithHostName_port_( - NSString? hostname, int port) { - final _ret = _lib._objc_msgSend_969( - _id, - _lib._sel_streamTaskWithHostName_port_1, - hostname?._id ?? ffi.nullptr, - port); - return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); - } - - NSURLSessionStreamTask streamTaskWithNetService_(NSNetService? service) { - final _ret = _lib._objc_msgSend_975( - _id, _lib._sel_streamTaskWithNetService_1, service?._id ?? ffi.nullptr); - return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); - } - - NSURLSessionWebSocketTask webSocketTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_982( - _id, _lib._sel_webSocketTaskWithURL_1, url?._id ?? ffi.nullptr); - return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); - } - - NSURLSessionWebSocketTask webSocketTaskWithURL_protocols_( - NSURL? url, NSArray? protocols) { - final _ret = _lib._objc_msgSend_983( - _id, - _lib._sel_webSocketTaskWithURL_protocols_1, - url?._id ?? ffi.nullptr, - protocols?._id ?? ffi.nullptr); - return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); - } - - NSURLSessionWebSocketTask webSocketTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_984( - _id, _lib._sel_webSocketTaskWithRequest_1, request?._id ?? ffi.nullptr); - return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); - } - - @override - NSURLSession init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSession._(_ret, _lib, retain: true, release: true); - } - - static NSURLSession new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLSession1, _lib._sel_new1); - return NSURLSession._(_ret, _lib, retain: false, release: true); - } - - NSURLSessionDataTask dataTaskWithRequest_completionHandler_( - NSURLRequest? request, ObjCBlock47 completionHandler) { - final _ret = _lib._objc_msgSend_985( - _id, - _lib._sel_dataTaskWithRequest_completionHandler_1, - request?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); - } - - NSURLSessionDataTask dataTaskWithURL_completionHandler_( - NSURL? url, ObjCBlock47 completionHandler) { - final _ret = _lib._objc_msgSend_986( - _id, - _lib._sel_dataTaskWithURL_completionHandler_1, - url?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); - } - - NSURLSessionUploadTask uploadTaskWithRequest_fromFile_completionHandler_( - NSURLRequest? request, NSURL? fileURL, ObjCBlock47 completionHandler) { - final _ret = _lib._objc_msgSend_987( - _id, - _lib._sel_uploadTaskWithRequest_fromFile_completionHandler_1, - request?._id ?? ffi.nullptr, - fileURL?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); - } - - NSURLSessionUploadTask uploadTaskWithRequest_fromData_completionHandler_( - NSURLRequest? request, NSData? bodyData, ObjCBlock47 completionHandler) { - final _ret = _lib._objc_msgSend_988( - _id, - _lib._sel_uploadTaskWithRequest_fromData_completionHandler_1, - request?._id ?? ffi.nullptr, - bodyData?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); - } - - NSURLSessionDownloadTask downloadTaskWithRequest_completionHandler_( - NSURLRequest? request, ObjCBlock48 completionHandler) { - final _ret = _lib._objc_msgSend_989( - _id, - _lib._sel_downloadTaskWithRequest_completionHandler_1, - request?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); - } - - NSURLSessionDownloadTask downloadTaskWithURL_completionHandler_( - NSURL? url, ObjCBlock48 completionHandler) { - final _ret = _lib._objc_msgSend_990( - _id, - _lib._sel_downloadTaskWithURL_completionHandler_1, - url?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); - } - - NSURLSessionDownloadTask downloadTaskWithResumeData_completionHandler_( - NSData? resumeData, ObjCBlock48 completionHandler) { - final _ret = _lib._objc_msgSend_991( - _id, - _lib._sel_downloadTaskWithResumeData_completionHandler_1, - resumeData?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); - } - - static NSURLSession alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLSession1, _lib._sel_alloc1); - return NSURLSession._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLSession1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSession1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLSession1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLSession1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSession1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSession1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSURLSession1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSURLSession1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSession1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSURLSessionConfiguration extends NSObject { - NSURLSessionConfiguration._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSURLSessionConfiguration] that points to the same underlying object as [other]. - static NSURLSessionConfiguration castFrom(T other) { - return NSURLSessionConfiguration._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSURLSessionConfiguration] that wraps the given raw object pointer. - static NSURLSessionConfiguration castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLSessionConfiguration._(other, lib, - retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSURLSessionConfiguration]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionConfiguration1); - } - - static NSURLSessionConfiguration? getDefaultSessionConfiguration( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_944(_lib._class_NSURLSessionConfiguration1, - _lib._sel_defaultSessionConfiguration1); - return _ret.address == 0 - ? null - : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); - } - - static NSURLSessionConfiguration? getEphemeralSessionConfiguration( - HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_944(_lib._class_NSURLSessionConfiguration1, - _lib._sel_ephemeralSessionConfiguration1); - return _ret.address == 0 - ? null - : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); - } - - static NSURLSessionConfiguration - backgroundSessionConfigurationWithIdentifier_( - HidListenerBindingsSwift _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_945( - _lib._class_NSURLSessionConfiguration1, - _lib._sel_backgroundSessionConfigurationWithIdentifier_1, - identifier?._id ?? ffi.nullptr); - return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); - } - - NSString? get identifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_identifier1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - int get requestCachePolicy { - return _lib._objc_msgSend_782(_id, _lib._sel_requestCachePolicy1); - } - - set requestCachePolicy(int value) { - _lib._objc_msgSend_922(_id, _lib._sel_setRequestCachePolicy_1, value); - } - - double get timeoutIntervalForRequest { - return _lib._objc_msgSend_155(_id, _lib._sel_timeoutIntervalForRequest1); - } - - set timeoutIntervalForRequest(double value) { - _lib._objc_msgSend_506( - _id, _lib._sel_setTimeoutIntervalForRequest_1, value); - } - - double get timeoutIntervalForResource { - return _lib._objc_msgSend_155(_id, _lib._sel_timeoutIntervalForResource1); - } - - set timeoutIntervalForResource(double value) { - _lib._objc_msgSend_506( - _id, _lib._sel_setTimeoutIntervalForResource_1, value); - } - - int get networkServiceType { - return _lib._objc_msgSend_783(_id, _lib._sel_networkServiceType1); - } - - set networkServiceType(int value) { - _lib._objc_msgSend_923(_id, _lib._sel_setNetworkServiceType_1, value); - } - - bool get allowsCellularAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); - } - - set allowsCellularAccess(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setAllowsCellularAccess_1, value); - } - - bool get allowsExpensiveNetworkAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); - } - - set allowsExpensiveNetworkAccess(bool value) { - _lib._objc_msgSend_492( - _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); - } - - bool get allowsConstrainedNetworkAccess { - return _lib._objc_msgSend_12( - _id, _lib._sel_allowsConstrainedNetworkAccess1); - } - - set allowsConstrainedNetworkAccess(bool value) { - _lib._objc_msgSend_492( - _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); - } - - bool get requiresDNSSECValidation { - return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); - } - - set requiresDNSSECValidation(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setRequiresDNSSECValidation_1, value); - } - - bool get waitsForConnectivity { - return _lib._objc_msgSend_12(_id, _lib._sel_waitsForConnectivity1); - } - - set waitsForConnectivity(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setWaitsForConnectivity_1, value); - } - - bool get discretionary { - return _lib._objc_msgSend_12(_id, _lib._sel_isDiscretionary1); - } - - set discretionary(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setDiscretionary_1, value); - } - - NSString? get sharedContainerIdentifier { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_sharedContainerIdentifier1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set sharedContainerIdentifier(NSString? value) { - _lib._objc_msgSend_509(_id, _lib._sel_setSharedContainerIdentifier_1, - value?._id ?? ffi.nullptr); - } - - bool get sessionSendsLaunchEvents { - return _lib._objc_msgSend_12(_id, _lib._sel_sessionSendsLaunchEvents1); - } - - set sessionSendsLaunchEvents(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setSessionSendsLaunchEvents_1, value); - } - - NSDictionary? get connectionProxyDictionary { - final _ret = - _lib._objc_msgSend_170(_id, _lib._sel_connectionProxyDictionary1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - set connectionProxyDictionary(NSDictionary? value) { - _lib._objc_msgSend_171(_id, _lib._sel_setConnectionProxyDictionary_1, - value?._id ?? ffi.nullptr); - } - - int get TLSMinimumSupportedProtocol { - return _lib._objc_msgSend_946(_id, _lib._sel_TLSMinimumSupportedProtocol1); - } - - set TLSMinimumSupportedProtocol(int value) { - _lib._objc_msgSend_947( - _id, _lib._sel_setTLSMinimumSupportedProtocol_1, value); - } - - int get TLSMaximumSupportedProtocol { - return _lib._objc_msgSend_946(_id, _lib._sel_TLSMaximumSupportedProtocol1); - } - - set TLSMaximumSupportedProtocol(int value) { - _lib._objc_msgSend_947( - _id, _lib._sel_setTLSMaximumSupportedProtocol_1, value); - } - - int get TLSMinimumSupportedProtocolVersion { - return _lib._objc_msgSend_948( - _id, _lib._sel_TLSMinimumSupportedProtocolVersion1); - } - - set TLSMinimumSupportedProtocolVersion(int value) { - _lib._objc_msgSend_949( - _id, _lib._sel_setTLSMinimumSupportedProtocolVersion_1, value); - } - - int get TLSMaximumSupportedProtocolVersion { - return _lib._objc_msgSend_948( - _id, _lib._sel_TLSMaximumSupportedProtocolVersion1); - } - - set TLSMaximumSupportedProtocolVersion(int value) { - _lib._objc_msgSend_949( - _id, _lib._sel_setTLSMaximumSupportedProtocolVersion_1, value); - } - - bool get HTTPShouldUsePipelining { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); - } - - set HTTPShouldUsePipelining(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setHTTPShouldUsePipelining_1, value); - } - - bool get HTTPShouldSetCookies { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldSetCookies1); - } - - set HTTPShouldSetCookies(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setHTTPShouldSetCookies_1, value); - } - - int get HTTPCookieAcceptPolicy { - return _lib._objc_msgSend_779(_id, _lib._sel_HTTPCookieAcceptPolicy1); - } - - set HTTPCookieAcceptPolicy(int value) { - _lib._objc_msgSend_780(_id, _lib._sel_setHTTPCookieAcceptPolicy_1, value); - } - - NSDictionary? get HTTPAdditionalHeaders { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_HTTPAdditionalHeaders1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - set HTTPAdditionalHeaders(NSDictionary? value) { - _lib._objc_msgSend_171( - _id, _lib._sel_setHTTPAdditionalHeaders_1, value?._id ?? ffi.nullptr); - } - - int get HTTPMaximumConnectionsPerHost { - return _lib._objc_msgSend_78(_id, _lib._sel_HTTPMaximumConnectionsPerHost1); - } - - set HTTPMaximumConnectionsPerHost(int value) { - _lib._objc_msgSend_590( - _id, _lib._sel_setHTTPMaximumConnectionsPerHost_1, value); - } - - NSHTTPCookieStorage? get HTTPCookieStorage { - final _ret = _lib._objc_msgSend_773(_id, _lib._sel_HTTPCookieStorage1); - return _ret.address == 0 - ? null - : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); - } - - set HTTPCookieStorage(NSHTTPCookieStorage? value) { - _lib._objc_msgSend_950( - _id, _lib._sel_setHTTPCookieStorage_1, value?._id ?? ffi.nullptr); - } - - NSURLCredentialStorage? get URLCredentialStorage { - final _ret = _lib._objc_msgSend_908(_id, _lib._sel_URLCredentialStorage1); - return _ret.address == 0 - ? null - : NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); - } - - set URLCredentialStorage(NSURLCredentialStorage? value) { - _lib._objc_msgSend_951( - _id, _lib._sel_setURLCredentialStorage_1, value?._id ?? ffi.nullptr); - } - - NSURLCache? get URLCache { - final _ret = _lib._objc_msgSend_878(_id, _lib._sel_URLCache1); - return _ret.address == 0 - ? null - : NSURLCache._(_ret, _lib, retain: true, release: true); - } - - set URLCache(NSURLCache? value) { - _lib._objc_msgSend_879( - _id, _lib._sel_setURLCache_1, value?._id ?? ffi.nullptr); - } - - bool get shouldUseExtendedBackgroundIdleMode { - return _lib._objc_msgSend_12( - _id, _lib._sel_shouldUseExtendedBackgroundIdleMode1); - } - - set shouldUseExtendedBackgroundIdleMode(bool value) { - _lib._objc_msgSend_492( - _id, _lib._sel_setShouldUseExtendedBackgroundIdleMode_1, value); - } - - NSArray? get protocolClasses { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_protocolClasses1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set protocolClasses(NSArray? value) { - _lib._objc_msgSend_731( - _id, _lib._sel_setProtocolClasses_1, value?._id ?? ffi.nullptr); - } - - int get multipathServiceType { - return _lib._objc_msgSend_952(_id, _lib._sel_multipathServiceType1); - } - - set multipathServiceType(int value) { - _lib._objc_msgSend_953(_id, _lib._sel_setMultipathServiceType_1, value); - } - - @override - NSURLSessionConfiguration init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); - } - - static NSURLSessionConfiguration new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionConfiguration1, _lib._sel_new1); - return NSURLSessionConfiguration._(_ret, _lib, - retain: false, release: true); - } - - static NSURLSessionConfiguration backgroundSessionConfiguration_( - HidListenerBindingsSwift _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_945( - _lib._class_NSURLSessionConfiguration1, - _lib._sel_backgroundSessionConfiguration_1, - identifier?._id ?? ffi.nullptr); - return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); - } - - static NSURLSessionConfiguration alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionConfiguration1, _lib._sel_alloc1); - return NSURLSessionConfiguration._(_ret, _lib, - retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLSessionConfiguration1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionConfiguration1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionConfiguration1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLSessionConfiguration1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionConfiguration1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionConfiguration1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSURLSessionConfiguration1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionConfiguration1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionConfiguration1, - _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class SSLProtocol { - static const int kSSLProtocolUnknown = 0; - static const int kTLSProtocol1 = 4; - static const int kTLSProtocol11 = 7; - static const int kTLSProtocol12 = 8; - static const int kDTLSProtocol1 = 9; - static const int kTLSProtocol13 = 10; - static const int kDTLSProtocol12 = 11; - static const int kTLSProtocolMaxSupported = 999; - static const int kSSLProtocol2 = 1; - static const int kSSLProtocol3 = 2; - static const int kSSLProtocol3Only = 3; - static const int kTLSProtocol1Only = 5; - static const int kSSLProtocolAll = 6; -} - -abstract class tls_protocol_version_t { - static const int tls_protocol_version_TLSv10 = 769; - static const int tls_protocol_version_TLSv11 = 770; - static const int tls_protocol_version_TLSv12 = 771; - static const int tls_protocol_version_TLSv13 = 772; - static const int tls_protocol_version_DTLSv10 = -257; - static const int tls_protocol_version_DTLSv12 = -259; -} - -abstract class NSURLSessionMultipathServiceType { - static const int NSURLSessionMultipathServiceTypeNone = 0; - static const int NSURLSessionMultipathServiceTypeHandover = 1; - static const int NSURLSessionMultipathServiceTypeInteractive = 2; - static const int NSURLSessionMultipathServiceTypeAggregate = 3; -} - -void _ObjCBlock43_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock43_closureRegistry = {}; -int _ObjCBlock43_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock43_registerClosure(Function fn) { - final id = ++_ObjCBlock43_closureRegistryIndex; - _ObjCBlock43_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock43_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock43_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock43 extends _ObjCBlockBase { - ObjCBlock43._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock43.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock43_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock43.fromFunction( - HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock43_closureTrampoline) - .cast(), - _ObjCBlock43_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } -} - -class NSURLSessionUploadTask extends NSURLSessionDataTask { - NSURLSessionUploadTask._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSURLSessionUploadTask] that points to the same underlying object as [other]. - static NSURLSessionUploadTask castFrom(T other) { - return NSURLSessionUploadTask._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSURLSessionUploadTask] that wraps the given raw object pointer. - static NSURLSessionUploadTask castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLSessionUploadTask._(other, lib, - retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSURLSessionUploadTask]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionUploadTask1); - } - - @override - NSURLSessionUploadTask init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); - } - - static NSURLSessionUploadTask new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionUploadTask1, _lib._sel_new1); - return NSURLSessionUploadTask._(_ret, _lib, retain: false, release: true); - } - - static NSURLSessionUploadTask alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionUploadTask1, _lib._sel_alloc1); - return NSURLSessionUploadTask._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLSessionUploadTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionUploadTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionUploadTask1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLSessionUploadTask1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionUploadTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionUploadTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSURLSessionUploadTask1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionUploadTask1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionUploadTask1, - _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSURLSessionDownloadTask extends NSURLSessionTask { - NSURLSessionDownloadTask._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSURLSessionDownloadTask] that points to the same underlying object as [other]. - static NSURLSessionDownloadTask castFrom(T other) { - return NSURLSessionDownloadTask._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSURLSessionDownloadTask] that wraps the given raw object pointer. - static NSURLSessionDownloadTask castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLSessionDownloadTask._(other, lib, - retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSURLSessionDownloadTask]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionDownloadTask1); - } - - void cancelByProducingResumeData_(ObjCBlock44 completionHandler) { - return _lib._objc_msgSend_963( - _id, _lib._sel_cancelByProducingResumeData_1, completionHandler._id); - } - - @override - NSURLSessionDownloadTask init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); - } - - static NSURLSessionDownloadTask new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionDownloadTask1, _lib._sel_new1); - return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); - } - - static NSURLSessionDownloadTask alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionDownloadTask1, _lib._sel_alloc1); - return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLSessionDownloadTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionDownloadTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionDownloadTask1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLSessionDownloadTask1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionDownloadTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionDownloadTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSURLSessionDownloadTask1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionDownloadTask1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionDownloadTask1, - _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -void _ObjCBlock44_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock44_closureRegistry = {}; -int _ObjCBlock44_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock44_registerClosure(Function fn) { - final id = ++_ObjCBlock44_closureRegistryIndex; - _ObjCBlock44_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock44_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock44_closureRegistry[block.ref.target.address]!(arg0); -} - -class ObjCBlock44 extends _ObjCBlockBase { - ObjCBlock44._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock44.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock44_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock44.fromFunction(HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock44_closureTrampoline) - .cast(), - _ObjCBlock44_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } -} - -class NSURLSessionStreamTask extends NSURLSessionTask { - NSURLSessionStreamTask._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSURLSessionStreamTask] that points to the same underlying object as [other]. - static NSURLSessionStreamTask castFrom(T other) { - return NSURLSessionStreamTask._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSURLSessionStreamTask] that wraps the given raw object pointer. - static NSURLSessionStreamTask castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLSessionStreamTask._(other, lib, - retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSURLSessionStreamTask]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionStreamTask1); - } - - void readDataOfMinLength_maxLength_timeout_completionHandler_(int minBytes, - int maxBytes, double timeout, ObjCBlock45 completionHandler) { - return _lib._objc_msgSend_967( - _id, - _lib._sel_readDataOfMinLength_maxLength_timeout_completionHandler_1, - minBytes, - maxBytes, - timeout, - completionHandler._id); - } - - void writeData_timeout_completionHandler_( - NSData? data, double timeout, ObjCBlock18 completionHandler) { - return _lib._objc_msgSend_968( - _id, - _lib._sel_writeData_timeout_completionHandler_1, - data?._id ?? ffi.nullptr, - timeout, - completionHandler._id); - } - - void captureStreams() { - return _lib._objc_msgSend_1(_id, _lib._sel_captureStreams1); - } - - void closeWrite() { - return _lib._objc_msgSend_1(_id, _lib._sel_closeWrite1); - } - - void closeRead() { - return _lib._objc_msgSend_1(_id, _lib._sel_closeRead1); - } - - void startSecureConnection() { - return _lib._objc_msgSend_1(_id, _lib._sel_startSecureConnection1); - } - - void stopSecureConnection() { - return _lib._objc_msgSend_1(_id, _lib._sel_stopSecureConnection1); - } - - @override - NSURLSessionStreamTask init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); - } - - static NSURLSessionStreamTask new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionStreamTask1, _lib._sel_new1); - return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); - } - - static NSURLSessionStreamTask alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionStreamTask1, _lib._sel_alloc1); - return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLSessionStreamTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionStreamTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionStreamTask1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLSessionStreamTask1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionStreamTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionStreamTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSURLSessionStreamTask1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionStreamTask1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionStreamTask1, - _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -void _ObjCBlock45_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock45_closureRegistry = {}; -int _ObjCBlock45_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock45_registerClosure(Function fn) { - final id = ++_ObjCBlock45_closureRegistryIndex; - _ObjCBlock45_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock45_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _ObjCBlock45_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock45 extends _ObjCBlockBase { - ObjCBlock45._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock45.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock45_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock45.fromFunction( - HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock45_closureTrampoline) - .cast(), - _ObjCBlock45_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } -} - -class NSNetService extends NSObject { - NSNetService._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSNetService] that points to the same underlying object as [other]. - static NSNetService castFrom(T other) { - return NSNetService._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSNetService] that wraps the given raw object pointer. - static NSNetService castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSNetService._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSNetService]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSNetService1); - } - - NSNetService initWithDomain_type_name_port_( - NSString? domain, NSString? type, NSString? name, int port) { - final _ret = _lib._objc_msgSend_970( - _id, - _lib._sel_initWithDomain_type_name_port_1, - domain?._id ?? ffi.nullptr, - type?._id ?? ffi.nullptr, - name?._id ?? ffi.nullptr, - port); - return NSNetService._(_ret, _lib, retain: true, release: true); - } - - NSNetService initWithDomain_type_name_( - NSString? domain, NSString? type, NSString? name) { - final _ret = _lib._objc_msgSend_26( - _id, - _lib._sel_initWithDomain_type_name_1, - domain?._id ?? ffi.nullptr, - type?._id ?? ffi.nullptr, - name?._id ?? ffi.nullptr); - return NSNetService._(_ret, _lib, retain: true, release: true); - } - - void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - return _lib._objc_msgSend_533(_id, _lib._sel_scheduleInRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); - } - - void removeFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - return _lib._objc_msgSend_533(_id, _lib._sel_removeFromRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); - } - - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); - } - - set delegate(NSObject? value) { - _lib._objc_msgSend_387( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); - } - - bool get includesPeerToPeer { - return _lib._objc_msgSend_12(_id, _lib._sel_includesPeerToPeer1); - } - - set includesPeerToPeer(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setIncludesPeerToPeer_1, value); - } - - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get type { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_type1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get domain { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_domain1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get hostName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_hostName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSArray? get addresses { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_addresses1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - int get port { - return _lib._objc_msgSend_78(_id, _lib._sel_port1); - } - - void publish() { - return _lib._objc_msgSend_1(_id, _lib._sel_publish1); - } - - void publishWithOptions_(int options) { - return _lib._objc_msgSend_971(_id, _lib._sel_publishWithOptions_1, options); - } - - void resolve() { - return _lib._objc_msgSend_1(_id, _lib._sel_resolve1); - } - - void stop() { - return _lib._objc_msgSend_1(_id, _lib._sel_stop1); - } - - static NSDictionary dictionaryFromTXTRecordData_( - HidListenerBindingsSwift _lib, NSData? txtData) { - final _ret = _lib._objc_msgSend_972(_lib._class_NSNetService1, - _lib._sel_dictionaryFromTXTRecordData_1, txtData?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - static NSData dataFromTXTRecordDictionary_( - HidListenerBindingsSwift _lib, NSDictionary? txtDictionary) { - final _ret = _lib._objc_msgSend_973( - _lib._class_NSNetService1, - _lib._sel_dataFromTXTRecordDictionary_1, - txtDictionary?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); - } - - void resolveWithTimeout_(double timeout) { - return _lib._objc_msgSend_505(_id, _lib._sel_resolveWithTimeout_1, timeout); - } - - bool getInputStream_outputStream_( - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - return _lib._objc_msgSend_974(_id, _lib._sel_getInputStream_outputStream_1, - inputStream, outputStream); - } - - bool setTXTRecordData_(NSData? recordData) { - return _lib._objc_msgSend_23( - _id, _lib._sel_setTXTRecordData_1, recordData?._id ?? ffi.nullptr); - } - - NSData TXTRecordData() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_TXTRecordData1); - return NSData._(_ret, _lib, retain: true, release: true); - } - - void startMonitoring() { - return _lib._objc_msgSend_1(_id, _lib._sel_startMonitoring1); - } - - void stopMonitoring() { - return _lib._objc_msgSend_1(_id, _lib._sel_stopMonitoring1); - } - - static NSNetService new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSNetService1, _lib._sel_new1); - return NSNetService._(_ret, _lib, retain: false, release: true); - } - - static NSNetService alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSNetService1, _lib._sel_alloc1); - return NSNetService._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSNetService1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSNetService1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSNetService1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSNetService1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSNetService1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSNetService1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSNetService1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSNetService1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSNetService1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSNetServiceOptions { - static const int NSNetServiceNoAutoRename = 1; - static const int NSNetServiceListenForConnections = 2; -} - -class NSURLSessionWebSocketTask extends NSURLSessionTask { - NSURLSessionWebSocketTask._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSURLSessionWebSocketTask] that points to the same underlying object as [other]. - static NSURLSessionWebSocketTask castFrom(T other) { - return NSURLSessionWebSocketTask._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSURLSessionWebSocketTask] that wraps the given raw object pointer. - static NSURLSessionWebSocketTask castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLSessionWebSocketTask._(other, lib, - retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSURLSessionWebSocketTask]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionWebSocketTask1); - } - - void sendMessage_completionHandler_( - NSURLSessionWebSocketMessage? message, ObjCBlock18 completionHandler) { - return _lib._objc_msgSend_977( - _id, - _lib._sel_sendMessage_completionHandler_1, - message?._id ?? ffi.nullptr, - completionHandler._id); - } - - void receiveMessageWithCompletionHandler_(ObjCBlock46 completionHandler) { - return _lib._objc_msgSend_978(_id, - _lib._sel_receiveMessageWithCompletionHandler_1, completionHandler._id); - } - - void sendPingWithPongReceiveHandler_(ObjCBlock18 pongReceiveHandler) { - return _lib._objc_msgSend_979(_id, - _lib._sel_sendPingWithPongReceiveHandler_1, pongReceiveHandler._id); - } - - void cancelWithCloseCode_reason_(int closeCode, NSData? reason) { - return _lib._objc_msgSend_980(_id, _lib._sel_cancelWithCloseCode_reason_1, - closeCode, reason?._id ?? ffi.nullptr); - } - - int get maximumMessageSize { - return _lib._objc_msgSend_78(_id, _lib._sel_maximumMessageSize1); - } - - set maximumMessageSize(int value) { - _lib._objc_msgSend_590(_id, _lib._sel_setMaximumMessageSize_1, value); - } - - int get closeCode { - return _lib._objc_msgSend_981(_id, _lib._sel_closeCode1); - } - - NSData? get closeReason { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_closeReason1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); - } - - @override - NSURLSessionWebSocketTask init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); - } - - static NSURLSessionWebSocketTask new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionWebSocketTask1, _lib._sel_new1); - return NSURLSessionWebSocketTask._(_ret, _lib, - retain: false, release: true); - } - - static NSURLSessionWebSocketTask alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionWebSocketTask1, _lib._sel_alloc1); - return NSURLSessionWebSocketTask._(_ret, _lib, - retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLSessionWebSocketTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketTask1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLSessionWebSocketTask1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionWebSocketTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionWebSocketTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSURLSessionWebSocketTask1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionWebSocketTask1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionWebSocketTask1, - _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSURLSessionWebSocketMessage extends NSObject { - NSURLSessionWebSocketMessage._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSURLSessionWebSocketMessage] that points to the same underlying object as [other]. - static NSURLSessionWebSocketMessage castFrom( - T other) { - return NSURLSessionWebSocketMessage._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSURLSessionWebSocketMessage] that wraps the given raw object pointer. - static NSURLSessionWebSocketMessage castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLSessionWebSocketMessage._(other, lib, - retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSURLSessionWebSocketMessage]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionWebSocketMessage1); - } - - NSURLSessionWebSocketMessage initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_257( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); - return NSURLSessionWebSocketMessage._(_ret, _lib, - retain: true, release: true); - } - - NSURLSessionWebSocketMessage initWithString_(NSString? string) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, string?._id ?? ffi.nullptr); - return NSURLSessionWebSocketMessage._(_ret, _lib, - retain: true, release: true); - } - - int get type { - return _lib._objc_msgSend_976(_id, _lib._sel_type1); - } - - NSData? get data { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); - } - - NSString? get string { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_string1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - @override - NSURLSessionWebSocketMessage init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionWebSocketMessage._(_ret, _lib, - retain: true, release: true); - } - - static NSURLSessionWebSocketMessage new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_new1); - return NSURLSessionWebSocketMessage._(_ret, _lib, - retain: false, release: true); - } - - static NSURLSessionWebSocketMessage alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_alloc1); - return NSURLSessionWebSocketMessage._(_ret, _lib, - retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSURLSessionWebSocketMessage1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketMessage1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketMessage1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketMessage1, - _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionWebSocketMessage1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionWebSocketMessage1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSURLSessionWebSocketMessage1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSURLSessionWebSocketMessage1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionWebSocketMessage1, - _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSURLSessionWebSocketMessageType { - static const int NSURLSessionWebSocketMessageTypeData = 0; - static const int NSURLSessionWebSocketMessageTypeString = 1; -} - -void _ObjCBlock46_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} - -final _ObjCBlock46_closureRegistry = {}; -int _ObjCBlock46_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock46_registerClosure(Function fn) { - final id = ++_ObjCBlock46_closureRegistryIndex; - _ObjCBlock46_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock46_closureTrampoline(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, ffi.Pointer arg1) { - return _ObjCBlock46_closureRegistry[block.ref.target.address]!(arg0, arg1); -} - -class ObjCBlock46 extends _ObjCBlockBase { - ObjCBlock46._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock46.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock46_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock46.fromFunction( - HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock46_closureTrampoline) - .cast(), - _ObjCBlock46_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); - } -} - -abstract class NSURLSessionWebSocketCloseCode { - static const int NSURLSessionWebSocketCloseCodeInvalid = 0; - static const int NSURLSessionWebSocketCloseCodeNormalClosure = 1000; - static const int NSURLSessionWebSocketCloseCodeGoingAway = 1001; - static const int NSURLSessionWebSocketCloseCodeProtocolError = 1002; - static const int NSURLSessionWebSocketCloseCodeUnsupportedData = 1003; - static const int NSURLSessionWebSocketCloseCodeNoStatusReceived = 1005; - static const int NSURLSessionWebSocketCloseCodeAbnormalClosure = 1006; - static const int NSURLSessionWebSocketCloseCodeInvalidFramePayloadData = 1007; - static const int NSURLSessionWebSocketCloseCodePolicyViolation = 1008; - static const int NSURLSessionWebSocketCloseCodeMessageTooBig = 1009; - static const int NSURLSessionWebSocketCloseCodeMandatoryExtensionMissing = - 1010; - static const int NSURLSessionWebSocketCloseCodeInternalServerError = 1011; - static const int NSURLSessionWebSocketCloseCodeTLSHandshakeFailure = 1015; -} - -void _ObjCBlock47_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock47_closureRegistry = {}; -int _ObjCBlock47_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock47_registerClosure(Function fn) { - final id = ++_ObjCBlock47_closureRegistryIndex; - _ObjCBlock47_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock47_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock47_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock47 extends _ObjCBlockBase { - ObjCBlock47._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock47.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock47_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock47.fromFunction( - HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock47_closureTrampoline) - .cast(), - _ObjCBlock47_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } -} - -void _ObjCBlock48_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock48_closureRegistry = {}; -int _ObjCBlock48_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock48_registerClosure(Function fn) { - final id = ++_ObjCBlock48_closureRegistryIndex; - _ObjCBlock48_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock48_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return _ObjCBlock48_closureRegistry[block.ref.target.address]!( - arg0, arg1, arg2); -} - -class ObjCBlock48 extends _ObjCBlockBase { - ObjCBlock48._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock48.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock48_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock48.fromFunction( - HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock48_closureTrampoline) - .cast(), - _ObjCBlock48_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } -} - -class NSProtocolChecker extends NSProxy { - NSProtocolChecker._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSProtocolChecker] that points to the same underlying object as [other]. - static NSProtocolChecker castFrom(T other) { - return NSProtocolChecker._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSProtocolChecker] that wraps the given raw object pointer. - static NSProtocolChecker castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSProtocolChecker._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSProtocolChecker]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSProtocolChecker1); - } - - Protocol? get protocol { - final _ret = _lib._objc_msgSend_992(_id, _lib._sel_protocol1); - return _ret.address == 0 - ? null - : Protocol._(_ret, _lib, retain: true, release: true); - } - - NSObject? get target { - final _ret = _lib._objc_msgSend_822(_id, _lib._sel_target1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSProtocolChecker protocolCheckerWithTarget_protocol_( - HidListenerBindingsSwift _lib, NSObject? anObject, Protocol? aProtocol) { - final _ret = _lib._objc_msgSend_993( - _lib._class_NSProtocolChecker1, - _lib._sel_protocolCheckerWithTarget_protocol_1, - anObject?._id ?? ffi.nullptr, - aProtocol?._id ?? ffi.nullptr); - return NSProtocolChecker._(_ret, _lib, retain: true, release: true); - } - - NSProtocolChecker initWithTarget_protocol_( - NSObject? anObject, Protocol? aProtocol) { - final _ret = _lib._objc_msgSend_993( - _id, - _lib._sel_initWithTarget_protocol_1, - anObject?._id ?? ffi.nullptr, - aProtocol?._id ?? ffi.nullptr); - return NSProtocolChecker._(_ret, _lib, retain: true, release: true); - } - - static NSObject alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSProtocolChecker1, _lib._sel_alloc1); - return NSObject._(_ret, _lib, retain: false, release: true); - } - - static bool respondsToSelector_( - HidListenerBindingsSwift _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_4(_lib._class_NSProtocolChecker1, - _lib._sel_respondsToSelector_1, aSelector); - } -} - -class NSTask extends NSObject { - NSTask._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSTask] that points to the same underlying object as [other]. - static NSTask castFrom(T other) { - return NSTask._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSTask] that wraps the given raw object pointer. - static NSTask castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSTask._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSTask]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSTask1); - } - - @override - NSTask init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSTask._(_ret, _lib, retain: true, release: true); - } - - NSURL? get executableURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_executableURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - set executableURL(NSURL? value) { - _lib._objc_msgSend_621( - _id, _lib._sel_setExecutableURL_1, value?._id ?? ffi.nullptr); - } - - NSArray? get arguments { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_arguments1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set arguments(NSArray? value) { - _lib._objc_msgSend_731( - _id, _lib._sel_setArguments_1, value?._id ?? ffi.nullptr); - } - - NSDictionary? get environment { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_environment1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - set environment(NSDictionary? value) { - _lib._objc_msgSend_171( - _id, _lib._sel_setEnvironment_1, value?._id ?? ffi.nullptr); - } - - NSURL? get currentDirectoryURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_currentDirectoryURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - set currentDirectoryURL(NSURL? value) { - _lib._objc_msgSend_621( - _id, _lib._sel_setCurrentDirectoryURL_1, value?._id ?? ffi.nullptr); - } - - NSObject get standardInput { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardInput1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - set standardInput(NSObject value) { - _lib._objc_msgSend_387(_id, _lib._sel_setStandardInput_1, value._id); - } - - NSObject get standardOutput { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardOutput1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - set standardOutput(NSObject value) { - _lib._objc_msgSend_387(_id, _lib._sel_setStandardOutput_1, value._id); - } - - NSObject get standardError { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardError1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - set standardError(NSObject value) { - _lib._objc_msgSend_387(_id, _lib._sel_setStandardError_1, value._id); - } - - bool launchAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_225(_id, _lib._sel_launchAndReturnError_1, error); - } - - void interrupt() { - return _lib._objc_msgSend_1(_id, _lib._sel_interrupt1); - } - - void terminate() { - return _lib._objc_msgSend_1(_id, _lib._sel_terminate1); - } - - bool suspend() { - return _lib._objc_msgSend_12(_id, _lib._sel_suspend1); - } - - bool resume() { - return _lib._objc_msgSend_12(_id, _lib._sel_resume1); - } - - int get processIdentifier { - return _lib._objc_msgSend_219(_id, _lib._sel_processIdentifier1); - } - - bool get running { - return _lib._objc_msgSend_12(_id, _lib._sel_isRunning1); - } - - int get terminationStatus { - return _lib._objc_msgSend_219(_id, _lib._sel_terminationStatus1); - } - - int get terminationReason { - return _lib._objc_msgSend_994(_id, _lib._sel_terminationReason1); - } - - ObjCBlock49 get terminationHandler { - final _ret = _lib._objc_msgSend_995(_id, _lib._sel_terminationHandler1); - return ObjCBlock49._(_ret, _lib); - } - - set terminationHandler(ObjCBlock49 value) { - _lib._objc_msgSend_996(_id, _lib._sel_setTerminationHandler_1, value._id); - } - - int get qualityOfService { - return _lib._objc_msgSend_507(_id, _lib._sel_qualityOfService1); - } - - set qualityOfService(int value) { - _lib._objc_msgSend_508(_id, _lib._sel_setQualityOfService_1, value); - } - - static NSTask - launchedTaskWithExecutableURL_arguments_error_terminationHandler_( - HidListenerBindingsSwift _lib, - NSURL? url, - NSArray? arguments, - ffi.Pointer> error, - ObjCBlock49 terminationHandler) { - final _ret = _lib._objc_msgSend_997( - _lib._class_NSTask1, - _lib._sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_1, - url?._id ?? ffi.nullptr, - arguments?._id ?? ffi.nullptr, - error, - terminationHandler._id); - return NSTask._(_ret, _lib, retain: true, release: true); - } - - void waitUntilExit() { - return _lib._objc_msgSend_1(_id, _lib._sel_waitUntilExit1); - } - - NSString? get launchPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_launchPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set launchPath(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setLaunchPath_1, value?._id ?? ffi.nullptr); - } - - NSString? get currentDirectoryPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currentDirectoryPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set currentDirectoryPath(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setCurrentDirectoryPath_1, value?._id ?? ffi.nullptr); - } - - void launch() { - return _lib._objc_msgSend_1(_id, _lib._sel_launch1); - } - - static NSTask launchedTaskWithLaunchPath_arguments_( - HidListenerBindingsSwift _lib, NSString? path, NSArray? arguments) { - final _ret = _lib._objc_msgSend_998( - _lib._class_NSTask1, - _lib._sel_launchedTaskWithLaunchPath_arguments_1, - path?._id ?? ffi.nullptr, - arguments?._id ?? ffi.nullptr); - return NSTask._(_ret, _lib, retain: true, release: true); - } - - static NSTask new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSTask1, _lib._sel_new1); - return NSTask._(_ret, _lib, retain: false, release: true); - } - - static NSTask alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSTask1, _lib._sel_alloc1); - return NSTask._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSTask1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSTask1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSTask1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSTask1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSTask1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSTaskTerminationReason { - static const int NSTaskTerminationReasonExit = 1; - static const int NSTaskTerminationReasonUncaughtSignal = 2; -} - -void _ObjCBlock49_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock49_closureRegistry = {}; -int _ObjCBlock49_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock49_registerClosure(Function fn) { - final id = ++_ObjCBlock49_closureRegistryIndex; - _ObjCBlock49_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock49_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return _ObjCBlock49_closureRegistry[block.ref.target.address]!(arg0); -} - -class ObjCBlock49 extends _ObjCBlockBase { - ObjCBlock49._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock49.fromFunctionPointer( - HidListenerBindingsSwift lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock49_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock49.fromFunction(HidListenerBindingsSwift lib, - void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock49_closureTrampoline) - .cast(), - _ObjCBlock49_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } -} - -class NSXMLElement extends NSXMLNode { - NSXMLElement._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSXMLElement] that points to the same underlying object as [other]. - static NSXMLElement castFrom(T other) { - return NSXMLElement._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSXMLElement] that wraps the given raw object pointer. - static NSXMLElement castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSXMLElement._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSXMLElement]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLElement1); - } - - NSXMLElement initWithName_(NSString? name) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithName_1, name?._id ?? ffi.nullptr); - return NSXMLElement._(_ret, _lib, retain: true, release: true); - } - - NSXMLElement initWithName_URI_(NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_165(_id, _lib._sel_initWithName_URI_1, - name?._id ?? ffi.nullptr, URI?._id ?? ffi.nullptr); - return NSXMLElement._(_ret, _lib, retain: true, release: true); - } - - NSXMLElement initWithName_stringValue_(NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_165( - _id, - _lib._sel_initWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); - return NSXMLElement._(_ret, _lib, retain: true, release: true); - } - - NSXMLElement initWithXMLString_error_( - NSString? string, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_279(_id, - _lib._sel_initWithXMLString_error_1, string?._id ?? ffi.nullptr, error); - return NSXMLElement._(_ret, _lib, retain: true, release: true); - } - - @override - NSXMLElement initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_1000( - _id, _lib._sel_initWithKind_options_1, kind, options); - return NSXMLElement._(_ret, _lib, retain: true, release: true); - } - - NSArray elementsForName_(NSString? name) { - final _ret = _lib._objc_msgSend_123( - _id, _lib._sel_elementsForName_1, name?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray elementsForLocalName_URI_(NSString? localName, NSString? URI) { - final _ret = _lib._objc_msgSend_652( - _id, - _lib._sel_elementsForLocalName_URI_1, - localName?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - void addAttribute_(NSXMLNode? attribute) { - return _lib._objc_msgSend_1012( - _id, _lib._sel_addAttribute_1, attribute?._id ?? ffi.nullptr); - } - - void removeAttributeForName_(NSString? name) { - return _lib._objc_msgSend_192( - _id, _lib._sel_removeAttributeForName_1, name?._id ?? ffi.nullptr); - } - - NSArray? get attributes { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attributes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set attributes(NSArray? value) { - _lib._objc_msgSend_731( - _id, _lib._sel_setAttributes_1, value?._id ?? ffi.nullptr); - } - - void setAttributesWithDictionary_(NSDictionary? attributes) { - return _lib._objc_msgSend_476(_id, _lib._sel_setAttributesWithDictionary_1, - attributes?._id ?? ffi.nullptr); - } - - NSXMLNode attributeForName_(NSString? name) { - final _ret = _lib._objc_msgSend_1016( - _id, _lib._sel_attributeForName_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - NSXMLNode attributeForLocalName_URI_(NSString? localName, NSString? URI) { - final _ret = _lib._objc_msgSend_1033( - _id, - _lib._sel_attributeForLocalName_URI_1, - localName?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - void addNamespace_(NSXMLNode? aNamespace) { - return _lib._objc_msgSend_1012( - _id, _lib._sel_addNamespace_1, aNamespace?._id ?? ffi.nullptr); - } - - void removeNamespaceForPrefix_(NSString? name) { - return _lib._objc_msgSend_192( - _id, _lib._sel_removeNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - } - - NSArray? get namespaces { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_namespaces1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set namespaces(NSArray? value) { - _lib._objc_msgSend_731( - _id, _lib._sel_setNamespaces_1, value?._id ?? ffi.nullptr); - } - - NSXMLNode namespaceForPrefix_(NSString? name) { - final _ret = _lib._objc_msgSend_1016( - _id, _lib._sel_namespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - NSXMLNode resolveNamespaceForName_(NSString? name) { - final _ret = _lib._objc_msgSend_1016( - _id, _lib._sel_resolveNamespaceForName_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - NSString resolvePrefixForNamespaceURI_(NSString? namespaceURI) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_resolvePrefixForNamespaceURI_1, - namespaceURI?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - void insertChild_atIndex_(NSXMLNode? child, int index) { - return _lib._objc_msgSend_1010( - _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); - } - - void insertChildren_atIndex_(NSArray? children, int index) { - return _lib._objc_msgSend_1011(_id, _lib._sel_insertChildren_atIndex_1, - children?._id ?? ffi.nullptr, index); - } - - void removeChildAtIndex_(int index) { - return _lib._objc_msgSend_439(_id, _lib._sel_removeChildAtIndex_1, index); - } - - void setChildren_(NSArray? children) { - return _lib._objc_msgSend_441( - _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); - } - - void addChild_(NSXMLNode? child) { - return _lib._objc_msgSend_1012( - _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); - } - - void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { - return _lib._objc_msgSend_1013( - _id, - _lib._sel_replaceChildAtIndex_withNode_1, - index, - node?._id ?? ffi.nullptr); - } - - void normalizeAdjacentTextNodesPreservingCDATA_(bool preserve) { - return _lib._objc_msgSend_790( - _id, _lib._sel_normalizeAdjacentTextNodesPreservingCDATA_1, preserve); - } - - void setAttributesAsDictionary_(NSDictionary? attributes) { - return _lib._objc_msgSend_476(_id, _lib._sel_setAttributesAsDictionary_1, - attributes?._id ?? ffi.nullptr); - } - - static NSObject document(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLElement1, _lib._sel_document1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject documentWithRootElement_( - HidListenerBindingsSwift _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_1001(_lib._class_NSXMLElement1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_( - HidListenerBindingsSwift _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_URI_( - HidListenerBindingsSwift _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLElement1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_stringValue_( - HidListenerBindingsSwift _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLElement1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_children_attributes_( - HidListenerBindingsSwift _lib, - NSString? name, - NSArray? children, - NSArray? attributes) { - final _ret = _lib._objc_msgSend_1002( - _lib._class_NSXMLElement1, - _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, - children?._id ?? ffi.nullptr, - attributes?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject attributeWithName_stringValue_( - HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLElement1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject attributeWithName_URI_stringValue_( - HidListenerBindingsSwift _lib, - NSString? name, - NSString? URI, - NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( - _lib._class_NSXMLElement1, - _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject namespaceWithName_stringValue_( - HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLElement1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject processingInstructionWithName_stringValue_( - HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLElement1, - _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject commentWithStringValue_( - HidListenerBindingsSwift _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject textWithStringValue_( - HidListenerBindingsSwift _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject DTDNodeWithXMLString_( - HidListenerBindingsSwift _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSString localNameForName_( - HidListenerBindingsSwift _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLElement1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString prefixForName_( - HidListenerBindingsSwift _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLElement1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSXMLNode predefinedNamespaceForPrefix_( - HidListenerBindingsSwift _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1016(_lib._class_NSXMLElement1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - static NSXMLElement new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLElement1, _lib._sel_new1); - return NSXMLElement._(_ret, _lib, retain: false, release: true); - } - - static NSXMLElement alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLElement1, _lib._sel_alloc1); - return NSXMLElement._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSXMLElement1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSXMLElement1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSXMLElement1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSXMLElement1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLElement1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSXMLElement1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSXMLElement1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSXMLElement1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSXMLElement1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSXMLNode extends NSObject { - NSXMLNode._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSXMLNode] that points to the same underlying object as [other]. - static NSXMLNode castFrom(T other) { - return NSXMLNode._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSXMLNode] that wraps the given raw object pointer. - static NSXMLNode castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSXMLNode._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSXMLNode]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLNode1); - } - - @override - NSXMLNode init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - NSXMLNode initWithKind_(int kind) { - final _ret = _lib._objc_msgSend_999(_id, _lib._sel_initWithKind_1, kind); - return NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - NSXMLNode initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_1000( - _id, _lib._sel_initWithKind_options_1, kind, options); - return NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - static NSObject document(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLNode1, _lib._sel_document1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject documentWithRootElement_( - HidListenerBindingsSwift _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_1001(_lib._class_NSXMLNode1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_( - HidListenerBindingsSwift _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_URI_( - HidListenerBindingsSwift _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLNode1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_stringValue_( - HidListenerBindingsSwift _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLNode1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_children_attributes_( - HidListenerBindingsSwift _lib, - NSString? name, - NSArray? children, - NSArray? attributes) { - final _ret = _lib._objc_msgSend_1002( - _lib._class_NSXMLNode1, - _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, - children?._id ?? ffi.nullptr, - attributes?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject attributeWithName_stringValue_( - HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLNode1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject attributeWithName_URI_stringValue_( - HidListenerBindingsSwift _lib, - NSString? name, - NSString? URI, - NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( - _lib._class_NSXMLNode1, - _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject namespaceWithName_stringValue_( - HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLNode1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject processingInstructionWithName_stringValue_( - HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLNode1, - _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject commentWithStringValue_( - HidListenerBindingsSwift _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject textWithStringValue_( - HidListenerBindingsSwift _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject DTDNodeWithXMLString_( - HidListenerBindingsSwift _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - int get kind { - return _lib._objc_msgSend_1003(_id, _lib._sel_kind1); - } - - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set name(NSString? value) { - _lib._objc_msgSend_509(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); - } - - NSObject get objectValue { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_objectValue1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - set objectValue(NSObject value) { - _lib._objc_msgSend_387(_id, _lib._sel_setObjectValue_1, value._id); - } - - NSString? get stringValue { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_stringValue1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set stringValue(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setStringValue_1, value?._id ?? ffi.nullptr); - } - - void setStringValue_resolvingEntities_(NSString? string, bool resolve) { - return _lib._objc_msgSend_1004( - _id, - _lib._sel_setStringValue_resolvingEntities_1, - string?._id ?? ffi.nullptr, - resolve); - } - - int get index { - return _lib._objc_msgSend_10(_id, _lib._sel_index1); - } - - int get level { - return _lib._objc_msgSend_10(_id, _lib._sel_level1); - } - - NSXMLDocument? get rootDocument { - final _ret = _lib._objc_msgSend_1027(_id, _lib._sel_rootDocument1); - return _ret.address == 0 - ? null - : NSXMLDocument._(_ret, _lib, retain: true, release: true); - } - - NSXMLNode? get parent { - final _ret = _lib._objc_msgSend_1028(_id, _lib._sel_parent1); - return _ret.address == 0 - ? null - : NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - int get childCount { - return _lib._objc_msgSend_10(_id, _lib._sel_childCount1); - } - - NSArray? get children { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_children1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSXMLNode childAtIndex_(int index) { - final _ret = _lib._objc_msgSend_1029(_id, _lib._sel_childAtIndex_1, index); - return NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - NSXMLNode? get previousSibling { - final _ret = _lib._objc_msgSend_1028(_id, _lib._sel_previousSibling1); - return _ret.address == 0 - ? null - : NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - NSXMLNode? get nextSibling { - final _ret = _lib._objc_msgSend_1028(_id, _lib._sel_nextSibling1); - return _ret.address == 0 - ? null - : NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - NSXMLNode? get previousNode { - final _ret = _lib._objc_msgSend_1028(_id, _lib._sel_previousNode1); - return _ret.address == 0 - ? null - : NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - NSXMLNode? get nextNode { - final _ret = _lib._objc_msgSend_1028(_id, _lib._sel_nextNode1); - return _ret.address == 0 - ? null - : NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - void detach() { - return _lib._objc_msgSend_1(_id, _lib._sel_detach1); - } - - NSString? get XPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_XPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get localName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get prefix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_prefix1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get URI { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_URI1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set URI(NSString? value) { - _lib._objc_msgSend_509(_id, _lib._sel_setURI_1, value?._id ?? ffi.nullptr); - } - - static NSString localNameForName_( - HidListenerBindingsSwift _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLNode1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString prefixForName_( - HidListenerBindingsSwift _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLNode1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSXMLNode predefinedNamespaceForPrefix_( - HidListenerBindingsSwift _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1016(_lib._class_NSXMLNode1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get XMLString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_XMLString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString XMLStringWithOptions_(int options) { - final _ret = - _lib._objc_msgSend_1030(_id, _lib._sel_XMLStringWithOptions_1, options); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString canonicalXMLStringPreservingComments_(bool comments) { - final _ret = _lib._objc_msgSend_1031( - _id, _lib._sel_canonicalXMLStringPreservingComments_1, comments); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSArray nodesForXPath_error_( - NSString? xpath, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_414( - _id, _lib._sel_nodesForXPath_error_1, xpath?._id ?? ffi.nullptr, error); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray objectsForXQuery_constants_error_(NSString? xquery, - NSDictionary? constants, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1032( - _id, - _lib._sel_objectsForXQuery_constants_error_1, - xquery?._id ?? ffi.nullptr, - constants?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray objectsForXQuery_error_( - NSString? xquery, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_414(_id, _lib._sel_objectsForXQuery_error_1, - xquery?._id ?? ffi.nullptr, error); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSXMLNode new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLNode1, _lib._sel_new1); - return NSXMLNode._(_ret, _lib, retain: false, release: true); - } - - static NSXMLNode alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLNode1, _lib._sel_alloc1); - return NSXMLNode._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSXMLNode1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSXMLNode1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSXMLNode1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSXMLNode1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLNode1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSXMLNode1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSXMLNode1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSXMLNode1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSXMLNode1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSXMLNodeKind { - static const int NSXMLInvalidKind = 0; - static const int NSXMLDocumentKind = 1; - static const int NSXMLElementKind = 2; - static const int NSXMLAttributeKind = 3; - static const int NSXMLNamespaceKind = 4; - static const int NSXMLProcessingInstructionKind = 5; - static const int NSXMLCommentKind = 6; - static const int NSXMLTextKind = 7; - static const int NSXMLDTDKind = 8; - static const int NSXMLEntityDeclarationKind = 9; - static const int NSXMLAttributeDeclarationKind = 10; - static const int NSXMLElementDeclarationKind = 11; - static const int NSXMLNotationDeclarationKind = 12; -} - -abstract class NSXMLNodeOptions { - static const int NSXMLNodeOptionsNone = 0; - static const int NSXMLNodeIsCDATA = 1; - static const int NSXMLNodeExpandEmptyElement = 2; - static const int NSXMLNodeCompactEmptyElement = 4; - static const int NSXMLNodeUseSingleQuotes = 8; - static const int NSXMLNodeUseDoubleQuotes = 16; - static const int NSXMLNodeNeverEscapeContents = 32; - static const int NSXMLDocumentTidyHTML = 512; - static const int NSXMLDocumentTidyXML = 1024; - static const int NSXMLDocumentValidate = 8192; - static const int NSXMLNodeLoadExternalEntitiesAlways = 16384; - static const int NSXMLNodeLoadExternalEntitiesSameOriginOnly = 32768; - static const int NSXMLNodeLoadExternalEntitiesNever = 524288; - static const int NSXMLDocumentXInclude = 65536; - static const int NSXMLNodePrettyPrint = 131072; - static const int NSXMLDocumentIncludeContentTypeDeclaration = 262144; - static const int NSXMLNodePreserveNamespaceOrder = 1048576; - static const int NSXMLNodePreserveAttributeOrder = 2097152; - static const int NSXMLNodePreserveEntities = 4194304; - static const int NSXMLNodePreservePrefixes = 8388608; - static const int NSXMLNodePreserveCDATA = 16777216; - static const int NSXMLNodePreserveWhitespace = 33554432; - static const int NSXMLNodePreserveDTD = 67108864; - static const int NSXMLNodePreserveCharacterReferences = 134217728; - static const int NSXMLNodePromoteSignificantWhitespace = 268435456; - static const int NSXMLNodePreserveEmptyElements = 6; - static const int NSXMLNodePreserveQuotes = 24; - static const int NSXMLNodePreserveAll = 4293918750; -} - -class NSXMLDocument extends NSXMLNode { - NSXMLDocument._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSXMLDocument] that points to the same underlying object as [other]. - static NSXMLDocument castFrom(T other) { - return NSXMLDocument._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSXMLDocument] that wraps the given raw object pointer. - static NSXMLDocument castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSXMLDocument._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSXMLDocument]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLDocument1); - } - - @override - NSXMLDocument init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); - } - - NSXMLDocument initWithXMLString_options_error_( - NSString? string, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1005( - _id, - _lib._sel_initWithXMLString_options_error_1, - string?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); - } - - NSXMLDocument initWithContentsOfURL_options_error_( - NSURL? url, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1006( - _id, - _lib._sel_initWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); - } - - NSXMLDocument initWithData_options_error_( - NSData? data, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1007( - _id, - _lib._sel_initWithData_options_error_1, - data?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); - } - - NSXMLDocument initWithRootElement_(NSXMLElement? element) { - final _ret = _lib._objc_msgSend_1001( - _id, _lib._sel_initWithRootElement_1, element?._id ?? ffi.nullptr); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); - } - - static NSObject replacementClassForClass_( - HidListenerBindingsSwift _lib, NSObject cls) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSXMLDocument1, - _lib._sel_replacementClassForClass_1, cls._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSString? get characterEncoding { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_characterEncoding1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set characterEncoding(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setCharacterEncoding_1, value?._id ?? ffi.nullptr); - } - - NSString? get version { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_version1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set version(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setVersion_1, value?._id ?? ffi.nullptr); - } - - bool get standalone { - return _lib._objc_msgSend_12(_id, _lib._sel_isStandalone1); - } - - set standalone(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setStandalone_1, value); - } - - int get documentContentKind { - return _lib._objc_msgSend_1008(_id, _lib._sel_documentContentKind1); - } - - set documentContentKind(int value) { - _lib._objc_msgSend_1009(_id, _lib._sel_setDocumentContentKind_1, value); - } - - NSString? get MIMEType { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_MIMEType1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set MIMEType(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setMIMEType_1, value?._id ?? ffi.nullptr); - } - - NSXMLDTD? get DTD { - final _ret = _lib._objc_msgSend_1019(_id, _lib._sel_DTD1); - return _ret.address == 0 - ? null - : NSXMLDTD._(_ret, _lib, retain: true, release: true); - } - - set DTD(NSXMLDTD? value) { - _lib._objc_msgSend_1020(_id, _lib._sel_setDTD_1, value?._id ?? ffi.nullptr); - } - - void setRootElement_(NSXMLElement? root) { - return _lib._objc_msgSend_1021( - _id, _lib._sel_setRootElement_1, root?._id ?? ffi.nullptr); - } - - NSXMLElement rootElement() { - final _ret = _lib._objc_msgSend_1022(_id, _lib._sel_rootElement1); - return NSXMLElement._(_ret, _lib, retain: true, release: true); - } - - void insertChild_atIndex_(NSXMLNode? child, int index) { - return _lib._objc_msgSend_1010( - _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); - } - - void insertChildren_atIndex_(NSArray? children, int index) { - return _lib._objc_msgSend_1011(_id, _lib._sel_insertChildren_atIndex_1, - children?._id ?? ffi.nullptr, index); - } - - void removeChildAtIndex_(int index) { - return _lib._objc_msgSend_439(_id, _lib._sel_removeChildAtIndex_1, index); - } - - void setChildren_(NSArray? children) { - return _lib._objc_msgSend_441( - _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); - } - - void addChild_(NSXMLNode? child) { - return _lib._objc_msgSend_1012( - _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); - } - - void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { - return _lib._objc_msgSend_1013( - _id, - _lib._sel_replaceChildAtIndex_withNode_1, - index, - node?._id ?? ffi.nullptr); - } - - NSData? get XMLData { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_XMLData1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); - } - - NSData XMLDataWithOptions_(int options) { - final _ret = - _lib._objc_msgSend_1023(_id, _lib._sel_XMLDataWithOptions_1, options); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSObject objectByApplyingXSLT_arguments_error_(NSData? xslt, - NSDictionary? arguments, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1024( - _id, - _lib._sel_objectByApplyingXSLT_arguments_error_1, - xslt?._id ?? ffi.nullptr, - arguments?._id ?? ffi.nullptr, - error); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject objectByApplyingXSLTString_arguments_error_(NSString? xslt, - NSDictionary? arguments, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1025( - _id, - _lib._sel_objectByApplyingXSLTString_arguments_error_1, - xslt?._id ?? ffi.nullptr, - arguments?._id ?? ffi.nullptr, - error); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject objectByApplyingXSLTAtURL_arguments_error_(NSURL? xsltURL, - NSDictionary? argument, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1026( - _id, - _lib._sel_objectByApplyingXSLTAtURL_arguments_error_1, - xsltURL?._id ?? ffi.nullptr, - argument?._id ?? ffi.nullptr, - error); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - bool validateAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_225( - _id, _lib._sel_validateAndReturnError_1, error); - } - - static NSObject document(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLDocument1, _lib._sel_document1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject documentWithRootElement_( - HidListenerBindingsSwift _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_1001(_lib._class_NSXMLDocument1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_( - HidListenerBindingsSwift _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_URI_( - HidListenerBindingsSwift _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDocument1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_stringValue_( - HidListenerBindingsSwift _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDocument1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_children_attributes_( - HidListenerBindingsSwift _lib, - NSString? name, - NSArray? children, - NSArray? attributes) { - final _ret = _lib._objc_msgSend_1002( - _lib._class_NSXMLDocument1, - _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, - children?._id ?? ffi.nullptr, - attributes?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject attributeWithName_stringValue_( - HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDocument1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject attributeWithName_URI_stringValue_( - HidListenerBindingsSwift _lib, - NSString? name, - NSString? URI, - NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( - _lib._class_NSXMLDocument1, - _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject namespaceWithName_stringValue_( - HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDocument1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject processingInstructionWithName_stringValue_( - HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDocument1, - _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject commentWithStringValue_( - HidListenerBindingsSwift _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject textWithStringValue_( - HidListenerBindingsSwift _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject DTDNodeWithXMLString_( - HidListenerBindingsSwift _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSString localNameForName_( - HidListenerBindingsSwift _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDocument1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString prefixForName_( - HidListenerBindingsSwift _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDocument1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSXMLNode predefinedNamespaceForPrefix_( - HidListenerBindingsSwift _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1016(_lib._class_NSXMLDocument1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - static NSXMLDocument new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLDocument1, _lib._sel_new1); - return NSXMLDocument._(_ret, _lib, retain: false, release: true); - } - - static NSXMLDocument alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLDocument1, _lib._sel_alloc1); - return NSXMLDocument._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSXMLDocument1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSXMLDocument1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSXMLDocument1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSXMLDocument1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLDocument1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSXMLDocument1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSXMLDocument1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSXMLDocument1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSXMLDocument1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSXMLDocumentContentKind { - static const int NSXMLDocumentXMLKind = 0; - static const int NSXMLDocumentXHTMLKind = 1; - static const int NSXMLDocumentHTMLKind = 2; - static const int NSXMLDocumentTextKind = 3; -} - -class NSXMLDTD extends NSXMLNode { - NSXMLDTD._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSXMLDTD] that points to the same underlying object as [other]. - static NSXMLDTD castFrom(T other) { - return NSXMLDTD._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSXMLDTD] that wraps the given raw object pointer. - static NSXMLDTD castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSXMLDTD._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSXMLDTD]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLDTD1); - } - - @override - NSXMLDTD init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSXMLDTD._(_ret, _lib, retain: true, release: true); - } - - @override - NSXMLDTD initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_1000( - _id, _lib._sel_initWithKind_options_1, kind, options); - return NSXMLDTD._(_ret, _lib, retain: true, release: true); - } - - NSXMLDTD initWithContentsOfURL_options_error_( - NSURL? url, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1006( - _id, - _lib._sel_initWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDTD._(_ret, _lib, retain: true, release: true); - } - - NSXMLDTD initWithData_options_error_( - NSData? data, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1007( - _id, - _lib._sel_initWithData_options_error_1, - data?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDTD._(_ret, _lib, retain: true, release: true); - } - - NSString? get publicID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_publicID1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set publicID(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setPublicID_1, value?._id ?? ffi.nullptr); - } - - NSString? get systemID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_systemID1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set systemID(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setSystemID_1, value?._id ?? ffi.nullptr); - } - - void insertChild_atIndex_(NSXMLNode? child, int index) { - return _lib._objc_msgSend_1010( - _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); - } - - void insertChildren_atIndex_(NSArray? children, int index) { - return _lib._objc_msgSend_1011(_id, _lib._sel_insertChildren_atIndex_1, - children?._id ?? ffi.nullptr, index); - } - - void removeChildAtIndex_(int index) { - return _lib._objc_msgSend_439(_id, _lib._sel_removeChildAtIndex_1, index); - } - - void setChildren_(NSArray? children) { - return _lib._objc_msgSend_441( - _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); - } - - void addChild_(NSXMLNode? child) { - return _lib._objc_msgSend_1012( - _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); - } - - void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { - return _lib._objc_msgSend_1013( - _id, - _lib._sel_replaceChildAtIndex_withNode_1, - index, - node?._id ?? ffi.nullptr); - } - - NSXMLDTDNode entityDeclarationForName_(NSString? name) { - final _ret = _lib._objc_msgSend_1017( - _id, _lib._sel_entityDeclarationForName_1, name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); - } - - NSXMLDTDNode notationDeclarationForName_(NSString? name) { - final _ret = _lib._objc_msgSend_1017( - _id, _lib._sel_notationDeclarationForName_1, name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); - } - - NSXMLDTDNode elementDeclarationForName_(NSString? name) { - final _ret = _lib._objc_msgSend_1017( - _id, _lib._sel_elementDeclarationForName_1, name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); - } - - NSXMLDTDNode attributeDeclarationForName_elementName_( - NSString? name, NSString? elementName) { - final _ret = _lib._objc_msgSend_1018( - _id, - _lib._sel_attributeDeclarationForName_elementName_1, - name?._id ?? ffi.nullptr, - elementName?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); - } - - static NSXMLDTDNode predefinedEntityDeclarationForName_( - HidListenerBindingsSwift _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1017( - _lib._class_NSXMLDTD1, - _lib._sel_predefinedEntityDeclarationForName_1, - name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); - } - - static NSObject document(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLDTD1, _lib._sel_document1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject documentWithRootElement_( - HidListenerBindingsSwift _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_1001(_lib._class_NSXMLDTD1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_( - HidListenerBindingsSwift _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_URI_( - HidListenerBindingsSwift _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTD1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_stringValue_( - HidListenerBindingsSwift _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTD1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_children_attributes_( - HidListenerBindingsSwift _lib, - NSString? name, - NSArray? children, - NSArray? attributes) { - final _ret = _lib._objc_msgSend_1002( - _lib._class_NSXMLDTD1, - _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, - children?._id ?? ffi.nullptr, - attributes?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject attributeWithName_stringValue_( - HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTD1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject attributeWithName_URI_stringValue_( - HidListenerBindingsSwift _lib, - NSString? name, - NSString? URI, - NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( - _lib._class_NSXMLDTD1, - _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject namespaceWithName_stringValue_( - HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTD1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject processingInstructionWithName_stringValue_( - HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTD1, - _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject commentWithStringValue_( - HidListenerBindingsSwift _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject textWithStringValue_( - HidListenerBindingsSwift _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject DTDNodeWithXMLString_( - HidListenerBindingsSwift _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSString localNameForName_( - HidListenerBindingsSwift _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTD1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString prefixForName_( - HidListenerBindingsSwift _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTD1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSXMLNode predefinedNamespaceForPrefix_( - HidListenerBindingsSwift _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1016(_lib._class_NSXMLDTD1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - static NSXMLDTD new1(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLDTD1, _lib._sel_new1); - return NSXMLDTD._(_ret, _lib, retain: false, release: true); - } - - static NSXMLDTD alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLDTD1, _lib._sel_alloc1); - return NSXMLDTD._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSXMLDTD1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSXMLDTD1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSXMLDTD1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSXMLDTD1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLDTD1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSXMLDTD1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSXMLDTD1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSXMLDTD1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSXMLDTD1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class NSXMLDTDNode extends NSXMLNode { - NSXMLDTDNode._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSXMLDTDNode] that points to the same underlying object as [other]. - static NSXMLDTDNode castFrom(T other) { - return NSXMLDTDNode._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSXMLDTDNode] that wraps the given raw object pointer. - static NSXMLDTDNode castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSXMLDTDNode._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSXMLDTDNode]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLDTDNode1); - } - - NSXMLDTDNode initWithXMLString_(NSString? string) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithXMLString_1, string?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); - } - - @override - NSXMLDTDNode initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_1000( - _id, _lib._sel_initWithKind_options_1, kind, options); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); - } - - @override - NSXMLDTDNode init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); - } - - int get DTDKind { - return _lib._objc_msgSend_1014(_id, _lib._sel_DTDKind1); - } - - set DTDKind(int value) { - _lib._objc_msgSend_1015(_id, _lib._sel_setDTDKind_1, value); - } - - bool get external1 { - return _lib._objc_msgSend_12(_id, _lib._sel_isExternal1); - } - - NSString? get publicID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_publicID1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set publicID(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setPublicID_1, value?._id ?? ffi.nullptr); - } - - NSString? get systemID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_systemID1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set systemID(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setSystemID_1, value?._id ?? ffi.nullptr); - } - - NSString? get notationName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_notationName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set notationName(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setNotationName_1, value?._id ?? ffi.nullptr); - } - - static NSObject document(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLDTDNode1, _lib._sel_document1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject documentWithRootElement_( - HidListenerBindingsSwift _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_1001(_lib._class_NSXMLDTDNode1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_( - HidListenerBindingsSwift _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_URI_( - HidListenerBindingsSwift _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTDNode1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_stringValue_( - HidListenerBindingsSwift _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTDNode1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_children_attributes_( - HidListenerBindingsSwift _lib, - NSString? name, - NSArray? children, - NSArray? attributes) { - final _ret = _lib._objc_msgSend_1002( - _lib._class_NSXMLDTDNode1, - _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, - children?._id ?? ffi.nullptr, - attributes?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject attributeWithName_stringValue_( - HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTDNode1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject attributeWithName_URI_stringValue_( - HidListenerBindingsSwift _lib, - NSString? name, - NSString? URI, - NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( - _lib._class_NSXMLDTDNode1, - _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject namespaceWithName_stringValue_( - HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTDNode1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject processingInstructionWithName_stringValue_( - HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTDNode1, - _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject commentWithStringValue_( - HidListenerBindingsSwift _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject textWithStringValue_( - HidListenerBindingsSwift _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject DTDNodeWithXMLString_( - HidListenerBindingsSwift _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSString localNameForName_( - HidListenerBindingsSwift _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTDNode1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString prefixForName_( - HidListenerBindingsSwift _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTDNode1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSXMLNode predefinedNamespaceForPrefix_( - HidListenerBindingsSwift _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1016(_lib._class_NSXMLDTDNode1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - static NSXMLDTDNode new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLDTDNode1, _lib._sel_new1); - return NSXMLDTDNode._(_ret, _lib, retain: false, release: true); - } - - static NSXMLDTDNode alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLDTDNode1, _lib._sel_alloc1); - return NSXMLDTDNode._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_NSXMLDTDNode1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_NSXMLDTDNode1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSXMLDTDNode1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSXMLDTDNode1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLDTDNode1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSXMLDTDNode1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_NSXMLDTDNode1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSXMLDTDNode1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSXMLDTDNode1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSXMLDTDNodeKind { - static const int NSXMLEntityGeneralKind = 1; - static const int NSXMLEntityParsedKind = 2; - static const int NSXMLEntityUnparsedKind = 3; - static const int NSXMLEntityParameterKind = 4; - static const int NSXMLEntityPredefined = 5; - static const int NSXMLAttributeCDATAKind = 6; - static const int NSXMLAttributeIDKind = 7; - static const int NSXMLAttributeIDRefKind = 8; - static const int NSXMLAttributeIDRefsKind = 9; - static const int NSXMLAttributeEntityKind = 10; - static const int NSXMLAttributeEntitiesKind = 11; - static const int NSXMLAttributeNMTokenKind = 12; - static const int NSXMLAttributeNMTokensKind = 13; - static const int NSXMLAttributeEnumerationKind = 14; - static const int NSXMLAttributeNotationKind = 15; - static const int NSXMLElementDeclarationUndefinedKind = 16; - static const int NSXMLElementDeclarationEmptyKind = 17; - static const int NSXMLElementDeclarationAnyKind = 18; - static const int NSXMLElementDeclarationMixedKind = 19; - static const int NSXMLElementDeclarationElementKind = 20; -} - -class HidListenerBindings extends NSObject { - HidListenerBindings._( - ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [HidListenerBindings] that points to the same underlying object as [other]. - static HidListenerBindings castFrom(T other) { - return HidListenerBindings._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [HidListenerBindings] that wraps the given raw object pointer. - static HidListenerBindings castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return HidListenerBindings._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [HidListenerBindings]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_HidListenerBindings1); - } - - static void InitializeDartAPIWithData_( - HidListenerBindingsSwift _lib, ffi.Pointer data) { - return _lib._objc_msgSend_47(_lib._class_HidListenerBindings1, - _lib._sel_InitializeDartAPIWithData_1, data); - } - - static bool InitializeListeners(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_HidListenerBindings1, _lib._sel_InitializeListeners1); - } - - static bool SetKeyboardListenerWithPort_( - HidListenerBindingsSwift _lib, int port) { - return _lib._objc_msgSend_1034(_lib._class_HidListenerBindings1, - _lib._sel_SetKeyboardListenerWithPort_1, port); - } - - static bool SetMouseListenerWithPort_( - HidListenerBindingsSwift _lib, int port) { - return _lib._objc_msgSend_1034(_lib._class_HidListenerBindings1, - _lib._sel_SetMouseListenerWithPort_1, port); - } - - @override - HidListenerBindings init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return HidListenerBindings._(_ret, _lib, retain: true, release: true); - } - - static HidListenerBindings new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_HidListenerBindings1, _lib._sel_new1); - return HidListenerBindings._(_ret, _lib, retain: false, release: true); - } - - static HidListenerBindings alloc(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_HidListenerBindings1, _lib._sel_alloc1); - return HidListenerBindings._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_HidListenerBindings1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_HidListenerBindings1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_HidListenerBindings1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_HidListenerBindings1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_HidListenerBindings1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_HidListenerBindings1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_HidListenerBindings1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_HidListenerBindings1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_HidListenerBindings1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -class MacOsKeyboardEvent extends NSObject { - MacOsKeyboardEvent._(ffi.Pointer id, HidListenerBindingsSwift lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [MacOsKeyboardEvent] that points to the same underlying object as [other]. - static MacOsKeyboardEvent castFrom(T other) { - return MacOsKeyboardEvent._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [MacOsKeyboardEvent] that wraps the given raw object pointer. - static MacOsKeyboardEvent castFromPointer( - HidListenerBindingsSwift lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return MacOsKeyboardEvent._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [MacOsKeyboardEvent]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_MacOsKeyboardEvent1); - } - - int get eventType { - return _lib._objc_msgSend_1035(_id, _lib._sel_eventType1); - } - - set eventType(int value) { - _lib._objc_msgSend_1036(_id, _lib._sel_setEventType_1, value); - } - - NSString? get characters { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_characters1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set characters(NSString? value) { - _lib._objc_msgSend_509( - _id, _lib._sel_setCharacters_1, value?._id ?? ffi.nullptr); - } - - NSString? get charactersIgnoringModifiers { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_charactersIgnoringModifiers1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set charactersIgnoringModifiers(NSString? value) { - _lib._objc_msgSend_509(_id, _lib._sel_setCharactersIgnoringModifiers_1, - value?._id ?? ffi.nullptr); - } - - int get keyCode { - return _lib._objc_msgSend_78(_id, _lib._sel_keyCode1); - } - - set keyCode(int value) { - _lib._objc_msgSend_590(_id, _lib._sel_setKeyCode_1, value); - } - - int get modifiers { - return _lib._objc_msgSend_78(_id, _lib._sel_modifiers1); - } - - set modifiers(int value) { - _lib._objc_msgSend_590(_id, _lib._sel_setModifiers_1, value); - } - - bool get isMedia { - return _lib._objc_msgSend_12(_id, _lib._sel_isMedia1); - } - - set isMedia(bool value) { - _lib._objc_msgSend_492(_id, _lib._sel_setIsMedia_1, value); - } - - int get mediaEventType { - return _lib._objc_msgSend_1037(_id, _lib._sel_mediaEventType1); - } - - set mediaEventType(int value) { - _lib._objc_msgSend_1038(_id, _lib._sel_setMediaEventType_1, value); - } - - @override - MacOsKeyboardEvent init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return MacOsKeyboardEvent._(_ret, _lib, retain: true, release: true); - } - - static MacOsKeyboardEvent new1(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_MacOsKeyboardEvent1, _lib._sel_new1); - return MacOsKeyboardEvent._(_ret, _lib, retain: false, release: true); - } - - static MacOsKeyboardEvent alloc(HidListenerBindingsSwift _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_MacOsKeyboardEvent1, _lib._sel_alloc1); - return MacOsKeyboardEvent._(_ret, _lib, retain: false, release: true); - } - - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - HidListenerBindingsSwift _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - return _lib._objc_msgSend_14( - _lib._class_MacOsKeyboardEvent1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - HidListenerBindingsSwift _lib, NSObject aTarget) { - return _lib._objc_msgSend_15(_lib._class_MacOsKeyboardEvent1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } - - static bool getAccessInstanceVariablesDirectly( - HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12(_lib._class_MacOsKeyboardEvent1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(HidListenerBindingsSwift _lib) { - return _lib._objc_msgSend_12( - _lib._class_MacOsKeyboardEvent1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_MacOsKeyboardEvent1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); - } - - static bool automaticallyNotifiesObserversForKey_( - HidListenerBindingsSwift _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_MacOsKeyboardEvent1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { - return _lib._objc_msgSend_82( - _lib._class_MacOsKeyboardEvent1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); - } - - static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_MacOsKeyboardEvent1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_MacOsKeyboardEvent1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class MacOsKeyboardEventType { - static const int MacOsKeyboardEventTypeKeyDown = 0; - static const int MacOsKeyboardEventTypeKeyUp = 1; -} - -abstract class MacOsMediaEventType { - static const int MacOsMediaEventTypePlay = 0; - static const int MacOsMediaEventTypePrevious = 1; - static const int MacOsMediaEventTypeNext = 2; - static const int MacOsMediaEventTypeRewind = 3; - static const int MacOsMediaEventTypeFast = 4; - static const int MacOsMediaEventTypeMute = 5; - static const int MacOsMediaEventTypeBrightnessUp = 6; - static const int MacOsMediaEventTypeBrightnessDown = 7; - static const int MacOsMediaEventTypeVolumeUp = 8; - static const int MacOsMediaEventTypeVolumeDown = 9; -} +// ignore_for_file: always_specify_types +// ignore_for_file: camel_case_types +// ignore_for_file: non_constant_identifier_names +// ignore_for_file: constant_identifier_names +// ignore_for_file: no_leading_underscores_for_local_identifiers +// ignore_for_file: library_private_types_in_public_api + +// AUTO GENERATED FILE, DO NOT EDIT. +// +// Generated by `package:ffigen`. +// ignore_for_file: type=lint +import 'dart:ffi' as ffi; +import 'package:ffi/ffi.dart' as pkg_ffi; + +/// Bindings for 'macos/Bindings/HidListener.h' +/// +class HidListenerBindingsSwift { + /// Holds the symbol lookup function. + final ffi.Pointer Function(String symbolName) + _lookup; + + /// The symbols are looked up in [dynamicLibrary]. + HidListenerBindingsSwift(ffi.DynamicLibrary dynamicLibrary) + : _lookup = dynamicLibrary.lookup; + + /// The symbols are looked up with [lookup]. + HidListenerBindingsSwift.fromLookup( + ffi.Pointer Function(String symbolName) + lookup) + : _lookup = lookup; + + ffi.Pointer _registerName1(String name) { + final cstr = name.toNativeUtf8(); + final sel = _sel_registerName(cstr.cast()); + pkg_ffi.calloc.free(cstr); + return sel; + } + + ffi.Pointer _sel_registerName( + ffi.Pointer str, + ) { + return __sel_registerName( + str, + ); + } + + late final __sel_registerNamePtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('sel_registerName'); + late final __sel_registerName = __sel_registerNamePtr + .asFunction Function(ffi.Pointer)>(); + + ffi.Pointer _getClass1(String name) { + final cstr = name.toNativeUtf8(); + final clazz = _objc_getClass(cstr.cast()); + pkg_ffi.calloc.free(cstr); + if (clazz == ffi.nullptr) { + throw Exception('Failed to load Objective-C class: $name'); + } + return clazz; + } + + ffi.Pointer _objc_getClass( + ffi.Pointer str, + ) { + return __objc_getClass( + str, + ); + } + + late final __objc_getClassPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('objc_getClass'); + late final __objc_getClass = __objc_getClassPtr + .asFunction Function(ffi.Pointer)>(); + + ffi.Pointer _objc_retain( + ffi.Pointer value, + ) { + return __objc_retain( + value, + ); + } + + late final __objc_retainPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('objc_retain'); + late final __objc_retain = __objc_retainPtr + .asFunction Function(ffi.Pointer)>(); + + void _objc_release( + ffi.Pointer value, + ) { + return __objc_release( + value, + ); + } + + late final __objc_releasePtr = + _lookup)>>( + 'objc_release'); + late final __objc_release = + __objc_releasePtr.asFunction)>(); + + late final _objc_releaseFinalizer2 = + ffi.NativeFinalizer(__objc_releasePtr.cast()); + late final _class_NSObject1 = _getClass1("NSObject"); + late final _sel_load1 = _registerName1("load"); + void _objc_msgSend_1( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1( + obj, + sel, + ); + } + + late final __objc_msgSend_1Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1 = __objc_msgSend_1Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_initialize1 = _registerName1("initialize"); + late final _sel_init1 = _registerName1("init"); + instancetype _objc_msgSend_2( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_2( + obj, + sel, + ); + } + + late final __objc_msgSend_2Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_2 = __objc_msgSend_2Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_new1 = _registerName1("new"); + late final _sel_allocWithZone_1 = _registerName1("allocWithZone:"); + instancetype _objc_msgSend_3( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_NSZone> zone, + ) { + return __objc_msgSend_3( + obj, + sel, + zone, + ); + } + + late final __objc_msgSend_3Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_NSZone>)>>('objc_msgSend'); + late final __objc_msgSend_3 = __objc_msgSend_3Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_NSZone>)>(); + + late final _sel_alloc1 = _registerName1("alloc"); + late final _sel_dealloc1 = _registerName1("dealloc"); + late final _sel_finalize1 = _registerName1("finalize"); + late final _sel_copy1 = _registerName1("copy"); + late final _sel_mutableCopy1 = _registerName1("mutableCopy"); + late final _sel_copyWithZone_1 = _registerName1("copyWithZone:"); + late final _sel_mutableCopyWithZone_1 = + _registerName1("mutableCopyWithZone:"); + late final _sel_instancesRespondToSelector_1 = + _registerName1("instancesRespondToSelector:"); + bool _objc_msgSend_4( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aSelector, + ) { + return __objc_msgSend_4( + obj, + sel, + aSelector, + ); + } + + late final __objc_msgSend_4Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_4 = __objc_msgSend_4Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + bool _objc_msgSend_0( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer clazz, + ) { + return __objc_msgSend_0( + obj, + sel, + clazz, + ); + } + + late final __objc_msgSend_0Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_0 = __objc_msgSend_0Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_isKindOfClass_1 = _registerName1("isKindOfClass:"); + late final _class_Protocol1 = _getClass1("Protocol"); + late final _sel_conformsToProtocol_1 = _registerName1("conformsToProtocol:"); + bool _objc_msgSend_5( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer protocol, + ) { + return __objc_msgSend_5( + obj, + sel, + protocol, + ); + } + + late final __objc_msgSend_5Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_5 = __objc_msgSend_5Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_methodForSelector_1 = _registerName1("methodForSelector:"); + ffi.Pointer> _objc_msgSend_6( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aSelector, + ) { + return __objc_msgSend_6( + obj, + sel, + aSelector, + ); + } + + late final __objc_msgSend_6Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer> Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_6 = __objc_msgSend_6Ptr.asFunction< + ffi.Pointer> Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_instanceMethodForSelector_1 = + _registerName1("instanceMethodForSelector:"); + late final _sel_doesNotRecognizeSelector_1 = + _registerName1("doesNotRecognizeSelector:"); + void _objc_msgSend_7( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aSelector, + ) { + return __objc_msgSend_7( + obj, + sel, + aSelector, + ); + } + + late final __objc_msgSend_7Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_7 = __objc_msgSend_7Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_forwardingTargetForSelector_1 = + _registerName1("forwardingTargetForSelector:"); + ffi.Pointer _objc_msgSend_8( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aSelector, + ) { + return __objc_msgSend_8( + obj, + sel, + aSelector, + ); + } + + late final __objc_msgSend_8Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_8 = __objc_msgSend_8Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _class_NSInvocation1 = _getClass1("NSInvocation"); + late final _class_NSMethodSignature1 = _getClass1("NSMethodSignature"); + late final _sel_signatureWithObjCTypes_1 = + _registerName1("signatureWithObjCTypes:"); + ffi.Pointer _objc_msgSend_9( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer types, + ) { + return __objc_msgSend_9( + obj, + sel, + types, + ); + } + + late final __objc_msgSend_9Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_9 = __objc_msgSend_9Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_numberOfArguments1 = _registerName1("numberOfArguments"); + int _objc_msgSend_10( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_10( + obj, + sel, + ); + } + + late final __objc_msgSend_10Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_10 = __objc_msgSend_10Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_getArgumentTypeAtIndex_1 = + _registerName1("getArgumentTypeAtIndex:"); + ffi.Pointer _objc_msgSend_11( + ffi.Pointer obj, + ffi.Pointer sel, + int idx, + ) { + return __objc_msgSend_11( + obj, + sel, + idx, + ); + } + + late final __objc_msgSend_11Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_11 = __objc_msgSend_11Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_frameLength1 = _registerName1("frameLength"); + late final _sel_isOneway1 = _registerName1("isOneway"); + bool _objc_msgSend_12( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_12( + obj, + sel, + ); + } + + late final __objc_msgSend_12Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_12 = __objc_msgSend_12Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_methodReturnType1 = _registerName1("methodReturnType"); + ffi.Pointer _objc_msgSend_13( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_13( + obj, + sel, + ); + } + + late final __objc_msgSend_13Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_13 = __objc_msgSend_13Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_methodReturnLength1 = _registerName1("methodReturnLength"); + late final _sel_cancelPreviousPerformRequestsWithTarget_selector_object_1 = + _registerName1( + "cancelPreviousPerformRequestsWithTarget:selector:object:"); + void _objc_msgSend_14( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aTarget, + ffi.Pointer aSelector, + ffi.Pointer anArgument, + ) { + return __objc_msgSend_14( + obj, + sel, + aTarget, + aSelector, + anArgument, + ); + } + + late final __objc_msgSend_14Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_14 = __objc_msgSend_14Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_cancelPreviousPerformRequestsWithTarget_1 = + _registerName1("cancelPreviousPerformRequestsWithTarget:"); + void _objc_msgSend_15( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aTarget, + ) { + return __objc_msgSend_15( + obj, + sel, + aTarget, + ); + } + + late final __objc_msgSend_15Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_15 = __objc_msgSend_15Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_accessInstanceVariablesDirectly1 = + _registerName1("accessInstanceVariablesDirectly"); + late final _sel_useStoredAccessor1 = _registerName1("useStoredAccessor"); + late final _class_NSSet1 = _getClass1("NSSet"); + late final _sel_count1 = _registerName1("count"); + late final _sel_member_1 = _registerName1("member:"); + ffi.Pointer _objc_msgSend_16( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer object, + ) { + return __objc_msgSend_16( + obj, + sel, + object, + ); + } + + late final __objc_msgSend_16Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_16 = __objc_msgSend_16Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _class_NSEnumerator1 = _getClass1("NSEnumerator"); + late final _sel_nextObject1 = _registerName1("nextObject"); + late final _sel_allObjects1 = _registerName1("allObjects"); + late final _class_NSString1 = _getClass1("NSString"); + late final _sel_length1 = _registerName1("length"); + late final _sel_characterAtIndex_1 = _registerName1("characterAtIndex:"); + int _objc_msgSend_17( + ffi.Pointer obj, + ffi.Pointer sel, + int index, + ) { + return __objc_msgSend_17( + obj, + sel, + index, + ); + } + + late final __objc_msgSend_17Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedShort Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_17 = __objc_msgSend_17Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _class_NSCoder1 = _getClass1("NSCoder"); + late final _sel_encodeValueOfObjCType_at_1 = + _registerName1("encodeValueOfObjCType:at:"); + void _objc_msgSend_18( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer type, + ffi.Pointer addr, + ) { + return __objc_msgSend_18( + obj, + sel, + type, + addr, + ); + } + + late final __objc_msgSend_18Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_18 = __objc_msgSend_18Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _class_NSData1 = _getClass1("NSData"); + late final _sel_bytes1 = _registerName1("bytes"); + ffi.Pointer _objc_msgSend_19( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_19( + obj, + sel, + ); + } + + late final __objc_msgSend_19Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_19 = __objc_msgSend_19Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_description1 = _registerName1("description"); + ffi.Pointer _objc_msgSend_20( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_20( + obj, + sel, + ); + } + + late final __objc_msgSend_20Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_20 = __objc_msgSend_20Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_getBytes_length_1 = _registerName1("getBytes:length:"); + void _objc_msgSend_21( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer buffer, + int length, + ) { + return __objc_msgSend_21( + obj, + sel, + buffer, + length, + ); + } + + late final __objc_msgSend_21Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_21 = __objc_msgSend_21Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_getBytes_range_1 = _registerName1("getBytes:range:"); + void _objc_msgSend_22( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer buffer, + _NSRange range, + ) { + return __objc_msgSend_22( + obj, + sel, + buffer, + range, + ); + } + + late final __objc_msgSend_22Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_22 = __objc_msgSend_22Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>(); + + late final _sel_isEqualToData_1 = _registerName1("isEqualToData:"); + bool _objc_msgSend_23( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer other, + ) { + return __objc_msgSend_23( + obj, + sel, + other, + ); + } + + late final __objc_msgSend_23Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_23 = __objc_msgSend_23Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_subdataWithRange_1 = _registerName1("subdataWithRange:"); + ffi.Pointer _objc_msgSend_24( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ) { + return __objc_msgSend_24( + obj, + sel, + range, + ); + } + + late final __objc_msgSend_24Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_24 = __objc_msgSend_24Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, _NSRange)>(); + + late final _sel_writeToFile_atomically_1 = + _registerName1("writeToFile:atomically:"); + bool _objc_msgSend_25( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + bool useAuxiliaryFile, + ) { + return __objc_msgSend_25( + obj, + sel, + path, + useAuxiliaryFile, + ); + } + + late final __objc_msgSend_25Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_25 = __objc_msgSend_25Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); + + late final _class_NSURL1 = _getClass1("NSURL"); + late final _sel_initWithScheme_host_path_1 = + _registerName1("initWithScheme:host:path:"); + instancetype _objc_msgSend_26( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer scheme, + ffi.Pointer host, + ffi.Pointer path, + ) { + return __objc_msgSend_26( + obj, + sel, + scheme, + host, + path, + ); + } + + late final __objc_msgSend_26Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_26 = __objc_msgSend_26Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_initFileURLWithPath_isDirectory_relativeToURL_1 = + _registerName1("initFileURLWithPath:isDirectory:relativeToURL:"); + instancetype _objc_msgSend_27( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + bool isDir, + ffi.Pointer baseURL, + ) { + return __objc_msgSend_27( + obj, + sel, + path, + isDir, + baseURL, + ); + } + + late final __objc_msgSend_27Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_27 = __objc_msgSend_27Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool, ffi.Pointer)>(); + + late final _sel_initFileURLWithPath_relativeToURL_1 = + _registerName1("initFileURLWithPath:relativeToURL:"); + instancetype _objc_msgSend_28( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer baseURL, + ) { + return __objc_msgSend_28( + obj, + sel, + path, + baseURL, + ); + } + + late final __objc_msgSend_28Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_28 = __objc_msgSend_28Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_initFileURLWithPath_isDirectory_1 = + _registerName1("initFileURLWithPath:isDirectory:"); + instancetype _objc_msgSend_29( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + bool isDir, + ) { + return __objc_msgSend_29( + obj, + sel, + path, + isDir, + ); + } + + late final __objc_msgSend_29Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_29 = __objc_msgSend_29Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); + + late final _sel_initFileURLWithPath_1 = + _registerName1("initFileURLWithPath:"); + instancetype _objc_msgSend_30( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ) { + return __objc_msgSend_30( + obj, + sel, + path, + ); + } + + late final __objc_msgSend_30Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_30 = __objc_msgSend_30Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_fileURLWithPath_isDirectory_relativeToURL_1 = + _registerName1("fileURLWithPath:isDirectory:relativeToURL:"); + ffi.Pointer _objc_msgSend_31( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + bool isDir, + ffi.Pointer baseURL, + ) { + return __objc_msgSend_31( + obj, + sel, + path, + isDir, + baseURL, + ); + } + + late final __objc_msgSend_31Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_31 = __objc_msgSend_31Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer)>(); + + late final _sel_fileURLWithPath_relativeToURL_1 = + _registerName1("fileURLWithPath:relativeToURL:"); + ffi.Pointer _objc_msgSend_32( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer baseURL, + ) { + return __objc_msgSend_32( + obj, + sel, + path, + baseURL, + ); + } + + late final __objc_msgSend_32Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_32 = __objc_msgSend_32Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_fileURLWithPath_isDirectory_1 = + _registerName1("fileURLWithPath:isDirectory:"); + ffi.Pointer _objc_msgSend_33( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + bool isDir, + ) { + return __objc_msgSend_33( + obj, + sel, + path, + isDir, + ); + } + + late final __objc_msgSend_33Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_33 = __objc_msgSend_33Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, bool)>(); + + late final _sel_fileURLWithPath_1 = _registerName1("fileURLWithPath:"); + ffi.Pointer _objc_msgSend_34( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ) { + return __objc_msgSend_34( + obj, + sel, + path, + ); + } + + late final __objc_msgSend_34Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_34 = __objc_msgSend_34Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1 = + _registerName1( + "initFileURLWithFileSystemRepresentation:isDirectory:relativeToURL:"); + instancetype _objc_msgSend_35( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + bool isDir, + ffi.Pointer baseURL, + ) { + return __objc_msgSend_35( + obj, + sel, + path, + isDir, + baseURL, + ); + } + + late final __objc_msgSend_35Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_35 = __objc_msgSend_35Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool, ffi.Pointer)>(); + + late final _sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1 = + _registerName1( + "fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:"); + ffi.Pointer _objc_msgSend_36( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + bool isDir, + ffi.Pointer baseURL, + ) { + return __objc_msgSend_36( + obj, + sel, + path, + isDir, + baseURL, + ); + } + + late final __objc_msgSend_36Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_36 = __objc_msgSend_36Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer)>(); + + late final _sel_initWithString_1 = _registerName1("initWithString:"); + late final _sel_initWithString_relativeToURL_1 = + _registerName1("initWithString:relativeToURL:"); + late final _sel_URLWithString_1 = _registerName1("URLWithString:"); + late final _sel_URLWithString_relativeToURL_1 = + _registerName1("URLWithString:relativeToURL:"); + late final _sel_initWithDataRepresentation_relativeToURL_1 = + _registerName1("initWithDataRepresentation:relativeToURL:"); + instancetype _objc_msgSend_37( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer data, + ffi.Pointer baseURL, + ) { + return __objc_msgSend_37( + obj, + sel, + data, + baseURL, + ); + } + + late final __objc_msgSend_37Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_37 = __objc_msgSend_37Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_URLWithDataRepresentation_relativeToURL_1 = + _registerName1("URLWithDataRepresentation:relativeToURL:"); + ffi.Pointer _objc_msgSend_38( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer data, + ffi.Pointer baseURL, + ) { + return __objc_msgSend_38( + obj, + sel, + data, + baseURL, + ); + } + + late final __objc_msgSend_38Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_38 = __objc_msgSend_38Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_initAbsoluteURLWithDataRepresentation_relativeToURL_1 = + _registerName1("initAbsoluteURLWithDataRepresentation:relativeToURL:"); + late final _sel_absoluteURLWithDataRepresentation_relativeToURL_1 = + _registerName1("absoluteURLWithDataRepresentation:relativeToURL:"); + late final _sel_dataRepresentation1 = _registerName1("dataRepresentation"); + ffi.Pointer _objc_msgSend_39( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_39( + obj, + sel, + ); + } + + late final __objc_msgSend_39Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_39 = __objc_msgSend_39Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_absoluteString1 = _registerName1("absoluteString"); + late final _sel_relativeString1 = _registerName1("relativeString"); + late final _sel_baseURL1 = _registerName1("baseURL"); + ffi.Pointer _objc_msgSend_40( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_40( + obj, + sel, + ); + } + + late final __objc_msgSend_40Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_40 = __objc_msgSend_40Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_absoluteURL1 = _registerName1("absoluteURL"); + late final _sel_scheme1 = _registerName1("scheme"); + late final _sel_resourceSpecifier1 = _registerName1("resourceSpecifier"); + late final _sel_host1 = _registerName1("host"); + late final _class_NSNumber1 = _getClass1("NSNumber"); + late final _class_NSValue1 = _getClass1("NSValue"); + late final _sel_getValue_size_1 = _registerName1("getValue:size:"); + late final _sel_objCType1 = _registerName1("objCType"); + late final _sel_initWithBytes_objCType_1 = + _registerName1("initWithBytes:objCType:"); + instancetype _objc_msgSend_41( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ffi.Pointer type, + ) { + return __objc_msgSend_41( + obj, + sel, + value, + type, + ); + } + + late final __objc_msgSend_41Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_41 = __objc_msgSend_41Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_initWithCoder_1 = _registerName1("initWithCoder:"); + instancetype _objc_msgSend_42( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer coder, + ) { + return __objc_msgSend_42( + obj, + sel, + coder, + ); + } + + late final __objc_msgSend_42Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_42 = __objc_msgSend_42Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_valueWithBytes_objCType_1 = + _registerName1("valueWithBytes:objCType:"); + ffi.Pointer _objc_msgSend_43( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ffi.Pointer type, + ) { + return __objc_msgSend_43( + obj, + sel, + value, + type, + ); + } + + late final __objc_msgSend_43Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_43 = __objc_msgSend_43Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_value_withObjCType_1 = _registerName1("value:withObjCType:"); + late final _sel_valueWithNonretainedObject_1 = + _registerName1("valueWithNonretainedObject:"); + ffi.Pointer _objc_msgSend_44( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anObject, + ) { + return __objc_msgSend_44( + obj, + sel, + anObject, + ); + } + + late final __objc_msgSend_44Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_44 = __objc_msgSend_44Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_nonretainedObjectValue1 = + _registerName1("nonretainedObjectValue"); + late final _sel_valueWithPointer_1 = _registerName1("valueWithPointer:"); + ffi.Pointer _objc_msgSend_45( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer pointer, + ) { + return __objc_msgSend_45( + obj, + sel, + pointer, + ); + } + + late final __objc_msgSend_45Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_45 = __objc_msgSend_45Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_pointerValue1 = _registerName1("pointerValue"); + late final _sel_isEqualToValue_1 = _registerName1("isEqualToValue:"); + bool _objc_msgSend_46( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_46( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_46Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_46 = __objc_msgSend_46Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_getValue_1 = _registerName1("getValue:"); + void _objc_msgSend_47( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_47( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_47Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_47 = __objc_msgSend_47Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_valueWithRange_1 = _registerName1("valueWithRange:"); + ffi.Pointer _objc_msgSend_48( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ) { + return __objc_msgSend_48( + obj, + sel, + range, + ); + } + + late final __objc_msgSend_48Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_48 = __objc_msgSend_48Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, _NSRange)>(); + + late final _sel_rangeValue1 = _registerName1("rangeValue"); + _NSRange _objc_msgSend_49( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_49( + obj, + sel, + ); + } + + late final __objc_msgSend_49Ptr = _lookup< + ffi.NativeFunction< + _NSRange Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_49 = __objc_msgSend_49Ptr.asFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_valueWithPoint_1 = _registerName1("valueWithPoint:"); + ffi.Pointer _objc_msgSend_50( + ffi.Pointer obj, + ffi.Pointer sel, + CGPoint point, + ) { + return __objc_msgSend_50( + obj, + sel, + point, + ); + } + + late final __objc_msgSend_50Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, CGPoint)>>('objc_msgSend'); + late final __objc_msgSend_50 = __objc_msgSend_50Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, CGPoint)>(); + + late final _sel_valueWithSize_1 = _registerName1("valueWithSize:"); + ffi.Pointer _objc_msgSend_51( + ffi.Pointer obj, + ffi.Pointer sel, + CGSize size, + ) { + return __objc_msgSend_51( + obj, + sel, + size, + ); + } + + late final __objc_msgSend_51Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, CGSize)>>('objc_msgSend'); + late final __objc_msgSend_51 = __objc_msgSend_51Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, CGSize)>(); + + late final _sel_valueWithRect_1 = _registerName1("valueWithRect:"); + ffi.Pointer _objc_msgSend_52( + ffi.Pointer obj, + ffi.Pointer sel, + CGRect rect, + ) { + return __objc_msgSend_52( + obj, + sel, + rect, + ); + } + + late final __objc_msgSend_52Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, CGRect)>>('objc_msgSend'); + late final __objc_msgSend_52 = __objc_msgSend_52Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, CGRect)>(); + + late final _sel_valueWithEdgeInsets_1 = + _registerName1("valueWithEdgeInsets:"); + ffi.Pointer _objc_msgSend_53( + ffi.Pointer obj, + ffi.Pointer sel, + NSEdgeInsets insets, + ) { + return __objc_msgSend_53( + obj, + sel, + insets, + ); + } + + late final __objc_msgSend_53Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, NSEdgeInsets)>>('objc_msgSend'); + late final __objc_msgSend_53 = __objc_msgSend_53Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, NSEdgeInsets)>(); + + late final _sel_pointValue1 = _registerName1("pointValue"); + CGPoint _objc_msgSend_54( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_54( + obj, + sel, + ); + } + + late final __objc_msgSend_54Ptr = _lookup< + ffi.NativeFunction< + CGPoint Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_54 = __objc_msgSend_54Ptr.asFunction< + CGPoint Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_sizeValue1 = _registerName1("sizeValue"); + CGSize _objc_msgSend_55( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_55( + obj, + sel, + ); + } + + late final __objc_msgSend_55Ptr = _lookup< + ffi.NativeFunction< + CGSize Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_55 = __objc_msgSend_55Ptr.asFunction< + CGSize Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_rectValue1 = _registerName1("rectValue"); + CGRect _objc_msgSend_56( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_56( + obj, + sel, + ); + } + + late final __objc_msgSend_56Ptr = _lookup< + ffi.NativeFunction< + CGRect Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_56 = __objc_msgSend_56Ptr.asFunction< + CGRect Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_edgeInsetsValue1 = _registerName1("edgeInsetsValue"); + NSEdgeInsets _objc_msgSend_57( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_57( + obj, + sel, + ); + } + + late final __objc_msgSend_57Ptr = _lookup< + ffi.NativeFunction< + NSEdgeInsets Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_57 = __objc_msgSend_57Ptr.asFunction< + NSEdgeInsets Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_keyPathsForValuesAffectingValueForKey_1 = + _registerName1("keyPathsForValuesAffectingValueForKey:"); + ffi.Pointer _objc_msgSend_58( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ) { + return __objc_msgSend_58( + obj, + sel, + key, + ); + } + + late final __objc_msgSend_58Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_58 = __objc_msgSend_58Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_automaticallyNotifiesObserversForKey_1 = + _registerName1("automaticallyNotifiesObserversForKey:"); + bool _objc_msgSend_59( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ) { + return __objc_msgSend_59( + obj, + sel, + key, + ); + } + + late final __objc_msgSend_59Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_59 = __objc_msgSend_59Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _class_NSArray1 = _getClass1("NSArray"); + late final _sel_objectAtIndex_1 = _registerName1("objectAtIndex:"); + ffi.Pointer _objc_msgSend_60( + ffi.Pointer obj, + ffi.Pointer sel, + int index, + ) { + return __objc_msgSend_60( + obj, + sel, + index, + ); + } + + late final __objc_msgSend_60Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_60 = __objc_msgSend_60Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_initWithObjects_count_1 = + _registerName1("initWithObjects:count:"); + instancetype _objc_msgSend_61( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> objects, + int cnt, + ) { + return __objc_msgSend_61( + obj, + sel, + objects, + cnt, + ); + } + + late final __objc_msgSend_61Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_61 = __objc_msgSend_61Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>, int)>(); + + late final _sel_arrayByAddingObject_1 = + _registerName1("arrayByAddingObject:"); + ffi.Pointer _objc_msgSend_62( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anObject, + ) { + return __objc_msgSend_62( + obj, + sel, + anObject, + ); + } + + late final __objc_msgSend_62Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_62 = __objc_msgSend_62Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_arrayByAddingObjectsFromArray_1 = + _registerName1("arrayByAddingObjectsFromArray:"); + ffi.Pointer _objc_msgSend_63( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer otherArray, + ) { + return __objc_msgSend_63( + obj, + sel, + otherArray, + ); + } + + late final __objc_msgSend_63Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_63 = __objc_msgSend_63Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_componentsJoinedByString_1 = + _registerName1("componentsJoinedByString:"); + ffi.Pointer _objc_msgSend_64( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer separator, + ) { + return __objc_msgSend_64( + obj, + sel, + separator, + ); + } + + late final __objc_msgSend_64Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_64 = __objc_msgSend_64Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_containsObject_1 = _registerName1("containsObject:"); + late final _sel_descriptionWithLocale_1 = + _registerName1("descriptionWithLocale:"); + ffi.Pointer _objc_msgSend_65( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer locale, + ) { + return __objc_msgSend_65( + obj, + sel, + locale, + ); + } + + late final __objc_msgSend_65Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_65 = __objc_msgSend_65Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_descriptionWithLocale_indent_1 = + _registerName1("descriptionWithLocale:indent:"); + ffi.Pointer _objc_msgSend_66( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer locale, + int level, + ) { + return __objc_msgSend_66( + obj, + sel, + locale, + level, + ); + } + + late final __objc_msgSend_66Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_66 = __objc_msgSend_66Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_firstObjectCommonWithArray_1 = + _registerName1("firstObjectCommonWithArray:"); + ffi.Pointer _objc_msgSend_67( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer otherArray, + ) { + return __objc_msgSend_67( + obj, + sel, + otherArray, + ); + } + + late final __objc_msgSend_67Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_67 = __objc_msgSend_67Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_getObjects_range_1 = _registerName1("getObjects:range:"); + void _objc_msgSend_68( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> objects, + _NSRange range, + ) { + return __objc_msgSend_68( + obj, + sel, + objects, + range, + ); + } + + late final __objc_msgSend_68Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_68 = __objc_msgSend_68Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>, _NSRange)>(); + + late final _sel_indexOfObject_1 = _registerName1("indexOfObject:"); + int _objc_msgSend_69( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anObject, + ) { + return __objc_msgSend_69( + obj, + sel, + anObject, + ); + } + + late final __objc_msgSend_69Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_69 = __objc_msgSend_69Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_indexOfObject_inRange_1 = + _registerName1("indexOfObject:inRange:"); + int _objc_msgSend_70( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anObject, + _NSRange range, + ) { + return __objc_msgSend_70( + obj, + sel, + anObject, + range, + ); + } + + late final __objc_msgSend_70Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_70 = __objc_msgSend_70Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>(); + + late final _sel_indexOfObjectIdenticalTo_1 = + _registerName1("indexOfObjectIdenticalTo:"); + late final _sel_indexOfObjectIdenticalTo_inRange_1 = + _registerName1("indexOfObjectIdenticalTo:inRange:"); + late final _sel_isEqualToArray_1 = _registerName1("isEqualToArray:"); + bool _objc_msgSend_71( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer otherArray, + ) { + return __objc_msgSend_71( + obj, + sel, + otherArray, + ); + } + + late final __objc_msgSend_71Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_71 = __objc_msgSend_71Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_firstObject1 = _registerName1("firstObject"); + late final _sel_lastObject1 = _registerName1("lastObject"); + late final _sel_objectEnumerator1 = _registerName1("objectEnumerator"); + ffi.Pointer _objc_msgSend_72( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_72( + obj, + sel, + ); + } + + late final __objc_msgSend_72Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_72 = __objc_msgSend_72Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_reverseObjectEnumerator1 = + _registerName1("reverseObjectEnumerator"); + late final _sel_sortedArrayHint1 = _registerName1("sortedArrayHint"); + late final _sel_sortedArrayUsingFunction_context_1 = + _registerName1("sortedArrayUsingFunction:context:"); + ffi.Pointer _objc_msgSend_73( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>> + comparator, + ffi.Pointer context, + ) { + return __objc_msgSend_73( + obj, + sel, + comparator, + context, + ); + } + + late final __objc_msgSend_73Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_73 = __objc_msgSend_73Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>, + ffi.Pointer)>(); + + late final _sel_sortedArrayUsingFunction_context_hint_1 = + _registerName1("sortedArrayUsingFunction:context:hint:"); + ffi.Pointer _objc_msgSend_74( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>> + comparator, + ffi.Pointer context, + ffi.Pointer hint, + ) { + return __objc_msgSend_74( + obj, + sel, + comparator, + context, + hint, + ); + } + + late final __objc_msgSend_74Ptr = _lookup< + 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)>>('objc_msgSend'); + late final __objc_msgSend_74 = __objc_msgSend_74Ptr.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)>(); + + late final _sel_sortedArrayUsingSelector_1 = + _registerName1("sortedArrayUsingSelector:"); + ffi.Pointer _objc_msgSend_75( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer comparator, + ) { + return __objc_msgSend_75( + obj, + sel, + comparator, + ); + } + + late final __objc_msgSend_75Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_75 = __objc_msgSend_75Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_subarrayWithRange_1 = _registerName1("subarrayWithRange:"); + ffi.Pointer _objc_msgSend_76( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ) { + return __objc_msgSend_76( + obj, + sel, + range, + ); + } + + late final __objc_msgSend_76Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_76 = __objc_msgSend_76Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, _NSRange)>(); + + late final _class_NSError1 = _getClass1("NSError"); + late final _sel_initWithDomain_code_userInfo_1 = + _registerName1("initWithDomain:code:userInfo:"); + instancetype _objc_msgSend_77( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer domain, + int code, + ffi.Pointer dict, + ) { + return __objc_msgSend_77( + obj, + sel, + domain, + code, + dict, + ); + } + + late final __objc_msgSend_77Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_77 = __objc_msgSend_77Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); + + late final _sel_errorWithDomain_code_userInfo_1 = + _registerName1("errorWithDomain:code:userInfo:"); + late final _sel_domain1 = _registerName1("domain"); + late final _sel_code1 = _registerName1("code"); + int _objc_msgSend_78( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_78( + obj, + sel, + ); + } + + late final __objc_msgSend_78Ptr = _lookup< + ffi.NativeFunction< + ffi.Long Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_78 = __objc_msgSend_78Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_userInfo1 = _registerName1("userInfo"); + late final _sel_localizedDescription1 = + _registerName1("localizedDescription"); + late final _sel_localizedFailureReason1 = + _registerName1("localizedFailureReason"); + late final _sel_localizedRecoverySuggestion1 = + _registerName1("localizedRecoverySuggestion"); + late final _sel_localizedRecoveryOptions1 = + _registerName1("localizedRecoveryOptions"); + ffi.Pointer _objc_msgSend_79( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_79( + obj, + sel, + ); + } + + late final __objc_msgSend_79Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_79 = __objc_msgSend_79Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_recoveryAttempter1 = _registerName1("recoveryAttempter"); + late final _sel_helpAnchor1 = _registerName1("helpAnchor"); + late final _sel_underlyingErrors1 = _registerName1("underlyingErrors"); + ffi.Pointer<_ObjCBlockDesc> _newBlockDesc1() { + final d = + pkg_ffi.calloc.allocate<_ObjCBlockDesc>(ffi.sizeOf<_ObjCBlockDesc>()); + d.ref.reserved = 0; + d.ref.size = ffi.sizeOf<_ObjCBlock>(); + d.ref.copy_helper = ffi.nullptr; + d.ref.dispose_helper = ffi.nullptr; + d.ref.signature = ffi.nullptr; + return d; + } + + late final _objc_block_desc1 = _newBlockDesc1(); + late final _objc_concrete_global_block1 = + _lookup('_NSConcreteGlobalBlock'); + ffi.Pointer<_ObjCBlock> _newBlock1( + ffi.Pointer invoke, ffi.Pointer target) { + final b = pkg_ffi.calloc.allocate<_ObjCBlock>(ffi.sizeOf<_ObjCBlock>()); + b.ref.isa = _objc_concrete_global_block1; + b.ref.flags = 0; + b.ref.reserved = 0; + b.ref.invoke = invoke; + b.ref.target = target; + b.ref.descriptor = _objc_block_desc1; + final copy = _Block_copy(b.cast()).cast<_ObjCBlock>(); + pkg_ffi.calloc.free(b); + return copy; + } + + ffi.Pointer _Block_copy( + ffi.Pointer value, + ) { + return __Block_copy( + value, + ); + } + + late final __Block_copyPtr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>('_Block_copy'); + late final __Block_copy = __Block_copyPtr + .asFunction Function(ffi.Pointer)>(); + + void _Block_release( + ffi.Pointer value, + ) { + return __Block_release( + value, + ); + } + + late final __Block_releasePtr = + _lookup)>>( + '_Block_release'); + late final __Block_release = + __Block_releasePtr.asFunction)>(); + + late final _objc_releaseFinalizer11 = + ffi.NativeFinalizer(__Block_releasePtr.cast()); + late final _sel_setUserInfoValueProviderForDomain_provider_1 = + _registerName1("setUserInfoValueProviderForDomain:provider:"); + void _objc_msgSend_80( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer errorDomain, + ffi.Pointer<_ObjCBlock> provider, + ) { + return __objc_msgSend_80( + obj, + sel, + errorDomain, + provider, + ); + } + + late final __objc_msgSend_80Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_80 = __objc_msgSend_80Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_userInfoValueProviderForDomain_1 = + _registerName1("userInfoValueProviderForDomain:"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_81( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer err, + ffi.Pointer userInfoKey, + ffi.Pointer errorDomain, + ) { + return __objc_msgSend_81( + obj, + sel, + err, + userInfoKey, + errorDomain, + ); + } + + late final __objc_msgSend_81Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_81 = __objc_msgSend_81Ptr.asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_setKeys_triggerChangeNotificationsForDependentKey_1 = + _registerName1("setKeys:triggerChangeNotificationsForDependentKey:"); + void _objc_msgSend_82( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer keys, + ffi.Pointer dependentKey, + ) { + return __objc_msgSend_82( + obj, + sel, + keys, + dependentKey, + ); + } + + late final __objc_msgSend_82Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_82 = __objc_msgSend_82Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_classFallbacksForKeyedArchiver1 = + _registerName1("classFallbacksForKeyedArchiver"); + late final _sel_classForKeyedUnarchiver1 = + _registerName1("classForKeyedUnarchiver"); + late final _sel_writeToURL_error_1 = _registerName1("writeToURL:error:"); + bool _objc_msgSend_83( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer> error, + ) { + return __objc_msgSend_83( + obj, + sel, + url, + error, + ); + } + + late final __objc_msgSend_83Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_83 = __objc_msgSend_83Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>(); + + late final _sel_makeObjectsPerformSelector_1 = + _registerName1("makeObjectsPerformSelector:"); + late final _sel_makeObjectsPerformSelector_withObject_1 = + _registerName1("makeObjectsPerformSelector:withObject:"); + void _objc_msgSend_84( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aSelector, + ffi.Pointer argument, + ) { + return __objc_msgSend_84( + obj, + sel, + aSelector, + argument, + ); + } + + late final __objc_msgSend_84Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_84 = __objc_msgSend_84Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _class_NSIndexSet1 = _getClass1("NSIndexSet"); + late final _sel_indexSet1 = _registerName1("indexSet"); + late final _sel_indexSetWithIndex_1 = _registerName1("indexSetWithIndex:"); + late final _sel_indexSetWithIndexesInRange_1 = + _registerName1("indexSetWithIndexesInRange:"); + instancetype _objc_msgSend_85( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ) { + return __objc_msgSend_85( + obj, + sel, + range, + ); + } + + late final __objc_msgSend_85Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_85 = __objc_msgSend_85Ptr.asFunction< + instancetype Function( + ffi.Pointer, ffi.Pointer, _NSRange)>(); + + late final _sel_initWithIndexesInRange_1 = + _registerName1("initWithIndexesInRange:"); + late final _sel_initWithIndexSet_1 = _registerName1("initWithIndexSet:"); + instancetype _objc_msgSend_86( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer indexSet, + ) { + return __objc_msgSend_86( + obj, + sel, + indexSet, + ); + } + + late final __objc_msgSend_86Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_86 = __objc_msgSend_86Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_initWithIndex_1 = _registerName1("initWithIndex:"); + late final _sel_isEqualToIndexSet_1 = _registerName1("isEqualToIndexSet:"); + bool _objc_msgSend_87( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer indexSet, + ) { + return __objc_msgSend_87( + obj, + sel, + indexSet, + ); + } + + late final __objc_msgSend_87Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_87 = __objc_msgSend_87Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_firstIndex1 = _registerName1("firstIndex"); + late final _sel_lastIndex1 = _registerName1("lastIndex"); + late final _sel_indexGreaterThanIndex_1 = + _registerName1("indexGreaterThanIndex:"); + int _objc_msgSend_88( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_88( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_88Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_88 = __objc_msgSend_88Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_indexLessThanIndex_1 = _registerName1("indexLessThanIndex:"); + late final _sel_indexGreaterThanOrEqualToIndex_1 = + _registerName1("indexGreaterThanOrEqualToIndex:"); + late final _sel_indexLessThanOrEqualToIndex_1 = + _registerName1("indexLessThanOrEqualToIndex:"); + late final _sel_getIndexes_maxCount_inIndexRange_1 = + _registerName1("getIndexes:maxCount:inIndexRange:"); + int _objc_msgSend_89( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer indexBuffer, + int bufferSize, + ffi.Pointer<_NSRange> range, + ) { + return __objc_msgSend_89( + obj, + sel, + indexBuffer, + bufferSize, + range, + ); + } + + late final __objc_msgSend_89Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer<_NSRange>)>>('objc_msgSend'); + late final __objc_msgSend_89 = __objc_msgSend_89Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_NSRange>)>(); + + late final _sel_countOfIndexesInRange_1 = + _registerName1("countOfIndexesInRange:"); + int _objc_msgSend_90( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ) { + return __objc_msgSend_90( + obj, + sel, + range, + ); + } + + late final __objc_msgSend_90Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_90 = __objc_msgSend_90Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, _NSRange)>(); + + late final _sel_containsIndex_1 = _registerName1("containsIndex:"); + bool _objc_msgSend_91( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_91( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_91Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_91 = __objc_msgSend_91Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_containsIndexesInRange_1 = + _registerName1("containsIndexesInRange:"); + bool _objc_msgSend_92( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ) { + return __objc_msgSend_92( + obj, + sel, + range, + ); + } + + late final __objc_msgSend_92Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_92 = __objc_msgSend_92Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, _NSRange)>(); + + late final _sel_containsIndexes_1 = _registerName1("containsIndexes:"); + late final _sel_intersectsIndexesInRange_1 = + _registerName1("intersectsIndexesInRange:"); + late final _sel_enumerateIndexesUsingBlock_1 = + _registerName1("enumerateIndexesUsingBlock:"); + void _objc_msgSend_93( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_93( + obj, + sel, + block, + ); + } + + late final __objc_msgSend_93Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_93 = __objc_msgSend_93Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_enumerateIndexesWithOptions_usingBlock_1 = + _registerName1("enumerateIndexesWithOptions:usingBlock:"); + void _objc_msgSend_94( + ffi.Pointer obj, + ffi.Pointer sel, + int opts, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_94( + obj, + sel, + opts, + block, + ); + } + + late final __objc_msgSend_94Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_94 = __objc_msgSend_94Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_enumerateIndexesInRange_options_usingBlock_1 = + _registerName1("enumerateIndexesInRange:options:usingBlock:"); + void _objc_msgSend_95( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + int opts, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_95( + obj, + sel, + range, + opts, + block, + ); + } + + late final __objc_msgSend_95Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_95 = __objc_msgSend_95Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_indexPassingTest_1 = _registerName1("indexPassingTest:"); + int _objc_msgSend_96( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> predicate, + ) { + return __objc_msgSend_96( + obj, + sel, + predicate, + ); + } + + late final __objc_msgSend_96Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_96 = __objc_msgSend_96Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_indexWithOptions_passingTest_1 = + _registerName1("indexWithOptions:passingTest:"); + int _objc_msgSend_97( + ffi.Pointer obj, + ffi.Pointer sel, + int opts, + ffi.Pointer<_ObjCBlock> predicate, + ) { + return __objc_msgSend_97( + obj, + sel, + opts, + predicate, + ); + } + + late final __objc_msgSend_97Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_97 = __objc_msgSend_97Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_indexInRange_options_passingTest_1 = + _registerName1("indexInRange:options:passingTest:"); + int _objc_msgSend_98( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + int opts, + ffi.Pointer<_ObjCBlock> predicate, + ) { + return __objc_msgSend_98( + obj, + sel, + range, + opts, + predicate, + ); + } + + late final __objc_msgSend_98Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_98 = __objc_msgSend_98Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, _NSRange, int, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_indexesPassingTest_1 = _registerName1("indexesPassingTest:"); + ffi.Pointer _objc_msgSend_99( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> predicate, + ) { + return __objc_msgSend_99( + obj, + sel, + predicate, + ); + } + + late final __objc_msgSend_99Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_99 = __objc_msgSend_99Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_indexesWithOptions_passingTest_1 = + _registerName1("indexesWithOptions:passingTest:"); + ffi.Pointer _objc_msgSend_100( + ffi.Pointer obj, + ffi.Pointer sel, + int opts, + ffi.Pointer<_ObjCBlock> predicate, + ) { + return __objc_msgSend_100( + obj, + sel, + opts, + predicate, + ); + } + + late final __objc_msgSend_100Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_100 = __objc_msgSend_100Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_indexesInRange_options_passingTest_1 = + _registerName1("indexesInRange:options:passingTest:"); + ffi.Pointer _objc_msgSend_101( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + int opts, + ffi.Pointer<_ObjCBlock> predicate, + ) { + return __objc_msgSend_101( + obj, + sel, + range, + opts, + predicate, + ); + } + + late final __objc_msgSend_101Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_101 = __objc_msgSend_101Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_enumerateRangesUsingBlock_1 = + _registerName1("enumerateRangesUsingBlock:"); + void _objc_msgSend_102( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_102( + obj, + sel, + block, + ); + } + + late final __objc_msgSend_102Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_102 = __objc_msgSend_102Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_enumerateRangesWithOptions_usingBlock_1 = + _registerName1("enumerateRangesWithOptions:usingBlock:"); + void _objc_msgSend_103( + ffi.Pointer obj, + ffi.Pointer sel, + int opts, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_103( + obj, + sel, + opts, + block, + ); + } + + late final __objc_msgSend_103Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_103 = __objc_msgSend_103Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_enumerateRangesInRange_options_usingBlock_1 = + _registerName1("enumerateRangesInRange:options:usingBlock:"); + void _objc_msgSend_104( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + int opts, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_104( + obj, + sel, + range, + opts, + block, + ); + } + + late final __objc_msgSend_104Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_104 = __objc_msgSend_104Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_objectsAtIndexes_1 = _registerName1("objectsAtIndexes:"); + ffi.Pointer _objc_msgSend_105( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer indexes, + ) { + return __objc_msgSend_105( + obj, + sel, + indexes, + ); + } + + late final __objc_msgSend_105Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_105 = __objc_msgSend_105Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_objectAtIndexedSubscript_1 = + _registerName1("objectAtIndexedSubscript:"); + late final _sel_enumerateObjectsUsingBlock_1 = + _registerName1("enumerateObjectsUsingBlock:"); + void _objc_msgSend_106( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_106( + obj, + sel, + block, + ); + } + + late final __objc_msgSend_106Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_106 = __objc_msgSend_106Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_enumerateObjectsWithOptions_usingBlock_1 = + _registerName1("enumerateObjectsWithOptions:usingBlock:"); + void _objc_msgSend_107( + ffi.Pointer obj, + ffi.Pointer sel, + int opts, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_107( + obj, + sel, + opts, + block, + ); + } + + late final __objc_msgSend_107Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_107 = __objc_msgSend_107Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_enumerateObjectsAtIndexes_options_usingBlock_1 = + _registerName1("enumerateObjectsAtIndexes:options:usingBlock:"); + void _objc_msgSend_108( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer s, + int opts, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_108( + obj, + sel, + s, + opts, + block, + ); + } + + late final __objc_msgSend_108Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_108 = __objc_msgSend_108Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_indexOfObjectPassingTest_1 = + _registerName1("indexOfObjectPassingTest:"); + int _objc_msgSend_109( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> predicate, + ) { + return __objc_msgSend_109( + obj, + sel, + predicate, + ); + } + + late final __objc_msgSend_109Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_109 = __objc_msgSend_109Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_indexOfObjectWithOptions_passingTest_1 = + _registerName1("indexOfObjectWithOptions:passingTest:"); + int _objc_msgSend_110( + ffi.Pointer obj, + ffi.Pointer sel, + int opts, + ffi.Pointer<_ObjCBlock> predicate, + ) { + return __objc_msgSend_110( + obj, + sel, + opts, + predicate, + ); + } + + late final __objc_msgSend_110Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_110 = __objc_msgSend_110Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_indexOfObjectAtIndexes_options_passingTest_1 = + _registerName1("indexOfObjectAtIndexes:options:passingTest:"); + int _objc_msgSend_111( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer s, + int opts, + ffi.Pointer<_ObjCBlock> predicate, + ) { + return __objc_msgSend_111( + obj, + sel, + s, + opts, + predicate, + ); + } + + late final __objc_msgSend_111Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_111 = __objc_msgSend_111Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_indexesOfObjectsPassingTest_1 = + _registerName1("indexesOfObjectsPassingTest:"); + ffi.Pointer _objc_msgSend_112( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> predicate, + ) { + return __objc_msgSend_112( + obj, + sel, + predicate, + ); + } + + late final __objc_msgSend_112Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_112 = __objc_msgSend_112Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_indexesOfObjectsWithOptions_passingTest_1 = + _registerName1("indexesOfObjectsWithOptions:passingTest:"); + ffi.Pointer _objc_msgSend_113( + ffi.Pointer obj, + ffi.Pointer sel, + int opts, + ffi.Pointer<_ObjCBlock> predicate, + ) { + return __objc_msgSend_113( + obj, + sel, + opts, + predicate, + ); + } + + late final __objc_msgSend_113Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_113 = __objc_msgSend_113Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_indexesOfObjectsAtIndexes_options_passingTest_1 = + _registerName1("indexesOfObjectsAtIndexes:options:passingTest:"); + ffi.Pointer _objc_msgSend_114( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer s, + int opts, + ffi.Pointer<_ObjCBlock> predicate, + ) { + return __objc_msgSend_114( + obj, + sel, + s, + opts, + predicate, + ); + } + + late final __objc_msgSend_114Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_114 = __objc_msgSend_114Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_sortedArrayUsingComparator_1 = + _registerName1("sortedArrayUsingComparator:"); + ffi.Pointer _objc_msgSend_115( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> cmptr, + ) { + return __objc_msgSend_115( + obj, + sel, + cmptr, + ); + } + + late final __objc_msgSend_115Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_115 = __objc_msgSend_115Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_sortedArrayWithOptions_usingComparator_1 = + _registerName1("sortedArrayWithOptions:usingComparator:"); + ffi.Pointer _objc_msgSend_116( + ffi.Pointer obj, + ffi.Pointer sel, + int opts, + ffi.Pointer<_ObjCBlock> cmptr, + ) { + return __objc_msgSend_116( + obj, + sel, + opts, + cmptr, + ); + } + + late final __objc_msgSend_116Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_116 = __objc_msgSend_116Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_indexOfObject_inSortedRange_options_usingComparator_1 = + _registerName1("indexOfObject:inSortedRange:options:usingComparator:"); + int _objc_msgSend_117( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer obj1, + _NSRange r, + int opts, + ffi.Pointer<_ObjCBlock> cmp, + ) { + return __objc_msgSend_117( + obj, + sel, + obj1, + r, + opts, + cmp, + ); + } + + late final __objc_msgSend_117Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_117 = __objc_msgSend_117Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_array1 = _registerName1("array"); + late final _sel_arrayWithObject_1 = _registerName1("arrayWithObject:"); + late final _sel_arrayWithObjects_count_1 = + _registerName1("arrayWithObjects:count:"); + late final _sel_arrayWithObjects_1 = _registerName1("arrayWithObjects:"); + late final _sel_arrayWithArray_1 = _registerName1("arrayWithArray:"); + late final _sel_initWithObjects_1 = _registerName1("initWithObjects:"); + late final _sel_initWithArray_1 = _registerName1("initWithArray:"); + late final _sel_initWithArray_copyItems_1 = + _registerName1("initWithArray:copyItems:"); + instancetype _objc_msgSend_118( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer array, + bool flag, + ) { + return __objc_msgSend_118( + obj, + sel, + array, + flag, + ); + } + + late final __objc_msgSend_118Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_118 = __objc_msgSend_118Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); + + late final _sel_initWithContentsOfURL_error_1 = + _registerName1("initWithContentsOfURL:error:"); + ffi.Pointer _objc_msgSend_119( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer> error, + ) { + return __objc_msgSend_119( + obj, + sel, + url, + error, + ); + } + + late final __objc_msgSend_119Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_119 = __objc_msgSend_119Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_arrayWithContentsOfURL_error_1 = + _registerName1("arrayWithContentsOfURL:error:"); + late final _sel_differenceFromArray_withOptions_usingEquivalenceTest_1 = + _registerName1("differenceFromArray:withOptions:usingEquivalenceTest:"); + ffi.Pointer _objc_msgSend_120( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer other, + int options, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_120( + obj, + sel, + other, + options, + block, + ); + } + + late final __objc_msgSend_120Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_120 = __objc_msgSend_120Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_differenceFromArray_withOptions_1 = + _registerName1("differenceFromArray:withOptions:"); + ffi.Pointer _objc_msgSend_121( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer other, + int options, + ) { + return __objc_msgSend_121( + obj, + sel, + other, + options, + ); + } + + late final __objc_msgSend_121Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_121 = __objc_msgSend_121Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_differenceFromArray_1 = + _registerName1("differenceFromArray:"); + late final _sel_arrayByApplyingDifference_1 = + _registerName1("arrayByApplyingDifference:"); + late final _sel_getObjects_1 = _registerName1("getObjects:"); + void _objc_msgSend_122( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> objects, + ) { + return __objc_msgSend_122( + obj, + sel, + objects, + ); + } + + late final __objc_msgSend_122Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_122 = __objc_msgSend_122Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_arrayWithContentsOfFile_1 = + _registerName1("arrayWithContentsOfFile:"); + ffi.Pointer _objc_msgSend_123( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ) { + return __objc_msgSend_123( + obj, + sel, + path, + ); + } + + late final __objc_msgSend_123Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_123 = __objc_msgSend_123Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_arrayWithContentsOfURL_1 = + _registerName1("arrayWithContentsOfURL:"); + ffi.Pointer _objc_msgSend_124( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ) { + return __objc_msgSend_124( + obj, + sel, + url, + ); + } + + late final __objc_msgSend_124Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_124 = __objc_msgSend_124Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_initWithContentsOfFile_1 = + _registerName1("initWithContentsOfFile:"); + late final _sel_initWithContentsOfURL_1 = + _registerName1("initWithContentsOfURL:"); + late final _sel_writeToURL_atomically_1 = + _registerName1("writeToURL:atomically:"); + bool _objc_msgSend_125( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + bool atomically, + ) { + return __objc_msgSend_125( + obj, + sel, + url, + atomically, + ); + } + + late final __objc_msgSend_125Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_125 = __objc_msgSend_125Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); + + late final _sel_pathsMatchingExtensions_1 = + _registerName1("pathsMatchingExtensions:"); + late final _sel_valueForKey_1 = _registerName1("valueForKey:"); + late final _sel_setValue_forKey_1 = _registerName1("setValue:forKey:"); + void _objc_msgSend_126( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ffi.Pointer key, + ) { + return __objc_msgSend_126( + obj, + sel, + value, + key, + ); + } + + late final __objc_msgSend_126Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_126 = __objc_msgSend_126Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_addObserver_toObjectsAtIndexes_forKeyPath_options_context_1 = + _registerName1( + "addObserver:toObjectsAtIndexes:forKeyPath:options:context:"); + void _objc_msgSend_127( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer observer, + ffi.Pointer indexes, + ffi.Pointer keyPath, + int options, + ffi.Pointer context, + ) { + return __objc_msgSend_127( + obj, + sel, + observer, + indexes, + keyPath, + options, + context, + ); + } + + late final __objc_msgSend_127Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_127 = __objc_msgSend_127Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer)>(); + + late final _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_context_1 = + _registerName1("removeObserver:fromObjectsAtIndexes:forKeyPath:context:"); + void _objc_msgSend_128( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer observer, + ffi.Pointer indexes, + ffi.Pointer keyPath, + ffi.Pointer context, + ) { + return __objc_msgSend_128( + obj, + sel, + observer, + indexes, + keyPath, + context, + ); + } + + late final __objc_msgSend_128Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_128 = __objc_msgSend_128Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_1 = + _registerName1("removeObserver:fromObjectsAtIndexes:forKeyPath:"); + void _objc_msgSend_129( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer observer, + ffi.Pointer indexes, + ffi.Pointer keyPath, + ) { + return __objc_msgSend_129( + obj, + sel, + observer, + indexes, + keyPath, + ); + } + + late final __objc_msgSend_129Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_129 = __objc_msgSend_129Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_addObserver_forKeyPath_options_context_1 = + _registerName1("addObserver:forKeyPath:options:context:"); + void _objc_msgSend_130( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer observer, + ffi.Pointer keyPath, + int options, + ffi.Pointer context, + ) { + return __objc_msgSend_130( + obj, + sel, + observer, + keyPath, + options, + context, + ); + } + + late final __objc_msgSend_130Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_130 = __objc_msgSend_130Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer)>(); + + late final _sel_removeObserver_forKeyPath_context_1 = + _registerName1("removeObserver:forKeyPath:context:"); + void _objc_msgSend_131( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer observer, + ffi.Pointer keyPath, + ffi.Pointer context, + ) { + return __objc_msgSend_131( + obj, + sel, + observer, + keyPath, + context, + ); + } + + late final __objc_msgSend_131Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_131 = __objc_msgSend_131Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_removeObserver_forKeyPath_1 = + _registerName1("removeObserver:forKeyPath:"); + void _objc_msgSend_132( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer observer, + ffi.Pointer keyPath, + ) { + return __objc_msgSend_132( + obj, + sel, + observer, + keyPath, + ); + } + + late final __objc_msgSend_132Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_132 = __objc_msgSend_132Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_sortedArrayUsingDescriptors_1 = + _registerName1("sortedArrayUsingDescriptors:"); + late final _class_NSPredicate1 = _getClass1("NSPredicate"); + late final _sel_predicateWithFormat_argumentArray_1 = + _registerName1("predicateWithFormat:argumentArray:"); + ffi.Pointer _objc_msgSend_133( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer predicateFormat, + ffi.Pointer arguments, + ) { + return __objc_msgSend_133( + obj, + sel, + predicateFormat, + arguments, + ); + } + + late final __objc_msgSend_133Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_133 = __objc_msgSend_133Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_predicateWithFormat_1 = + _registerName1("predicateWithFormat:"); + ffi.Pointer _objc_msgSend_134( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer predicateFormat, + ) { + return __objc_msgSend_134( + obj, + sel, + predicateFormat, + ); + } + + late final __objc_msgSend_134Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_134 = __objc_msgSend_134Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_predicateWithFormat_arguments_1 = + _registerName1("predicateWithFormat:arguments:"); + ffi.Pointer _objc_msgSend_135( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer predicateFormat, + ffi.Pointer<__va_list_tag> argList, + ) { + return __objc_msgSend_135( + obj, + sel, + predicateFormat, + argList, + ); + } + + late final __objc_msgSend_135Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); + late final __objc_msgSend_135 = __objc_msgSend_135Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>)>(); + + late final _sel_predicateFromMetadataQueryString_1 = + _registerName1("predicateFromMetadataQueryString:"); + late final _sel_predicateWithValue_1 = _registerName1("predicateWithValue:"); + ffi.Pointer _objc_msgSend_136( + ffi.Pointer obj, + ffi.Pointer sel, + bool value, + ) { + return __objc_msgSend_136( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_136Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_136 = __objc_msgSend_136Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, bool)>(); + + late final _class_NSDictionary1 = _getClass1("NSDictionary"); + late final _sel_objectForKey_1 = _registerName1("objectForKey:"); + late final _sel_keyEnumerator1 = _registerName1("keyEnumerator"); + late final _sel_initWithObjects_forKeys_count_1 = + _registerName1("initWithObjects:forKeys:count:"); + instancetype _objc_msgSend_137( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt, + ) { + return __objc_msgSend_137( + obj, + sel, + objects, + keys, + cnt, + ); + } + + late final __objc_msgSend_137Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_137 = __objc_msgSend_137Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + int)>(); + + late final _sel_allKeys1 = _registerName1("allKeys"); + late final _sel_allKeysForObject_1 = _registerName1("allKeysForObject:"); + late final _sel_allValues1 = _registerName1("allValues"); + late final _sel_descriptionInStringsFileFormat1 = + _registerName1("descriptionInStringsFileFormat"); + late final _sel_isEqualToDictionary_1 = + _registerName1("isEqualToDictionary:"); + bool _objc_msgSend_138( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer otherDictionary, + ) { + return __objc_msgSend_138( + obj, + sel, + otherDictionary, + ); + } + + late final __objc_msgSend_138Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_138 = __objc_msgSend_138Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_objectsForKeys_notFoundMarker_1 = + _registerName1("objectsForKeys:notFoundMarker:"); + ffi.Pointer _objc_msgSend_139( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer keys, + ffi.Pointer marker, + ) { + return __objc_msgSend_139( + obj, + sel, + keys, + marker, + ); + } + + late final __objc_msgSend_139Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_139 = __objc_msgSend_139Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_keysSortedByValueUsingSelector_1 = + _registerName1("keysSortedByValueUsingSelector:"); + late final _sel_getObjects_andKeys_count_1 = + _registerName1("getObjects:andKeys:count:"); + void _objc_msgSend_140( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> objects, + ffi.Pointer> keys, + int count, + ) { + return __objc_msgSend_140( + obj, + sel, + objects, + keys, + count, + ); + } + + late final __objc_msgSend_140Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_140 = __objc_msgSend_140Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>, + int)>(); + + late final _sel_objectForKeyedSubscript_1 = + _registerName1("objectForKeyedSubscript:"); + late final _sel_enumerateKeysAndObjectsUsingBlock_1 = + _registerName1("enumerateKeysAndObjectsUsingBlock:"); + void _objc_msgSend_141( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_141( + obj, + sel, + block, + ); + } + + late final __objc_msgSend_141Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_141 = __objc_msgSend_141Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_enumerateKeysAndObjectsWithOptions_usingBlock_1 = + _registerName1("enumerateKeysAndObjectsWithOptions:usingBlock:"); + void _objc_msgSend_142( + ffi.Pointer obj, + ffi.Pointer sel, + int opts, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_142( + obj, + sel, + opts, + block, + ); + } + + late final __objc_msgSend_142Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_142 = __objc_msgSend_142Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_keysSortedByValueUsingComparator_1 = + _registerName1("keysSortedByValueUsingComparator:"); + late final _sel_keysSortedByValueWithOptions_usingComparator_1 = + _registerName1("keysSortedByValueWithOptions:usingComparator:"); + late final _sel_keysOfEntriesPassingTest_1 = + _registerName1("keysOfEntriesPassingTest:"); + ffi.Pointer _objc_msgSend_143( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> predicate, + ) { + return __objc_msgSend_143( + obj, + sel, + predicate, + ); + } + + late final __objc_msgSend_143Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_143 = __objc_msgSend_143Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_keysOfEntriesWithOptions_passingTest_1 = + _registerName1("keysOfEntriesWithOptions:passingTest:"); + ffi.Pointer _objc_msgSend_144( + ffi.Pointer obj, + ffi.Pointer sel, + int opts, + ffi.Pointer<_ObjCBlock> predicate, + ) { + return __objc_msgSend_144( + obj, + sel, + opts, + predicate, + ); + } + + late final __objc_msgSend_144Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_144 = __objc_msgSend_144Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_getObjects_andKeys_1 = _registerName1("getObjects:andKeys:"); + void _objc_msgSend_145( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> objects, + ffi.Pointer> keys, + ) { + return __objc_msgSend_145( + obj, + sel, + objects, + keys, + ); + } + + late final __objc_msgSend_145Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_145 = __objc_msgSend_145Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>)>(); + + late final _sel_dictionaryWithContentsOfFile_1 = + _registerName1("dictionaryWithContentsOfFile:"); + ffi.Pointer _objc_msgSend_146( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ) { + return __objc_msgSend_146( + obj, + sel, + path, + ); + } + + late final __objc_msgSend_146Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_146 = __objc_msgSend_146Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_dictionaryWithContentsOfURL_1 = + _registerName1("dictionaryWithContentsOfURL:"); + ffi.Pointer _objc_msgSend_147( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ) { + return __objc_msgSend_147( + obj, + sel, + url, + ); + } + + late final __objc_msgSend_147Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_147 = __objc_msgSend_147Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_dictionary1 = _registerName1("dictionary"); + late final _sel_dictionaryWithObject_forKey_1 = + _registerName1("dictionaryWithObject:forKey:"); + instancetype _objc_msgSend_148( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer object, + ffi.Pointer key, + ) { + return __objc_msgSend_148( + obj, + sel, + object, + key, + ); + } + + late final __objc_msgSend_148Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_148 = __objc_msgSend_148Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_dictionaryWithObjects_forKeys_count_1 = + _registerName1("dictionaryWithObjects:forKeys:count:"); + late final _sel_dictionaryWithObjectsAndKeys_1 = + _registerName1("dictionaryWithObjectsAndKeys:"); + late final _sel_dictionaryWithDictionary_1 = + _registerName1("dictionaryWithDictionary:"); + instancetype _objc_msgSend_149( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer dict, + ) { + return __objc_msgSend_149( + obj, + sel, + dict, + ); + } + + late final __objc_msgSend_149Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_149 = __objc_msgSend_149Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_dictionaryWithObjects_forKeys_1 = + _registerName1("dictionaryWithObjects:forKeys:"); + instancetype _objc_msgSend_150( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer objects, + ffi.Pointer keys, + ) { + return __objc_msgSend_150( + obj, + sel, + objects, + keys, + ); + } + + late final __objc_msgSend_150Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_150 = __objc_msgSend_150Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_initWithObjectsAndKeys_1 = + _registerName1("initWithObjectsAndKeys:"); + late final _sel_initWithDictionary_1 = _registerName1("initWithDictionary:"); + late final _sel_initWithDictionary_copyItems_1 = + _registerName1("initWithDictionary:copyItems:"); + instancetype _objc_msgSend_151( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer otherDictionary, + bool flag, + ) { + return __objc_msgSend_151( + obj, + sel, + otherDictionary, + flag, + ); + } + + late final __objc_msgSend_151Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_151 = __objc_msgSend_151Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); + + late final _sel_initWithObjects_forKeys_1 = + _registerName1("initWithObjects:forKeys:"); + ffi.Pointer _objc_msgSend_152( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer> error, + ) { + return __objc_msgSend_152( + obj, + sel, + url, + error, + ); + } + + late final __objc_msgSend_152Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_152 = __objc_msgSend_152Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_dictionaryWithContentsOfURL_error_1 = + _registerName1("dictionaryWithContentsOfURL:error:"); + late final _sel_sharedKeySetForKeys_1 = + _registerName1("sharedKeySetForKeys:"); + late final _sel_countByEnumeratingWithState_objects_count_1 = + _registerName1("countByEnumeratingWithState:objects:count:"); + int _objc_msgSend_153( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer state, + ffi.Pointer> buffer, + int len, + ) { + return __objc_msgSend_153( + obj, + sel, + state, + buffer, + len, + ); + } + + late final __objc_msgSend_153Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_153 = __objc_msgSend_153Ptr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + int)>(); + + late final _sel_fileSize1 = _registerName1("fileSize"); + int _objc_msgSend_154( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_154( + obj, + sel, + ); + } + + late final __objc_msgSend_154Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedLongLong Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_154 = __objc_msgSend_154Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _class_NSDate1 = _getClass1("NSDate"); + late final _sel_timeIntervalSinceReferenceDate1 = + _registerName1("timeIntervalSinceReferenceDate"); + double _objc_msgSend_155( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_155( + obj, + sel, + ); + } + + late final __objc_msgSend_155Ptr = _lookup< + ffi.NativeFunction< + ffi.Double Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_155 = __objc_msgSend_155Ptr.asFunction< + double Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_initWithTimeIntervalSinceReferenceDate_1 = + _registerName1("initWithTimeIntervalSinceReferenceDate:"); + instancetype _objc_msgSend_156( + ffi.Pointer obj, + ffi.Pointer sel, + double ti, + ) { + return __objc_msgSend_156( + obj, + sel, + ti, + ); + } + + late final __objc_msgSend_156Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_156 = __objc_msgSend_156Ptr.asFunction< + instancetype Function( + ffi.Pointer, ffi.Pointer, double)>(); + + late final _sel_timeIntervalSinceDate_1 = + _registerName1("timeIntervalSinceDate:"); + double _objc_msgSend_157( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anotherDate, + ) { + return __objc_msgSend_157( + obj, + sel, + anotherDate, + ); + } + + late final __objc_msgSend_157Ptr = _lookup< + ffi.NativeFunction< + ffi.Double Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_157 = __objc_msgSend_157Ptr.asFunction< + double Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_timeIntervalSinceNow1 = + _registerName1("timeIntervalSinceNow"); + late final _sel_timeIntervalSince19701 = + _registerName1("timeIntervalSince1970"); + late final _sel_addTimeInterval_1 = _registerName1("addTimeInterval:"); + late final _sel_dateByAddingTimeInterval_1 = + _registerName1("dateByAddingTimeInterval:"); + late final _sel_earlierDate_1 = _registerName1("earlierDate:"); + ffi.Pointer _objc_msgSend_158( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anotherDate, + ) { + return __objc_msgSend_158( + obj, + sel, + anotherDate, + ); + } + + late final __objc_msgSend_158Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_158 = __objc_msgSend_158Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_laterDate_1 = _registerName1("laterDate:"); + late final _sel_compare_1 = _registerName1("compare:"); + int _objc_msgSend_159( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer other, + ) { + return __objc_msgSend_159( + obj, + sel, + other, + ); + } + + late final __objc_msgSend_159Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_159 = __objc_msgSend_159Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_isEqualToDate_1 = _registerName1("isEqualToDate:"); + bool _objc_msgSend_160( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer otherDate, + ) { + return __objc_msgSend_160( + obj, + sel, + otherDate, + ); + } + + late final __objc_msgSend_160Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_160 = __objc_msgSend_160Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_date1 = _registerName1("date"); + late final _sel_dateWithTimeIntervalSinceNow_1 = + _registerName1("dateWithTimeIntervalSinceNow:"); + late final _sel_dateWithTimeIntervalSinceReferenceDate_1 = + _registerName1("dateWithTimeIntervalSinceReferenceDate:"); + late final _sel_dateWithTimeIntervalSince1970_1 = + _registerName1("dateWithTimeIntervalSince1970:"); + late final _sel_dateWithTimeInterval_sinceDate_1 = + _registerName1("dateWithTimeInterval:sinceDate:"); + instancetype _objc_msgSend_161( + ffi.Pointer obj, + ffi.Pointer sel, + double secsToBeAdded, + ffi.Pointer date, + ) { + return __objc_msgSend_161( + obj, + sel, + secsToBeAdded, + date, + ); + } + + late final __objc_msgSend_161Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Double, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_161 = __objc_msgSend_161Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + double, ffi.Pointer)>(); + + late final _sel_distantFuture1 = _registerName1("distantFuture"); + ffi.Pointer _objc_msgSend_162( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_162( + obj, + sel, + ); + } + + late final __objc_msgSend_162Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_162 = __objc_msgSend_162Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_distantPast1 = _registerName1("distantPast"); + late final _sel_now1 = _registerName1("now"); + late final _sel_initWithTimeIntervalSinceNow_1 = + _registerName1("initWithTimeIntervalSinceNow:"); + late final _sel_initWithTimeIntervalSince1970_1 = + _registerName1("initWithTimeIntervalSince1970:"); + late final _sel_initWithTimeInterval_sinceDate_1 = + _registerName1("initWithTimeInterval:sinceDate:"); + late final _sel_dateWithNaturalLanguageString_locale_1 = + _registerName1("dateWithNaturalLanguageString:locale:"); + ffi.Pointer _objc_msgSend_163( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, + ffi.Pointer locale, + ) { + return __objc_msgSend_163( + obj, + sel, + string, + locale, + ); + } + + late final __objc_msgSend_163Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_163 = __objc_msgSend_163Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_dateWithNaturalLanguageString_1 = + _registerName1("dateWithNaturalLanguageString:"); + late final _sel_dateWithString_1 = _registerName1("dateWithString:"); + late final _class_NSCalendarDate1 = _getClass1("NSCalendarDate"); + late final _sel_calendarDate1 = _registerName1("calendarDate"); + late final _sel_dateWithString_calendarFormat_locale_1 = + _registerName1("dateWithString:calendarFormat:locale:"); + ffi.Pointer _objc_msgSend_164( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer description, + ffi.Pointer format, + ffi.Pointer locale, + ) { + return __objc_msgSend_164( + obj, + sel, + description, + format, + locale, + ); + } + + late final __objc_msgSend_164Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_164 = __objc_msgSend_164Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_dateWithString_calendarFormat_1 = + _registerName1("dateWithString:calendarFormat:"); + ffi.Pointer _objc_msgSend_165( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer description, + ffi.Pointer format, + ) { + return __objc_msgSend_165( + obj, + sel, + description, + format, + ); + } + + late final __objc_msgSend_165Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_165 = __objc_msgSend_165Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _class_NSTimeZone1 = _getClass1("NSTimeZone"); + late final _sel_name1 = _registerName1("name"); + late final _sel_data1 = _registerName1("data"); + late final _sel_secondsFromGMTForDate_1 = + _registerName1("secondsFromGMTForDate:"); + int _objc_msgSend_166( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aDate, + ) { + return __objc_msgSend_166( + obj, + sel, + aDate, + ); + } + + late final __objc_msgSend_166Ptr = _lookup< + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_166 = __objc_msgSend_166Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_abbreviationForDate_1 = + _registerName1("abbreviationForDate:"); + ffi.Pointer _objc_msgSend_167( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aDate, + ) { + return __objc_msgSend_167( + obj, + sel, + aDate, + ); + } + + late final __objc_msgSend_167Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_167 = __objc_msgSend_167Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_isDaylightSavingTimeForDate_1 = + _registerName1("isDaylightSavingTimeForDate:"); + late final _sel_daylightSavingTimeOffsetForDate_1 = + _registerName1("daylightSavingTimeOffsetForDate:"); + late final _sel_nextDaylightSavingTimeTransitionAfterDate_1 = + _registerName1("nextDaylightSavingTimeTransitionAfterDate:"); + late final _sel_systemTimeZone1 = _registerName1("systemTimeZone"); + ffi.Pointer _objc_msgSend_168( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_168( + obj, + sel, + ); + } + + late final __objc_msgSend_168Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_168 = __objc_msgSend_168Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_resetSystemTimeZone1 = _registerName1("resetSystemTimeZone"); + late final _sel_defaultTimeZone1 = _registerName1("defaultTimeZone"); + late final _sel_setDefaultTimeZone_1 = _registerName1("setDefaultTimeZone:"); + void _objc_msgSend_169( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_169( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_169Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_169 = __objc_msgSend_169Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_localTimeZone1 = _registerName1("localTimeZone"); + late final _sel_knownTimeZoneNames1 = _registerName1("knownTimeZoneNames"); + late final _sel_abbreviationDictionary1 = + _registerName1("abbreviationDictionary"); + ffi.Pointer _objc_msgSend_170( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_170( + obj, + sel, + ); + } + + late final __objc_msgSend_170Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_170 = __objc_msgSend_170Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setAbbreviationDictionary_1 = + _registerName1("setAbbreviationDictionary:"); + void _objc_msgSend_171( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_171( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_171Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_171 = __objc_msgSend_171Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_timeZoneDataVersion1 = _registerName1("timeZoneDataVersion"); + late final _sel_secondsFromGMT1 = _registerName1("secondsFromGMT"); + late final _sel_abbreviation1 = _registerName1("abbreviation"); + late final _sel_isDaylightSavingTime1 = + _registerName1("isDaylightSavingTime"); + late final _sel_daylightSavingTimeOffset1 = + _registerName1("daylightSavingTimeOffset"); + late final _sel_nextDaylightSavingTimeTransition1 = + _registerName1("nextDaylightSavingTimeTransition"); + late final _sel_isEqualToTimeZone_1 = _registerName1("isEqualToTimeZone:"); + bool _objc_msgSend_172( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aTimeZone, + ) { + return __objc_msgSend_172( + obj, + sel, + aTimeZone, + ); + } + + late final __objc_msgSend_172Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_172 = __objc_msgSend_172Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _class_NSLocale1 = _getClass1("NSLocale"); + late final _sel_displayNameForKey_value_1 = + _registerName1("displayNameForKey:value:"); + ffi.Pointer _objc_msgSend_173( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ffi.Pointer value, + ) { + return __objc_msgSend_173( + obj, + sel, + key, + value, + ); + } + + late final __objc_msgSend_173Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_173 = __objc_msgSend_173Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_initWithLocaleIdentifier_1 = + _registerName1("initWithLocaleIdentifier:"); + late final _sel_localeIdentifier1 = _registerName1("localeIdentifier"); + late final _sel_localizedStringForLocaleIdentifier_1 = + _registerName1("localizedStringForLocaleIdentifier:"); + late final _sel_languageCode1 = _registerName1("languageCode"); + late final _sel_localizedStringForLanguageCode_1 = + _registerName1("localizedStringForLanguageCode:"); + late final _sel_countryCode1 = _registerName1("countryCode"); + late final _sel_localizedStringForCountryCode_1 = + _registerName1("localizedStringForCountryCode:"); + late final _sel_scriptCode1 = _registerName1("scriptCode"); + late final _sel_localizedStringForScriptCode_1 = + _registerName1("localizedStringForScriptCode:"); + late final _sel_variantCode1 = _registerName1("variantCode"); + late final _sel_localizedStringForVariantCode_1 = + _registerName1("localizedStringForVariantCode:"); + late final _class_NSCharacterSet1 = _getClass1("NSCharacterSet"); + late final _sel_controlCharacterSet1 = _registerName1("controlCharacterSet"); + ffi.Pointer _objc_msgSend_174( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_174( + obj, + sel, + ); + } + + late final __objc_msgSend_174Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_174 = __objc_msgSend_174Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_whitespaceCharacterSet1 = + _registerName1("whitespaceCharacterSet"); + late final _sel_whitespaceAndNewlineCharacterSet1 = + _registerName1("whitespaceAndNewlineCharacterSet"); + late final _sel_decimalDigitCharacterSet1 = + _registerName1("decimalDigitCharacterSet"); + late final _sel_letterCharacterSet1 = _registerName1("letterCharacterSet"); + late final _sel_lowercaseLetterCharacterSet1 = + _registerName1("lowercaseLetterCharacterSet"); + late final _sel_uppercaseLetterCharacterSet1 = + _registerName1("uppercaseLetterCharacterSet"); + late final _sel_nonBaseCharacterSet1 = _registerName1("nonBaseCharacterSet"); + late final _sel_alphanumericCharacterSet1 = + _registerName1("alphanumericCharacterSet"); + late final _sel_decomposableCharacterSet1 = + _registerName1("decomposableCharacterSet"); + late final _sel_illegalCharacterSet1 = _registerName1("illegalCharacterSet"); + late final _sel_punctuationCharacterSet1 = + _registerName1("punctuationCharacterSet"); + late final _sel_capitalizedLetterCharacterSet1 = + _registerName1("capitalizedLetterCharacterSet"); + late final _sel_symbolCharacterSet1 = _registerName1("symbolCharacterSet"); + late final _sel_newlineCharacterSet1 = _registerName1("newlineCharacterSet"); + late final _sel_characterSetWithRange_1 = + _registerName1("characterSetWithRange:"); + ffi.Pointer _objc_msgSend_175( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange aRange, + ) { + return __objc_msgSend_175( + obj, + sel, + aRange, + ); + } + + late final __objc_msgSend_175Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_175 = __objc_msgSend_175Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, _NSRange)>(); + + late final _sel_characterSetWithCharactersInString_1 = + _registerName1("characterSetWithCharactersInString:"); + ffi.Pointer _objc_msgSend_176( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aString, + ) { + return __objc_msgSend_176( + obj, + sel, + aString, + ); + } + + late final __objc_msgSend_176Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_176 = __objc_msgSend_176Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_characterSetWithBitmapRepresentation_1 = + _registerName1("characterSetWithBitmapRepresentation:"); + ffi.Pointer _objc_msgSend_177( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer data, + ) { + return __objc_msgSend_177( + obj, + sel, + data, + ); + } + + late final __objc_msgSend_177Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_177 = __objc_msgSend_177Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_characterSetWithContentsOfFile_1 = + _registerName1("characterSetWithContentsOfFile:"); + late final _sel_characterIsMember_1 = _registerName1("characterIsMember:"); + bool _objc_msgSend_178( + ffi.Pointer obj, + ffi.Pointer sel, + int aCharacter, + ) { + return __objc_msgSend_178( + obj, + sel, + aCharacter, + ); + } + + late final __objc_msgSend_178Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.UnsignedShort)>>('objc_msgSend'); + late final __objc_msgSend_178 = __objc_msgSend_178Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_bitmapRepresentation1 = + _registerName1("bitmapRepresentation"); + late final _sel_invertedSet1 = _registerName1("invertedSet"); + late final _sel_longCharacterIsMember_1 = + _registerName1("longCharacterIsMember:"); + bool _objc_msgSend_179( + ffi.Pointer obj, + ffi.Pointer sel, + int theLongChar, + ) { + return __objc_msgSend_179( + obj, + sel, + theLongChar, + ); + } + + late final __objc_msgSend_179Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.UnsignedInt)>>('objc_msgSend'); + late final __objc_msgSend_179 = __objc_msgSend_179Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_isSupersetOfSet_1 = _registerName1("isSupersetOfSet:"); + bool _objc_msgSend_180( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer theOtherSet, + ) { + return __objc_msgSend_180( + obj, + sel, + theOtherSet, + ); + } + + late final __objc_msgSend_180Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_180 = __objc_msgSend_180Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_hasMemberInPlane_1 = _registerName1("hasMemberInPlane:"); + bool _objc_msgSend_181( + ffi.Pointer obj, + ffi.Pointer sel, + int thePlane, + ) { + return __objc_msgSend_181( + obj, + sel, + thePlane, + ); + } + + late final __objc_msgSend_181Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Uint8)>>('objc_msgSend'); + late final __objc_msgSend_181 = __objc_msgSend_181Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_URLUserAllowedCharacterSet1 = + _registerName1("URLUserAllowedCharacterSet"); + late final _sel_URLPasswordAllowedCharacterSet1 = + _registerName1("URLPasswordAllowedCharacterSet"); + late final _sel_URLHostAllowedCharacterSet1 = + _registerName1("URLHostAllowedCharacterSet"); + late final _sel_URLPathAllowedCharacterSet1 = + _registerName1("URLPathAllowedCharacterSet"); + late final _sel_URLQueryAllowedCharacterSet1 = + _registerName1("URLQueryAllowedCharacterSet"); + late final _sel_URLFragmentAllowedCharacterSet1 = + _registerName1("URLFragmentAllowedCharacterSet"); + late final _sel_exemplarCharacterSet1 = + _registerName1("exemplarCharacterSet"); + late final _sel_calendarIdentifier1 = _registerName1("calendarIdentifier"); + late final _sel_localizedStringForCalendarIdentifier_1 = + _registerName1("localizedStringForCalendarIdentifier:"); + late final _sel_collationIdentifier1 = _registerName1("collationIdentifier"); + late final _sel_localizedStringForCollationIdentifier_1 = + _registerName1("localizedStringForCollationIdentifier:"); + late final _sel_usesMetricSystem1 = _registerName1("usesMetricSystem"); + late final _sel_decimalSeparator1 = _registerName1("decimalSeparator"); + late final _sel_groupingSeparator1 = _registerName1("groupingSeparator"); + late final _sel_currencySymbol1 = _registerName1("currencySymbol"); + late final _sel_currencyCode1 = _registerName1("currencyCode"); + late final _sel_localizedStringForCurrencyCode_1 = + _registerName1("localizedStringForCurrencyCode:"); + late final _sel_collatorIdentifier1 = _registerName1("collatorIdentifier"); + late final _sel_localizedStringForCollatorIdentifier_1 = + _registerName1("localizedStringForCollatorIdentifier:"); + late final _sel_quotationBeginDelimiter1 = + _registerName1("quotationBeginDelimiter"); + late final _sel_quotationEndDelimiter1 = + _registerName1("quotationEndDelimiter"); + late final _sel_alternateQuotationBeginDelimiter1 = + _registerName1("alternateQuotationBeginDelimiter"); + late final _sel_alternateQuotationEndDelimiter1 = + _registerName1("alternateQuotationEndDelimiter"); + late final _sel_autoupdatingCurrentLocale1 = + _registerName1("autoupdatingCurrentLocale"); + ffi.Pointer _objc_msgSend_182( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_182( + obj, + sel, + ); + } + + late final __objc_msgSend_182Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_182 = __objc_msgSend_182Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_currentLocale1 = _registerName1("currentLocale"); + late final _sel_systemLocale1 = _registerName1("systemLocale"); + late final _sel_localeWithLocaleIdentifier_1 = + _registerName1("localeWithLocaleIdentifier:"); + late final _sel_availableLocaleIdentifiers1 = + _registerName1("availableLocaleIdentifiers"); + late final _sel_ISOLanguageCodes1 = _registerName1("ISOLanguageCodes"); + late final _sel_ISOCountryCodes1 = _registerName1("ISOCountryCodes"); + late final _sel_ISOCurrencyCodes1 = _registerName1("ISOCurrencyCodes"); + late final _sel_commonISOCurrencyCodes1 = + _registerName1("commonISOCurrencyCodes"); + late final _sel_preferredLanguages1 = _registerName1("preferredLanguages"); + late final _sel_componentsFromLocaleIdentifier_1 = + _registerName1("componentsFromLocaleIdentifier:"); + late final _sel_localeIdentifierFromComponents_1 = + _registerName1("localeIdentifierFromComponents:"); + ffi.Pointer _objc_msgSend_183( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer dict, + ) { + return __objc_msgSend_183( + obj, + sel, + dict, + ); + } + + late final __objc_msgSend_183Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_183 = __objc_msgSend_183Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_canonicalLocaleIdentifierFromString_1 = + _registerName1("canonicalLocaleIdentifierFromString:"); + late final _sel_canonicalLanguageIdentifierFromString_1 = + _registerName1("canonicalLanguageIdentifierFromString:"); + late final _sel_localeIdentifierFromWindowsLocaleCode_1 = + _registerName1("localeIdentifierFromWindowsLocaleCode:"); + ffi.Pointer _objc_msgSend_184( + ffi.Pointer obj, + ffi.Pointer sel, + int lcid, + ) { + return __objc_msgSend_184( + obj, + sel, + lcid, + ); + } + + late final __objc_msgSend_184Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Uint32)>>('objc_msgSend'); + late final __objc_msgSend_184 = __objc_msgSend_184Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_windowsLocaleCodeFromLocaleIdentifier_1 = + _registerName1("windowsLocaleCodeFromLocaleIdentifier:"); + int _objc_msgSend_185( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer localeIdentifier, + ) { + return __objc_msgSend_185( + obj, + sel, + localeIdentifier, + ); + } + + late final __objc_msgSend_185Ptr = _lookup< + ffi.NativeFunction< + ffi.Uint32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_185 = __objc_msgSend_185Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_characterDirectionForLanguage_1 = + _registerName1("characterDirectionForLanguage:"); + int _objc_msgSend_186( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer isoLangCode, + ) { + return __objc_msgSend_186( + obj, + sel, + isoLangCode, + ); + } + + late final __objc_msgSend_186Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_186 = __objc_msgSend_186Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_lineDirectionForLanguage_1 = + _registerName1("lineDirectionForLanguage:"); + late final _sel_localizedName_locale_1 = + _registerName1("localizedName:locale:"); + ffi.Pointer _objc_msgSend_187( + ffi.Pointer obj, + ffi.Pointer sel, + int style, + ffi.Pointer locale, + ) { + return __objc_msgSend_187( + obj, + sel, + style, + locale, + ); + } + + late final __objc_msgSend_187Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_187 = __objc_msgSend_187Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); + + late final _sel_timeZoneWithName_1 = _registerName1("timeZoneWithName:"); + late final _sel_timeZoneWithName_data_1 = + _registerName1("timeZoneWithName:data:"); + instancetype _objc_msgSend_188( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer tzName, + ffi.Pointer aData, + ) { + return __objc_msgSend_188( + obj, + sel, + tzName, + aData, + ); + } + + late final __objc_msgSend_188Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_188 = __objc_msgSend_188Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_initWithName_1 = _registerName1("initWithName:"); + late final _sel_initWithName_data_1 = _registerName1("initWithName:data:"); + late final _sel_timeZoneForSecondsFromGMT_1 = + _registerName1("timeZoneForSecondsFromGMT:"); + instancetype _objc_msgSend_189( + ffi.Pointer obj, + ffi.Pointer sel, + int seconds, + ) { + return __objc_msgSend_189( + obj, + sel, + seconds, + ); + } + + late final __objc_msgSend_189Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_189 = __objc_msgSend_189Ptr.asFunction< + instancetype Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_timeZoneWithAbbreviation_1 = + _registerName1("timeZoneWithAbbreviation:"); + late final _sel_dateWithYear_month_day_hour_minute_second_timeZone_1 = + _registerName1("dateWithYear:month:day:hour:minute:second:timeZone:"); + ffi.Pointer _objc_msgSend_190( + ffi.Pointer obj, + ffi.Pointer sel, + int year, + int month, + int day, + int hour, + int minute, + int second, + ffi.Pointer aTimeZone, + ) { + return __objc_msgSend_190( + obj, + sel, + year, + month, + day, + hour, + minute, + second, + aTimeZone, + ); + } + + late final __objc_msgSend_190Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_190 = __objc_msgSend_190Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + int, + int, + int, + int, + ffi.Pointer)>(); + + late final _sel_dateByAddingYears_months_days_hours_minutes_seconds_1 = + _registerName1("dateByAddingYears:months:days:hours:minutes:seconds:"); + ffi.Pointer _objc_msgSend_191( + ffi.Pointer obj, + ffi.Pointer sel, + int year, + int month, + int day, + int hour, + int minute, + int second, + ) { + return __objc_msgSend_191( + obj, + sel, + year, + month, + day, + hour, + minute, + second, + ); + } + + late final __objc_msgSend_191Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_191 = __objc_msgSend_191Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, int, int, int, int, int)>(); + + late final _sel_dayOfCommonEra1 = _registerName1("dayOfCommonEra"); + late final _sel_dayOfMonth1 = _registerName1("dayOfMonth"); + late final _sel_dayOfWeek1 = _registerName1("dayOfWeek"); + late final _sel_dayOfYear1 = _registerName1("dayOfYear"); + late final _sel_hourOfDay1 = _registerName1("hourOfDay"); + late final _sel_minuteOfHour1 = _registerName1("minuteOfHour"); + late final _sel_monthOfYear1 = _registerName1("monthOfYear"); + late final _sel_secondOfMinute1 = _registerName1("secondOfMinute"); + late final _sel_yearOfCommonEra1 = _registerName1("yearOfCommonEra"); + late final _sel_calendarFormat1 = _registerName1("calendarFormat"); + late final _sel_descriptionWithCalendarFormat_locale_1 = + _registerName1("descriptionWithCalendarFormat:locale:"); + late final _sel_descriptionWithCalendarFormat_1 = + _registerName1("descriptionWithCalendarFormat:"); + late final _sel_timeZone1 = _registerName1("timeZone"); + late final _sel_initWithString_calendarFormat_locale_1 = + _registerName1("initWithString:calendarFormat:locale:"); + late final _sel_initWithString_calendarFormat_1 = + _registerName1("initWithString:calendarFormat:"); + late final _sel_initWithYear_month_day_hour_minute_second_timeZone_1 = + _registerName1("initWithYear:month:day:hour:minute:second:timeZone:"); + late final _sel_setCalendarFormat_1 = _registerName1("setCalendarFormat:"); + void _objc_msgSend_192( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ) { + return __objc_msgSend_192( + obj, + sel, + format, + ); + } + + late final __objc_msgSend_192Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_192 = __objc_msgSend_192Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_setTimeZone_1 = _registerName1("setTimeZone:"); + void _objc_msgSend_193( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aTimeZone, + ) { + return __objc_msgSend_193( + obj, + sel, + aTimeZone, + ); + } + + late final __objc_msgSend_193Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_193 = __objc_msgSend_193Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_years_months_days_hours_minutes_seconds_sinceDate_1 = + _registerName1("years:months:days:hours:minutes:seconds:sinceDate:"); + void _objc_msgSend_194( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer yp, + ffi.Pointer mop, + ffi.Pointer dp, + ffi.Pointer hp, + ffi.Pointer mip, + ffi.Pointer sp, + ffi.Pointer date, + ) { + return __objc_msgSend_194( + obj, + sel, + yp, + mop, + dp, + hp, + mip, + sp, + date, + ); + } + + late final __objc_msgSend_194Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_194 = __objc_msgSend_194Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_dateWithCalendarFormat_timeZone_1 = + _registerName1("dateWithCalendarFormat:timeZone:"); + ffi.Pointer _objc_msgSend_195( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ffi.Pointer aTimeZone, + ) { + return __objc_msgSend_195( + obj, + sel, + format, + aTimeZone, + ); + } + + late final __objc_msgSend_195Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_195 = __objc_msgSend_195Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_descriptionWithCalendarFormat_timeZone_locale_1 = + _registerName1("descriptionWithCalendarFormat:timeZone:locale:"); + ffi.Pointer _objc_msgSend_196( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ffi.Pointer aTimeZone, + ffi.Pointer locale, + ) { + return __objc_msgSend_196( + obj, + sel, + format, + aTimeZone, + locale, + ); + } + + late final __objc_msgSend_196Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_196 = __objc_msgSend_196Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_fileModificationDate1 = + _registerName1("fileModificationDate"); + late final _sel_fileType1 = _registerName1("fileType"); + late final _sel_filePosixPermissions1 = + _registerName1("filePosixPermissions"); + late final _sel_fileOwnerAccountName1 = + _registerName1("fileOwnerAccountName"); + late final _sel_fileGroupOwnerAccountName1 = + _registerName1("fileGroupOwnerAccountName"); + late final _sel_fileSystemNumber1 = _registerName1("fileSystemNumber"); + late final _sel_fileSystemFileNumber1 = + _registerName1("fileSystemFileNumber"); + late final _sel_fileExtensionHidden1 = _registerName1("fileExtensionHidden"); + late final _sel_fileHFSCreatorCode1 = _registerName1("fileHFSCreatorCode"); + int _objc_msgSend_197( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_197( + obj, + sel, + ); + } + + late final __objc_msgSend_197Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_197 = __objc_msgSend_197Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_fileHFSTypeCode1 = _registerName1("fileHFSTypeCode"); + late final _sel_fileIsImmutable1 = _registerName1("fileIsImmutable"); + late final _sel_fileIsAppendOnly1 = _registerName1("fileIsAppendOnly"); + late final _sel_fileCreationDate1 = _registerName1("fileCreationDate"); + late final _sel_fileOwnerAccountID1 = _registerName1("fileOwnerAccountID"); + ffi.Pointer _objc_msgSend_198( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_198( + obj, + sel, + ); + } + + late final __objc_msgSend_198Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_198 = __objc_msgSend_198Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_fileGroupOwnerAccountID1 = + _registerName1("fileGroupOwnerAccountID"); + late final _sel_predicateWithBlock_1 = _registerName1("predicateWithBlock:"); + ffi.Pointer _objc_msgSend_199( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_199( + obj, + sel, + block, + ); + } + + late final __objc_msgSend_199Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_199 = __objc_msgSend_199Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_predicateFormat1 = _registerName1("predicateFormat"); + late final _sel_predicateWithSubstitutionVariables_1 = + _registerName1("predicateWithSubstitutionVariables:"); + late final _sel_evaluateWithObject_1 = _registerName1("evaluateWithObject:"); + late final _sel_evaluateWithObject_substitutionVariables_1 = + _registerName1("evaluateWithObject:substitutionVariables:"); + bool _objc_msgSend_200( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer object, + ffi.Pointer bindings, + ) { + return __objc_msgSend_200( + obj, + sel, + object, + bindings, + ); + } + + late final __objc_msgSend_200Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_200 = __objc_msgSend_200Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_allowEvaluation1 = _registerName1("allowEvaluation"); + late final _sel_filteredArrayUsingPredicate_1 = + _registerName1("filteredArrayUsingPredicate:"); + ffi.Pointer _objc_msgSend_201( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer predicate, + ) { + return __objc_msgSend_201( + obj, + sel, + predicate, + ); + } + + late final __objc_msgSend_201Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_201 = __objc_msgSend_201Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_initWithChar_1 = _registerName1("initWithChar:"); + ffi.Pointer _objc_msgSend_202( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_202( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_202Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Char)>>('objc_msgSend'); + late final __objc_msgSend_202 = __objc_msgSend_202Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_initWithUnsignedChar_1 = + _registerName1("initWithUnsignedChar:"); + ffi.Pointer _objc_msgSend_203( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_203( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_203Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedChar)>>('objc_msgSend'); + late final __objc_msgSend_203 = __objc_msgSend_203Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_initWithShort_1 = _registerName1("initWithShort:"); + ffi.Pointer _objc_msgSend_204( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_204( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_204Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Short)>>('objc_msgSend'); + late final __objc_msgSend_204 = __objc_msgSend_204Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_initWithUnsignedShort_1 = + _registerName1("initWithUnsignedShort:"); + ffi.Pointer _objc_msgSend_205( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_205( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_205Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedShort)>>('objc_msgSend'); + late final __objc_msgSend_205 = __objc_msgSend_205Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_initWithInt_1 = _registerName1("initWithInt:"); + ffi.Pointer _objc_msgSend_206( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_206( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_206Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int)>>('objc_msgSend'); + late final __objc_msgSend_206 = __objc_msgSend_206Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_initWithUnsignedInt_1 = + _registerName1("initWithUnsignedInt:"); + ffi.Pointer _objc_msgSend_207( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_207( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_207Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); + late final __objc_msgSend_207 = __objc_msgSend_207Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_initWithLong_1 = _registerName1("initWithLong:"); + ffi.Pointer _objc_msgSend_208( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_208( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_208Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_208 = __objc_msgSend_208Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_initWithUnsignedLong_1 = + _registerName1("initWithUnsignedLong:"); + ffi.Pointer _objc_msgSend_209( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_209( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_209Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_209 = __objc_msgSend_209Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_initWithLongLong_1 = _registerName1("initWithLongLong:"); + ffi.Pointer _objc_msgSend_210( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_210( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_210Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.LongLong)>>('objc_msgSend'); + late final __objc_msgSend_210 = __objc_msgSend_210Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_initWithUnsignedLongLong_1 = + _registerName1("initWithUnsignedLongLong:"); + ffi.Pointer _objc_msgSend_211( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_211( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_211Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLongLong)>>('objc_msgSend'); + late final __objc_msgSend_211 = __objc_msgSend_211Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_initWithFloat_1 = _registerName1("initWithFloat:"); + ffi.Pointer _objc_msgSend_212( + ffi.Pointer obj, + ffi.Pointer sel, + double value, + ) { + return __objc_msgSend_212( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_212Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Float)>>('objc_msgSend'); + late final __objc_msgSend_212 = __objc_msgSend_212Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, double)>(); + + late final _sel_initWithDouble_1 = _registerName1("initWithDouble:"); + ffi.Pointer _objc_msgSend_213( + ffi.Pointer obj, + ffi.Pointer sel, + double value, + ) { + return __objc_msgSend_213( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_213Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_213 = __objc_msgSend_213Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, double)>(); + + late final _sel_initWithBool_1 = _registerName1("initWithBool:"); + ffi.Pointer _objc_msgSend_214( + ffi.Pointer obj, + ffi.Pointer sel, + bool value, + ) { + return __objc_msgSend_214( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_214Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_214 = __objc_msgSend_214Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, bool)>(); + + late final _sel_initWithInteger_1 = _registerName1("initWithInteger:"); + late final _sel_initWithUnsignedInteger_1 = + _registerName1("initWithUnsignedInteger:"); + late final _sel_charValue1 = _registerName1("charValue"); + int _objc_msgSend_215( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_215( + obj, + sel, + ); + } + + late final __objc_msgSend_215Ptr = _lookup< + ffi.NativeFunction< + ffi.Char Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_215 = __objc_msgSend_215Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_unsignedCharValue1 = _registerName1("unsignedCharValue"); + int _objc_msgSend_216( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_216( + obj, + sel, + ); + } + + late final __objc_msgSend_216Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedChar Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_216 = __objc_msgSend_216Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_shortValue1 = _registerName1("shortValue"); + int _objc_msgSend_217( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_217( + obj, + sel, + ); + } + + late final __objc_msgSend_217Ptr = _lookup< + ffi.NativeFunction< + ffi.Short Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_217 = __objc_msgSend_217Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_unsignedShortValue1 = _registerName1("unsignedShortValue"); + int _objc_msgSend_218( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_218( + obj, + sel, + ); + } + + late final __objc_msgSend_218Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedShort Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_218 = __objc_msgSend_218Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_intValue1 = _registerName1("intValue"); + int _objc_msgSend_219( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_219( + obj, + sel, + ); + } + + late final __objc_msgSend_219Ptr = _lookup< + ffi.NativeFunction< + ffi.Int Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_219 = __objc_msgSend_219Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_unsignedIntValue1 = _registerName1("unsignedIntValue"); + late final _sel_longValue1 = _registerName1("longValue"); + late final _sel_unsignedLongValue1 = _registerName1("unsignedLongValue"); + late final _sel_longLongValue1 = _registerName1("longLongValue"); + int _objc_msgSend_220( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_220( + obj, + sel, + ); + } + + late final __objc_msgSend_220Ptr = _lookup< + ffi.NativeFunction< + ffi.LongLong Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_220 = __objc_msgSend_220Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_unsignedLongLongValue1 = + _registerName1("unsignedLongLongValue"); + late final _sel_floatValue1 = _registerName1("floatValue"); + double _objc_msgSend_221( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_221( + obj, + sel, + ); + } + + late final __objc_msgSend_221Ptr = _lookup< + ffi.NativeFunction< + ffi.Float Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_221 = __objc_msgSend_221Ptr.asFunction< + double Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_doubleValue1 = _registerName1("doubleValue"); + late final _sel_boolValue1 = _registerName1("boolValue"); + late final _sel_integerValue1 = _registerName1("integerValue"); + late final _sel_unsignedIntegerValue1 = + _registerName1("unsignedIntegerValue"); + late final _sel_stringValue1 = _registerName1("stringValue"); + int _objc_msgSend_222( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer otherNumber, + ) { + return __objc_msgSend_222( + obj, + sel, + otherNumber, + ); + } + + late final __objc_msgSend_222Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_222 = __objc_msgSend_222Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_isEqualToNumber_1 = _registerName1("isEqualToNumber:"); + bool _objc_msgSend_223( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer number, + ) { + return __objc_msgSend_223( + obj, + sel, + number, + ); + } + + late final __objc_msgSend_223Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_223 = __objc_msgSend_223Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_numberWithChar_1 = _registerName1("numberWithChar:"); + late final _sel_numberWithUnsignedChar_1 = + _registerName1("numberWithUnsignedChar:"); + late final _sel_numberWithShort_1 = _registerName1("numberWithShort:"); + late final _sel_numberWithUnsignedShort_1 = + _registerName1("numberWithUnsignedShort:"); + late final _sel_numberWithInt_1 = _registerName1("numberWithInt:"); + late final _sel_numberWithUnsignedInt_1 = + _registerName1("numberWithUnsignedInt:"); + late final _sel_numberWithLong_1 = _registerName1("numberWithLong:"); + late final _sel_numberWithUnsignedLong_1 = + _registerName1("numberWithUnsignedLong:"); + late final _sel_numberWithLongLong_1 = _registerName1("numberWithLongLong:"); + late final _sel_numberWithUnsignedLongLong_1 = + _registerName1("numberWithUnsignedLongLong:"); + late final _sel_numberWithFloat_1 = _registerName1("numberWithFloat:"); + late final _sel_numberWithDouble_1 = _registerName1("numberWithDouble:"); + late final _sel_numberWithBool_1 = _registerName1("numberWithBool:"); + late final _sel_numberWithInteger_1 = _registerName1("numberWithInteger:"); + late final _sel_numberWithUnsignedInteger_1 = + _registerName1("numberWithUnsignedInteger:"); + late final _sel_port1 = _registerName1("port"); + late final _sel_user1 = _registerName1("user"); + late final _sel_password1 = _registerName1("password"); + late final _sel_path1 = _registerName1("path"); + late final _sel_fragment1 = _registerName1("fragment"); + late final _sel_parameterString1 = _registerName1("parameterString"); + late final _sel_query1 = _registerName1("query"); + late final _sel_relativePath1 = _registerName1("relativePath"); + late final _sel_hasDirectoryPath1 = _registerName1("hasDirectoryPath"); + late final _sel_getFileSystemRepresentation_maxLength_1 = + _registerName1("getFileSystemRepresentation:maxLength:"); + bool _objc_msgSend_224( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer buffer, + int maxBufferLength, + ) { + return __objc_msgSend_224( + obj, + sel, + buffer, + maxBufferLength, + ); + } + + late final __objc_msgSend_224Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_224 = __objc_msgSend_224Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_fileSystemRepresentation1 = + _registerName1("fileSystemRepresentation"); + late final _sel_isFileURL1 = _registerName1("isFileURL"); + late final _sel_standardizedURL1 = _registerName1("standardizedURL"); + late final _sel_checkResourceIsReachableAndReturnError_1 = + _registerName1("checkResourceIsReachableAndReturnError:"); + bool _objc_msgSend_225( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> error, + ) { + return __objc_msgSend_225( + obj, + sel, + error, + ); + } + + late final __objc_msgSend_225Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_225 = __objc_msgSend_225Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_isFileReferenceURL1 = _registerName1("isFileReferenceURL"); + late final _sel_fileReferenceURL1 = _registerName1("fileReferenceURL"); + late final _sel_filePathURL1 = _registerName1("filePathURL"); + late final _sel_getResourceValue_forKey_error_1 = + _registerName1("getResourceValue:forKey:error:"); + bool _objc_msgSend_226( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> value, + ffi.Pointer key, + ffi.Pointer> error, + ) { + return __objc_msgSend_226( + obj, + sel, + value, + key, + error, + ); + } + + late final __objc_msgSend_226Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_226 = __objc_msgSend_226Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_resourceValuesForKeys_error_1 = + _registerName1("resourceValuesForKeys:error:"); + ffi.Pointer _objc_msgSend_227( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer keys, + ffi.Pointer> error, + ) { + return __objc_msgSend_227( + obj, + sel, + keys, + error, + ); + } + + late final __objc_msgSend_227Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_227 = __objc_msgSend_227Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_setResourceValue_forKey_error_1 = + _registerName1("setResourceValue:forKey:error:"); + bool _objc_msgSend_228( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ffi.Pointer key, + ffi.Pointer> error, + ) { + return __objc_msgSend_228( + obj, + sel, + value, + key, + error, + ); + } + + late final __objc_msgSend_228Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_228 = __objc_msgSend_228Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_setResourceValues_error_1 = + _registerName1("setResourceValues:error:"); + bool _objc_msgSend_229( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer keyedValues, + ffi.Pointer> error, + ) { + return __objc_msgSend_229( + obj, + sel, + keyedValues, + error, + ); + } + + late final __objc_msgSend_229Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_229 = __objc_msgSend_229Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>(); + + late final _sel_removeCachedResourceValueForKey_1 = + _registerName1("removeCachedResourceValueForKey:"); + late final _sel_removeAllCachedResourceValues1 = + _registerName1("removeAllCachedResourceValues"); + late final _sel_setTemporaryResourceValue_forKey_1 = + _registerName1("setTemporaryResourceValue:forKey:"); + late final _sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_1 = + _registerName1( + "bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:"); + ffi.Pointer _objc_msgSend_230( + ffi.Pointer obj, + ffi.Pointer sel, + int options, + ffi.Pointer keys, + ffi.Pointer relativeURL, + ffi.Pointer> error, + ) { + return __objc_msgSend_230( + obj, + sel, + options, + keys, + relativeURL, + error, + ); + } + + late final __objc_msgSend_230Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_230 = __objc_msgSend_230Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1 = + _registerName1( + "initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:"); + instancetype _objc_msgSend_231( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer bookmarkData, + int options, + ffi.Pointer relativeURL, + ffi.Pointer isStale, + ffi.Pointer> error, + ) { + return __objc_msgSend_231( + obj, + sel, + bookmarkData, + options, + relativeURL, + isStale, + error, + ); + } + + late final __objc_msgSend_231Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_231 = __objc_msgSend_231Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1 = + _registerName1( + "URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:"); + late final _sel_resourceValuesForKeys_fromBookmarkData_1 = + _registerName1("resourceValuesForKeys:fromBookmarkData:"); + ffi.Pointer _objc_msgSend_232( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer keys, + ffi.Pointer bookmarkData, + ) { + return __objc_msgSend_232( + obj, + sel, + keys, + bookmarkData, + ); + } + + late final __objc_msgSend_232Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_232 = __objc_msgSend_232Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_writeBookmarkData_toURL_options_error_1 = + _registerName1("writeBookmarkData:toURL:options:error:"); + bool _objc_msgSend_233( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer bookmarkData, + ffi.Pointer bookmarkFileURL, + int options, + ffi.Pointer> error, + ) { + return __objc_msgSend_233( + obj, + sel, + bookmarkData, + bookmarkFileURL, + options, + error, + ); + } + + late final __objc_msgSend_233Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_233 = __objc_msgSend_233Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); + + late final _sel_bookmarkDataWithContentsOfURL_error_1 = + _registerName1("bookmarkDataWithContentsOfURL:error:"); + ffi.Pointer _objc_msgSend_234( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer bookmarkFileURL, + ffi.Pointer> error, + ) { + return __objc_msgSend_234( + obj, + sel, + bookmarkFileURL, + error, + ); + } + + late final __objc_msgSend_234Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_234 = __objc_msgSend_234Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_URLByResolvingAliasFileAtURL_options_error_1 = + _registerName1("URLByResolvingAliasFileAtURL:options:error:"); + instancetype _objc_msgSend_235( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + int options, + ffi.Pointer> error, + ) { + return __objc_msgSend_235( + obj, + sel, + url, + options, + error, + ); + } + + late final __objc_msgSend_235Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_235 = __objc_msgSend_235Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); + + late final _sel_startAccessingSecurityScopedResource1 = + _registerName1("startAccessingSecurityScopedResource"); + late final _sel_stopAccessingSecurityScopedResource1 = + _registerName1("stopAccessingSecurityScopedResource"); + late final _sel_getPromisedItemResourceValue_forKey_error_1 = + _registerName1("getPromisedItemResourceValue:forKey:error:"); + late final _sel_promisedItemResourceValuesForKeys_error_1 = + _registerName1("promisedItemResourceValuesForKeys:error:"); + ffi.Pointer _objc_msgSend_236( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer keys, + ffi.Pointer> error, + ) { + return __objc_msgSend_236( + obj, + sel, + keys, + error, + ); + } + + late final __objc_msgSend_236Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_236 = __objc_msgSend_236Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_checkPromisedItemIsReachableAndReturnError_1 = + _registerName1("checkPromisedItemIsReachableAndReturnError:"); + late final _sel_fileURLWithPathComponents_1 = + _registerName1("fileURLWithPathComponents:"); + ffi.Pointer _objc_msgSend_237( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer components, + ) { + return __objc_msgSend_237( + obj, + sel, + components, + ); + } + + late final __objc_msgSend_237Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_237 = __objc_msgSend_237Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_pathComponents1 = _registerName1("pathComponents"); + late final _sel_lastPathComponent1 = _registerName1("lastPathComponent"); + late final _sel_pathExtension1 = _registerName1("pathExtension"); + late final _sel_URLByAppendingPathComponent_1 = + _registerName1("URLByAppendingPathComponent:"); + late final _sel_URLByAppendingPathComponent_isDirectory_1 = + _registerName1("URLByAppendingPathComponent:isDirectory:"); + late final _sel_URLByDeletingLastPathComponent1 = + _registerName1("URLByDeletingLastPathComponent"); + late final _sel_URLByAppendingPathExtension_1 = + _registerName1("URLByAppendingPathExtension:"); + late final _sel_URLByDeletingPathExtension1 = + _registerName1("URLByDeletingPathExtension"); + late final _sel_URLByStandardizingPath1 = + _registerName1("URLByStandardizingPath"); + late final _sel_URLByResolvingSymlinksInPath1 = + _registerName1("URLByResolvingSymlinksInPath"); + late final _sel_resourceDataUsingCache_1 = + _registerName1("resourceDataUsingCache:"); + ffi.Pointer _objc_msgSend_238( + ffi.Pointer obj, + ffi.Pointer sel, + bool shouldUseCache, + ) { + return __objc_msgSend_238( + obj, + sel, + shouldUseCache, + ); + } + + late final __objc_msgSend_238Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_238 = __objc_msgSend_238Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, bool)>(); + + late final _sel_loadResourceDataNotifyingClient_usingCache_1 = + _registerName1("loadResourceDataNotifyingClient:usingCache:"); + void _objc_msgSend_239( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer client, + bool shouldUseCache, + ) { + return __objc_msgSend_239( + obj, + sel, + client, + shouldUseCache, + ); + } + + late final __objc_msgSend_239Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_239 = __objc_msgSend_239Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); + + late final _sel_propertyForKey_1 = _registerName1("propertyForKey:"); + late final _sel_setResourceData_1 = _registerName1("setResourceData:"); + late final _sel_setProperty_forKey_1 = _registerName1("setProperty:forKey:"); + bool _objc_msgSend_240( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer property, + ffi.Pointer propertyKey, + ) { + return __objc_msgSend_240( + obj, + sel, + property, + propertyKey, + ); + } + + late final __objc_msgSend_240Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_240 = __objc_msgSend_240Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _class_NSURLHandle1 = _getClass1("NSURLHandle"); + late final _sel_registerURLHandleClass_1 = + _registerName1("registerURLHandleClass:"); + late final _sel_URLHandleClassForURL_1 = + _registerName1("URLHandleClassForURL:"); + ffi.Pointer _objc_msgSend_241( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anURL, + ) { + return __objc_msgSend_241( + obj, + sel, + anURL, + ); + } + + late final __objc_msgSend_241Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_241 = __objc_msgSend_241Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_status1 = _registerName1("status"); + int _objc_msgSend_242( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_242( + obj, + sel, + ); + } + + late final __objc_msgSend_242Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_242 = __objc_msgSend_242Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_failureReason1 = _registerName1("failureReason"); + late final _sel_addClient_1 = _registerName1("addClient:"); + late final _sel_removeClient_1 = _registerName1("removeClient:"); + late final _sel_loadInBackground1 = _registerName1("loadInBackground"); + late final _sel_cancelLoadInBackground1 = + _registerName1("cancelLoadInBackground"); + late final _sel_resourceData1 = _registerName1("resourceData"); + late final _sel_availableResourceData1 = + _registerName1("availableResourceData"); + late final _sel_expectedResourceDataSize1 = + _registerName1("expectedResourceDataSize"); + late final _sel_flushCachedData1 = _registerName1("flushCachedData"); + late final _sel_backgroundLoadDidFailWithReason_1 = + _registerName1("backgroundLoadDidFailWithReason:"); + late final _sel_didLoadBytes_loadComplete_1 = + _registerName1("didLoadBytes:loadComplete:"); + void _objc_msgSend_243( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer newBytes, + bool yorn, + ) { + return __objc_msgSend_243( + obj, + sel, + newBytes, + yorn, + ); + } + + late final __objc_msgSend_243Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_243 = __objc_msgSend_243Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); + + late final _sel_canInitWithURL_1 = _registerName1("canInitWithURL:"); + bool _objc_msgSend_244( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anURL, + ) { + return __objc_msgSend_244( + obj, + sel, + anURL, + ); + } + + late final __objc_msgSend_244Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_244 = __objc_msgSend_244Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_cachedHandleForURL_1 = _registerName1("cachedHandleForURL:"); + ffi.Pointer _objc_msgSend_245( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anURL, + ) { + return __objc_msgSend_245( + obj, + sel, + anURL, + ); + } + + late final __objc_msgSend_245Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_245 = __objc_msgSend_245Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_initWithURL_cached_1 = _registerName1("initWithURL:cached:"); + ffi.Pointer _objc_msgSend_246( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anURL, + bool willCache, + ) { + return __objc_msgSend_246( + obj, + sel, + anURL, + willCache, + ); + } + + late final __objc_msgSend_246Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_246 = __objc_msgSend_246Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, bool)>(); + + late final _sel_propertyForKeyIfAvailable_1 = + _registerName1("propertyForKeyIfAvailable:"); + late final _sel_writeProperty_forKey_1 = + _registerName1("writeProperty:forKey:"); + late final _sel_writeData_1 = _registerName1("writeData:"); + late final _sel_loadInForeground1 = _registerName1("loadInForeground"); + late final _sel_beginLoadInBackground1 = + _registerName1("beginLoadInBackground"); + late final _sel_endLoadInBackground1 = _registerName1("endLoadInBackground"); + late final _sel_URLHandleUsingCache_1 = + _registerName1("URLHandleUsingCache:"); + ffi.Pointer _objc_msgSend_247( + ffi.Pointer obj, + ffi.Pointer sel, + bool shouldUseCache, + ) { + return __objc_msgSend_247( + obj, + sel, + shouldUseCache, + ); + } + + late final __objc_msgSend_247Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_247 = __objc_msgSend_247Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, bool)>(); + + late final _sel_writeToFile_options_error_1 = + _registerName1("writeToFile:options:error:"); + bool _objc_msgSend_248( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + int writeOptionsMask, + ffi.Pointer> errorPtr, + ) { + return __objc_msgSend_248( + obj, + sel, + path, + writeOptionsMask, + errorPtr, + ); + } + + late final __objc_msgSend_248Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_248 = __objc_msgSend_248Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); + + late final _sel_writeToURL_options_error_1 = + _registerName1("writeToURL:options:error:"); + bool _objc_msgSend_249( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + int writeOptionsMask, + ffi.Pointer> errorPtr, + ) { + return __objc_msgSend_249( + obj, + sel, + url, + writeOptionsMask, + errorPtr, + ); + } + + late final __objc_msgSend_249Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_249 = __objc_msgSend_249Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); + + late final _sel_rangeOfData_options_range_1 = + _registerName1("rangeOfData:options:range:"); + _NSRange _objc_msgSend_250( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer dataToFind, + int mask, + _NSRange searchRange, + ) { + return __objc_msgSend_250( + obj, + sel, + dataToFind, + mask, + searchRange, + ); + } + + late final __objc_msgSend_250Ptr = _lookup< + ffi.NativeFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_250 = __objc_msgSend_250Ptr.asFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, _NSRange)>(); + + late final _sel_enumerateByteRangesUsingBlock_1 = + _registerName1("enumerateByteRangesUsingBlock:"); + void _objc_msgSend_251( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_251( + obj, + sel, + block, + ); + } + + late final __objc_msgSend_251Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_251 = __objc_msgSend_251Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_dataWithBytes_length_1 = + _registerName1("dataWithBytes:length:"); + instancetype _objc_msgSend_252( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer bytes, + int length, + ) { + return __objc_msgSend_252( + obj, + sel, + bytes, + length, + ); + } + + late final __objc_msgSend_252Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_252 = __objc_msgSend_252Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_dataWithBytesNoCopy_length_1 = + _registerName1("dataWithBytesNoCopy:length:"); + late final _sel_dataWithBytesNoCopy_length_freeWhenDone_1 = + _registerName1("dataWithBytesNoCopy:length:freeWhenDone:"); + instancetype _objc_msgSend_253( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer bytes, + int length, + bool b, + ) { + return __objc_msgSend_253( + obj, + sel, + bytes, + length, + b, + ); + } + + late final __objc_msgSend_253Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_253 = __objc_msgSend_253Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, bool)>(); + + late final _sel_dataWithContentsOfFile_options_error_1 = + _registerName1("dataWithContentsOfFile:options:error:"); + instancetype _objc_msgSend_254( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + int readOptionsMask, + ffi.Pointer> errorPtr, + ) { + return __objc_msgSend_254( + obj, + sel, + path, + readOptionsMask, + errorPtr, + ); + } + + late final __objc_msgSend_254Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_254 = __objc_msgSend_254Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); + + late final _sel_dataWithContentsOfURL_options_error_1 = + _registerName1("dataWithContentsOfURL:options:error:"); + instancetype _objc_msgSend_255( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + int readOptionsMask, + ffi.Pointer> errorPtr, + ) { + return __objc_msgSend_255( + obj, + sel, + url, + readOptionsMask, + errorPtr, + ); + } + + late final __objc_msgSend_255Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_255 = __objc_msgSend_255Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); + + late final _sel_dataWithContentsOfFile_1 = + _registerName1("dataWithContentsOfFile:"); + late final _sel_dataWithContentsOfURL_1 = + _registerName1("dataWithContentsOfURL:"); + late final _sel_initWithBytes_length_1 = + _registerName1("initWithBytes:length:"); + late final _sel_initWithBytesNoCopy_length_1 = + _registerName1("initWithBytesNoCopy:length:"); + late final _sel_initWithBytesNoCopy_length_freeWhenDone_1 = + _registerName1("initWithBytesNoCopy:length:freeWhenDone:"); + late final _sel_initWithBytesNoCopy_length_deallocator_1 = + _registerName1("initWithBytesNoCopy:length:deallocator:"); + instancetype _objc_msgSend_256( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer bytes, + int length, + ffi.Pointer<_ObjCBlock> deallocator, + ) { + return __objc_msgSend_256( + obj, + sel, + bytes, + length, + deallocator, + ); + } + + late final __objc_msgSend_256Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_256 = __objc_msgSend_256Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_initWithContentsOfFile_options_error_1 = + _registerName1("initWithContentsOfFile:options:error:"); + late final _sel_initWithContentsOfURL_options_error_1 = + _registerName1("initWithContentsOfURL:options:error:"); + late final _sel_initWithData_1 = _registerName1("initWithData:"); + instancetype _objc_msgSend_257( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer data, + ) { + return __objc_msgSend_257( + obj, + sel, + data, + ); + } + + late final __objc_msgSend_257Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_257 = __objc_msgSend_257Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_dataWithData_1 = _registerName1("dataWithData:"); + late final _sel_initWithBase64EncodedString_options_1 = + _registerName1("initWithBase64EncodedString:options:"); + instancetype _objc_msgSend_258( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer base64String, + int options, + ) { + return __objc_msgSend_258( + obj, + sel, + base64String, + options, + ); + } + + late final __objc_msgSend_258Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_258 = __objc_msgSend_258Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_base64EncodedStringWithOptions_1 = + _registerName1("base64EncodedStringWithOptions:"); + ffi.Pointer _objc_msgSend_259( + ffi.Pointer obj, + ffi.Pointer sel, + int options, + ) { + return __objc_msgSend_259( + obj, + sel, + options, + ); + } + + late final __objc_msgSend_259Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_259 = __objc_msgSend_259Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_initWithBase64EncodedData_options_1 = + _registerName1("initWithBase64EncodedData:options:"); + instancetype _objc_msgSend_260( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer base64Data, + int options, + ) { + return __objc_msgSend_260( + obj, + sel, + base64Data, + options, + ); + } + + late final __objc_msgSend_260Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_260 = __objc_msgSend_260Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_base64EncodedDataWithOptions_1 = + _registerName1("base64EncodedDataWithOptions:"); + ffi.Pointer _objc_msgSend_261( + ffi.Pointer obj, + ffi.Pointer sel, + int options, + ) { + return __objc_msgSend_261( + obj, + sel, + options, + ); + } + + late final __objc_msgSend_261Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_261 = __objc_msgSend_261Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_decompressedDataUsingAlgorithm_error_1 = + _registerName1("decompressedDataUsingAlgorithm:error:"); + instancetype _objc_msgSend_262( + ffi.Pointer obj, + ffi.Pointer sel, + int algorithm, + ffi.Pointer> error, + ) { + return __objc_msgSend_262( + obj, + sel, + algorithm, + error, + ); + } + + late final __objc_msgSend_262Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_262 = __objc_msgSend_262Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer>)>(); + + late final _sel_compressedDataUsingAlgorithm_error_1 = + _registerName1("compressedDataUsingAlgorithm:error:"); + late final _sel_getBytes_1 = _registerName1("getBytes:"); + late final _sel_dataWithContentsOfMappedFile_1 = + _registerName1("dataWithContentsOfMappedFile:"); + late final _sel_initWithContentsOfMappedFile_1 = + _registerName1("initWithContentsOfMappedFile:"); + late final _sel_initWithBase64Encoding_1 = + _registerName1("initWithBase64Encoding:"); + late final _sel_base64Encoding1 = _registerName1("base64Encoding"); + late final _sel_encodeDataObject_1 = _registerName1("encodeDataObject:"); + void _objc_msgSend_263( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer data, + ) { + return __objc_msgSend_263( + obj, + sel, + data, + ); + } + + late final __objc_msgSend_263Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_263 = __objc_msgSend_263Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_decodeDataObject1 = _registerName1("decodeDataObject"); + late final _sel_decodeValueOfObjCType_at_size_1 = + _registerName1("decodeValueOfObjCType:at:size:"); + void _objc_msgSend_264( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer type, + ffi.Pointer data, + int size, + ) { + return __objc_msgSend_264( + obj, + sel, + type, + data, + size, + ); + } + + late final __objc_msgSend_264Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_264 = __objc_msgSend_264Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_versionForClassName_1 = + _registerName1("versionForClassName:"); + int _objc_msgSend_265( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer className, + ) { + return __objc_msgSend_265( + obj, + sel, + className, + ); + } + + late final __objc_msgSend_265Ptr = _lookup< + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_265 = __objc_msgSend_265Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_encodeObject_1 = _registerName1("encodeObject:"); + late final _sel_encodeRootObject_1 = _registerName1("encodeRootObject:"); + late final _sel_encodeBycopyObject_1 = _registerName1("encodeBycopyObject:"); + late final _sel_encodeByrefObject_1 = _registerName1("encodeByrefObject:"); + late final _sel_encodeConditionalObject_1 = + _registerName1("encodeConditionalObject:"); + late final _sel_encodeValuesOfObjCTypes_1 = + _registerName1("encodeValuesOfObjCTypes:"); + void _objc_msgSend_266( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer types, + ) { + return __objc_msgSend_266( + obj, + sel, + types, + ); + } + + late final __objc_msgSend_266Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_266 = __objc_msgSend_266Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_encodeArrayOfObjCType_count_at_1 = + _registerName1("encodeArrayOfObjCType:count:at:"); + void _objc_msgSend_267( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer type, + int count, + ffi.Pointer array, + ) { + return __objc_msgSend_267( + obj, + sel, + type, + count, + array, + ); + } + + late final __objc_msgSend_267Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_267 = __objc_msgSend_267Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); + + late final _sel_encodeBytes_length_1 = _registerName1("encodeBytes:length:"); + late final _sel_decodeObject1 = _registerName1("decodeObject"); + late final _sel_decodeTopLevelObjectAndReturnError_1 = + _registerName1("decodeTopLevelObjectAndReturnError:"); + ffi.Pointer _objc_msgSend_268( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> error, + ) { + return __objc_msgSend_268( + obj, + sel, + error, + ); + } + + late final __objc_msgSend_268Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_268 = __objc_msgSend_268Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>(); + + late final _sel_decodeValuesOfObjCTypes_1 = + _registerName1("decodeValuesOfObjCTypes:"); + late final _sel_decodeArrayOfObjCType_count_at_1 = + _registerName1("decodeArrayOfObjCType:count:at:"); + late final _sel_decodeBytesWithReturnedLength_1 = + _registerName1("decodeBytesWithReturnedLength:"); + ffi.Pointer _objc_msgSend_269( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer lengthp, + ) { + return __objc_msgSend_269( + obj, + sel, + lengthp, + ); + } + + late final __objc_msgSend_269Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_269 = __objc_msgSend_269Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_encodePropertyList_1 = _registerName1("encodePropertyList:"); + late final _sel_decodePropertyList1 = _registerName1("decodePropertyList"); + late final _sel_setObjectZone_1 = _registerName1("setObjectZone:"); + void _objc_msgSend_270( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_NSZone> zone, + ) { + return __objc_msgSend_270( + obj, + sel, + zone, + ); + } + + late final __objc_msgSend_270Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_NSZone>)>>('objc_msgSend'); + late final __objc_msgSend_270 = __objc_msgSend_270Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_NSZone>)>(); + + late final _sel_objectZone1 = _registerName1("objectZone"); + ffi.Pointer<_NSZone> _objc_msgSend_271( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_271( + obj, + sel, + ); + } + + late final __objc_msgSend_271Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer<_NSZone> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_271 = __objc_msgSend_271Ptr.asFunction< + ffi.Pointer<_NSZone> Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_systemVersion1 = _registerName1("systemVersion"); + late final _sel_allowsKeyedCoding1 = _registerName1("allowsKeyedCoding"); + late final _sel_encodeObject_forKey_1 = + _registerName1("encodeObject:forKey:"); + late final _sel_encodeConditionalObject_forKey_1 = + _registerName1("encodeConditionalObject:forKey:"); + late final _sel_encodeBool_forKey_1 = _registerName1("encodeBool:forKey:"); + void _objc_msgSend_272( + ffi.Pointer obj, + ffi.Pointer sel, + bool value, + ffi.Pointer key, + ) { + return __objc_msgSend_272( + obj, + sel, + value, + key, + ); + } + + late final __objc_msgSend_272Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Bool, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_272 = __objc_msgSend_272Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, bool, + ffi.Pointer)>(); + + late final _sel_encodeInt_forKey_1 = _registerName1("encodeInt:forKey:"); + void _objc_msgSend_273( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ffi.Pointer key, + ) { + return __objc_msgSend_273( + obj, + sel, + value, + key, + ); + } + + late final __objc_msgSend_273Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_273 = __objc_msgSend_273Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); + + late final _sel_encodeInt32_forKey_1 = _registerName1("encodeInt32:forKey:"); + void _objc_msgSend_274( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ffi.Pointer key, + ) { + return __objc_msgSend_274( + obj, + sel, + value, + key, + ); + } + + late final __objc_msgSend_274Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_274 = __objc_msgSend_274Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); + + late final _sel_encodeInt64_forKey_1 = _registerName1("encodeInt64:forKey:"); + void _objc_msgSend_275( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ffi.Pointer key, + ) { + return __objc_msgSend_275( + obj, + sel, + value, + key, + ); + } + + late final __objc_msgSend_275Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int64, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_275 = __objc_msgSend_275Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); + + late final _sel_encodeFloat_forKey_1 = _registerName1("encodeFloat:forKey:"); + void _objc_msgSend_276( + ffi.Pointer obj, + ffi.Pointer sel, + double value, + ffi.Pointer key, + ) { + return __objc_msgSend_276( + obj, + sel, + value, + key, + ); + } + + late final __objc_msgSend_276Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Float, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_276 = __objc_msgSend_276Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, double, + ffi.Pointer)>(); + + late final _sel_encodeDouble_forKey_1 = + _registerName1("encodeDouble:forKey:"); + void _objc_msgSend_277( + ffi.Pointer obj, + ffi.Pointer sel, + double value, + ffi.Pointer key, + ) { + return __objc_msgSend_277( + obj, + sel, + value, + key, + ); + } + + late final __objc_msgSend_277Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Double, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_277 = __objc_msgSend_277Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, double, + ffi.Pointer)>(); + + late final _sel_encodeBytes_length_forKey_1 = + _registerName1("encodeBytes:length:forKey:"); + void _objc_msgSend_278( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer bytes, + int length, + ffi.Pointer key, + ) { + return __objc_msgSend_278( + obj, + sel, + bytes, + length, + key, + ); + } + + late final __objc_msgSend_278Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_278 = __objc_msgSend_278Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); + + late final _sel_containsValueForKey_1 = + _registerName1("containsValueForKey:"); + late final _sel_decodeObjectForKey_1 = _registerName1("decodeObjectForKey:"); + late final _sel_decodeTopLevelObjectForKey_error_1 = + _registerName1("decodeTopLevelObjectForKey:error:"); + ffi.Pointer _objc_msgSend_279( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ffi.Pointer> error, + ) { + return __objc_msgSend_279( + obj, + sel, + key, + error, + ); + } + + late final __objc_msgSend_279Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_279 = __objc_msgSend_279Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_decodeBoolForKey_1 = _registerName1("decodeBoolForKey:"); + late final _sel_decodeIntForKey_1 = _registerName1("decodeIntForKey:"); + int _objc_msgSend_280( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ) { + return __objc_msgSend_280( + obj, + sel, + key, + ); + } + + late final __objc_msgSend_280Ptr = _lookup< + ffi.NativeFunction< + ffi.Int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_280 = __objc_msgSend_280Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_decodeInt32ForKey_1 = _registerName1("decodeInt32ForKey:"); + int _objc_msgSend_281( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ) { + return __objc_msgSend_281( + obj, + sel, + key, + ); + } + + late final __objc_msgSend_281Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_281 = __objc_msgSend_281Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_decodeInt64ForKey_1 = _registerName1("decodeInt64ForKey:"); + int _objc_msgSend_282( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ) { + return __objc_msgSend_282( + obj, + sel, + key, + ); + } + + late final __objc_msgSend_282Ptr = _lookup< + ffi.NativeFunction< + ffi.Int64 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_282 = __objc_msgSend_282Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_decodeFloatForKey_1 = _registerName1("decodeFloatForKey:"); + double _objc_msgSend_283( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ) { + return __objc_msgSend_283( + obj, + sel, + key, + ); + } + + late final __objc_msgSend_283Ptr = _lookup< + ffi.NativeFunction< + ffi.Float Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_283 = __objc_msgSend_283Ptr.asFunction< + double Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_decodeDoubleForKey_1 = _registerName1("decodeDoubleForKey:"); + double _objc_msgSend_284( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ) { + return __objc_msgSend_284( + obj, + sel, + key, + ); + } + + late final __objc_msgSend_284Ptr = _lookup< + ffi.NativeFunction< + ffi.Double Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_284 = __objc_msgSend_284Ptr.asFunction< + double Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_decodeBytesForKey_returnedLength_1 = + _registerName1("decodeBytesForKey:returnedLength:"); + ffi.Pointer _objc_msgSend_285( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ffi.Pointer lengthp, + ) { + return __objc_msgSend_285( + obj, + sel, + key, + lengthp, + ); + } + + late final __objc_msgSend_285Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_285 = __objc_msgSend_285Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_encodeInteger_forKey_1 = + _registerName1("encodeInteger:forKey:"); + void _objc_msgSend_286( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ffi.Pointer key, + ) { + return __objc_msgSend_286( + obj, + sel, + value, + key, + ); + } + + late final __objc_msgSend_286Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Long, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_286 = __objc_msgSend_286Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); + + late final _sel_decodeIntegerForKey_1 = + _registerName1("decodeIntegerForKey:"); + late final _sel_requiresSecureCoding1 = + _registerName1("requiresSecureCoding"); + late final _sel_decodeObjectOfClass_forKey_1 = + _registerName1("decodeObjectOfClass:forKey:"); + ffi.Pointer _objc_msgSend_287( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aClass, + ffi.Pointer key, + ) { + return __objc_msgSend_287( + obj, + sel, + aClass, + key, + ); + } + + late final __objc_msgSend_287Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_287 = __objc_msgSend_287Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_decodeTopLevelObjectOfClass_forKey_error_1 = + _registerName1("decodeTopLevelObjectOfClass:forKey:error:"); + ffi.Pointer _objc_msgSend_288( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aClass, + ffi.Pointer key, + ffi.Pointer> error, + ) { + return __objc_msgSend_288( + obj, + sel, + aClass, + key, + error, + ); + } + + late final __objc_msgSend_288Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_288 = __objc_msgSend_288Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_decodeArrayOfObjectsOfClass_forKey_1 = + _registerName1("decodeArrayOfObjectsOfClass:forKey:"); + ffi.Pointer _objc_msgSend_289( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer cls, + ffi.Pointer key, + ) { + return __objc_msgSend_289( + obj, + sel, + cls, + key, + ); + } + + late final __objc_msgSend_289Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_289 = __objc_msgSend_289Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_1 = + _registerName1("decodeDictionaryWithKeysOfClass:objectsOfClass:forKey:"); + ffi.Pointer _objc_msgSend_290( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer keyCls, + ffi.Pointer objectCls, + ffi.Pointer key, + ) { + return __objc_msgSend_290( + obj, + sel, + keyCls, + objectCls, + key, + ); + } + + late final __objc_msgSend_290Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_290 = __objc_msgSend_290Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_decodeObjectOfClasses_forKey_1 = + _registerName1("decodeObjectOfClasses:forKey:"); + ffi.Pointer _objc_msgSend_291( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer classes, + ffi.Pointer key, + ) { + return __objc_msgSend_291( + obj, + sel, + classes, + key, + ); + } + + late final __objc_msgSend_291Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_291 = __objc_msgSend_291Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_decodeTopLevelObjectOfClasses_forKey_error_1 = + _registerName1("decodeTopLevelObjectOfClasses:forKey:error:"); + ffi.Pointer _objc_msgSend_292( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer classes, + ffi.Pointer key, + ffi.Pointer> error, + ) { + return __objc_msgSend_292( + obj, + sel, + classes, + key, + error, + ); + } + + late final __objc_msgSend_292Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_292 = __objc_msgSend_292Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_decodeArrayOfObjectsOfClasses_forKey_1 = + _registerName1("decodeArrayOfObjectsOfClasses:forKey:"); + ffi.Pointer _objc_msgSend_293( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer classes, + ffi.Pointer key, + ) { + return __objc_msgSend_293( + obj, + sel, + classes, + key, + ); + } + + late final __objc_msgSend_293Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_293 = __objc_msgSend_293Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_1 = + _registerName1( + "decodeDictionaryWithKeysOfClasses:objectsOfClasses:forKey:"); + ffi.Pointer _objc_msgSend_294( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer keyClasses, + ffi.Pointer objectClasses, + ffi.Pointer key, + ) { + return __objc_msgSend_294( + obj, + sel, + keyClasses, + objectClasses, + key, + ); + } + + late final __objc_msgSend_294Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_294 = __objc_msgSend_294Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_decodePropertyListForKey_1 = + _registerName1("decodePropertyListForKey:"); + late final _sel_allowedClasses1 = _registerName1("allowedClasses"); + ffi.Pointer _objc_msgSend_295( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_295( + obj, + sel, + ); + } + + late final __objc_msgSend_295Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_295 = __objc_msgSend_295Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_failWithError_1 = _registerName1("failWithError:"); + void _objc_msgSend_296( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer error, + ) { + return __objc_msgSend_296( + obj, + sel, + error, + ); + } + + late final __objc_msgSend_296Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_296 = __objc_msgSend_296Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_decodingFailurePolicy1 = + _registerName1("decodingFailurePolicy"); + int _objc_msgSend_297( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_297( + obj, + sel, + ); + } + + late final __objc_msgSend_297Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_297 = __objc_msgSend_297Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_error1 = _registerName1("error"); + ffi.Pointer _objc_msgSend_298( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_298( + obj, + sel, + ); + } + + late final __objc_msgSend_298Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_298 = __objc_msgSend_298Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_encodeNXObject_1 = _registerName1("encodeNXObject:"); + late final _sel_decodeNXObject1 = _registerName1("decodeNXObject"); + late final _sel_decodeValueOfObjCType_at_1 = + _registerName1("decodeValueOfObjCType:at:"); + late final _sel_encodePoint_1 = _registerName1("encodePoint:"); + void _objc_msgSend_299( + ffi.Pointer obj, + ffi.Pointer sel, + CGPoint point, + ) { + return __objc_msgSend_299( + obj, + sel, + point, + ); + } + + late final __objc_msgSend_299Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + CGPoint)>>('objc_msgSend'); + late final __objc_msgSend_299 = __objc_msgSend_299Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, CGPoint)>(); + + late final _sel_decodePoint1 = _registerName1("decodePoint"); + late final _sel_encodeSize_1 = _registerName1("encodeSize:"); + void _objc_msgSend_300( + ffi.Pointer obj, + ffi.Pointer sel, + CGSize size, + ) { + return __objc_msgSend_300( + obj, + sel, + size, + ); + } + + late final __objc_msgSend_300Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + CGSize)>>('objc_msgSend'); + late final __objc_msgSend_300 = __objc_msgSend_300Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, CGSize)>(); + + late final _sel_decodeSize1 = _registerName1("decodeSize"); + late final _sel_encodeRect_1 = _registerName1("encodeRect:"); + void _objc_msgSend_301( + ffi.Pointer obj, + ffi.Pointer sel, + CGRect rect, + ) { + return __objc_msgSend_301( + obj, + sel, + rect, + ); + } + + late final __objc_msgSend_301Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + CGRect)>>('objc_msgSend'); + late final __objc_msgSend_301 = __objc_msgSend_301Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, CGRect)>(); + + late final _sel_decodeRect1 = _registerName1("decodeRect"); + late final _sel_encodePoint_forKey_1 = _registerName1("encodePoint:forKey:"); + void _objc_msgSend_302( + ffi.Pointer obj, + ffi.Pointer sel, + CGPoint point, + ffi.Pointer key, + ) { + return __objc_msgSend_302( + obj, + sel, + point, + key, + ); + } + + late final __objc_msgSend_302Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + CGPoint, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_302 = __objc_msgSend_302Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, CGPoint, + ffi.Pointer)>(); + + late final _sel_encodeSize_forKey_1 = _registerName1("encodeSize:forKey:"); + void _objc_msgSend_303( + ffi.Pointer obj, + ffi.Pointer sel, + CGSize size, + ffi.Pointer key, + ) { + return __objc_msgSend_303( + obj, + sel, + size, + key, + ); + } + + late final __objc_msgSend_303Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + CGSize, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_303 = __objc_msgSend_303Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, CGSize, + ffi.Pointer)>(); + + late final _sel_encodeRect_forKey_1 = _registerName1("encodeRect:forKey:"); + void _objc_msgSend_304( + ffi.Pointer obj, + ffi.Pointer sel, + CGRect rect, + ffi.Pointer key, + ) { + return __objc_msgSend_304( + obj, + sel, + rect, + key, + ); + } + + late final __objc_msgSend_304Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + CGRect, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_304 = __objc_msgSend_304Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, CGRect, + ffi.Pointer)>(); + + late final _sel_decodePointForKey_1 = _registerName1("decodePointForKey:"); + CGPoint _objc_msgSend_305( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ) { + return __objc_msgSend_305( + obj, + sel, + key, + ); + } + + late final __objc_msgSend_305Ptr = _lookup< + ffi.NativeFunction< + CGPoint Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_305 = __objc_msgSend_305Ptr.asFunction< + CGPoint Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_decodeSizeForKey_1 = _registerName1("decodeSizeForKey:"); + CGSize _objc_msgSend_306( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ) { + return __objc_msgSend_306( + obj, + sel, + key, + ); + } + + late final __objc_msgSend_306Ptr = _lookup< + ffi.NativeFunction< + CGSize Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_306 = __objc_msgSend_306Ptr.asFunction< + CGSize Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_decodeRectForKey_1 = _registerName1("decodeRectForKey:"); + CGRect _objc_msgSend_307( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ) { + return __objc_msgSend_307( + obj, + sel, + key, + ); + } + + late final __objc_msgSend_307Ptr = _lookup< + ffi.NativeFunction< + CGRect Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_307 = __objc_msgSend_307Ptr.asFunction< + CGRect Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_substringFromIndex_1 = _registerName1("substringFromIndex:"); + ffi.Pointer _objc_msgSend_308( + ffi.Pointer obj, + ffi.Pointer sel, + int from, + ) { + return __objc_msgSend_308( + obj, + sel, + from, + ); + } + + late final __objc_msgSend_308Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_308 = __objc_msgSend_308Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_substringToIndex_1 = _registerName1("substringToIndex:"); + late final _sel_substringWithRange_1 = _registerName1("substringWithRange:"); + ffi.Pointer _objc_msgSend_309( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ) { + return __objc_msgSend_309( + obj, + sel, + range, + ); + } + + late final __objc_msgSend_309Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_309 = __objc_msgSend_309Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, _NSRange)>(); + + late final _sel_getCharacters_range_1 = + _registerName1("getCharacters:range:"); + void _objc_msgSend_310( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer buffer, + _NSRange range, + ) { + return __objc_msgSend_310( + obj, + sel, + buffer, + range, + ); + } + + late final __objc_msgSend_310Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_310 = __objc_msgSend_310Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>(); + + int _objc_msgSend_311( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, + ) { + return __objc_msgSend_311( + obj, + sel, + string, + ); + } + + late final __objc_msgSend_311Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_311 = __objc_msgSend_311Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_compare_options_1 = _registerName1("compare:options:"); + int _objc_msgSend_312( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, + int mask, + ) { + return __objc_msgSend_312( + obj, + sel, + string, + mask, + ); + } + + late final __objc_msgSend_312Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_312 = __objc_msgSend_312Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_compare_options_range_1 = + _registerName1("compare:options:range:"); + int _objc_msgSend_313( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, + int mask, + _NSRange rangeOfReceiverToCompare, + ) { + return __objc_msgSend_313( + obj, + sel, + string, + mask, + rangeOfReceiverToCompare, + ); + } + + late final __objc_msgSend_313Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_313 = __objc_msgSend_313Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, _NSRange)>(); + + late final _sel_compare_options_range_locale_1 = + _registerName1("compare:options:range:locale:"); + int _objc_msgSend_314( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, + int mask, + _NSRange rangeOfReceiverToCompare, + ffi.Pointer locale, + ) { + return __objc_msgSend_314( + obj, + sel, + string, + mask, + rangeOfReceiverToCompare, + locale, + ); + } + + late final __objc_msgSend_314Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_314 = __objc_msgSend_314Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, _NSRange, ffi.Pointer)>(); + + late final _sel_caseInsensitiveCompare_1 = + _registerName1("caseInsensitiveCompare:"); + late final _sel_localizedCompare_1 = _registerName1("localizedCompare:"); + late final _sel_localizedCaseInsensitiveCompare_1 = + _registerName1("localizedCaseInsensitiveCompare:"); + late final _sel_localizedStandardCompare_1 = + _registerName1("localizedStandardCompare:"); + late final _sel_isEqualToString_1 = _registerName1("isEqualToString:"); + late final _sel_hasPrefix_1 = _registerName1("hasPrefix:"); + late final _sel_hasSuffix_1 = _registerName1("hasSuffix:"); + late final _sel_commonPrefixWithString_options_1 = + _registerName1("commonPrefixWithString:options:"); + ffi.Pointer _objc_msgSend_315( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer str, + int mask, + ) { + return __objc_msgSend_315( + obj, + sel, + str, + mask, + ); + } + + late final __objc_msgSend_315Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_315 = __objc_msgSend_315Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_containsString_1 = _registerName1("containsString:"); + late final _sel_localizedCaseInsensitiveContainsString_1 = + _registerName1("localizedCaseInsensitiveContainsString:"); + late final _sel_localizedStandardContainsString_1 = + _registerName1("localizedStandardContainsString:"); + late final _sel_localizedStandardRangeOfString_1 = + _registerName1("localizedStandardRangeOfString:"); + _NSRange _objc_msgSend_316( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer str, + ) { + return __objc_msgSend_316( + obj, + sel, + str, + ); + } + + late final __objc_msgSend_316Ptr = _lookup< + ffi.NativeFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_316 = __objc_msgSend_316Ptr.asFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_rangeOfString_1 = _registerName1("rangeOfString:"); + late final _sel_rangeOfString_options_1 = + _registerName1("rangeOfString:options:"); + _NSRange _objc_msgSend_317( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer searchString, + int mask, + ) { + return __objc_msgSend_317( + obj, + sel, + searchString, + mask, + ); + } + + late final __objc_msgSend_317Ptr = _lookup< + ffi.NativeFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_317 = __objc_msgSend_317Ptr.asFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_rangeOfString_options_range_1 = + _registerName1("rangeOfString:options:range:"); + _NSRange _objc_msgSend_318( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer searchString, + int mask, + _NSRange rangeOfReceiverToSearch, + ) { + return __objc_msgSend_318( + obj, + sel, + searchString, + mask, + rangeOfReceiverToSearch, + ); + } + + late final __objc_msgSend_318Ptr = _lookup< + ffi.NativeFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_318 = __objc_msgSend_318Ptr.asFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, _NSRange)>(); + + late final _sel_rangeOfString_options_range_locale_1 = + _registerName1("rangeOfString:options:range:locale:"); + _NSRange _objc_msgSend_319( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer searchString, + int mask, + _NSRange rangeOfReceiverToSearch, + ffi.Pointer locale, + ) { + return __objc_msgSend_319( + obj, + sel, + searchString, + mask, + rangeOfReceiverToSearch, + locale, + ); + } + + late final __objc_msgSend_319Ptr = _lookup< + ffi.NativeFunction< + _NSRange Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_319 = __objc_msgSend_319Ptr.asFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, _NSRange, ffi.Pointer)>(); + + late final _sel_rangeOfCharacterFromSet_1 = + _registerName1("rangeOfCharacterFromSet:"); + _NSRange _objc_msgSend_320( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer searchSet, + ) { + return __objc_msgSend_320( + obj, + sel, + searchSet, + ); + } + + late final __objc_msgSend_320Ptr = _lookup< + ffi.NativeFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_320 = __objc_msgSend_320Ptr.asFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_rangeOfCharacterFromSet_options_1 = + _registerName1("rangeOfCharacterFromSet:options:"); + _NSRange _objc_msgSend_321( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer searchSet, + int mask, + ) { + return __objc_msgSend_321( + obj, + sel, + searchSet, + mask, + ); + } + + late final __objc_msgSend_321Ptr = _lookup< + ffi.NativeFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_321 = __objc_msgSend_321Ptr.asFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_rangeOfCharacterFromSet_options_range_1 = + _registerName1("rangeOfCharacterFromSet:options:range:"); + _NSRange _objc_msgSend_322( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer searchSet, + int mask, + _NSRange rangeOfReceiverToSearch, + ) { + return __objc_msgSend_322( + obj, + sel, + searchSet, + mask, + rangeOfReceiverToSearch, + ); + } + + late final __objc_msgSend_322Ptr = _lookup< + ffi.NativeFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_322 = __objc_msgSend_322Ptr.asFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, _NSRange)>(); + + late final _sel_rangeOfComposedCharacterSequenceAtIndex_1 = + _registerName1("rangeOfComposedCharacterSequenceAtIndex:"); + _NSRange _objc_msgSend_323( + ffi.Pointer obj, + ffi.Pointer sel, + int index, + ) { + return __objc_msgSend_323( + obj, + sel, + index, + ); + } + + late final __objc_msgSend_323Ptr = _lookup< + ffi.NativeFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_323 = __objc_msgSend_323Ptr.asFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_rangeOfComposedCharacterSequencesForRange_1 = + _registerName1("rangeOfComposedCharacterSequencesForRange:"); + _NSRange _objc_msgSend_324( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ) { + return __objc_msgSend_324( + obj, + sel, + range, + ); + } + + late final __objc_msgSend_324Ptr = _lookup< + ffi.NativeFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_324 = __objc_msgSend_324Ptr.asFunction< + _NSRange Function( + ffi.Pointer, ffi.Pointer, _NSRange)>(); + + late final _sel_stringByAppendingString_1 = + _registerName1("stringByAppendingString:"); + late final _sel_stringByAppendingFormat_1 = + _registerName1("stringByAppendingFormat:"); + late final _sel_uppercaseString1 = _registerName1("uppercaseString"); + late final _sel_lowercaseString1 = _registerName1("lowercaseString"); + late final _sel_capitalizedString1 = _registerName1("capitalizedString"); + late final _sel_localizedUppercaseString1 = + _registerName1("localizedUppercaseString"); + late final _sel_localizedLowercaseString1 = + _registerName1("localizedLowercaseString"); + late final _sel_localizedCapitalizedString1 = + _registerName1("localizedCapitalizedString"); + late final _sel_uppercaseStringWithLocale_1 = + _registerName1("uppercaseStringWithLocale:"); + ffi.Pointer _objc_msgSend_325( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer locale, + ) { + return __objc_msgSend_325( + obj, + sel, + locale, + ); + } + + late final __objc_msgSend_325Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_325 = __objc_msgSend_325Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_lowercaseStringWithLocale_1 = + _registerName1("lowercaseStringWithLocale:"); + late final _sel_capitalizedStringWithLocale_1 = + _registerName1("capitalizedStringWithLocale:"); + late final _sel_getLineStart_end_contentsEnd_forRange_1 = + _registerName1("getLineStart:end:contentsEnd:forRange:"); + void _objc_msgSend_326( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer startPtr, + ffi.Pointer lineEndPtr, + ffi.Pointer contentsEndPtr, + _NSRange range, + ) { + return __objc_msgSend_326( + obj, + sel, + startPtr, + lineEndPtr, + contentsEndPtr, + range, + ); + } + + late final __objc_msgSend_326Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_326 = __objc_msgSend_326Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + _NSRange)>(); + + late final _sel_lineRangeForRange_1 = _registerName1("lineRangeForRange:"); + late final _sel_getParagraphStart_end_contentsEnd_forRange_1 = + _registerName1("getParagraphStart:end:contentsEnd:forRange:"); + late final _sel_paragraphRangeForRange_1 = + _registerName1("paragraphRangeForRange:"); + late final _sel_enumerateSubstringsInRange_options_usingBlock_1 = + _registerName1("enumerateSubstringsInRange:options:usingBlock:"); + void _objc_msgSend_327( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + int opts, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_327( + obj, + sel, + range, + opts, + block, + ); + } + + late final __objc_msgSend_327Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_327 = __objc_msgSend_327Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_enumerateLinesUsingBlock_1 = + _registerName1("enumerateLinesUsingBlock:"); + void _objc_msgSend_328( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_328( + obj, + sel, + block, + ); + } + + late final __objc_msgSend_328Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_328 = __objc_msgSend_328Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_UTF8String1 = _registerName1("UTF8String"); + late final _sel_fastestEncoding1 = _registerName1("fastestEncoding"); + late final _sel_smallestEncoding1 = _registerName1("smallestEncoding"); + late final _sel_dataUsingEncoding_allowLossyConversion_1 = + _registerName1("dataUsingEncoding:allowLossyConversion:"); + ffi.Pointer _objc_msgSend_329( + ffi.Pointer obj, + ffi.Pointer sel, + int encoding, + bool lossy, + ) { + return __objc_msgSend_329( + obj, + sel, + encoding, + lossy, + ); + } + + late final __objc_msgSend_329Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_329 = __objc_msgSend_329Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int, bool)>(); + + late final _sel_dataUsingEncoding_1 = _registerName1("dataUsingEncoding:"); + ffi.Pointer _objc_msgSend_330( + ffi.Pointer obj, + ffi.Pointer sel, + int encoding, + ) { + return __objc_msgSend_330( + obj, + sel, + encoding, + ); + } + + late final __objc_msgSend_330Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_330 = __objc_msgSend_330Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_canBeConvertedToEncoding_1 = + _registerName1("canBeConvertedToEncoding:"); + late final _sel_cStringUsingEncoding_1 = + _registerName1("cStringUsingEncoding:"); + late final _sel_getCString_maxLength_encoding_1 = + _registerName1("getCString:maxLength:encoding:"); + bool _objc_msgSend_331( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer buffer, + int maxBufferCount, + int encoding, + ) { + return __objc_msgSend_331( + obj, + sel, + buffer, + maxBufferCount, + encoding, + ); + } + + late final __objc_msgSend_331Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_331 = __objc_msgSend_331Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, int)>(); + + late final _sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_1 = + _registerName1( + "getBytes:maxLength:usedLength:encoding:options:range:remainingRange:"); + bool _objc_msgSend_332( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer buffer, + int maxBufferCount, + ffi.Pointer usedBufferCount, + int encoding, + int options, + _NSRange range, + ffi.Pointer<_NSRange> leftover, + ) { + return __objc_msgSend_332( + obj, + sel, + buffer, + maxBufferCount, + usedBufferCount, + encoding, + options, + range, + leftover, + ); + } + + late final __objc_msgSend_332Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Int32, + _NSRange, + ffi.Pointer<_NSRange>)>>('objc_msgSend'); + late final __objc_msgSend_332 = __objc_msgSend_332Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + int, + int, + _NSRange, + ffi.Pointer<_NSRange>)>(); + + late final _sel_maximumLengthOfBytesUsingEncoding_1 = + _registerName1("maximumLengthOfBytesUsingEncoding:"); + late final _sel_lengthOfBytesUsingEncoding_1 = + _registerName1("lengthOfBytesUsingEncoding:"); + late final _sel_availableStringEncodings1 = + _registerName1("availableStringEncodings"); + ffi.Pointer _objc_msgSend_333( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_333( + obj, + sel, + ); + } + + late final __objc_msgSend_333Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_333 = __objc_msgSend_333Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_localizedNameOfStringEncoding_1 = + _registerName1("localizedNameOfStringEncoding:"); + late final _sel_defaultCStringEncoding1 = + _registerName1("defaultCStringEncoding"); + late final _sel_decomposedStringWithCanonicalMapping1 = + _registerName1("decomposedStringWithCanonicalMapping"); + late final _sel_precomposedStringWithCanonicalMapping1 = + _registerName1("precomposedStringWithCanonicalMapping"); + late final _sel_decomposedStringWithCompatibilityMapping1 = + _registerName1("decomposedStringWithCompatibilityMapping"); + late final _sel_precomposedStringWithCompatibilityMapping1 = + _registerName1("precomposedStringWithCompatibilityMapping"); + late final _sel_componentsSeparatedByString_1 = + _registerName1("componentsSeparatedByString:"); + late final _sel_componentsSeparatedByCharactersInSet_1 = + _registerName1("componentsSeparatedByCharactersInSet:"); + ffi.Pointer _objc_msgSend_334( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer separator, + ) { + return __objc_msgSend_334( + obj, + sel, + separator, + ); + } + + late final __objc_msgSend_334Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_334 = __objc_msgSend_334Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_stringByTrimmingCharactersInSet_1 = + _registerName1("stringByTrimmingCharactersInSet:"); + ffi.Pointer _objc_msgSend_335( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer set1, + ) { + return __objc_msgSend_335( + obj, + sel, + set1, + ); + } + + late final __objc_msgSend_335Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_335 = __objc_msgSend_335Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_stringByPaddingToLength_withString_startingAtIndex_1 = + _registerName1("stringByPaddingToLength:withString:startingAtIndex:"); + ffi.Pointer _objc_msgSend_336( + ffi.Pointer obj, + ffi.Pointer sel, + int newLength, + ffi.Pointer padString, + int padIndex, + ) { + return __objc_msgSend_336( + obj, + sel, + newLength, + padString, + padIndex, + ); + } + + late final __objc_msgSend_336Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_336 = __objc_msgSend_336Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer, int)>(); + + late final _sel_stringByFoldingWithOptions_locale_1 = + _registerName1("stringByFoldingWithOptions:locale:"); + ffi.Pointer _objc_msgSend_337( + ffi.Pointer obj, + ffi.Pointer sel, + int options, + ffi.Pointer locale, + ) { + return __objc_msgSend_337( + obj, + sel, + options, + locale, + ); + } + + late final __objc_msgSend_337Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_337 = __objc_msgSend_337Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); + + late final _sel_stringByReplacingOccurrencesOfString_withString_options_range_1 = + _registerName1( + "stringByReplacingOccurrencesOfString:withString:options:range:"); + ffi.Pointer _objc_msgSend_338( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer target, + ffi.Pointer replacement, + int options, + _NSRange searchRange, + ) { + return __objc_msgSend_338( + obj, + sel, + target, + replacement, + options, + searchRange, + ); + } + + late final __objc_msgSend_338Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_338 = __objc_msgSend_338Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + _NSRange)>(); + + late final _sel_stringByReplacingOccurrencesOfString_withString_1 = + _registerName1("stringByReplacingOccurrencesOfString:withString:"); + ffi.Pointer _objc_msgSend_339( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer target, + ffi.Pointer replacement, + ) { + return __objc_msgSend_339( + obj, + sel, + target, + replacement, + ); + } + + late final __objc_msgSend_339Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_339 = __objc_msgSend_339Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_stringByReplacingCharactersInRange_withString_1 = + _registerName1("stringByReplacingCharactersInRange:withString:"); + ffi.Pointer _objc_msgSend_340( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ffi.Pointer replacement, + ) { + return __objc_msgSend_340( + obj, + sel, + range, + replacement, + ); + } + + late final __objc_msgSend_340Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_340 = __objc_msgSend_340Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, _NSRange, ffi.Pointer)>(); + + late final _sel_stringByApplyingTransform_reverse_1 = + _registerName1("stringByApplyingTransform:reverse:"); + ffi.Pointer _objc_msgSend_341( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer transform, + bool reverse, + ) { + return __objc_msgSend_341( + obj, + sel, + transform, + reverse, + ); + } + + late final __objc_msgSend_341Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_341 = __objc_msgSend_341Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, bool)>(); + + late final _sel_writeToURL_atomically_encoding_error_1 = + _registerName1("writeToURL:atomically:encoding:error:"); + bool _objc_msgSend_342( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + bool useAuxiliaryFile, + int enc, + ffi.Pointer> error, + ) { + return __objc_msgSend_342( + obj, + sel, + url, + useAuxiliaryFile, + enc, + error, + ); + } + + late final __objc_msgSend_342Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.UnsignedLong, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_342 = __objc_msgSend_342Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + int, + ffi.Pointer>)>(); + + late final _sel_writeToFile_atomically_encoding_error_1 = + _registerName1("writeToFile:atomically:encoding:error:"); + bool _objc_msgSend_343( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + bool useAuxiliaryFile, + int enc, + ffi.Pointer> error, + ) { + return __objc_msgSend_343( + obj, + sel, + path, + useAuxiliaryFile, + enc, + error, + ); + } + + late final __objc_msgSend_343Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.UnsignedLong, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_343 = __objc_msgSend_343Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + int, + ffi.Pointer>)>(); + + late final _sel_hash1 = _registerName1("hash"); + late final _sel_initWithCharactersNoCopy_length_freeWhenDone_1 = + _registerName1("initWithCharactersNoCopy:length:freeWhenDone:"); + instancetype _objc_msgSend_344( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer characters, + int length, + bool freeBuffer, + ) { + return __objc_msgSend_344( + obj, + sel, + characters, + length, + freeBuffer, + ); + } + + late final __objc_msgSend_344Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_344 = __objc_msgSend_344Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, bool)>(); + + late final _sel_initWithCharactersNoCopy_length_deallocator_1 = + _registerName1("initWithCharactersNoCopy:length:deallocator:"); + instancetype _objc_msgSend_345( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer chars, + int len, + ffi.Pointer<_ObjCBlock> deallocator, + ) { + return __objc_msgSend_345( + obj, + sel, + chars, + len, + deallocator, + ); + } + + late final __objc_msgSend_345Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_345 = __objc_msgSend_345Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_initWithCharacters_length_1 = + _registerName1("initWithCharacters:length:"); + instancetype _objc_msgSend_346( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer characters, + int length, + ) { + return __objc_msgSend_346( + obj, + sel, + characters, + length, + ); + } + + late final __objc_msgSend_346Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_346 = __objc_msgSend_346Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_initWithUTF8String_1 = _registerName1("initWithUTF8String:"); + instancetype _objc_msgSend_347( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer nullTerminatedCString, + ) { + return __objc_msgSend_347( + obj, + sel, + nullTerminatedCString, + ); + } + + late final __objc_msgSend_347Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_347 = __objc_msgSend_347Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_initWithFormat_1 = _registerName1("initWithFormat:"); + late final _sel_initWithFormat_arguments_1 = + _registerName1("initWithFormat:arguments:"); + instancetype _objc_msgSend_348( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ffi.Pointer<__va_list_tag> argList, + ) { + return __objc_msgSend_348( + obj, + sel, + format, + argList, + ); + } + + late final __objc_msgSend_348Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); + late final __objc_msgSend_348 = __objc_msgSend_348Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<__va_list_tag>)>(); + + late final _sel_initWithFormat_locale_1 = + _registerName1("initWithFormat:locale:"); + late final _sel_initWithFormat_locale_arguments_1 = + _registerName1("initWithFormat:locale:arguments:"); + instancetype _objc_msgSend_349( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ffi.Pointer locale, + ffi.Pointer<__va_list_tag> argList, + ) { + return __objc_msgSend_349( + obj, + sel, + format, + locale, + argList, + ); + } + + late final __objc_msgSend_349Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); + late final __objc_msgSend_349 = __objc_msgSend_349Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>)>(); + + late final _sel_initWithValidatedFormat_validFormatSpecifiers_error_1 = + _registerName1("initWithValidatedFormat:validFormatSpecifiers:error:"); + instancetype _objc_msgSend_350( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ffi.Pointer validFormatSpecifiers, + ffi.Pointer> error, + ) { + return __objc_msgSend_350( + obj, + sel, + format, + validFormatSpecifiers, + error, + ); + } + + late final __objc_msgSend_350Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_350 = __objc_msgSend_350Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1 = + _registerName1( + "initWithValidatedFormat:validFormatSpecifiers:locale:error:"); + instancetype _objc_msgSend_351( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ffi.Pointer validFormatSpecifiers, + ffi.Pointer locale, + ffi.Pointer> error, + ) { + return __objc_msgSend_351( + obj, + sel, + format, + validFormatSpecifiers, + locale, + error, + ); + } + + late final __objc_msgSend_351Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_351 = __objc_msgSend_351Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1 = + _registerName1( + "initWithValidatedFormat:validFormatSpecifiers:arguments:error:"); + instancetype _objc_msgSend_352( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ffi.Pointer validFormatSpecifiers, + ffi.Pointer<__va_list_tag> argList, + ffi.Pointer> error, + ) { + return __objc_msgSend_352( + obj, + sel, + format, + validFormatSpecifiers, + argList, + error, + ); + } + + late final __objc_msgSend_352Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_352 = __objc_msgSend_352Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>, + ffi.Pointer>)>(); + + late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1 = + _registerName1( + "initWithValidatedFormat:validFormatSpecifiers:locale:arguments:error:"); + instancetype _objc_msgSend_353( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + ffi.Pointer validFormatSpecifiers, + ffi.Pointer locale, + ffi.Pointer<__va_list_tag> argList, + ffi.Pointer> error, + ) { + return __objc_msgSend_353( + obj, + sel, + format, + validFormatSpecifiers, + locale, + argList, + error, + ); + } + + late final __objc_msgSend_353Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_353 = __objc_msgSend_353Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>, + ffi.Pointer>)>(); + + late final _sel_initWithData_encoding_1 = + _registerName1("initWithData:encoding:"); + instancetype _objc_msgSend_354( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer data, + int encoding, + ) { + return __objc_msgSend_354( + obj, + sel, + data, + encoding, + ); + } + + late final __objc_msgSend_354Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_354 = __objc_msgSend_354Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_initWithBytes_length_encoding_1 = + _registerName1("initWithBytes:length:encoding:"); + instancetype _objc_msgSend_355( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer bytes, + int len, + int encoding, + ) { + return __objc_msgSend_355( + obj, + sel, + bytes, + len, + encoding, + ); + } + + late final __objc_msgSend_355Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_355 = __objc_msgSend_355Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, int)>(); + + late final _sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1 = + _registerName1("initWithBytesNoCopy:length:encoding:freeWhenDone:"); + instancetype _objc_msgSend_356( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer bytes, + int len, + int encoding, + bool freeBuffer, + ) { + return __objc_msgSend_356( + obj, + sel, + bytes, + len, + encoding, + freeBuffer, + ); + } + + late final __objc_msgSend_356Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_356 = __objc_msgSend_356Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, int, bool)>(); + + late final _sel_initWithBytesNoCopy_length_encoding_deallocator_1 = + _registerName1("initWithBytesNoCopy:length:encoding:deallocator:"); + instancetype _objc_msgSend_357( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer bytes, + int len, + int encoding, + ffi.Pointer<_ObjCBlock> deallocator, + ) { + return __objc_msgSend_357( + obj, + sel, + bytes, + len, + encoding, + deallocator, + ); + } + + late final __objc_msgSend_357Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_357 = __objc_msgSend_357Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_string1 = _registerName1("string"); + late final _sel_stringWithString_1 = _registerName1("stringWithString:"); + late final _sel_stringWithCharacters_length_1 = + _registerName1("stringWithCharacters:length:"); + late final _sel_stringWithUTF8String_1 = + _registerName1("stringWithUTF8String:"); + late final _sel_stringWithFormat_1 = _registerName1("stringWithFormat:"); + late final _sel_localizedStringWithFormat_1 = + _registerName1("localizedStringWithFormat:"); + late final _sel_stringWithValidatedFormat_validFormatSpecifiers_error_1 = + _registerName1("stringWithValidatedFormat:validFormatSpecifiers:error:"); + late final _sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1 = + _registerName1( + "localizedStringWithValidatedFormat:validFormatSpecifiers:error:"); + late final _sel_initWithCString_encoding_1 = + _registerName1("initWithCString:encoding:"); + instancetype _objc_msgSend_358( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer nullTerminatedCString, + int encoding, + ) { + return __objc_msgSend_358( + obj, + sel, + nullTerminatedCString, + encoding, + ); + } + + late final __objc_msgSend_358Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_358 = __objc_msgSend_358Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_stringWithCString_encoding_1 = + _registerName1("stringWithCString:encoding:"); + late final _sel_initWithContentsOfURL_encoding_error_1 = + _registerName1("initWithContentsOfURL:encoding:error:"); + instancetype _objc_msgSend_359( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + int enc, + ffi.Pointer> error, + ) { + return __objc_msgSend_359( + obj, + sel, + url, + enc, + error, + ); + } + + late final __objc_msgSend_359Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_359 = __objc_msgSend_359Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); + + late final _sel_initWithContentsOfFile_encoding_error_1 = + _registerName1("initWithContentsOfFile:encoding:error:"); + instancetype _objc_msgSend_360( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + int enc, + ffi.Pointer> error, + ) { + return __objc_msgSend_360( + obj, + sel, + path, + enc, + error, + ); + } + + late final __objc_msgSend_360Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_360 = __objc_msgSend_360Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); + + late final _sel_stringWithContentsOfURL_encoding_error_1 = + _registerName1("stringWithContentsOfURL:encoding:error:"); + late final _sel_stringWithContentsOfFile_encoding_error_1 = + _registerName1("stringWithContentsOfFile:encoding:error:"); + late final _sel_initWithContentsOfURL_usedEncoding_error_1 = + _registerName1("initWithContentsOfURL:usedEncoding:error:"); + instancetype _objc_msgSend_361( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer enc, + ffi.Pointer> error, + ) { + return __objc_msgSend_361( + obj, + sel, + url, + enc, + error, + ); + } + + late final __objc_msgSend_361Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_361 = __objc_msgSend_361Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_initWithContentsOfFile_usedEncoding_error_1 = + _registerName1("initWithContentsOfFile:usedEncoding:error:"); + instancetype _objc_msgSend_362( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer enc, + ffi.Pointer> error, + ) { + return __objc_msgSend_362( + obj, + sel, + path, + enc, + error, + ); + } + + late final __objc_msgSend_362Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_362 = __objc_msgSend_362Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_stringWithContentsOfURL_usedEncoding_error_1 = + _registerName1("stringWithContentsOfURL:usedEncoding:error:"); + late final _sel_stringWithContentsOfFile_usedEncoding_error_1 = + _registerName1("stringWithContentsOfFile:usedEncoding:error:"); + late final _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1 = + _registerName1( + "stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:"); + int _objc_msgSend_363( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer data, + ffi.Pointer opts, + ffi.Pointer> string, + ffi.Pointer usedLossyConversion, + ) { + return __objc_msgSend_363( + obj, + sel, + data, + opts, + string, + usedLossyConversion, + ); + } + + late final __objc_msgSend_363Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_363 = __objc_msgSend_363Ptr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer)>(); + + late final _sel_propertyList1 = _registerName1("propertyList"); + late final _sel_propertyListFromStringsFileFormat1 = + _registerName1("propertyListFromStringsFileFormat"); + late final _sel_cString1 = _registerName1("cString"); + late final _sel_lossyCString1 = _registerName1("lossyCString"); + late final _sel_cStringLength1 = _registerName1("cStringLength"); + late final _sel_getCString_1 = _registerName1("getCString:"); + late final _sel_getCString_maxLength_1 = + _registerName1("getCString:maxLength:"); + void _objc_msgSend_364( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer bytes, + int maxLength, + ) { + return __objc_msgSend_364( + obj, + sel, + bytes, + maxLength, + ); + } + + late final __objc_msgSend_364Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_364 = __objc_msgSend_364Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_getCString_maxLength_range_remainingRange_1 = + _registerName1("getCString:maxLength:range:remainingRange:"); + void _objc_msgSend_365( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer bytes, + int maxLength, + _NSRange aRange, + ffi.Pointer<_NSRange> leftoverRange, + ) { + return __objc_msgSend_365( + obj, + sel, + bytes, + maxLength, + aRange, + leftoverRange, + ); + } + + late final __objc_msgSend_365Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + _NSRange, + ffi.Pointer<_NSRange>)>>('objc_msgSend'); + late final __objc_msgSend_365 = __objc_msgSend_365Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, _NSRange, ffi.Pointer<_NSRange>)>(); + + late final _sel_stringWithContentsOfFile_1 = + _registerName1("stringWithContentsOfFile:"); + late final _sel_stringWithContentsOfURL_1 = + _registerName1("stringWithContentsOfURL:"); + late final _sel_initWithCStringNoCopy_length_freeWhenDone_1 = + _registerName1("initWithCStringNoCopy:length:freeWhenDone:"); + ffi.Pointer _objc_msgSend_366( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer bytes, + int length, + bool freeBuffer, + ) { + return __objc_msgSend_366( + obj, + sel, + bytes, + length, + freeBuffer, + ); + } + + late final __objc_msgSend_366Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_366 = __objc_msgSend_366Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, bool)>(); + + late final _sel_initWithCString_length_1 = + _registerName1("initWithCString:length:"); + late final _sel_initWithCString_1 = _registerName1("initWithCString:"); + late final _sel_stringWithCString_length_1 = + _registerName1("stringWithCString:length:"); + late final _sel_stringWithCString_1 = _registerName1("stringWithCString:"); + late final _sel_getCharacters_1 = _registerName1("getCharacters:"); + void _objc_msgSend_367( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer buffer, + ) { + return __objc_msgSend_367( + obj, + sel, + buffer, + ); + } + + late final __objc_msgSend_367Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_367 = __objc_msgSend_367Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_variantFittingPresentationWidth_1 = + _registerName1("variantFittingPresentationWidth:"); + ffi.Pointer _objc_msgSend_368( + ffi.Pointer obj, + ffi.Pointer sel, + int width, + ) { + return __objc_msgSend_368( + obj, + sel, + width, + ); + } + + late final __objc_msgSend_368Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_368 = __objc_msgSend_368Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_pathWithComponents_1 = _registerName1("pathWithComponents:"); + ffi.Pointer _objc_msgSend_369( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer components, + ) { + return __objc_msgSend_369( + obj, + sel, + components, + ); + } + + late final __objc_msgSend_369Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_369 = __objc_msgSend_369Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_isAbsolutePath1 = _registerName1("isAbsolutePath"); + late final _sel_stringByDeletingLastPathComponent1 = + _registerName1("stringByDeletingLastPathComponent"); + late final _sel_stringByAppendingPathComponent_1 = + _registerName1("stringByAppendingPathComponent:"); + late final _sel_stringByDeletingPathExtension1 = + _registerName1("stringByDeletingPathExtension"); + late final _sel_stringByAppendingPathExtension_1 = + _registerName1("stringByAppendingPathExtension:"); + late final _sel_stringByAbbreviatingWithTildeInPath1 = + _registerName1("stringByAbbreviatingWithTildeInPath"); + late final _sel_stringByExpandingTildeInPath1 = + _registerName1("stringByExpandingTildeInPath"); + late final _sel_stringByStandardizingPath1 = + _registerName1("stringByStandardizingPath"); + late final _sel_stringByResolvingSymlinksInPath1 = + _registerName1("stringByResolvingSymlinksInPath"); + late final _sel_stringsByAppendingPaths_1 = + _registerName1("stringsByAppendingPaths:"); + late final _sel_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_1 = + _registerName1( + "completePathIntoString:caseSensitive:matchesIntoArray:filterTypes:"); + int _objc_msgSend_370( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> outputName, + bool flag, + ffi.Pointer> outputArray, + ffi.Pointer filterTypes, + ) { + return __objc_msgSend_370( + obj, + sel, + outputName, + flag, + outputArray, + filterTypes, + ); + } + + late final __objc_msgSend_370Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Bool, + ffi.Pointer>, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_370 = __objc_msgSend_370Ptr.asFunction< + int Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + bool, + ffi.Pointer>, + ffi.Pointer)>(); + + late final _sel_stringByAddingPercentEncodingWithAllowedCharacters_1 = + _registerName1("stringByAddingPercentEncodingWithAllowedCharacters:"); + late final _sel_stringByRemovingPercentEncoding1 = + _registerName1("stringByRemovingPercentEncoding"); + late final _sel_stringByAddingPercentEscapesUsingEncoding_1 = + _registerName1("stringByAddingPercentEscapesUsingEncoding:"); + late final _sel_stringByReplacingPercentEscapesUsingEncoding_1 = + _registerName1("stringByReplacingPercentEscapesUsingEncoding:"); + late final _class_NSOrthography1 = _getClass1("NSOrthography"); + late final _sel_dominantScript1 = _registerName1("dominantScript"); + late final _sel_languageMap1 = _registerName1("languageMap"); + late final _sel_initWithDominantScript_languageMap_1 = + _registerName1("initWithDominantScript:languageMap:"); + instancetype _objc_msgSend_371( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer script, + ffi.Pointer map, + ) { + return __objc_msgSend_371( + obj, + sel, + script, + map, + ); + } + + late final __objc_msgSend_371Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_371 = __objc_msgSend_371Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_languagesForScript_1 = _registerName1("languagesForScript:"); + late final _sel_dominantLanguageForScript_1 = + _registerName1("dominantLanguageForScript:"); + late final _sel_dominantLanguage1 = _registerName1("dominantLanguage"); + late final _sel_allScripts1 = _registerName1("allScripts"); + late final _sel_allLanguages1 = _registerName1("allLanguages"); + late final _sel_defaultOrthographyForLanguage_1 = + _registerName1("defaultOrthographyForLanguage:"); + late final _sel_orthographyWithDominantScript_languageMap_1 = + _registerName1("orthographyWithDominantScript:languageMap:"); + late final _sel_linguisticTagsInRange_scheme_options_orthography_tokenRanges_1 = + _registerName1( + "linguisticTagsInRange:scheme:options:orthography:tokenRanges:"); + ffi.Pointer _objc_msgSend_372( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ffi.Pointer scheme, + int options, + ffi.Pointer orthography, + ffi.Pointer> tokenRanges, + ) { + return __objc_msgSend_372( + obj, + sel, + range, + scheme, + options, + orthography, + tokenRanges, + ); + } + + late final __objc_msgSend_372Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_372 = __objc_msgSend_372Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_1 = + _registerName1( + "enumerateLinguisticTagsInRange:scheme:options:orthography:usingBlock:"); + void _objc_msgSend_373( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ffi.Pointer scheme, + int options, + ffi.Pointer orthography, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_373( + obj, + sel, + range, + scheme, + options, + orthography, + block, + ); + } + + late final __objc_msgSend_373Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_373 = __objc_msgSend_373Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_anyObject1 = _registerName1("anyObject"); + late final _sel_intersectsSet_1 = _registerName1("intersectsSet:"); + bool _objc_msgSend_374( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer otherSet, + ) { + return __objc_msgSend_374( + obj, + sel, + otherSet, + ); + } + + late final __objc_msgSend_374Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_374 = __objc_msgSend_374Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_isEqualToSet_1 = _registerName1("isEqualToSet:"); + late final _sel_isSubsetOfSet_1 = _registerName1("isSubsetOfSet:"); + late final _sel_setByAddingObject_1 = _registerName1("setByAddingObject:"); + ffi.Pointer _objc_msgSend_375( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anObject, + ) { + return __objc_msgSend_375( + obj, + sel, + anObject, + ); + } + + late final __objc_msgSend_375Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_375 = __objc_msgSend_375Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setByAddingObjectsFromSet_1 = + _registerName1("setByAddingObjectsFromSet:"); + ffi.Pointer _objc_msgSend_376( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer other, + ) { + return __objc_msgSend_376( + obj, + sel, + other, + ); + } + + late final __objc_msgSend_376Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_376 = __objc_msgSend_376Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setByAddingObjectsFromArray_1 = + _registerName1("setByAddingObjectsFromArray:"); + ffi.Pointer _objc_msgSend_377( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer other, + ) { + return __objc_msgSend_377( + obj, + sel, + other, + ); + } + + late final __objc_msgSend_377Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_377 = __objc_msgSend_377Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + void _objc_msgSend_378( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_378( + obj, + sel, + block, + ); + } + + late final __objc_msgSend_378Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_378 = __objc_msgSend_378Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + void _objc_msgSend_379( + ffi.Pointer obj, + ffi.Pointer sel, + int opts, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_379( + obj, + sel, + opts, + block, + ); + } + + late final __objc_msgSend_379Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_379 = __objc_msgSend_379Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_objectsPassingTest_1 = _registerName1("objectsPassingTest:"); + ffi.Pointer _objc_msgSend_380( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> predicate, + ) { + return __objc_msgSend_380( + obj, + sel, + predicate, + ); + } + + late final __objc_msgSend_380Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_380 = __objc_msgSend_380Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_objectsWithOptions_passingTest_1 = + _registerName1("objectsWithOptions:passingTest:"); + ffi.Pointer _objc_msgSend_381( + ffi.Pointer obj, + ffi.Pointer sel, + int opts, + ffi.Pointer<_ObjCBlock> predicate, + ) { + return __objc_msgSend_381( + obj, + sel, + opts, + predicate, + ); + } + + late final __objc_msgSend_381Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_381 = __objc_msgSend_381Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_set1 = _registerName1("set"); + late final _sel_setWithObject_1 = _registerName1("setWithObject:"); + late final _sel_setWithObjects_count_1 = + _registerName1("setWithObjects:count:"); + late final _sel_setWithObjects_1 = _registerName1("setWithObjects:"); + late final _sel_setWithSet_1 = _registerName1("setWithSet:"); + instancetype _objc_msgSend_382( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer set1, + ) { + return __objc_msgSend_382( + obj, + sel, + set1, + ); + } + + late final __objc_msgSend_382Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_382 = __objc_msgSend_382Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_setWithArray_1 = _registerName1("setWithArray:"); + late final _sel_initWithSet_1 = _registerName1("initWithSet:"); + late final _sel_initWithSet_copyItems_1 = + _registerName1("initWithSet:copyItems:"); + instancetype _objc_msgSend_383( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer set1, + bool flag, + ) { + return __objc_msgSend_383( + obj, + sel, + set1, + flag, + ); + } + + late final __objc_msgSend_383Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_383 = __objc_msgSend_383Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); + + late final _sel_filteredSetUsingPredicate_1 = + _registerName1("filteredSetUsingPredicate:"); + ffi.Pointer _objc_msgSend_384( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer predicate, + ) { + return __objc_msgSend_384( + obj, + sel, + predicate, + ); + } + + late final __objc_msgSend_384Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_384 = __objc_msgSend_384Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_invocationWithMethodSignature_1 = + _registerName1("invocationWithMethodSignature:"); + ffi.Pointer _objc_msgSend_385( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer sig, + ) { + return __objc_msgSend_385( + obj, + sel, + sig, + ); + } + + late final __objc_msgSend_385Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_385 = __objc_msgSend_385Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_methodSignature1 = _registerName1("methodSignature"); + ffi.Pointer _objc_msgSend_386( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_386( + obj, + sel, + ); + } + + late final __objc_msgSend_386Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_386 = __objc_msgSend_386Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_retainArguments1 = _registerName1("retainArguments"); + late final _sel_argumentsRetained1 = _registerName1("argumentsRetained"); + late final _sel_target1 = _registerName1("target"); + late final _sel_setTarget_1 = _registerName1("setTarget:"); + void _objc_msgSend_387( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_387( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_387Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_387 = __objc_msgSend_387Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_selector1 = _registerName1("selector"); + ffi.Pointer _objc_msgSend_388( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_388( + obj, + sel, + ); + } + + late final __objc_msgSend_388Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_388 = __objc_msgSend_388Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setSelector_1 = _registerName1("setSelector:"); + void _objc_msgSend_389( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_389( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_389Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_389 = __objc_msgSend_389Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_getReturnValue_1 = _registerName1("getReturnValue:"); + late final _sel_setReturnValue_1 = _registerName1("setReturnValue:"); + late final _sel_getArgument_atIndex_1 = + _registerName1("getArgument:atIndex:"); + void _objc_msgSend_390( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer argumentLocation, + int idx, + ) { + return __objc_msgSend_390( + obj, + sel, + argumentLocation, + idx, + ); + } + + late final __objc_msgSend_390Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_390 = __objc_msgSend_390Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_setArgument_atIndex_1 = + _registerName1("setArgument:atIndex:"); + late final _sel_invoke1 = _registerName1("invoke"); + late final _sel_invokeWithTarget_1 = _registerName1("invokeWithTarget:"); + late final _sel_invokeUsingIMP_1 = _registerName1("invokeUsingIMP:"); + void _objc_msgSend_391( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> imp, + ) { + return __objc_msgSend_391( + obj, + sel, + imp, + ); + } + + late final __objc_msgSend_391Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>>( + 'objc_msgSend'); + late final __objc_msgSend_391 = __objc_msgSend_391Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_forwardInvocation_1 = _registerName1("forwardInvocation:"); + void _objc_msgSend_392( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anInvocation, + ) { + return __objc_msgSend_392( + obj, + sel, + anInvocation, + ); + } + + late final __objc_msgSend_392Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_392 = __objc_msgSend_392Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_methodSignatureForSelector_1 = + _registerName1("methodSignatureForSelector:"); + ffi.Pointer _objc_msgSend_393( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aSelector, + ) { + return __objc_msgSend_393( + obj, + sel, + aSelector, + ); + } + + late final __objc_msgSend_393Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_393 = __objc_msgSend_393Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_instanceMethodSignatureForSelector_1 = + _registerName1("instanceMethodSignatureForSelector:"); + late final _sel_allowsWeakReference1 = _registerName1("allowsWeakReference"); + late final _sel_retainWeakReference1 = _registerName1("retainWeakReference"); + late final _sel_isSubclassOfClass_1 = _registerName1("isSubclassOfClass:"); + late final _sel_resolveClassMethod_1 = _registerName1("resolveClassMethod:"); + late final _sel_resolveInstanceMethod_1 = + _registerName1("resolveInstanceMethod:"); + late final _sel_superclass1 = _registerName1("superclass"); + late final _sel_class1 = _registerName1("class"); + late final _sel_debugDescription1 = _registerName1("debugDescription"); + late final _sel_version1 = _registerName1("version"); + late final _sel_setVersion_1 = _registerName1("setVersion:"); + void _objc_msgSend_394( + ffi.Pointer obj, + ffi.Pointer sel, + int aVersion, + ) { + return __objc_msgSend_394( + obj, + sel, + aVersion, + ); + } + + late final __objc_msgSend_394Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_394 = __objc_msgSend_394Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_classForCoder1 = _registerName1("classForCoder"); + late final _sel_replacementObjectForCoder_1 = + _registerName1("replacementObjectForCoder:"); + late final _sel_awakeAfterUsingCoder_1 = + _registerName1("awakeAfterUsingCoder:"); + late final _sel_poseAsClass_1 = _registerName1("poseAsClass:"); + late final _sel_autoContentAccessingProxy1 = + _registerName1("autoContentAccessingProxy"); + late final _sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_1 = + _registerName1( + "attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:"); + void _objc_msgSend_395( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer error, + int recoveryOptionIndex, + ffi.Pointer delegate, + ffi.Pointer didRecoverSelector, + ffi.Pointer contextInfo, + ) { + return __objc_msgSend_395( + obj, + sel, + error, + recoveryOptionIndex, + delegate, + didRecoverSelector, + contextInfo, + ); + } + + late final __objc_msgSend_395Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_395 = __objc_msgSend_395Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_attemptRecoveryFromError_optionIndex_1 = + _registerName1("attemptRecoveryFromError:optionIndex:"); + bool _objc_msgSend_396( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer error, + int recoveryOptionIndex, + ) { + return __objc_msgSend_396( + obj, + sel, + error, + recoveryOptionIndex, + ); + } + + late final __objc_msgSend_396Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_396 = __objc_msgSend_396Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_performSelector_withObject_afterDelay_inModes_1 = + _registerName1("performSelector:withObject:afterDelay:inModes:"); + void _objc_msgSend_397( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aSelector, + ffi.Pointer anArgument, + double delay, + ffi.Pointer modes, + ) { + return __objc_msgSend_397( + obj, + sel, + aSelector, + anArgument, + delay, + modes, + ); + } + + late final __objc_msgSend_397Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_397 = __objc_msgSend_397Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer)>(); + + late final _sel_performSelector_withObject_afterDelay_1 = + _registerName1("performSelector:withObject:afterDelay:"); + void _objc_msgSend_398( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aSelector, + ffi.Pointer anArgument, + double delay, + ) { + return __objc_msgSend_398( + obj, + sel, + aSelector, + anArgument, + delay, + ); + } + + late final __objc_msgSend_398Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_398 = __objc_msgSend_398Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, double)>(); + + late final _sel_URL_resourceDataDidBecomeAvailable_1 = + _registerName1("URL:resourceDataDidBecomeAvailable:"); + void _objc_msgSend_399( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer sender, + ffi.Pointer newBytes, + ) { + return __objc_msgSend_399( + obj, + sel, + sender, + newBytes, + ); + } + + late final __objc_msgSend_399Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_399 = __objc_msgSend_399Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_URLResourceDidFinishLoading_1 = + _registerName1("URLResourceDidFinishLoading:"); + void _objc_msgSend_400( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer sender, + ) { + return __objc_msgSend_400( + obj, + sel, + sender, + ); + } + + late final __objc_msgSend_400Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_400 = __objc_msgSend_400Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_URLResourceDidCancelLoading_1 = + _registerName1("URLResourceDidCancelLoading:"); + late final _sel_URL_resourceDidFailLoadingWithReason_1 = + _registerName1("URL:resourceDidFailLoadingWithReason:"); + void _objc_msgSend_401( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer sender, + ffi.Pointer reason, + ) { + return __objc_msgSend_401( + obj, + sel, + sender, + reason, + ); + } + + late final __objc_msgSend_401Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_401 = __objc_msgSend_401Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _class_NSFileManager1 = _getClass1("NSFileManager"); + late final _sel_defaultManager1 = _registerName1("defaultManager"); + ffi.Pointer _objc_msgSend_402( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_402( + obj, + sel, + ); + } + + late final __objc_msgSend_402Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_402 = __objc_msgSend_402Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_mountedVolumeURLsIncludingResourceValuesForKeys_options_1 = + _registerName1( + "mountedVolumeURLsIncludingResourceValuesForKeys:options:"); + ffi.Pointer _objc_msgSend_403( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer propertyKeys, + int options, + ) { + return __objc_msgSend_403( + obj, + sel, + propertyKeys, + options, + ); + } + + late final __objc_msgSend_403Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_403 = __objc_msgSend_403Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_unmountVolumeAtURL_options_completionHandler_1 = + _registerName1("unmountVolumeAtURL:options:completionHandler:"); + void _objc_msgSend_404( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + int mask, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_404( + obj, + sel, + url, + mask, + completionHandler, + ); + } + + late final __objc_msgSend_404Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_404 = __objc_msgSend_404Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_contentsOfDirectoryAtURL_includingPropertiesForKeys_options_error_1 = + _registerName1( + "contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:"); + ffi.Pointer _objc_msgSend_405( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer keys, + int mask, + ffi.Pointer> error, + ) { + return __objc_msgSend_405( + obj, + sel, + url, + keys, + mask, + error, + ); + } + + late final __objc_msgSend_405Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_405 = __objc_msgSend_405Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); + + late final _sel_URLsForDirectory_inDomains_1 = + _registerName1("URLsForDirectory:inDomains:"); + ffi.Pointer _objc_msgSend_406( + ffi.Pointer obj, + ffi.Pointer sel, + int directory, + int domainMask, + ) { + return __objc_msgSend_406( + obj, + sel, + directory, + domainMask, + ); + } + + late final __objc_msgSend_406Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int32, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_406 = __objc_msgSend_406Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int, int)>(); + + late final _sel_URLForDirectory_inDomain_appropriateForURL_create_error_1 = + _registerName1( + "URLForDirectory:inDomain:appropriateForURL:create:error:"); + ffi.Pointer _objc_msgSend_407( + ffi.Pointer obj, + ffi.Pointer sel, + int directory, + int domain, + ffi.Pointer url, + bool shouldCreate, + ffi.Pointer> error, + ) { + return __objc_msgSend_407( + obj, + sel, + directory, + domain, + url, + shouldCreate, + error, + ); + } + + late final __objc_msgSend_407Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Int32, + ffi.Pointer, + ffi.Bool, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_407 = __objc_msgSend_407Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer, + bool, + ffi.Pointer>)>(); + + late final _sel_getRelationship_ofDirectoryAtURL_toItemAtURL_error_1 = + _registerName1("getRelationship:ofDirectoryAtURL:toItemAtURL:error:"); + bool _objc_msgSend_408( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer outRelationship, + ffi.Pointer directoryURL, + ffi.Pointer otherURL, + ffi.Pointer> error, + ) { + return __objc_msgSend_408( + obj, + sel, + outRelationship, + directoryURL, + otherURL, + error, + ); + } + + late final __objc_msgSend_408Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_408 = __objc_msgSend_408Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_getRelationship_ofDirectory_inDomain_toItemAtURL_error_1 = + _registerName1("getRelationship:ofDirectory:inDomain:toItemAtURL:error:"); + bool _objc_msgSend_409( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer outRelationship, + int directory, + int domainMask, + ffi.Pointer url, + ffi.Pointer> error, + ) { + return __objc_msgSend_409( + obj, + sel, + outRelationship, + directory, + domainMask, + url, + error, + ); + } + + late final __objc_msgSend_409Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Int32, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_409 = __objc_msgSend_409Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + int, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_createDirectoryAtURL_withIntermediateDirectories_attributes_error_1 = + _registerName1( + "createDirectoryAtURL:withIntermediateDirectories:attributes:error:"); + bool _objc_msgSend_410( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + bool createIntermediates, + ffi.Pointer attributes, + ffi.Pointer> error, + ) { + return __objc_msgSend_410( + obj, + sel, + url, + createIntermediates, + attributes, + error, + ); + } + + late final __objc_msgSend_410Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_410 = __objc_msgSend_410Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_createSymbolicLinkAtURL_withDestinationURL_error_1 = + _registerName1("createSymbolicLinkAtURL:withDestinationURL:error:"); + bool _objc_msgSend_411( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer destURL, + ffi.Pointer> error, + ) { + return __objc_msgSend_411( + obj, + sel, + url, + destURL, + error, + ); + } + + late final __objc_msgSend_411Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_411 = __objc_msgSend_411Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_delegate1 = _registerName1("delegate"); + late final _sel_setDelegate_1 = _registerName1("setDelegate:"); + late final _sel_setAttributes_ofItemAtPath_error_1 = + _registerName1("setAttributes:ofItemAtPath:error:"); + bool _objc_msgSend_412( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer attributes, + ffi.Pointer path, + ffi.Pointer> error, + ) { + return __objc_msgSend_412( + obj, + sel, + attributes, + path, + error, + ); + } + + late final __objc_msgSend_412Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_412 = __objc_msgSend_412Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_createDirectoryAtPath_withIntermediateDirectories_attributes_error_1 = + _registerName1( + "createDirectoryAtPath:withIntermediateDirectories:attributes:error:"); + bool _objc_msgSend_413( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + bool createIntermediates, + ffi.Pointer attributes, + ffi.Pointer> error, + ) { + return __objc_msgSend_413( + obj, + sel, + path, + createIntermediates, + attributes, + error, + ); + } + + late final __objc_msgSend_413Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_413 = __objc_msgSend_413Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_contentsOfDirectoryAtPath_error_1 = + _registerName1("contentsOfDirectoryAtPath:error:"); + ffi.Pointer _objc_msgSend_414( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer> error, + ) { + return __objc_msgSend_414( + obj, + sel, + path, + error, + ); + } + + late final __objc_msgSend_414Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_414 = __objc_msgSend_414Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_subpathsOfDirectoryAtPath_error_1 = + _registerName1("subpathsOfDirectoryAtPath:error:"); + late final _sel_attributesOfItemAtPath_error_1 = + _registerName1("attributesOfItemAtPath:error:"); + ffi.Pointer _objc_msgSend_415( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer> error, + ) { + return __objc_msgSend_415( + obj, + sel, + path, + error, + ); + } + + late final __objc_msgSend_415Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_415 = __objc_msgSend_415Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_attributesOfFileSystemForPath_error_1 = + _registerName1("attributesOfFileSystemForPath:error:"); + late final _sel_createSymbolicLinkAtPath_withDestinationPath_error_1 = + _registerName1("createSymbolicLinkAtPath:withDestinationPath:error:"); + bool _objc_msgSend_416( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer destPath, + ffi.Pointer> error, + ) { + return __objc_msgSend_416( + obj, + sel, + path, + destPath, + error, + ); + } + + late final __objc_msgSend_416Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_416 = __objc_msgSend_416Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_destinationOfSymbolicLinkAtPath_error_1 = + _registerName1("destinationOfSymbolicLinkAtPath:error:"); + ffi.Pointer _objc_msgSend_417( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer> error, + ) { + return __objc_msgSend_417( + obj, + sel, + path, + error, + ); + } + + late final __objc_msgSend_417Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_417 = __objc_msgSend_417Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_copyItemAtPath_toPath_error_1 = + _registerName1("copyItemAtPath:toPath:error:"); + late final _sel_moveItemAtPath_toPath_error_1 = + _registerName1("moveItemAtPath:toPath:error:"); + late final _sel_linkItemAtPath_toPath_error_1 = + _registerName1("linkItemAtPath:toPath:error:"); + late final _sel_removeItemAtPath_error_1 = + _registerName1("removeItemAtPath:error:"); + bool _objc_msgSend_418( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer> error, + ) { + return __objc_msgSend_418( + obj, + sel, + path, + error, + ); + } + + late final __objc_msgSend_418Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_418 = __objc_msgSend_418Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>(); + + late final _sel_copyItemAtURL_toURL_error_1 = + _registerName1("copyItemAtURL:toURL:error:"); + late final _sel_moveItemAtURL_toURL_error_1 = + _registerName1("moveItemAtURL:toURL:error:"); + late final _sel_linkItemAtURL_toURL_error_1 = + _registerName1("linkItemAtURL:toURL:error:"); + late final _sel_removeItemAtURL_error_1 = + _registerName1("removeItemAtURL:error:"); + late final _sel_trashItemAtURL_resultingItemURL_error_1 = + _registerName1("trashItemAtURL:resultingItemURL:error:"); + bool _objc_msgSend_419( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer> outResultingURL, + ffi.Pointer> error, + ) { + return __objc_msgSend_419( + obj, + sel, + url, + outResultingURL, + error, + ); + } + + late final __objc_msgSend_419Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_419 = __objc_msgSend_419Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>)>(); + + late final _sel_fileAttributesAtPath_traverseLink_1 = + _registerName1("fileAttributesAtPath:traverseLink:"); + ffi.Pointer _objc_msgSend_420( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + bool yorn, + ) { + return __objc_msgSend_420( + obj, + sel, + path, + yorn, + ); + } + + late final __objc_msgSend_420Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_420 = __objc_msgSend_420Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, bool)>(); + + late final _sel_changeFileAttributes_atPath_1 = + _registerName1("changeFileAttributes:atPath:"); + bool _objc_msgSend_421( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer attributes, + ffi.Pointer path, + ) { + return __objc_msgSend_421( + obj, + sel, + attributes, + path, + ); + } + + late final __objc_msgSend_421Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_421 = __objc_msgSend_421Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_directoryContentsAtPath_1 = + _registerName1("directoryContentsAtPath:"); + late final _sel_fileSystemAttributesAtPath_1 = + _registerName1("fileSystemAttributesAtPath:"); + late final _sel_pathContentOfSymbolicLinkAtPath_1 = + _registerName1("pathContentOfSymbolicLinkAtPath:"); + late final _sel_createSymbolicLinkAtPath_pathContent_1 = + _registerName1("createSymbolicLinkAtPath:pathContent:"); + bool _objc_msgSend_422( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer otherpath, + ) { + return __objc_msgSend_422( + obj, + sel, + path, + otherpath, + ); + } + + late final __objc_msgSend_422Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_422 = __objc_msgSend_422Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_createDirectoryAtPath_attributes_1 = + _registerName1("createDirectoryAtPath:attributes:"); + bool _objc_msgSend_423( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer attributes, + ) { + return __objc_msgSend_423( + obj, + sel, + path, + attributes, + ); + } + + late final __objc_msgSend_423Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_423 = __objc_msgSend_423Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_linkPath_toPath_handler_1 = + _registerName1("linkPath:toPath:handler:"); + bool _objc_msgSend_424( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer src, + ffi.Pointer dest, + ffi.Pointer handler, + ) { + return __objc_msgSend_424( + obj, + sel, + src, + dest, + handler, + ); + } + + late final __objc_msgSend_424Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_424 = __objc_msgSend_424Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_copyPath_toPath_handler_1 = + _registerName1("copyPath:toPath:handler:"); + late final _sel_movePath_toPath_handler_1 = + _registerName1("movePath:toPath:handler:"); + late final _sel_removeFileAtPath_handler_1 = + _registerName1("removeFileAtPath:handler:"); + bool _objc_msgSend_425( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer handler, + ) { + return __objc_msgSend_425( + obj, + sel, + path, + handler, + ); + } + + late final __objc_msgSend_425Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_425 = __objc_msgSend_425Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_currentDirectoryPath1 = + _registerName1("currentDirectoryPath"); + late final _sel_changeCurrentDirectoryPath_1 = + _registerName1("changeCurrentDirectoryPath:"); + late final _sel_fileExistsAtPath_1 = _registerName1("fileExistsAtPath:"); + late final _sel_fileExistsAtPath_isDirectory_1 = + _registerName1("fileExistsAtPath:isDirectory:"); + bool _objc_msgSend_426( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer isDirectory, + ) { + return __objc_msgSend_426( + obj, + sel, + path, + isDirectory, + ); + } + + late final __objc_msgSend_426Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_426 = __objc_msgSend_426Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_isReadableFileAtPath_1 = + _registerName1("isReadableFileAtPath:"); + late final _sel_isWritableFileAtPath_1 = + _registerName1("isWritableFileAtPath:"); + late final _sel_isExecutableFileAtPath_1 = + _registerName1("isExecutableFileAtPath:"); + late final _sel_isDeletableFileAtPath_1 = + _registerName1("isDeletableFileAtPath:"); + late final _sel_contentsEqualAtPath_andPath_1 = + _registerName1("contentsEqualAtPath:andPath:"); + late final _sel_displayNameAtPath_1 = _registerName1("displayNameAtPath:"); + late final _sel_componentsToDisplayForPath_1 = + _registerName1("componentsToDisplayForPath:"); + late final _sel_enumeratorAtPath_1 = _registerName1("enumeratorAtPath:"); + late final _sel_enumeratorAtURL_includingPropertiesForKeys_options_errorHandler_1 = + _registerName1( + "enumeratorAtURL:includingPropertiesForKeys:options:errorHandler:"); + ffi.Pointer _objc_msgSend_427( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer keys, + int mask, + ffi.Pointer<_ObjCBlock> handler, + ) { + return __objc_msgSend_427( + obj, + sel, + url, + keys, + mask, + handler, + ); + } + + late final __objc_msgSend_427Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_427 = __objc_msgSend_427Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_subpathsAtPath_1 = _registerName1("subpathsAtPath:"); + late final _sel_contentsAtPath_1 = _registerName1("contentsAtPath:"); + ffi.Pointer _objc_msgSend_428( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ) { + return __objc_msgSend_428( + obj, + sel, + path, + ); + } + + late final __objc_msgSend_428Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_428 = __objc_msgSend_428Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_createFileAtPath_contents_attributes_1 = + _registerName1("createFileAtPath:contents:attributes:"); + bool _objc_msgSend_429( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer data, + ffi.Pointer attr, + ) { + return __objc_msgSend_429( + obj, + sel, + path, + data, + attr, + ); + } + + late final __objc_msgSend_429Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_429 = __objc_msgSend_429Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_fileSystemRepresentationWithPath_1 = + _registerName1("fileSystemRepresentationWithPath:"); + ffi.Pointer _objc_msgSend_430( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ) { + return __objc_msgSend_430( + obj, + sel, + path, + ); + } + + late final __objc_msgSend_430Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_430 = __objc_msgSend_430Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_stringWithFileSystemRepresentation_length_1 = + _registerName1("stringWithFileSystemRepresentation:length:"); + ffi.Pointer _objc_msgSend_431( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer str, + int len, + ) { + return __objc_msgSend_431( + obj, + sel, + str, + len, + ); + } + + late final __objc_msgSend_431Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_431 = __objc_msgSend_431Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_replaceItemAtURL_withItemAtURL_backupItemName_options_resultingItemURL_error_1 = + _registerName1( + "replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error:"); + bool _objc_msgSend_432( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer originalItemURL, + ffi.Pointer newItemURL, + ffi.Pointer backupItemName, + int options, + ffi.Pointer> resultingURL, + ffi.Pointer> error, + ) { + return __objc_msgSend_432( + obj, + sel, + originalItemURL, + newItemURL, + backupItemName, + options, + resultingURL, + error, + ); + } + + late final __objc_msgSend_432Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_432 = __objc_msgSend_432Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ffi.Pointer>)>(); + + late final _sel_setUbiquitous_itemAtURL_destinationURL_error_1 = + _registerName1("setUbiquitous:itemAtURL:destinationURL:error:"); + bool _objc_msgSend_433( + ffi.Pointer obj, + ffi.Pointer sel, + bool flag, + ffi.Pointer url, + ffi.Pointer destinationURL, + ffi.Pointer> error, + ) { + return __objc_msgSend_433( + obj, + sel, + flag, + url, + destinationURL, + error, + ); + } + + late final __objc_msgSend_433Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_433 = __objc_msgSend_433Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_isUbiquitousItemAtURL_1 = + _registerName1("isUbiquitousItemAtURL:"); + late final _sel_startDownloadingUbiquitousItemAtURL_error_1 = + _registerName1("startDownloadingUbiquitousItemAtURL:error:"); + late final _sel_evictUbiquitousItemAtURL_error_1 = + _registerName1("evictUbiquitousItemAtURL:error:"); + late final _sel_URLForUbiquityContainerIdentifier_1 = + _registerName1("URLForUbiquityContainerIdentifier:"); + late final _sel_URLForPublishingUbiquitousItemAtURL_expirationDate_error_1 = + _registerName1( + "URLForPublishingUbiquitousItemAtURL:expirationDate:error:"); + ffi.Pointer _objc_msgSend_434( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer> outDate, + ffi.Pointer> error, + ) { + return __objc_msgSend_434( + obj, + sel, + url, + outDate, + error, + ); + } + + late final __objc_msgSend_434Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_434 = __objc_msgSend_434Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>)>(); + + late final _sel_ubiquityIdentityToken1 = + _registerName1("ubiquityIdentityToken"); + late final _sel_getFileProviderServicesForItemAtURL_completionHandler_1 = + _registerName1("getFileProviderServicesForItemAtURL:completionHandler:"); + void _objc_msgSend_435( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_435( + obj, + sel, + url, + completionHandler, + ); + } + + late final __objc_msgSend_435Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_435 = __objc_msgSend_435Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_containerURLForSecurityApplicationGroupIdentifier_1 = + _registerName1("containerURLForSecurityApplicationGroupIdentifier:"); + late final _sel_homeDirectoryForCurrentUser1 = + _registerName1("homeDirectoryForCurrentUser"); + late final _sel_temporaryDirectory1 = _registerName1("temporaryDirectory"); + late final _sel_homeDirectoryForUser_1 = + _registerName1("homeDirectoryForUser:"); + late final _sel_fileManager_shouldProceedAfterError_1 = + _registerName1("fileManager:shouldProceedAfterError:"); + bool _objc_msgSend_436( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer fm, + ffi.Pointer errorInfo, + ) { + return __objc_msgSend_436( + obj, + sel, + fm, + errorInfo, + ); + } + + late final __objc_msgSend_436Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_436 = __objc_msgSend_436Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_fileManager_willProcessPath_1 = + _registerName1("fileManager:willProcessPath:"); + void _objc_msgSend_437( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer fm, + ffi.Pointer path, + ) { + return __objc_msgSend_437( + obj, + sel, + fm, + path, + ); + } + + late final __objc_msgSend_437Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_437 = __objc_msgSend_437Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_validateValue_forKey_error_1 = + _registerName1("validateValue:forKey:error:"); + late final _class_NSMutableArray1 = _getClass1("NSMutableArray"); + late final _sel_addObject_1 = _registerName1("addObject:"); + late final _sel_insertObject_atIndex_1 = + _registerName1("insertObject:atIndex:"); + void _objc_msgSend_438( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anObject, + int index, + ) { + return __objc_msgSend_438( + obj, + sel, + anObject, + index, + ); + } + + late final __objc_msgSend_438Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_438 = __objc_msgSend_438Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_removeLastObject1 = _registerName1("removeLastObject"); + late final _sel_removeObjectAtIndex_1 = + _registerName1("removeObjectAtIndex:"); + void _objc_msgSend_439( + ffi.Pointer obj, + ffi.Pointer sel, + int index, + ) { + return __objc_msgSend_439( + obj, + sel, + index, + ); + } + + late final __objc_msgSend_439Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_439 = __objc_msgSend_439Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_replaceObjectAtIndex_withObject_1 = + _registerName1("replaceObjectAtIndex:withObject:"); + void _objc_msgSend_440( + ffi.Pointer obj, + ffi.Pointer sel, + int index, + ffi.Pointer anObject, + ) { + return __objc_msgSend_440( + obj, + sel, + index, + anObject, + ); + } + + late final __objc_msgSend_440Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_440 = __objc_msgSend_440Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); + + late final _sel_initWithCapacity_1 = _registerName1("initWithCapacity:"); + late final _sel_addObjectsFromArray_1 = + _registerName1("addObjectsFromArray:"); + void _objc_msgSend_441( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer otherArray, + ) { + return __objc_msgSend_441( + obj, + sel, + otherArray, + ); + } + + late final __objc_msgSend_441Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_441 = __objc_msgSend_441Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_exchangeObjectAtIndex_withObjectAtIndex_1 = + _registerName1("exchangeObjectAtIndex:withObjectAtIndex:"); + void _objc_msgSend_442( + ffi.Pointer obj, + ffi.Pointer sel, + int idx1, + int idx2, + ) { + return __objc_msgSend_442( + obj, + sel, + idx1, + idx2, + ); + } + + late final __objc_msgSend_442Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.UnsignedLong, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_442 = __objc_msgSend_442Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, int)>(); + + late final _sel_removeAllObjects1 = _registerName1("removeAllObjects"); + late final _sel_removeObject_inRange_1 = + _registerName1("removeObject:inRange:"); + void _objc_msgSend_443( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anObject, + _NSRange range, + ) { + return __objc_msgSend_443( + obj, + sel, + anObject, + range, + ); + } + + late final __objc_msgSend_443Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_443 = __objc_msgSend_443Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>(); + + late final _sel_removeObject_1 = _registerName1("removeObject:"); + late final _sel_removeObjectIdenticalTo_inRange_1 = + _registerName1("removeObjectIdenticalTo:inRange:"); + late final _sel_removeObjectIdenticalTo_1 = + _registerName1("removeObjectIdenticalTo:"); + late final _sel_removeObjectsFromIndices_numIndices_1 = + _registerName1("removeObjectsFromIndices:numIndices:"); + void _objc_msgSend_444( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer indices, + int cnt, + ) { + return __objc_msgSend_444( + obj, + sel, + indices, + cnt, + ); + } + + late final __objc_msgSend_444Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_444 = __objc_msgSend_444Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_removeObjectsInArray_1 = + _registerName1("removeObjectsInArray:"); + late final _sel_removeObjectsInRange_1 = + _registerName1("removeObjectsInRange:"); + void _objc_msgSend_445( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ) { + return __objc_msgSend_445( + obj, + sel, + range, + ); + } + + late final __objc_msgSend_445Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_445 = __objc_msgSend_445Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange)>(); + + late final _sel_replaceObjectsInRange_withObjectsFromArray_range_1 = + _registerName1("replaceObjectsInRange:withObjectsFromArray:range:"); + void _objc_msgSend_446( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ffi.Pointer otherArray, + _NSRange otherRange, + ) { + return __objc_msgSend_446( + obj, + sel, + range, + otherArray, + otherRange, + ); + } + + late final __objc_msgSend_446Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + _NSRange, ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_446 = __objc_msgSend_446Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + ffi.Pointer, _NSRange)>(); + + late final _sel_replaceObjectsInRange_withObjectsFromArray_1 = + _registerName1("replaceObjectsInRange:withObjectsFromArray:"); + void _objc_msgSend_447( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ffi.Pointer otherArray, + ) { + return __objc_msgSend_447( + obj, + sel, + range, + otherArray, + ); + } + + late final __objc_msgSend_447Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + _NSRange, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_447 = __objc_msgSend_447Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + ffi.Pointer)>(); + + late final _sel_setArray_1 = _registerName1("setArray:"); + late final _sel_sortUsingFunction_context_1 = + _registerName1("sortUsingFunction:context:"); + void _objc_msgSend_448( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>> + compare, + ffi.Pointer context, + ) { + return __objc_msgSend_448( + obj, + sel, + compare, + context, + ); + } + + late final __objc_msgSend_448Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_448 = __objc_msgSend_448Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>, + ffi.Pointer)>(); + + late final _sel_sortUsingSelector_1 = _registerName1("sortUsingSelector:"); + late final _sel_insertObjects_atIndexes_1 = + _registerName1("insertObjects:atIndexes:"); + void _objc_msgSend_449( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer objects, + ffi.Pointer indexes, + ) { + return __objc_msgSend_449( + obj, + sel, + objects, + indexes, + ); + } + + late final __objc_msgSend_449Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_449 = __objc_msgSend_449Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_removeObjectsAtIndexes_1 = + _registerName1("removeObjectsAtIndexes:"); + void _objc_msgSend_450( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer indexes, + ) { + return __objc_msgSend_450( + obj, + sel, + indexes, + ); + } + + late final __objc_msgSend_450Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_450 = __objc_msgSend_450Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_replaceObjectsAtIndexes_withObjects_1 = + _registerName1("replaceObjectsAtIndexes:withObjects:"); + void _objc_msgSend_451( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer indexes, + ffi.Pointer objects, + ) { + return __objc_msgSend_451( + obj, + sel, + indexes, + objects, + ); + } + + late final __objc_msgSend_451Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_451 = __objc_msgSend_451Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setObject_atIndexedSubscript_1 = + _registerName1("setObject:atIndexedSubscript:"); + late final _sel_sortUsingComparator_1 = + _registerName1("sortUsingComparator:"); + void _objc_msgSend_452( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> cmptr, + ) { + return __objc_msgSend_452( + obj, + sel, + cmptr, + ); + } + + late final __objc_msgSend_452Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_452 = __objc_msgSend_452Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_sortWithOptions_usingComparator_1 = + _registerName1("sortWithOptions:usingComparator:"); + void _objc_msgSend_453( + ffi.Pointer obj, + ffi.Pointer sel, + int opts, + ffi.Pointer<_ObjCBlock> cmptr, + ) { + return __objc_msgSend_453( + obj, + sel, + opts, + cmptr, + ); + } + + late final __objc_msgSend_453Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_453 = __objc_msgSend_453Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_arrayWithCapacity_1 = _registerName1("arrayWithCapacity:"); + ffi.Pointer _objc_msgSend_454( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ) { + return __objc_msgSend_454( + obj, + sel, + path, + ); + } + + late final __objc_msgSend_454Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_454 = __objc_msgSend_454Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + ffi.Pointer _objc_msgSend_455( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ) { + return __objc_msgSend_455( + obj, + sel, + url, + ); + } + + late final __objc_msgSend_455Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_455 = __objc_msgSend_455Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_applyDifference_1 = _registerName1("applyDifference:"); + late final _sel_sortUsingDescriptors_1 = + _registerName1("sortUsingDescriptors:"); + late final _sel_filterUsingPredicate_1 = + _registerName1("filterUsingPredicate:"); + void _objc_msgSend_456( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer predicate, + ) { + return __objc_msgSend_456( + obj, + sel, + predicate, + ); + } + + late final __objc_msgSend_456Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_456 = __objc_msgSend_456Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_mutableArrayValueForKey_1 = + _registerName1("mutableArrayValueForKey:"); + late final _class_NSMutableOrderedSet1 = _getClass1("NSMutableOrderedSet"); + late final _class_NSOrderedSet1 = _getClass1("NSOrderedSet"); + late final _sel_isEqualToOrderedSet_1 = + _registerName1("isEqualToOrderedSet:"); + bool _objc_msgSend_457( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer other, + ) { + return __objc_msgSend_457( + obj, + sel, + other, + ); + } + + late final __objc_msgSend_457Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_457 = __objc_msgSend_457Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_intersectsOrderedSet_1 = + _registerName1("intersectsOrderedSet:"); + late final _sel_isSubsetOfOrderedSet_1 = + _registerName1("isSubsetOfOrderedSet:"); + late final _sel_reversedOrderedSet1 = _registerName1("reversedOrderedSet"); + ffi.Pointer _objc_msgSend_458( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_458( + obj, + sel, + ); + } + + late final __objc_msgSend_458Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_458 = __objc_msgSend_458Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_orderedSet1 = _registerName1("orderedSet"); + late final _sel_orderedSetWithObject_1 = + _registerName1("orderedSetWithObject:"); + late final _sel_orderedSetWithObjects_count_1 = + _registerName1("orderedSetWithObjects:count:"); + late final _sel_orderedSetWithObjects_1 = + _registerName1("orderedSetWithObjects:"); + late final _sel_orderedSetWithOrderedSet_1 = + _registerName1("orderedSetWithOrderedSet:"); + instancetype _objc_msgSend_459( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer set1, + ) { + return __objc_msgSend_459( + obj, + sel, + set1, + ); + } + + late final __objc_msgSend_459Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_459 = __objc_msgSend_459Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_orderedSetWithOrderedSet_range_copyItems_1 = + _registerName1("orderedSetWithOrderedSet:range:copyItems:"); + instancetype _objc_msgSend_460( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer set1, + _NSRange range, + bool flag, + ) { + return __objc_msgSend_460( + obj, + sel, + set1, + range, + flag, + ); + } + + late final __objc_msgSend_460Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_460 = __objc_msgSend_460Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange, bool)>(); + + late final _sel_orderedSetWithArray_1 = + _registerName1("orderedSetWithArray:"); + late final _sel_orderedSetWithArray_range_copyItems_1 = + _registerName1("orderedSetWithArray:range:copyItems:"); + instancetype _objc_msgSend_461( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer array, + _NSRange range, + bool flag, + ) { + return __objc_msgSend_461( + obj, + sel, + array, + range, + flag, + ); + } + + late final __objc_msgSend_461Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_461 = __objc_msgSend_461Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange, bool)>(); + + late final _sel_orderedSetWithSet_1 = _registerName1("orderedSetWithSet:"); + late final _sel_orderedSetWithSet_copyItems_1 = + _registerName1("orderedSetWithSet:copyItems:"); + late final _sel_initWithObject_1 = _registerName1("initWithObject:"); + late final _sel_initWithOrderedSet_1 = _registerName1("initWithOrderedSet:"); + late final _sel_initWithOrderedSet_copyItems_1 = + _registerName1("initWithOrderedSet:copyItems:"); + instancetype _objc_msgSend_462( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer set1, + bool flag, + ) { + return __objc_msgSend_462( + obj, + sel, + set1, + flag, + ); + } + + late final __objc_msgSend_462Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_462 = __objc_msgSend_462Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); + + late final _sel_initWithOrderedSet_range_copyItems_1 = + _registerName1("initWithOrderedSet:range:copyItems:"); + late final _sel_initWithArray_range_copyItems_1 = + _registerName1("initWithArray:range:copyItems:"); + late final _sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_1 = + _registerName1( + "differenceFromOrderedSet:withOptions:usingEquivalenceTest:"); + ffi.Pointer _objc_msgSend_463( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer other, + int options, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_463( + obj, + sel, + other, + options, + block, + ); + } + + late final __objc_msgSend_463Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_463 = __objc_msgSend_463Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_differenceFromOrderedSet_withOptions_1 = + _registerName1("differenceFromOrderedSet:withOptions:"); + ffi.Pointer _objc_msgSend_464( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer other, + int options, + ) { + return __objc_msgSend_464( + obj, + sel, + other, + options, + ); + } + + late final __objc_msgSend_464Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_464 = __objc_msgSend_464Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_differenceFromOrderedSet_1 = + _registerName1("differenceFromOrderedSet:"); + late final _sel_orderedSetByApplyingDifference_1 = + _registerName1("orderedSetByApplyingDifference:"); + ffi.Pointer _objc_msgSend_465( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer difference, + ) { + return __objc_msgSend_465( + obj, + sel, + difference, + ); + } + + late final __objc_msgSend_465Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_465 = __objc_msgSend_465Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_filteredOrderedSetUsingPredicate_1 = + _registerName1("filteredOrderedSetUsingPredicate:"); + ffi.Pointer _objc_msgSend_466( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer p, + ) { + return __objc_msgSend_466( + obj, + sel, + p, + ); + } + + late final __objc_msgSend_466Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_466 = __objc_msgSend_466Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_addObjects_count_1 = _registerName1("addObjects:count:"); + void _objc_msgSend_467( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> objects, + int count, + ) { + return __objc_msgSend_467( + obj, + sel, + objects, + count, + ); + } + + late final __objc_msgSend_467Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_467 = __objc_msgSend_467Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>, int)>(); + + late final _sel_moveObjectsAtIndexes_toIndex_1 = + _registerName1("moveObjectsAtIndexes:toIndex:"); + void _objc_msgSend_468( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer indexes, + int idx, + ) { + return __objc_msgSend_468( + obj, + sel, + indexes, + idx, + ); + } + + late final __objc_msgSend_468Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_468 = __objc_msgSend_468Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_setObject_atIndex_1 = _registerName1("setObject:atIndex:"); + late final _sel_replaceObjectsInRange_withObjects_count_1 = + _registerName1("replaceObjectsInRange:withObjects:count:"); + void _objc_msgSend_469( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ffi.Pointer> objects, + int count, + ) { + return __objc_msgSend_469( + obj, + sel, + range, + objects, + count, + ); + } + + late final __objc_msgSend_469Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer>, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_469 = __objc_msgSend_469Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + ffi.Pointer>, int)>(); + + late final _sel_intersectOrderedSet_1 = + _registerName1("intersectOrderedSet:"); + void _objc_msgSend_470( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer other, + ) { + return __objc_msgSend_470( + obj, + sel, + other, + ); + } + + late final __objc_msgSend_470Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_470 = __objc_msgSend_470Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_minusOrderedSet_1 = _registerName1("minusOrderedSet:"); + late final _sel_unionOrderedSet_1 = _registerName1("unionOrderedSet:"); + late final _sel_intersectSet_1 = _registerName1("intersectSet:"); + void _objc_msgSend_471( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer other, + ) { + return __objc_msgSend_471( + obj, + sel, + other, + ); + } + + late final __objc_msgSend_471Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_471 = __objc_msgSend_471Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_minusSet_1 = _registerName1("minusSet:"); + late final _sel_unionSet_1 = _registerName1("unionSet:"); + late final _sel_sortRange_options_usingComparator_1 = + _registerName1("sortRange:options:usingComparator:"); + void _objc_msgSend_472( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + int opts, + ffi.Pointer<_ObjCBlock> cmptr, + ) { + return __objc_msgSend_472( + obj, + sel, + range, + opts, + cmptr, + ); + } + + late final __objc_msgSend_472Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_472 = __objc_msgSend_472Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_orderedSetWithCapacity_1 = + _registerName1("orderedSetWithCapacity:"); + late final _sel_mutableOrderedSetValueForKey_1 = + _registerName1("mutableOrderedSetValueForKey:"); + ffi.Pointer _objc_msgSend_473( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ) { + return __objc_msgSend_473( + obj, + sel, + key, + ); + } + + late final __objc_msgSend_473Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_473 = __objc_msgSend_473Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _class_NSMutableSet1 = _getClass1("NSMutableSet"); + late final _sel_setSet_1 = _registerName1("setSet:"); + late final _sel_setWithCapacity_1 = _registerName1("setWithCapacity:"); + late final _sel_mutableSetValueForKey_1 = + _registerName1("mutableSetValueForKey:"); + ffi.Pointer _objc_msgSend_474( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ) { + return __objc_msgSend_474( + obj, + sel, + key, + ); + } + + late final __objc_msgSend_474Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_474 = __objc_msgSend_474Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_valueForKeyPath_1 = _registerName1("valueForKeyPath:"); + late final _sel_setValue_forKeyPath_1 = + _registerName1("setValue:forKeyPath:"); + late final _sel_validateValue_forKeyPath_error_1 = + _registerName1("validateValue:forKeyPath:error:"); + late final _sel_mutableArrayValueForKeyPath_1 = + _registerName1("mutableArrayValueForKeyPath:"); + late final _sel_mutableOrderedSetValueForKeyPath_1 = + _registerName1("mutableOrderedSetValueForKeyPath:"); + late final _sel_mutableSetValueForKeyPath_1 = + _registerName1("mutableSetValueForKeyPath:"); + late final _sel_valueForUndefinedKey_1 = + _registerName1("valueForUndefinedKey:"); + late final _sel_setValue_forUndefinedKey_1 = + _registerName1("setValue:forUndefinedKey:"); + late final _sel_setNilValueForKey_1 = _registerName1("setNilValueForKey:"); + late final _sel_dictionaryWithValuesForKeys_1 = + _registerName1("dictionaryWithValuesForKeys:"); + ffi.Pointer _objc_msgSend_475( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer keys, + ) { + return __objc_msgSend_475( + obj, + sel, + keys, + ); + } + + late final __objc_msgSend_475Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_475 = __objc_msgSend_475Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setValuesForKeysWithDictionary_1 = + _registerName1("setValuesForKeysWithDictionary:"); + void _objc_msgSend_476( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer keyedValues, + ) { + return __objc_msgSend_476( + obj, + sel, + keyedValues, + ); + } + + late final __objc_msgSend_476Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_476 = __objc_msgSend_476Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_storedValueForKey_1 = _registerName1("storedValueForKey:"); + late final _sel_takeStoredValue_forKey_1 = + _registerName1("takeStoredValue:forKey:"); + late final _sel_takeValue_forKey_1 = _registerName1("takeValue:forKey:"); + late final _sel_takeValue_forKeyPath_1 = + _registerName1("takeValue:forKeyPath:"); + late final _sel_handleQueryWithUnboundKey_1 = + _registerName1("handleQueryWithUnboundKey:"); + late final _sel_handleTakeValue_forUnboundKey_1 = + _registerName1("handleTakeValue:forUnboundKey:"); + late final _sel_unableToSetNilForKey_1 = + _registerName1("unableToSetNilForKey:"); + late final _sel_valuesForKeys_1 = _registerName1("valuesForKeys:"); + late final _sel_takeValuesFromDictionary_1 = + _registerName1("takeValuesFromDictionary:"); + late final _sel_observeValueForKeyPath_ofObject_change_context_1 = + _registerName1("observeValueForKeyPath:ofObject:change:context:"); + void _objc_msgSend_477( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer keyPath, + ffi.Pointer object, + ffi.Pointer change, + ffi.Pointer context, + ) { + return __objc_msgSend_477( + obj, + sel, + keyPath, + object, + change, + context, + ); + } + + late final __objc_msgSend_477Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_477 = __objc_msgSend_477Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_willChangeValueForKey_1 = + _registerName1("willChangeValueForKey:"); + late final _sel_didChangeValueForKey_1 = + _registerName1("didChangeValueForKey:"); + late final _sel_willChange_valuesAtIndexes_forKey_1 = + _registerName1("willChange:valuesAtIndexes:forKey:"); + void _objc_msgSend_478( + ffi.Pointer obj, + ffi.Pointer sel, + int changeKind, + ffi.Pointer indexes, + ffi.Pointer key, + ) { + return __objc_msgSend_478( + obj, + sel, + changeKind, + indexes, + key, + ); + } + + late final __objc_msgSend_478Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_478 = __objc_msgSend_478Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_didChange_valuesAtIndexes_forKey_1 = + _registerName1("didChange:valuesAtIndexes:forKey:"); + late final _sel_willChangeValueForKey_withSetMutation_usingObjects_1 = + _registerName1("willChangeValueForKey:withSetMutation:usingObjects:"); + void _objc_msgSend_479( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + int mutationKind, + ffi.Pointer objects, + ) { + return __objc_msgSend_479( + obj, + sel, + key, + mutationKind, + objects, + ); + } + + late final __objc_msgSend_479Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_479 = __objc_msgSend_479Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); + + late final _sel_didChangeValueForKey_withSetMutation_usingObjects_1 = + _registerName1("didChangeValueForKey:withSetMutation:usingObjects:"); + late final _sel_observationInfo1 = _registerName1("observationInfo"); + late final _sel_setObservationInfo_1 = _registerName1("setObservationInfo:"); + void _objc_msgSend_480( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_480( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_480Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_480 = __objc_msgSend_480Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_classForKeyedArchiver1 = + _registerName1("classForKeyedArchiver"); + late final _class_NSKeyedArchiver1 = _getClass1("NSKeyedArchiver"); + late final _sel_initRequiringSecureCoding_1 = + _registerName1("initRequiringSecureCoding:"); + instancetype _objc_msgSend_481( + ffi.Pointer obj, + ffi.Pointer sel, + bool requiresSecureCoding, + ) { + return __objc_msgSend_481( + obj, + sel, + requiresSecureCoding, + ); + } + + late final __objc_msgSend_481Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_481 = __objc_msgSend_481Ptr.asFunction< + instancetype Function( + ffi.Pointer, ffi.Pointer, bool)>(); + + late final _sel_archivedDataWithRootObject_requiringSecureCoding_error_1 = + _registerName1("archivedDataWithRootObject:requiringSecureCoding:error:"); + ffi.Pointer _objc_msgSend_482( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer object, + bool requiresSecureCoding, + ffi.Pointer> error, + ) { + return __objc_msgSend_482( + obj, + sel, + object, + requiresSecureCoding, + error, + ); + } + + late final __objc_msgSend_482Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_482 = __objc_msgSend_482Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer>)>(); + + late final _class_NSMutableData1 = _getClass1("NSMutableData"); + late final _sel_mutableBytes1 = _registerName1("mutableBytes"); + late final _sel_setLength_1 = _registerName1("setLength:"); + void _objc_msgSend_483( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_483( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_483Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_483 = __objc_msgSend_483Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_appendBytes_length_1 = _registerName1("appendBytes:length:"); + late final _sel_appendData_1 = _registerName1("appendData:"); + late final _sel_increaseLengthBy_1 = _registerName1("increaseLengthBy:"); + late final _sel_replaceBytesInRange_withBytes_1 = + _registerName1("replaceBytesInRange:withBytes:"); + void _objc_msgSend_484( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ffi.Pointer bytes, + ) { + return __objc_msgSend_484( + obj, + sel, + range, + bytes, + ); + } + + late final __objc_msgSend_484Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + _NSRange, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_484 = __objc_msgSend_484Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + ffi.Pointer)>(); + + late final _sel_resetBytesInRange_1 = _registerName1("resetBytesInRange:"); + late final _sel_setData_1 = _registerName1("setData:"); + late final _sel_replaceBytesInRange_withBytes_length_1 = + _registerName1("replaceBytesInRange:withBytes:length:"); + void _objc_msgSend_485( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ffi.Pointer replacementBytes, + int replacementLength, + ) { + return __objc_msgSend_485( + obj, + sel, + range, + replacementBytes, + replacementLength, + ); + } + + late final __objc_msgSend_485Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_485 = __objc_msgSend_485Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + ffi.Pointer, int)>(); + + late final _sel_dataWithCapacity_1 = _registerName1("dataWithCapacity:"); + late final _sel_dataWithLength_1 = _registerName1("dataWithLength:"); + late final _sel_initWithLength_1 = _registerName1("initWithLength:"); + late final _sel_decompressUsingAlgorithm_error_1 = + _registerName1("decompressUsingAlgorithm:error:"); + bool _objc_msgSend_486( + ffi.Pointer obj, + ffi.Pointer sel, + int algorithm, + ffi.Pointer> error, + ) { + return __objc_msgSend_486( + obj, + sel, + algorithm, + error, + ); + } + + late final __objc_msgSend_486Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_486 = __objc_msgSend_486Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer>)>(); + + late final _sel_compressUsingAlgorithm_error_1 = + _registerName1("compressUsingAlgorithm:error:"); + late final _sel_initForWritingWithMutableData_1 = + _registerName1("initForWritingWithMutableData:"); + instancetype _objc_msgSend_487( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer data, + ) { + return __objc_msgSend_487( + obj, + sel, + data, + ); + } + + late final __objc_msgSend_487Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_487 = __objc_msgSend_487Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_archivedDataWithRootObject_1 = + _registerName1("archivedDataWithRootObject:"); + ffi.Pointer _objc_msgSend_488( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer rootObject, + ) { + return __objc_msgSend_488( + obj, + sel, + rootObject, + ); + } + + late final __objc_msgSend_488Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_488 = __objc_msgSend_488Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_archiveRootObject_toFile_1 = + _registerName1("archiveRootObject:toFile:"); + late final _sel_outputFormat1 = _registerName1("outputFormat"); + int _objc_msgSend_489( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_489( + obj, + sel, + ); + } + + late final __objc_msgSend_489Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_489 = __objc_msgSend_489Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setOutputFormat_1 = _registerName1("setOutputFormat:"); + void _objc_msgSend_490( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_490( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_490Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_490 = __objc_msgSend_490Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_encodedData1 = _registerName1("encodedData"); + late final _sel_finishEncoding1 = _registerName1("finishEncoding"); + late final _sel_setClassName_forClass_1 = + _registerName1("setClassName:forClass:"); + void _objc_msgSend_491( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer codedName, + ffi.Pointer cls, + ) { + return __objc_msgSend_491( + obj, + sel, + codedName, + cls, + ); + } + + late final __objc_msgSend_491Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_491 = __objc_msgSend_491Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_classNameForClass_1 = _registerName1("classNameForClass:"); + late final _sel_setRequiresSecureCoding_1 = + _registerName1("setRequiresSecureCoding:"); + void _objc_msgSend_492( + ffi.Pointer obj, + ffi.Pointer sel, + bool value, + ) { + return __objc_msgSend_492( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_492Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_492 = __objc_msgSend_492Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, bool)>(); + + late final _sel_replacementObjectForKeyedArchiver_1 = + _registerName1("replacementObjectForKeyedArchiver:"); + ffi.Pointer _objc_msgSend_493( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer archiver, + ) { + return __objc_msgSend_493( + obj, + sel, + archiver, + ); + } + + late final __objc_msgSend_493Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_493 = __objc_msgSend_493Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_1 = + _registerName1( + "performSelectorOnMainThread:withObject:waitUntilDone:modes:"); + void _objc_msgSend_494( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aSelector, + ffi.Pointer arg, + bool wait, + ffi.Pointer array, + ) { + return __objc_msgSend_494( + obj, + sel, + aSelector, + arg, + wait, + array, + ); + } + + late final __objc_msgSend_494Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_494 = __objc_msgSend_494Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer)>(); + + late final _sel_performSelectorOnMainThread_withObject_waitUntilDone_1 = + _registerName1("performSelectorOnMainThread:withObject:waitUntilDone:"); + void _objc_msgSend_495( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aSelector, + ffi.Pointer arg, + bool wait, + ) { + return __objc_msgSend_495( + obj, + sel, + aSelector, + arg, + wait, + ); + } + + late final __objc_msgSend_495Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_495 = __objc_msgSend_495Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, bool)>(); + + late final _class_NSThread1 = _getClass1("NSThread"); + late final _sel_currentThread1 = _registerName1("currentThread"); + ffi.Pointer _objc_msgSend_496( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_496( + obj, + sel, + ); + } + + late final __objc_msgSend_496Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_496 = __objc_msgSend_496Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_detachNewThreadWithBlock_1 = + _registerName1("detachNewThreadWithBlock:"); + void _objc_msgSend_497( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_497( + obj, + sel, + block, + ); + } + + late final __objc_msgSend_497Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_497 = __objc_msgSend_497Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_detachNewThreadSelector_toTarget_withObject_1 = + _registerName1("detachNewThreadSelector:toTarget:withObject:"); + void _objc_msgSend_498( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer selector, + ffi.Pointer target, + ffi.Pointer argument, + ) { + return __objc_msgSend_498( + obj, + sel, + selector, + target, + argument, + ); + } + + late final __objc_msgSend_498Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_498 = __objc_msgSend_498Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_isMultiThreaded1 = _registerName1("isMultiThreaded"); + late final _class_NSMutableDictionary1 = _getClass1("NSMutableDictionary"); + late final _sel_removeObjectForKey_1 = _registerName1("removeObjectForKey:"); + late final _sel_setObject_forKey_1 = _registerName1("setObject:forKey:"); + void _objc_msgSend_499( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anObject, + ffi.Pointer aKey, + ) { + return __objc_msgSend_499( + obj, + sel, + anObject, + aKey, + ); + } + + late final __objc_msgSend_499Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_499 = __objc_msgSend_499Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_addEntriesFromDictionary_1 = + _registerName1("addEntriesFromDictionary:"); + late final _sel_removeObjectsForKeys_1 = + _registerName1("removeObjectsForKeys:"); + late final _sel_setDictionary_1 = _registerName1("setDictionary:"); + late final _sel_setObject_forKeyedSubscript_1 = + _registerName1("setObject:forKeyedSubscript:"); + late final _sel_dictionaryWithCapacity_1 = + _registerName1("dictionaryWithCapacity:"); + ffi.Pointer _objc_msgSend_500( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ) { + return __objc_msgSend_500( + obj, + sel, + path, + ); + } + + late final __objc_msgSend_500Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_500 = __objc_msgSend_500Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + ffi.Pointer _objc_msgSend_501( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ) { + return __objc_msgSend_501( + obj, + sel, + url, + ); + } + + late final __objc_msgSend_501Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_501 = __objc_msgSend_501Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_dictionaryWithSharedKeySet_1 = + _registerName1("dictionaryWithSharedKeySet:"); + ffi.Pointer _objc_msgSend_502( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer keyset, + ) { + return __objc_msgSend_502( + obj, + sel, + keyset, + ); + } + + late final __objc_msgSend_502Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_502 = __objc_msgSend_502Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_threadDictionary1 = _registerName1("threadDictionary"); + ffi.Pointer _objc_msgSend_503( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_503( + obj, + sel, + ); + } + + late final __objc_msgSend_503Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_503 = __objc_msgSend_503Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_sleepUntilDate_1 = _registerName1("sleepUntilDate:"); + void _objc_msgSend_504( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer date, + ) { + return __objc_msgSend_504( + obj, + sel, + date, + ); + } + + late final __objc_msgSend_504Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_504 = __objc_msgSend_504Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_sleepForTimeInterval_1 = + _registerName1("sleepForTimeInterval:"); + void _objc_msgSend_505( + ffi.Pointer obj, + ffi.Pointer sel, + double ti, + ) { + return __objc_msgSend_505( + obj, + sel, + ti, + ); + } + + late final __objc_msgSend_505Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_505 = __objc_msgSend_505Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, double)>(); + + late final _sel_exit1 = _registerName1("exit"); + late final _sel_threadPriority1 = _registerName1("threadPriority"); + late final _sel_setThreadPriority_1 = _registerName1("setThreadPriority:"); + void _objc_msgSend_506( + ffi.Pointer obj, + ffi.Pointer sel, + double value, + ) { + return __objc_msgSend_506( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_506Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_506 = __objc_msgSend_506Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, double)>(); + + late final _sel_qualityOfService1 = _registerName1("qualityOfService"); + int _objc_msgSend_507( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_507( + obj, + sel, + ); + } + + late final __objc_msgSend_507Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_507 = __objc_msgSend_507Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setQualityOfService_1 = + _registerName1("setQualityOfService:"); + void _objc_msgSend_508( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_508( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_508Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_508 = __objc_msgSend_508Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_callStackReturnAddresses1 = + _registerName1("callStackReturnAddresses"); + late final _sel_callStackSymbols1 = _registerName1("callStackSymbols"); + late final _sel_setName_1 = _registerName1("setName:"); + void _objc_msgSend_509( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_509( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_509Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_509 = __objc_msgSend_509Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_stackSize1 = _registerName1("stackSize"); + late final _sel_setStackSize_1 = _registerName1("setStackSize:"); + late final _sel_isMainThread1 = _registerName1("isMainThread"); + late final _sel_mainThread1 = _registerName1("mainThread"); + late final _sel_initWithTarget_selector_object_1 = + _registerName1("initWithTarget:selector:object:"); + instancetype _objc_msgSend_510( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer target, + ffi.Pointer selector, + ffi.Pointer argument, + ) { + return __objc_msgSend_510( + obj, + sel, + target, + selector, + argument, + ); + } + + late final __objc_msgSend_510Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_510 = __objc_msgSend_510Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_initWithBlock_1 = _registerName1("initWithBlock:"); + instancetype _objc_msgSend_511( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_511( + obj, + sel, + block, + ); + } + + late final __objc_msgSend_511Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_511 = __objc_msgSend_511Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_isExecuting1 = _registerName1("isExecuting"); + late final _sel_isFinished1 = _registerName1("isFinished"); + late final _sel_isCancelled1 = _registerName1("isCancelled"); + late final _sel_cancel1 = _registerName1("cancel"); + late final _sel_start1 = _registerName1("start"); + late final _sel_main1 = _registerName1("main"); + late final _sel_performSelector_onThread_withObject_waitUntilDone_modes_1 = + _registerName1( + "performSelector:onThread:withObject:waitUntilDone:modes:"); + void _objc_msgSend_512( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aSelector, + ffi.Pointer thr, + ffi.Pointer arg, + bool wait, + ffi.Pointer array, + ) { + return __objc_msgSend_512( + obj, + sel, + aSelector, + thr, + arg, + wait, + array, + ); + } + + late final __objc_msgSend_512Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_512 = __objc_msgSend_512Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer)>(); + + late final _sel_performSelector_onThread_withObject_waitUntilDone_1 = + _registerName1("performSelector:onThread:withObject:waitUntilDone:"); + void _objc_msgSend_513( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aSelector, + ffi.Pointer thr, + ffi.Pointer arg, + bool wait, + ) { + return __objc_msgSend_513( + obj, + sel, + aSelector, + thr, + arg, + wait, + ); + } + + late final __objc_msgSend_513Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_513 = __objc_msgSend_513Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool)>(); + + late final _sel_performSelectorInBackground_withObject_1 = + _registerName1("performSelectorInBackground:withObject:"); + late final _sel_classForArchiver1 = _registerName1("classForArchiver"); + late final _class_NSArchiver1 = _getClass1("NSArchiver"); + late final _sel_archiverData1 = _registerName1("archiverData"); + ffi.Pointer _objc_msgSend_514( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_514( + obj, + sel, + ); + } + + late final __objc_msgSend_514Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_514 = __objc_msgSend_514Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_encodeClassName_intoClassName_1 = + _registerName1("encodeClassName:intoClassName:"); + void _objc_msgSend_515( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer trueName, + ffi.Pointer inArchiveName, + ) { + return __objc_msgSend_515( + obj, + sel, + trueName, + inArchiveName, + ); + } + + late final __objc_msgSend_515Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_515 = __objc_msgSend_515Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_classNameEncodedForTrueClassName_1 = + _registerName1("classNameEncodedForTrueClassName:"); + late final _sel_replaceObject_withObject_1 = + _registerName1("replaceObject:withObject:"); + late final _sel_replacementObjectForArchiver_1 = + _registerName1("replacementObjectForArchiver:"); + ffi.Pointer _objc_msgSend_516( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer archiver, + ) { + return __objc_msgSend_516( + obj, + sel, + archiver, + ); + } + + late final __objc_msgSend_516Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_516 = __objc_msgSend_516Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_classForPortCoder1 = _registerName1("classForPortCoder"); + late final _class_NSPortCoder1 = _getClass1("NSPortCoder"); + late final _sel_isBycopy1 = _registerName1("isBycopy"); + late final _sel_isByref1 = _registerName1("isByref"); + late final _class_NSPort1 = _getClass1("NSPort"); + ffi.Pointer _objc_msgSend_517( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_517( + obj, + sel, + ); + } + + late final __objc_msgSend_517Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_517 = __objc_msgSend_517Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_invalidate1 = _registerName1("invalidate"); + late final _sel_isValid1 = _registerName1("isValid"); + late final _class_NSRunLoop1 = _getClass1("NSRunLoop"); + late final _sel_currentRunLoop1 = _registerName1("currentRunLoop"); + ffi.Pointer _objc_msgSend_518( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_518( + obj, + sel, + ); + } + + late final __objc_msgSend_518Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_518 = __objc_msgSend_518Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_mainRunLoop1 = _registerName1("mainRunLoop"); + late final _sel_currentMode1 = _registerName1("currentMode"); + late final _sel_getCFRunLoop1 = _registerName1("getCFRunLoop"); + ffi.Pointer<__CFRunLoop> _objc_msgSend_519( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_519( + obj, + sel, + ); + } + + late final __objc_msgSend_519Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer<__CFRunLoop> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_519 = __objc_msgSend_519Ptr.asFunction< + ffi.Pointer<__CFRunLoop> Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _class_NSTimer1 = _getClass1("NSTimer"); + late final _sel_timerWithTimeInterval_invocation_repeats_1 = + _registerName1("timerWithTimeInterval:invocation:repeats:"); + ffi.Pointer _objc_msgSend_520( + ffi.Pointer obj, + ffi.Pointer sel, + double ti, + ffi.Pointer invocation, + bool yesOrNo, + ) { + return __objc_msgSend_520( + obj, + sel, + ti, + invocation, + yesOrNo, + ); + } + + late final __objc_msgSend_520Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_520 = __objc_msgSend_520Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, double, ffi.Pointer, bool)>(); + + late final _sel_scheduledTimerWithTimeInterval_invocation_repeats_1 = + _registerName1("scheduledTimerWithTimeInterval:invocation:repeats:"); + late final _sel_timerWithTimeInterval_target_selector_userInfo_repeats_1 = + _registerName1("timerWithTimeInterval:target:selector:userInfo:repeats:"); + ffi.Pointer _objc_msgSend_521( + ffi.Pointer obj, + ffi.Pointer sel, + double ti, + ffi.Pointer aTarget, + ffi.Pointer aSelector, + ffi.Pointer userInfo, + bool yesOrNo, + ) { + return __objc_msgSend_521( + obj, + sel, + ti, + aTarget, + aSelector, + userInfo, + yesOrNo, + ); + } + + late final __objc_msgSend_521Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_521 = __objc_msgSend_521Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool)>(); + + late final _sel_scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_1 = + _registerName1( + "scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:"); + late final _sel_timerWithTimeInterval_repeats_block_1 = + _registerName1("timerWithTimeInterval:repeats:block:"); + ffi.Pointer _objc_msgSend_522( + ffi.Pointer obj, + ffi.Pointer sel, + double interval, + bool repeats, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_522( + obj, + sel, + interval, + repeats, + block, + ); + } + + late final __objc_msgSend_522Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Bool, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_522 = __objc_msgSend_522Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, double, bool, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_scheduledTimerWithTimeInterval_repeats_block_1 = + _registerName1("scheduledTimerWithTimeInterval:repeats:block:"); + late final _sel_initWithFireDate_interval_repeats_block_1 = + _registerName1("initWithFireDate:interval:repeats:block:"); + instancetype _objc_msgSend_523( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer date, + double interval, + bool repeats, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_523( + obj, + sel, + date, + interval, + repeats, + block, + ); + } + + late final __objc_msgSend_523Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Bool, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_523 = __objc_msgSend_523Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, double, bool, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_initWithFireDate_interval_target_selector_userInfo_repeats_1 = + _registerName1( + "initWithFireDate:interval:target:selector:userInfo:repeats:"); + instancetype _objc_msgSend_524( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer date, + double ti, + ffi.Pointer t, + ffi.Pointer s, + ffi.Pointer ui, + bool rep, + ) { + return __objc_msgSend_524( + obj, + sel, + date, + ti, + t, + s, + ui, + rep, + ); + } + + late final __objc_msgSend_524Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_524 = __objc_msgSend_524Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + double, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool)>(); + + late final _sel_fire1 = _registerName1("fire"); + late final _sel_fireDate1 = _registerName1("fireDate"); + late final _sel_setFireDate_1 = _registerName1("setFireDate:"); + void _objc_msgSend_525( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_525( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_525Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_525 = __objc_msgSend_525Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_timeInterval1 = _registerName1("timeInterval"); + late final _sel_tolerance1 = _registerName1("tolerance"); + late final _sel_setTolerance_1 = _registerName1("setTolerance:"); + late final _sel_addTimer_forMode_1 = _registerName1("addTimer:forMode:"); + void _objc_msgSend_526( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer timer, + ffi.Pointer mode, + ) { + return __objc_msgSend_526( + obj, + sel, + timer, + mode, + ); + } + + late final __objc_msgSend_526Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_526 = __objc_msgSend_526Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_addPort_forMode_1 = _registerName1("addPort:forMode:"); + void _objc_msgSend_527( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aPort, + ffi.Pointer mode, + ) { + return __objc_msgSend_527( + obj, + sel, + aPort, + mode, + ); + } + + late final __objc_msgSend_527Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_527 = __objc_msgSend_527Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_removePort_forMode_1 = _registerName1("removePort:forMode:"); + late final _sel_limitDateForMode_1 = _registerName1("limitDateForMode:"); + ffi.Pointer _objc_msgSend_528( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer mode, + ) { + return __objc_msgSend_528( + obj, + sel, + mode, + ); + } + + late final __objc_msgSend_528Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_528 = __objc_msgSend_528Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_acceptInputForMode_beforeDate_1 = + _registerName1("acceptInputForMode:beforeDate:"); + void _objc_msgSend_529( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer mode, + ffi.Pointer limitDate, + ) { + return __objc_msgSend_529( + obj, + sel, + mode, + limitDate, + ); + } + + late final __objc_msgSend_529Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_529 = __objc_msgSend_529Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_run1 = _registerName1("run"); + late final _sel_runUntilDate_1 = _registerName1("runUntilDate:"); + late final _sel_runMode_beforeDate_1 = _registerName1("runMode:beforeDate:"); + bool _objc_msgSend_530( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer mode, + ffi.Pointer limitDate, + ) { + return __objc_msgSend_530( + obj, + sel, + mode, + limitDate, + ); + } + + late final __objc_msgSend_530Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_530 = __objc_msgSend_530Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_configureAsServer1 = _registerName1("configureAsServer"); + late final _sel_performInModes_block_1 = + _registerName1("performInModes:block:"); + void _objc_msgSend_531( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer modes, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_531( + obj, + sel, + modes, + block, + ); + } + + late final __objc_msgSend_531Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_531 = __objc_msgSend_531Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_performBlock_1 = _registerName1("performBlock:"); + late final _sel_performSelector_target_argument_order_modes_1 = + _registerName1("performSelector:target:argument:order:modes:"); + void _objc_msgSend_532( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aSelector, + ffi.Pointer target, + ffi.Pointer arg, + int order, + ffi.Pointer modes, + ) { + return __objc_msgSend_532( + obj, + sel, + aSelector, + target, + arg, + order, + modes, + ); + } + + late final __objc_msgSend_532Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_532 = __objc_msgSend_532Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer)>(); + + late final _sel_cancelPerformSelector_target_argument_1 = + _registerName1("cancelPerformSelector:target:argument:"); + late final _sel_cancelPerformSelectorsWithTarget_1 = + _registerName1("cancelPerformSelectorsWithTarget:"); + late final _sel_scheduleInRunLoop_forMode_1 = + _registerName1("scheduleInRunLoop:forMode:"); + void _objc_msgSend_533( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer runLoop, + ffi.Pointer mode, + ) { + return __objc_msgSend_533( + obj, + sel, + runLoop, + mode, + ); + } + + late final __objc_msgSend_533Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_533 = __objc_msgSend_533Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_removeFromRunLoop_forMode_1 = + _registerName1("removeFromRunLoop:forMode:"); + late final _sel_reservedSpaceLength1 = _registerName1("reservedSpaceLength"); + late final _sel_sendBeforeDate_components_from_reserved_1 = + _registerName1("sendBeforeDate:components:from:reserved:"); + bool _objc_msgSend_534( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer limitDate, + ffi.Pointer components, + ffi.Pointer receivePort, + int headerSpaceReserved, + ) { + return __objc_msgSend_534( + obj, + sel, + limitDate, + components, + receivePort, + headerSpaceReserved, + ); + } + + late final __objc_msgSend_534Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_534 = __objc_msgSend_534Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int)>(); + + late final _sel_sendBeforeDate_msgid_components_from_reserved_1 = + _registerName1("sendBeforeDate:msgid:components:from:reserved:"); + bool _objc_msgSend_535( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer limitDate, + int msgID, + ffi.Pointer components, + ffi.Pointer receivePort, + int headerSpaceReserved, + ) { + return __objc_msgSend_535( + obj, + sel, + limitDate, + msgID, + components, + receivePort, + headerSpaceReserved, + ); + } + + late final __objc_msgSend_535Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_535 = __objc_msgSend_535Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + int)>(); + + late final _class_NSConnection1 = _getClass1("NSConnection"); + late final _sel_statistics1 = _registerName1("statistics"); + late final _sel_allConnections1 = _registerName1("allConnections"); + late final _sel_defaultConnection1 = _registerName1("defaultConnection"); + ffi.Pointer _objc_msgSend_536( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_536( + obj, + sel, + ); + } + + late final __objc_msgSend_536Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_536 = __objc_msgSend_536Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_connectionWithRegisteredName_host_1 = + _registerName1("connectionWithRegisteredName:host:"); + late final _class_NSPortNameServer1 = _getClass1("NSPortNameServer"); + late final _sel_systemDefaultPortNameServer1 = + _registerName1("systemDefaultPortNameServer"); + ffi.Pointer _objc_msgSend_537( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_537( + obj, + sel, + ); + } + + late final __objc_msgSend_537Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_537 = __objc_msgSend_537Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_portForName_1 = _registerName1("portForName:"); + ffi.Pointer _objc_msgSend_538( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ) { + return __objc_msgSend_538( + obj, + sel, + name, + ); + } + + late final __objc_msgSend_538Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_538 = __objc_msgSend_538Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_portForName_host_1 = _registerName1("portForName:host:"); + ffi.Pointer _objc_msgSend_539( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer host, + ) { + return __objc_msgSend_539( + obj, + sel, + name, + host, + ); + } + + late final __objc_msgSend_539Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_539 = __objc_msgSend_539Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_registerPort_name_1 = _registerName1("registerPort:name:"); + bool _objc_msgSend_540( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer port, + ffi.Pointer name, + ) { + return __objc_msgSend_540( + obj, + sel, + port, + name, + ); + } + + late final __objc_msgSend_540Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_540 = __objc_msgSend_540Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_removePortForName_1 = _registerName1("removePortForName:"); + late final _sel_connectionWithRegisteredName_host_usingNameServer_1 = + _registerName1("connectionWithRegisteredName:host:usingNameServer:"); + instancetype _objc_msgSend_541( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer hostName, + ffi.Pointer server, + ) { + return __objc_msgSend_541( + obj, + sel, + name, + hostName, + server, + ); + } + + late final __objc_msgSend_541Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_541 = __objc_msgSend_541Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _class_NSDistantObject1 = _getClass1("NSDistantObject"); + late final _class_NSProxy1 = _getClass1("NSProxy"); + late final _sel_respondsToSelector_1 = _registerName1("respondsToSelector:"); + late final _sel_proxyWithTarget_connection_1 = + _registerName1("proxyWithTarget:connection:"); + ffi.Pointer _objc_msgSend_542( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer target, + ffi.Pointer connection, + ) { + return __objc_msgSend_542( + obj, + sel, + target, + connection, + ); + } + + late final __objc_msgSend_542Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_542 = __objc_msgSend_542Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_initWithTarget_connection_1 = + _registerName1("initWithTarget:connection:"); + late final _sel_proxyWithLocal_connection_1 = + _registerName1("proxyWithLocal:connection:"); + late final _sel_initWithLocal_connection_1 = + _registerName1("initWithLocal:connection:"); + late final _sel_setProtocolForProxy_1 = + _registerName1("setProtocolForProxy:"); + void _objc_msgSend_543( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer proto, + ) { + return __objc_msgSend_543( + obj, + sel, + proto, + ); + } + + late final __objc_msgSend_543Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_543 = __objc_msgSend_543Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_connectionForProxy1 = _registerName1("connectionForProxy"); + late final _sel_rootProxyForConnectionWithRegisteredName_host_1 = + _registerName1("rootProxyForConnectionWithRegisteredName:host:"); + ffi.Pointer _objc_msgSend_544( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer hostName, + ) { + return __objc_msgSend_544( + obj, + sel, + name, + hostName, + ); + } + + late final __objc_msgSend_544Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_544 = __objc_msgSend_544Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_rootProxyForConnectionWithRegisteredName_host_usingNameServer_1 = + _registerName1( + "rootProxyForConnectionWithRegisteredName:host:usingNameServer:"); + ffi.Pointer _objc_msgSend_545( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer hostName, + ffi.Pointer server, + ) { + return __objc_msgSend_545( + obj, + sel, + name, + hostName, + server, + ); + } + + late final __objc_msgSend_545Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_545 = __objc_msgSend_545Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_serviceConnectionWithName_rootObject_usingNameServer_1 = + _registerName1("serviceConnectionWithName:rootObject:usingNameServer:"); + instancetype _objc_msgSend_546( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer root, + ffi.Pointer server, + ) { + return __objc_msgSend_546( + obj, + sel, + name, + root, + server, + ); + } + + late final __objc_msgSend_546Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_546 = __objc_msgSend_546Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_serviceConnectionWithName_rootObject_1 = + _registerName1("serviceConnectionWithName:rootObject:"); + late final _sel_requestTimeout1 = _registerName1("requestTimeout"); + late final _sel_setRequestTimeout_1 = _registerName1("setRequestTimeout:"); + late final _sel_replyTimeout1 = _registerName1("replyTimeout"); + late final _sel_setReplyTimeout_1 = _registerName1("setReplyTimeout:"); + late final _sel_rootObject1 = _registerName1("rootObject"); + late final _sel_setRootObject_1 = _registerName1("setRootObject:"); + late final _sel_independentConversationQueueing1 = + _registerName1("independentConversationQueueing"); + late final _sel_setIndependentConversationQueueing_1 = + _registerName1("setIndependentConversationQueueing:"); + late final _sel_rootProxy1 = _registerName1("rootProxy"); + ffi.Pointer _objc_msgSend_547( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_547( + obj, + sel, + ); + } + + late final __objc_msgSend_547Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_547 = __objc_msgSend_547Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_addRequestMode_1 = _registerName1("addRequestMode:"); + late final _sel_removeRequestMode_1 = _registerName1("removeRequestMode:"); + late final _sel_requestModes1 = _registerName1("requestModes"); + late final _sel_registerName_1 = _registerName1("registerName:"); + late final _sel_registerName_withNameServer_1 = + _registerName1("registerName:withNameServer:"); + bool _objc_msgSend_548( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer server, + ) { + return __objc_msgSend_548( + obj, + sel, + name, + server, + ); + } + + late final __objc_msgSend_548Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_548 = __objc_msgSend_548Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_connectionWithReceivePort_sendPort_1 = + _registerName1("connectionWithReceivePort:sendPort:"); + instancetype _objc_msgSend_549( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer receivePort, + ffi.Pointer sendPort, + ) { + return __objc_msgSend_549( + obj, + sel, + receivePort, + sendPort, + ); + } + + late final __objc_msgSend_549Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_549 = __objc_msgSend_549Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_currentConversation1 = _registerName1("currentConversation"); + late final _sel_initWithReceivePort_sendPort_1 = + _registerName1("initWithReceivePort:sendPort:"); + late final _sel_sendPort1 = _registerName1("sendPort"); + late final _sel_receivePort1 = _registerName1("receivePort"); + late final _sel_enableMultipleThreads1 = + _registerName1("enableMultipleThreads"); + late final _sel_multipleThreadsEnabled1 = + _registerName1("multipleThreadsEnabled"); + late final _sel_addRunLoop_1 = _registerName1("addRunLoop:"); + void _objc_msgSend_550( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer runloop, + ) { + return __objc_msgSend_550( + obj, + sel, + runloop, + ); + } + + late final __objc_msgSend_550Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_550 = __objc_msgSend_550Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_removeRunLoop_1 = _registerName1("removeRunLoop:"); + late final _sel_runInNewThread1 = _registerName1("runInNewThread"); + late final _sel_remoteObjects1 = _registerName1("remoteObjects"); + late final _sel_localObjects1 = _registerName1("localObjects"); + late final _sel_dispatchWithComponents_1 = + _registerName1("dispatchWithComponents:"); + late final _sel_addConnection_toRunLoop_forMode_1 = + _registerName1("addConnection:toRunLoop:forMode:"); + void _objc_msgSend_551( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer conn, + ffi.Pointer runLoop, + ffi.Pointer mode, + ) { + return __objc_msgSend_551( + obj, + sel, + conn, + runLoop, + mode, + ); + } + + late final __objc_msgSend_551Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_551 = __objc_msgSend_551Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_removeConnection_fromRunLoop_forMode_1 = + _registerName1("removeConnection:fromRunLoop:forMode:"); + late final _sel_encodePortObject_1 = _registerName1("encodePortObject:"); + void _objc_msgSend_552( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aport, + ) { + return __objc_msgSend_552( + obj, + sel, + aport, + ); + } + + late final __objc_msgSend_552Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_552 = __objc_msgSend_552Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_decodePortObject1 = _registerName1("decodePortObject"); + late final _sel_connection1 = _registerName1("connection"); + late final _sel_portCoderWithReceivePort_sendPort_components_1 = + _registerName1("portCoderWithReceivePort:sendPort:components:"); + ffi.Pointer _objc_msgSend_553( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer rcvPort, + ffi.Pointer sndPort, + ffi.Pointer comps, + ) { + return __objc_msgSend_553( + obj, + sel, + rcvPort, + sndPort, + comps, + ); + } + + late final __objc_msgSend_553Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_553 = __objc_msgSend_553Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_initWithReceivePort_sendPort_components_1 = + _registerName1("initWithReceivePort:sendPort:components:"); + late final _sel_dispatch1 = _registerName1("dispatch"); + late final _sel_replacementObjectForPortCoder_1 = + _registerName1("replacementObjectForPortCoder:"); + ffi.Pointer _objc_msgSend_554( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer coder, + ) { + return __objc_msgSend_554( + obj, + sel, + coder, + ); + } + + late final __objc_msgSend_554Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_554 = __objc_msgSend_554Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _class_NSClassDescription1 = _getClass1("NSClassDescription"); + late final _sel_registerClassDescription_forClass_1 = + _registerName1("registerClassDescription:forClass:"); + void _objc_msgSend_555( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer description, + ffi.Pointer aClass, + ) { + return __objc_msgSend_555( + obj, + sel, + description, + aClass, + ); + } + + late final __objc_msgSend_555Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_555 = __objc_msgSend_555Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_invalidateClassDescriptionCache1 = + _registerName1("invalidateClassDescriptionCache"); + late final _sel_classDescriptionForClass_1 = + _registerName1("classDescriptionForClass:"); + ffi.Pointer _objc_msgSend_556( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aClass, + ) { + return __objc_msgSend_556( + obj, + sel, + aClass, + ); + } + + late final __objc_msgSend_556Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_556 = __objc_msgSend_556Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_attributeKeys1 = _registerName1("attributeKeys"); + late final _sel_toOneRelationshipKeys1 = + _registerName1("toOneRelationshipKeys"); + late final _sel_toManyRelationshipKeys1 = + _registerName1("toManyRelationshipKeys"); + late final _sel_inverseForRelationshipKey_1 = + _registerName1("inverseForRelationshipKey:"); + late final _sel_classDescription1 = _registerName1("classDescription"); + ffi.Pointer _objc_msgSend_557( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_557( + obj, + sel, + ); + } + + late final __objc_msgSend_557Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_557 = __objc_msgSend_557Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _class_NSScriptObjectSpecifier1 = + _getClass1("NSScriptObjectSpecifier"); + late final _class_NSAppleEventDescriptor1 = + _getClass1("NSAppleEventDescriptor"); + late final _sel_nullDescriptor1 = _registerName1("nullDescriptor"); + ffi.Pointer _objc_msgSend_558( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_558( + obj, + sel, + ); + } + + late final __objc_msgSend_558Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_558 = __objc_msgSend_558Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_descriptorWithDescriptorType_bytes_length_1 = + _registerName1("descriptorWithDescriptorType:bytes:length:"); + ffi.Pointer _objc_msgSend_559( + ffi.Pointer obj, + ffi.Pointer sel, + int descriptorType, + ffi.Pointer bytes, + int byteCount, + ) { + return __objc_msgSend_559( + obj, + sel, + descriptorType, + bytes, + byteCount, + ); + } + + late final __objc_msgSend_559Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_559 = __objc_msgSend_559Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer, int)>(); + + late final _sel_descriptorWithDescriptorType_data_1 = + _registerName1("descriptorWithDescriptorType:data:"); + ffi.Pointer _objc_msgSend_560( + ffi.Pointer obj, + ffi.Pointer sel, + int descriptorType, + ffi.Pointer data, + ) { + return __objc_msgSend_560( + obj, + sel, + descriptorType, + data, + ); + } + + late final __objc_msgSend_560Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_560 = __objc_msgSend_560Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); + + late final _sel_descriptorWithBoolean_1 = + _registerName1("descriptorWithBoolean:"); + ffi.Pointer _objc_msgSend_561( + ffi.Pointer obj, + ffi.Pointer sel, + int boolean, + ) { + return __objc_msgSend_561( + obj, + sel, + boolean, + ); + } + + late final __objc_msgSend_561Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedChar)>>('objc_msgSend'); + late final __objc_msgSend_561 = __objc_msgSend_561Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_descriptorWithEnumCode_1 = + _registerName1("descriptorWithEnumCode:"); + ffi.Pointer _objc_msgSend_562( + ffi.Pointer obj, + ffi.Pointer sel, + int enumerator, + ) { + return __objc_msgSend_562( + obj, + sel, + enumerator, + ); + } + + late final __objc_msgSend_562Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); + late final __objc_msgSend_562 = __objc_msgSend_562Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_descriptorWithInt32_1 = + _registerName1("descriptorWithInt32:"); + ffi.Pointer _objc_msgSend_563( + ffi.Pointer obj, + ffi.Pointer sel, + int signedInt, + ) { + return __objc_msgSend_563( + obj, + sel, + signedInt, + ); + } + + late final __objc_msgSend_563Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int)>>('objc_msgSend'); + late final __objc_msgSend_563 = __objc_msgSend_563Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_descriptorWithDouble_1 = + _registerName1("descriptorWithDouble:"); + ffi.Pointer _objc_msgSend_564( + ffi.Pointer obj, + ffi.Pointer sel, + double doubleValue, + ) { + return __objc_msgSend_564( + obj, + sel, + doubleValue, + ); + } + + late final __objc_msgSend_564Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_564 = __objc_msgSend_564Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, double)>(); + + late final _sel_descriptorWithTypeCode_1 = + _registerName1("descriptorWithTypeCode:"); + late final _sel_descriptorWithString_1 = + _registerName1("descriptorWithString:"); + ffi.Pointer _objc_msgSend_565( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, + ) { + return __objc_msgSend_565( + obj, + sel, + string, + ); + } + + late final __objc_msgSend_565Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_565 = __objc_msgSend_565Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_descriptorWithDate_1 = _registerName1("descriptorWithDate:"); + ffi.Pointer _objc_msgSend_566( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer date, + ) { + return __objc_msgSend_566( + obj, + sel, + date, + ); + } + + late final __objc_msgSend_566Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_566 = __objc_msgSend_566Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_descriptorWithFileURL_1 = + _registerName1("descriptorWithFileURL:"); + ffi.Pointer _objc_msgSend_567( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer fileURL, + ) { + return __objc_msgSend_567( + obj, + sel, + fileURL, + ); + } + + late final __objc_msgSend_567Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_567 = __objc_msgSend_567Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_appleEventWithEventClass_eventID_targetDescriptor_returnID_transactionID_1 = + _registerName1( + "appleEventWithEventClass:eventID:targetDescriptor:returnID:transactionID:"); + ffi.Pointer _objc_msgSend_568( + ffi.Pointer obj, + ffi.Pointer sel, + int eventClass, + int eventID, + ffi.Pointer targetDescriptor, + int returnID, + int transactionID, + ) { + return __objc_msgSend_568( + obj, + sel, + eventClass, + eventID, + targetDescriptor, + returnID, + transactionID, + ); + } + + late final __objc_msgSend_568Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ffi.Pointer, + ffi.Short, + ffi.Int)>>('objc_msgSend'); + late final __objc_msgSend_568 = __objc_msgSend_568Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, int, ffi.Pointer, int, int)>(); + + late final _sel_listDescriptor1 = _registerName1("listDescriptor"); + late final _sel_recordDescriptor1 = _registerName1("recordDescriptor"); + late final _sel_currentProcessDescriptor1 = + _registerName1("currentProcessDescriptor"); + late final _sel_descriptorWithProcessIdentifier_1 = + _registerName1("descriptorWithProcessIdentifier:"); + late final _sel_descriptorWithBundleIdentifier_1 = + _registerName1("descriptorWithBundleIdentifier:"); + late final _sel_descriptorWithApplicationURL_1 = + _registerName1("descriptorWithApplicationURL:"); + late final _sel_initWithAEDescNoCopy_1 = + _registerName1("initWithAEDescNoCopy:"); + instancetype _objc_msgSend_569( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aeDesc, + ) { + return __objc_msgSend_569( + obj, + sel, + aeDesc, + ); + } + + late final __objc_msgSend_569Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_569 = __objc_msgSend_569Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_initWithDescriptorType_bytes_length_1 = + _registerName1("initWithDescriptorType:bytes:length:"); + instancetype _objc_msgSend_570( + ffi.Pointer obj, + ffi.Pointer sel, + int descriptorType, + ffi.Pointer bytes, + int byteCount, + ) { + return __objc_msgSend_570( + obj, + sel, + descriptorType, + bytes, + byteCount, + ); + } + + late final __objc_msgSend_570Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_570 = __objc_msgSend_570Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer, int)>(); + + late final _sel_initWithDescriptorType_data_1 = + _registerName1("initWithDescriptorType:data:"); + instancetype _objc_msgSend_571( + ffi.Pointer obj, + ffi.Pointer sel, + int descriptorType, + ffi.Pointer data, + ) { + return __objc_msgSend_571( + obj, + sel, + descriptorType, + data, + ); + } + + late final __objc_msgSend_571Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.UnsignedInt, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_571 = __objc_msgSend_571Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); + + late final _sel_initWithEventClass_eventID_targetDescriptor_returnID_transactionID_1 = + _registerName1( + "initWithEventClass:eventID:targetDescriptor:returnID:transactionID:"); + instancetype _objc_msgSend_572( + ffi.Pointer obj, + ffi.Pointer sel, + int eventClass, + int eventID, + ffi.Pointer targetDescriptor, + int returnID, + int transactionID, + ) { + return __objc_msgSend_572( + obj, + sel, + eventClass, + eventID, + targetDescriptor, + returnID, + transactionID, + ); + } + + late final __objc_msgSend_572Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedInt, + ffi.UnsignedInt, + ffi.Pointer, + ffi.Short, + ffi.Int)>>('objc_msgSend'); + late final __objc_msgSend_572 = __objc_msgSend_572Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, int, + int, ffi.Pointer, int, int)>(); + + late final _sel_initListDescriptor1 = _registerName1("initListDescriptor"); + late final _sel_initRecordDescriptor1 = + _registerName1("initRecordDescriptor"); + late final _sel_aeDesc1 = _registerName1("aeDesc"); + ffi.Pointer _objc_msgSend_573( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_573( + obj, + sel, + ); + } + + late final __objc_msgSend_573Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_573 = __objc_msgSend_573Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_descriptorType1 = _registerName1("descriptorType"); + late final _sel_booleanValue1 = _registerName1("booleanValue"); + late final _sel_enumCodeValue1 = _registerName1("enumCodeValue"); + late final _sel_int32Value1 = _registerName1("int32Value"); + late final _sel_typeCodeValue1 = _registerName1("typeCodeValue"); + late final _sel_dateValue1 = _registerName1("dateValue"); + late final _sel_fileURLValue1 = _registerName1("fileURLValue"); + late final _sel_eventClass1 = _registerName1("eventClass"); + late final _sel_eventID1 = _registerName1("eventID"); + late final _sel_returnID1 = _registerName1("returnID"); + late final _sel_transactionID1 = _registerName1("transactionID"); + late final _sel_setParamDescriptor_forKeyword_1 = + _registerName1("setParamDescriptor:forKeyword:"); + void _objc_msgSend_574( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer descriptor, + int keyword, + ) { + return __objc_msgSend_574( + obj, + sel, + descriptor, + keyword, + ); + } + + late final __objc_msgSend_574Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); + late final __objc_msgSend_574 = __objc_msgSend_574Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_paramDescriptorForKeyword_1 = + _registerName1("paramDescriptorForKeyword:"); + late final _sel_removeParamDescriptorWithKeyword_1 = + _registerName1("removeParamDescriptorWithKeyword:"); + void _objc_msgSend_575( + ffi.Pointer obj, + ffi.Pointer sel, + int keyword, + ) { + return __objc_msgSend_575( + obj, + sel, + keyword, + ); + } + + late final __objc_msgSend_575Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.UnsignedInt)>>('objc_msgSend'); + late final __objc_msgSend_575 = __objc_msgSend_575Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_setAttributeDescriptor_forKeyword_1 = + _registerName1("setAttributeDescriptor:forKeyword:"); + late final _sel_attributeDescriptorForKeyword_1 = + _registerName1("attributeDescriptorForKeyword:"); + late final _sel_sendEventWithOptions_timeout_error_1 = + _registerName1("sendEventWithOptions:timeout:error:"); + ffi.Pointer _objc_msgSend_576( + ffi.Pointer obj, + ffi.Pointer sel, + int sendOptions, + double timeoutInSeconds, + ffi.Pointer> error, + ) { + return __objc_msgSend_576( + obj, + sel, + sendOptions, + timeoutInSeconds, + error, + ); + } + + late final __objc_msgSend_576Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Double, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_576 = __objc_msgSend_576Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + double, + ffi.Pointer>)>(); + + late final _sel_isRecordDescriptor1 = _registerName1("isRecordDescriptor"); + late final _sel_numberOfItems1 = _registerName1("numberOfItems"); + late final _sel_insertDescriptor_atIndex_1 = + _registerName1("insertDescriptor:atIndex:"); + void _objc_msgSend_577( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer descriptor, + int index, + ) { + return __objc_msgSend_577( + obj, + sel, + descriptor, + index, + ); + } + + late final __objc_msgSend_577Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_577 = __objc_msgSend_577Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_descriptorAtIndex_1 = _registerName1("descriptorAtIndex:"); + ffi.Pointer _objc_msgSend_578( + ffi.Pointer obj, + ffi.Pointer sel, + int index, + ) { + return __objc_msgSend_578( + obj, + sel, + index, + ); + } + + late final __objc_msgSend_578Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_578 = __objc_msgSend_578Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_removeDescriptorAtIndex_1 = + _registerName1("removeDescriptorAtIndex:"); + late final _sel_setDescriptor_forKeyword_1 = + _registerName1("setDescriptor:forKeyword:"); + late final _sel_descriptorForKeyword_1 = + _registerName1("descriptorForKeyword:"); + late final _sel_removeDescriptorWithKeyword_1 = + _registerName1("removeDescriptorWithKeyword:"); + late final _sel_keywordForDescriptorAtIndex_1 = + _registerName1("keywordForDescriptorAtIndex:"); + int _objc_msgSend_579( + ffi.Pointer obj, + ffi.Pointer sel, + int index, + ) { + return __objc_msgSend_579( + obj, + sel, + index, + ); + } + + late final __objc_msgSend_579Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(ffi.Pointer, + ffi.Pointer, ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_579 = __objc_msgSend_579Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_coerceToDescriptorType_1 = + _registerName1("coerceToDescriptorType:"); + late final _sel_objectSpecifierWithDescriptor_1 = + _registerName1("objectSpecifierWithDescriptor:"); + ffi.Pointer _objc_msgSend_580( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer descriptor, + ) { + return __objc_msgSend_580( + obj, + sel, + descriptor, + ); + } + + late final __objc_msgSend_580Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_580 = __objc_msgSend_580Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_initWithContainerSpecifier_key_1 = + _registerName1("initWithContainerSpecifier:key:"); + instancetype _objc_msgSend_581( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer container, + ffi.Pointer property, + ) { + return __objc_msgSend_581( + obj, + sel, + container, + property, + ); + } + + late final __objc_msgSend_581Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_581 = __objc_msgSend_581Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _class_NSScriptClassDescription1 = + _getClass1("NSScriptClassDescription"); + ffi.Pointer _objc_msgSend_582( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aClass, + ) { + return __objc_msgSend_582( + obj, + sel, + aClass, + ); + } + + late final __objc_msgSend_582Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_582 = __objc_msgSend_582Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_initWithSuiteName_className_dictionary_1 = + _registerName1("initWithSuiteName:className:dictionary:"); + instancetype _objc_msgSend_583( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer suiteName, + ffi.Pointer className, + ffi.Pointer classDeclaration, + ) { + return __objc_msgSend_583( + obj, + sel, + suiteName, + className, + classDeclaration, + ); + } + + late final __objc_msgSend_583Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_583 = __objc_msgSend_583Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_suiteName1 = _registerName1("suiteName"); + late final _sel_className1 = _registerName1("className"); + late final _sel_implementationClassName1 = + _registerName1("implementationClassName"); + late final _sel_superclassDescription1 = + _registerName1("superclassDescription"); + ffi.Pointer _objc_msgSend_584( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_584( + obj, + sel, + ); + } + + late final __objc_msgSend_584Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_584 = __objc_msgSend_584Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_appleEventCode1 = _registerName1("appleEventCode"); + late final _sel_matchesAppleEventCode_1 = + _registerName1("matchesAppleEventCode:"); + late final _class_NSScriptCommandDescription1 = + _getClass1("NSScriptCommandDescription"); + late final _sel_initWithSuiteName_commandName_dictionary_1 = + _registerName1("initWithSuiteName:commandName:dictionary:"); + late final _sel_commandName1 = _registerName1("commandName"); + late final _sel_appleEventClassCode1 = _registerName1("appleEventClassCode"); + late final _sel_commandClassName1 = _registerName1("commandClassName"); + late final _sel_returnType1 = _registerName1("returnType"); + late final _sel_appleEventCodeForReturnType1 = + _registerName1("appleEventCodeForReturnType"); + late final _sel_argumentNames1 = _registerName1("argumentNames"); + late final _sel_typeForArgumentWithName_1 = + _registerName1("typeForArgumentWithName:"); + late final _sel_appleEventCodeForArgumentWithName_1 = + _registerName1("appleEventCodeForArgumentWithName:"); + int _objc_msgSend_585( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer argumentName, + ) { + return __objc_msgSend_585( + obj, + sel, + argumentName, + ); + } + + late final __objc_msgSend_585Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedInt Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_585 = __objc_msgSend_585Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_isOptionalArgumentWithName_1 = + _registerName1("isOptionalArgumentWithName:"); + late final _class_NSScriptCommand1 = _getClass1("NSScriptCommand"); + late final _sel_initWithCommandDescription_1 = + _registerName1("initWithCommandDescription:"); + instancetype _objc_msgSend_586( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer commandDef, + ) { + return __objc_msgSend_586( + obj, + sel, + commandDef, + ); + } + + late final __objc_msgSend_586Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_586 = __objc_msgSend_586Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_commandDescription1 = _registerName1("commandDescription"); + ffi.Pointer _objc_msgSend_587( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_587( + obj, + sel, + ); + } + + late final __objc_msgSend_587Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_587 = __objc_msgSend_587Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_directParameter1 = _registerName1("directParameter"); + late final _sel_setDirectParameter_1 = _registerName1("setDirectParameter:"); + late final _sel_receiversSpecifier1 = _registerName1("receiversSpecifier"); + ffi.Pointer _objc_msgSend_588( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_588( + obj, + sel, + ); + } + + late final __objc_msgSend_588Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_588 = __objc_msgSend_588Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setReceiversSpecifier_1 = + _registerName1("setReceiversSpecifier:"); + void _objc_msgSend_589( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_589( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_589Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_589 = __objc_msgSend_589Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_evaluatedReceivers1 = _registerName1("evaluatedReceivers"); + late final _sel_arguments1 = _registerName1("arguments"); + late final _sel_setArguments_1 = _registerName1("setArguments:"); + late final _sel_evaluatedArguments1 = _registerName1("evaluatedArguments"); + late final _sel_isWellFormed1 = _registerName1("isWellFormed"); + late final _sel_performDefaultImplementation1 = + _registerName1("performDefaultImplementation"); + late final _sel_executeCommand1 = _registerName1("executeCommand"); + late final _sel_scriptErrorNumber1 = _registerName1("scriptErrorNumber"); + late final _sel_setScriptErrorNumber_1 = + _registerName1("setScriptErrorNumber:"); + void _objc_msgSend_590( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_590( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_590Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_590 = __objc_msgSend_590Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_scriptErrorOffendingObjectDescriptor1 = + _registerName1("scriptErrorOffendingObjectDescriptor"); + late final _sel_setScriptErrorOffendingObjectDescriptor_1 = + _registerName1("setScriptErrorOffendingObjectDescriptor:"); + void _objc_msgSend_591( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_591( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_591Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_591 = __objc_msgSend_591Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_scriptErrorExpectedTypeDescriptor1 = + _registerName1("scriptErrorExpectedTypeDescriptor"); + late final _sel_setScriptErrorExpectedTypeDescriptor_1 = + _registerName1("setScriptErrorExpectedTypeDescriptor:"); + late final _sel_scriptErrorString1 = _registerName1("scriptErrorString"); + late final _sel_setScriptErrorString_1 = + _registerName1("setScriptErrorString:"); + late final _sel_currentCommand1 = _registerName1("currentCommand"); + ffi.Pointer _objc_msgSend_592( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_592( + obj, + sel, + ); + } + + late final __objc_msgSend_592Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_592 = __objc_msgSend_592Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_appleEvent1 = _registerName1("appleEvent"); + late final _sel_suspendExecution1 = _registerName1("suspendExecution"); + late final _sel_resumeExecutionWithResult_1 = + _registerName1("resumeExecutionWithResult:"); + late final _sel_createCommandInstance1 = + _registerName1("createCommandInstance"); + late final _sel_createCommandInstanceWithZone_1 = + _registerName1("createCommandInstanceWithZone:"); + ffi.Pointer _objc_msgSend_593( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_NSZone> zone, + ) { + return __objc_msgSend_593( + obj, + sel, + zone, + ); + } + + late final __objc_msgSend_593Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_NSZone>)>>('objc_msgSend'); + late final __objc_msgSend_593 = __objc_msgSend_593Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<_NSZone>)>(); + + late final _sel_supportsCommand_1 = _registerName1("supportsCommand:"); + bool _objc_msgSend_594( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer commandDescription, + ) { + return __objc_msgSend_594( + obj, + sel, + commandDescription, + ); + } + + late final __objc_msgSend_594Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_594 = __objc_msgSend_594Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_selectorForCommand_1 = _registerName1("selectorForCommand:"); + ffi.Pointer _objc_msgSend_595( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer commandDescription, + ) { + return __objc_msgSend_595( + obj, + sel, + commandDescription, + ); + } + + late final __objc_msgSend_595Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_595 = __objc_msgSend_595Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_typeForKey_1 = _registerName1("typeForKey:"); + late final _sel_classDescriptionForKey_1 = + _registerName1("classDescriptionForKey:"); + ffi.Pointer _objc_msgSend_596( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ) { + return __objc_msgSend_596( + obj, + sel, + key, + ); + } + + late final __objc_msgSend_596Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_596 = __objc_msgSend_596Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_appleEventCodeForKey_1 = + _registerName1("appleEventCodeForKey:"); + late final _sel_keyWithAppleEventCode_1 = + _registerName1("keyWithAppleEventCode:"); + ffi.Pointer _objc_msgSend_597( + ffi.Pointer obj, + ffi.Pointer sel, + int appleEventCode, + ) { + return __objc_msgSend_597( + obj, + sel, + appleEventCode, + ); + } + + late final __objc_msgSend_597Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); + late final __objc_msgSend_597 = __objc_msgSend_597Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_defaultSubcontainerAttributeKey1 = + _registerName1("defaultSubcontainerAttributeKey"); + late final _sel_isLocationRequiredToCreateForKey_1 = + _registerName1("isLocationRequiredToCreateForKey:"); + late final _sel_hasPropertyForKey_1 = _registerName1("hasPropertyForKey:"); + late final _sel_hasOrderedToManyRelationshipForKey_1 = + _registerName1("hasOrderedToManyRelationshipForKey:"); + late final _sel_hasReadablePropertyForKey_1 = + _registerName1("hasReadablePropertyForKey:"); + late final _sel_hasWritablePropertyForKey_1 = + _registerName1("hasWritablePropertyForKey:"); + late final _sel_isReadOnlyKey_1 = _registerName1("isReadOnlyKey:"); + late final _sel_initWithContainerClassDescription_containerSpecifier_key_1 = + _registerName1( + "initWithContainerClassDescription:containerSpecifier:key:"); + instancetype _objc_msgSend_598( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer classDesc, + ffi.Pointer container, + ffi.Pointer property, + ) { + return __objc_msgSend_598( + obj, + sel, + classDesc, + container, + property, + ); + } + + late final __objc_msgSend_598Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_598 = __objc_msgSend_598Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_childSpecifier1 = _registerName1("childSpecifier"); + late final _sel_setChildSpecifier_1 = _registerName1("setChildSpecifier:"); + late final _sel_containerSpecifier1 = _registerName1("containerSpecifier"); + late final _sel_setContainerSpecifier_1 = + _registerName1("setContainerSpecifier:"); + late final _sel_containerIsObjectBeingTested1 = + _registerName1("containerIsObjectBeingTested"); + late final _sel_setContainerIsObjectBeingTested_1 = + _registerName1("setContainerIsObjectBeingTested:"); + late final _sel_containerIsRangeContainerObject1 = + _registerName1("containerIsRangeContainerObject"); + late final _sel_setContainerIsRangeContainerObject_1 = + _registerName1("setContainerIsRangeContainerObject:"); + late final _sel_key1 = _registerName1("key"); + late final _sel_setKey_1 = _registerName1("setKey:"); + late final _sel_containerClassDescription1 = + _registerName1("containerClassDescription"); + late final _sel_setContainerClassDescription_1 = + _registerName1("setContainerClassDescription:"); + void _objc_msgSend_599( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_599( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_599Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_599 = __objc_msgSend_599Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_keyClassDescription1 = _registerName1("keyClassDescription"); + late final _sel_indicesOfObjectsByEvaluatingWithContainer_count_1 = + _registerName1("indicesOfObjectsByEvaluatingWithContainer:count:"); + ffi.Pointer _objc_msgSend_600( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer container, + ffi.Pointer count, + ) { + return __objc_msgSend_600( + obj, + sel, + container, + count, + ); + } + + late final __objc_msgSend_600Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_600 = __objc_msgSend_600Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_objectsByEvaluatingWithContainers_1 = + _registerName1("objectsByEvaluatingWithContainers:"); + late final _sel_objectsByEvaluatingSpecifier1 = + _registerName1("objectsByEvaluatingSpecifier"); + late final _sel_evaluationErrorNumber1 = + _registerName1("evaluationErrorNumber"); + late final _sel_setEvaluationErrorNumber_1 = + _registerName1("setEvaluationErrorNumber:"); + late final _sel_evaluationErrorSpecifier1 = + _registerName1("evaluationErrorSpecifier"); + late final _sel_descriptor1 = _registerName1("descriptor"); + late final _sel_scriptingValueForSpecifier_1 = + _registerName1("scriptingValueForSpecifier:"); + ffi.Pointer _objc_msgSend_601( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer objectSpecifier, + ) { + return __objc_msgSend_601( + obj, + sel, + objectSpecifier, + ); + } + + late final __objc_msgSend_601Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_601 = __objc_msgSend_601Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_scriptingProperties1 = _registerName1("scriptingProperties"); + late final _sel_setScriptingProperties_1 = + _registerName1("setScriptingProperties:"); + late final _sel_copyScriptingValue_forKey_withProperties_1 = + _registerName1("copyScriptingValue:forKey:withProperties:"); + ffi.Pointer _objc_msgSend_602( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ffi.Pointer key, + ffi.Pointer properties, + ) { + return __objc_msgSend_602( + obj, + sel, + value, + key, + properties, + ); + } + + late final __objc_msgSend_602Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_602 = __objc_msgSend_602Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_1 = + _registerName1( + "newScriptingObjectOfClass:forValueForKey:withContentsValue:properties:"); + ffi.Pointer _objc_msgSend_603( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer objectClass, + ffi.Pointer key, + ffi.Pointer contentsValue, + ffi.Pointer properties, + ) { + return __objc_msgSend_603( + obj, + sel, + objectClass, + key, + contentsValue, + properties, + ); + } + + late final __objc_msgSend_603Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_603 = __objc_msgSend_603Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_classCode1 = _registerName1("classCode"); + late final _sel_valueAtIndex_inPropertyWithKey_1 = + _registerName1("valueAtIndex:inPropertyWithKey:"); + ffi.Pointer _objc_msgSend_604( + ffi.Pointer obj, + ffi.Pointer sel, + int index, + ffi.Pointer key, + ) { + return __objc_msgSend_604( + obj, + sel, + index, + key, + ); + } + + late final __objc_msgSend_604Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_604 = __objc_msgSend_604Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); + + late final _sel_valueWithName_inPropertyWithKey_1 = + _registerName1("valueWithName:inPropertyWithKey:"); + late final _sel_valueWithUniqueID_inPropertyWithKey_1 = + _registerName1("valueWithUniqueID:inPropertyWithKey:"); + late final _sel_insertValue_atIndex_inPropertyWithKey_1 = + _registerName1("insertValue:atIndex:inPropertyWithKey:"); + void _objc_msgSend_605( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + int index, + ffi.Pointer key, + ) { + return __objc_msgSend_605( + obj, + sel, + value, + index, + key, + ); + } + + late final __objc_msgSend_605Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_605 = __objc_msgSend_605Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); + + late final _sel_removeValueAtIndex_fromPropertyWithKey_1 = + _registerName1("removeValueAtIndex:fromPropertyWithKey:"); + void _objc_msgSend_606( + ffi.Pointer obj, + ffi.Pointer sel, + int index, + ffi.Pointer key, + ) { + return __objc_msgSend_606( + obj, + sel, + index, + key, + ); + } + + late final __objc_msgSend_606Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_606 = __objc_msgSend_606Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); + + late final _sel_replaceValueAtIndex_inPropertyWithKey_withValue_1 = + _registerName1("replaceValueAtIndex:inPropertyWithKey:withValue:"); + void _objc_msgSend_607( + ffi.Pointer obj, + ffi.Pointer sel, + int index, + ffi.Pointer key, + ffi.Pointer value, + ) { + return __objc_msgSend_607( + obj, + sel, + index, + key, + value, + ); + } + + late final __objc_msgSend_607Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_607 = __objc_msgSend_607Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_insertValue_inPropertyWithKey_1 = + _registerName1("insertValue:inPropertyWithKey:"); + late final _sel_coerceValue_forKey_1 = _registerName1("coerceValue:forKey:"); + late final _sel_objectSpecifier1 = _registerName1("objectSpecifier"); + late final _sel_indicesOfObjectsByEvaluatingObjectSpecifier_1 = + _registerName1("indicesOfObjectsByEvaluatingObjectSpecifier:"); + ffi.Pointer _objc_msgSend_608( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer specifier, + ) { + return __objc_msgSend_608( + obj, + sel, + specifier, + ); + } + + late final __objc_msgSend_608Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_608 = __objc_msgSend_608Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_isEqualTo_1 = _registerName1("isEqualTo:"); + late final _sel_isLessThanOrEqualTo_1 = + _registerName1("isLessThanOrEqualTo:"); + late final _sel_isLessThan_1 = _registerName1("isLessThan:"); + late final _sel_isGreaterThanOrEqualTo_1 = + _registerName1("isGreaterThanOrEqualTo:"); + late final _sel_isGreaterThan_1 = _registerName1("isGreaterThan:"); + late final _sel_isNotEqualTo_1 = _registerName1("isNotEqualTo:"); + late final _sel_doesContain_1 = _registerName1("doesContain:"); + late final _sel_isLike_1 = _registerName1("isLike:"); + late final _sel_isCaseInsensitiveLike_1 = + _registerName1("isCaseInsensitiveLike:"); + late final _sel_scriptingIsEqualTo_1 = _registerName1("scriptingIsEqualTo:"); + late final _sel_scriptingIsLessThanOrEqualTo_1 = + _registerName1("scriptingIsLessThanOrEqualTo:"); + late final _sel_scriptingIsLessThan_1 = + _registerName1("scriptingIsLessThan:"); + late final _sel_scriptingIsGreaterThanOrEqualTo_1 = + _registerName1("scriptingIsGreaterThanOrEqualTo:"); + late final _sel_scriptingIsGreaterThan_1 = + _registerName1("scriptingIsGreaterThan:"); + late final _sel_scriptingBeginsWith_1 = + _registerName1("scriptingBeginsWith:"); + late final _sel_scriptingEndsWith_1 = _registerName1("scriptingEndsWith:"); + late final _sel_scriptingContains_1 = _registerName1("scriptingContains:"); + late final _class_NSItemProvider1 = _getClass1("NSItemProvider"); + late final _class_NSProgress1 = _getClass1("NSProgress"); + late final _sel_currentProgress1 = _registerName1("currentProgress"); + ffi.Pointer _objc_msgSend_609( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_609( + obj, + sel, + ); + } + + late final __objc_msgSend_609Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_609 = __objc_msgSend_609Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_progressWithTotalUnitCount_1 = + _registerName1("progressWithTotalUnitCount:"); + ffi.Pointer _objc_msgSend_610( + ffi.Pointer obj, + ffi.Pointer sel, + int unitCount, + ) { + return __objc_msgSend_610( + obj, + sel, + unitCount, + ); + } + + late final __objc_msgSend_610Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int64)>>('objc_msgSend'); + late final __objc_msgSend_610 = __objc_msgSend_610Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_discreteProgressWithTotalUnitCount_1 = + _registerName1("discreteProgressWithTotalUnitCount:"); + late final _sel_progressWithTotalUnitCount_parent_pendingUnitCount_1 = + _registerName1("progressWithTotalUnitCount:parent:pendingUnitCount:"); + ffi.Pointer _objc_msgSend_611( + ffi.Pointer obj, + ffi.Pointer sel, + int unitCount, + ffi.Pointer parent, + int portionOfParentTotalUnitCount, + ) { + return __objc_msgSend_611( + obj, + sel, + unitCount, + parent, + portionOfParentTotalUnitCount, + ); + } + + late final __objc_msgSend_611Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ffi.Int64)>>('objc_msgSend'); + late final __objc_msgSend_611 = __objc_msgSend_611Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer, int)>(); + + late final _sel_initWithParent_userInfo_1 = + _registerName1("initWithParent:userInfo:"); + instancetype _objc_msgSend_612( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer parentProgressOrNil, + ffi.Pointer userInfoOrNil, + ) { + return __objc_msgSend_612( + obj, + sel, + parentProgressOrNil, + userInfoOrNil, + ); + } + + late final __objc_msgSend_612Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_612 = __objc_msgSend_612Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_becomeCurrentWithPendingUnitCount_1 = + _registerName1("becomeCurrentWithPendingUnitCount:"); + void _objc_msgSend_613( + ffi.Pointer obj, + ffi.Pointer sel, + int unitCount, + ) { + return __objc_msgSend_613( + obj, + sel, + unitCount, + ); + } + + late final __objc_msgSend_613Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int64)>>('objc_msgSend'); + late final __objc_msgSend_613 = __objc_msgSend_613Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_performAsCurrentWithPendingUnitCount_usingBlock_1 = + _registerName1("performAsCurrentWithPendingUnitCount:usingBlock:"); + void _objc_msgSend_614( + ffi.Pointer obj, + ffi.Pointer sel, + int unitCount, + ffi.Pointer<_ObjCBlock> work, + ) { + return __objc_msgSend_614( + obj, + sel, + unitCount, + work, + ); + } + + late final __objc_msgSend_614Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int64, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_614 = __objc_msgSend_614Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_resignCurrent1 = _registerName1("resignCurrent"); + late final _sel_addChild_withPendingUnitCount_1 = + _registerName1("addChild:withPendingUnitCount:"); + void _objc_msgSend_615( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer child, + int inUnitCount, + ) { + return __objc_msgSend_615( + obj, + sel, + child, + inUnitCount, + ); + } + + late final __objc_msgSend_615Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int64)>>('objc_msgSend'); + late final __objc_msgSend_615 = __objc_msgSend_615Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_totalUnitCount1 = _registerName1("totalUnitCount"); + int _objc_msgSend_616( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_616( + obj, + sel, + ); + } + + late final __objc_msgSend_616Ptr = _lookup< + ffi.NativeFunction< + ffi.Int64 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_616 = __objc_msgSend_616Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setTotalUnitCount_1 = _registerName1("setTotalUnitCount:"); + void _objc_msgSend_617( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_617( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_617Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int64)>>('objc_msgSend'); + late final __objc_msgSend_617 = __objc_msgSend_617Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_completedUnitCount1 = _registerName1("completedUnitCount"); + late final _sel_setCompletedUnitCount_1 = + _registerName1("setCompletedUnitCount:"); + late final _sel_setLocalizedDescription_1 = + _registerName1("setLocalizedDescription:"); + late final _sel_localizedAdditionalDescription1 = + _registerName1("localizedAdditionalDescription"); + late final _sel_setLocalizedAdditionalDescription_1 = + _registerName1("setLocalizedAdditionalDescription:"); + late final _sel_isCancellable1 = _registerName1("isCancellable"); + late final _sel_setCancellable_1 = _registerName1("setCancellable:"); + late final _sel_isPausable1 = _registerName1("isPausable"); + late final _sel_setPausable_1 = _registerName1("setPausable:"); + late final _sel_isPaused1 = _registerName1("isPaused"); + late final _sel_cancellationHandler1 = _registerName1("cancellationHandler"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_618( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_618( + obj, + sel, + ); + } + + late final __objc_msgSend_618Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_618 = __objc_msgSend_618Ptr.asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setCancellationHandler_1 = + _registerName1("setCancellationHandler:"); + void _objc_msgSend_619( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> value, + ) { + return __objc_msgSend_619( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_619Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_619 = __objc_msgSend_619Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_pausingHandler1 = _registerName1("pausingHandler"); + late final _sel_setPausingHandler_1 = _registerName1("setPausingHandler:"); + late final _sel_resumingHandler1 = _registerName1("resumingHandler"); + late final _sel_setResumingHandler_1 = _registerName1("setResumingHandler:"); + late final _sel_setUserInfoObject_forKey_1 = + _registerName1("setUserInfoObject:forKey:"); + late final _sel_isIndeterminate1 = _registerName1("isIndeterminate"); + late final _sel_fractionCompleted1 = _registerName1("fractionCompleted"); + late final _sel_pause1 = _registerName1("pause"); + late final _sel_resume1 = _registerName1("resume"); + late final _sel_kind1 = _registerName1("kind"); + late final _sel_setKind_1 = _registerName1("setKind:"); + late final _sel_estimatedTimeRemaining1 = + _registerName1("estimatedTimeRemaining"); + late final _sel_setEstimatedTimeRemaining_1 = + _registerName1("setEstimatedTimeRemaining:"); + void _objc_msgSend_620( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_620( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_620Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_620 = __objc_msgSend_620Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_throughput1 = _registerName1("throughput"); + late final _sel_setThroughput_1 = _registerName1("setThroughput:"); + late final _sel_fileOperationKind1 = _registerName1("fileOperationKind"); + late final _sel_setFileOperationKind_1 = + _registerName1("setFileOperationKind:"); + late final _sel_fileURL1 = _registerName1("fileURL"); + late final _sel_setFileURL_1 = _registerName1("setFileURL:"); + void _objc_msgSend_621( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_621( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_621Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_621 = __objc_msgSend_621Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_fileTotalCount1 = _registerName1("fileTotalCount"); + late final _sel_setFileTotalCount_1 = _registerName1("setFileTotalCount:"); + late final _sel_fileCompletedCount1 = _registerName1("fileCompletedCount"); + late final _sel_setFileCompletedCount_1 = + _registerName1("setFileCompletedCount:"); + late final _sel_publish1 = _registerName1("publish"); + late final _sel_unpublish1 = _registerName1("unpublish"); + late final _sel_addSubscriberForFileURL_withPublishingHandler_1 = + _registerName1("addSubscriberForFileURL:withPublishingHandler:"); + ffi.Pointer _objc_msgSend_622( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer<_ObjCBlock> publishingHandler, + ) { + return __objc_msgSend_622( + obj, + sel, + url, + publishingHandler, + ); + } + + late final __objc_msgSend_622Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_622 = __objc_msgSend_622Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_removeSubscriber_1 = _registerName1("removeSubscriber:"); + late final _sel_isOld1 = _registerName1("isOld"); + late final _sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1 = + _registerName1( + "registerDataRepresentationForTypeIdentifier:visibility:loadHandler:"); + void _objc_msgSend_623( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer typeIdentifier, + int visibility, + ffi.Pointer<_ObjCBlock> loadHandler, + ) { + return __objc_msgSend_623( + obj, + sel, + typeIdentifier, + visibility, + loadHandler, + ); + } + + late final __objc_msgSend_623Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_623 = __objc_msgSend_623Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1 = + _registerName1( + "registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:"); + void _objc_msgSend_624( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer typeIdentifier, + int fileOptions, + int visibility, + ffi.Pointer<_ObjCBlock> loadHandler, + ) { + return __objc_msgSend_624( + obj, + sel, + typeIdentifier, + fileOptions, + visibility, + loadHandler, + ); + } + + late final __objc_msgSend_624Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_624 = __objc_msgSend_624Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_registeredTypeIdentifiers1 = + _registerName1("registeredTypeIdentifiers"); + late final _sel_registeredTypeIdentifiersWithFileOptions_1 = + _registerName1("registeredTypeIdentifiersWithFileOptions:"); + ffi.Pointer _objc_msgSend_625( + ffi.Pointer obj, + ffi.Pointer sel, + int fileOptions, + ) { + return __objc_msgSend_625( + obj, + sel, + fileOptions, + ); + } + + late final __objc_msgSend_625Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_625 = __objc_msgSend_625Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_hasItemConformingToTypeIdentifier_1 = + _registerName1("hasItemConformingToTypeIdentifier:"); + late final _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1 = + _registerName1( + "hasRepresentationConformingToTypeIdentifier:fileOptions:"); + bool _objc_msgSend_626( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer typeIdentifier, + int fileOptions, + ) { + return __objc_msgSend_626( + obj, + sel, + typeIdentifier, + fileOptions, + ); + } + + late final __objc_msgSend_626Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_626 = __objc_msgSend_626Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_loadDataRepresentationForTypeIdentifier_completionHandler_1 = + _registerName1( + "loadDataRepresentationForTypeIdentifier:completionHandler:"); + ffi.Pointer _objc_msgSend_627( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer typeIdentifier, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_627( + obj, + sel, + typeIdentifier, + completionHandler, + ); + } + + late final __objc_msgSend_627Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_627 = __objc_msgSend_627Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_loadFileRepresentationForTypeIdentifier_completionHandler_1 = + _registerName1( + "loadFileRepresentationForTypeIdentifier:completionHandler:"); + ffi.Pointer _objc_msgSend_628( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer typeIdentifier, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_628( + obj, + sel, + typeIdentifier, + completionHandler, + ); + } + + late final __objc_msgSend_628Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_628 = __objc_msgSend_628Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1 = + _registerName1( + "loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:"); + ffi.Pointer _objc_msgSend_629( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer typeIdentifier, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_629( + obj, + sel, + typeIdentifier, + completionHandler, + ); + } + + late final __objc_msgSend_629Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_629 = __objc_msgSend_629Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_suggestedName1 = _registerName1("suggestedName"); + late final _sel_setSuggestedName_1 = _registerName1("setSuggestedName:"); + late final _sel_registerObject_visibility_1 = + _registerName1("registerObject:visibility:"); + void _objc_msgSend_630( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer object, + int visibility, + ) { + return __objc_msgSend_630( + obj, + sel, + object, + visibility, + ); + } + + late final __objc_msgSend_630Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_630 = __objc_msgSend_630Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_registerObjectOfClass_visibility_loadHandler_1 = + _registerName1("registerObjectOfClass:visibility:loadHandler:"); + void _objc_msgSend_631( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aClass, + int visibility, + ffi.Pointer<_ObjCBlock> loadHandler, + ) { + return __objc_msgSend_631( + obj, + sel, + aClass, + visibility, + loadHandler, + ); + } + + late final __objc_msgSend_631Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_631 = __objc_msgSend_631Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_canLoadObjectOfClass_1 = + _registerName1("canLoadObjectOfClass:"); + late final _sel_loadObjectOfClass_completionHandler_1 = + _registerName1("loadObjectOfClass:completionHandler:"); + ffi.Pointer _objc_msgSend_632( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aClass, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_632( + obj, + sel, + aClass, + completionHandler, + ); + } + + late final __objc_msgSend_632Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_632 = __objc_msgSend_632Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_initWithItem_typeIdentifier_1 = + _registerName1("initWithItem:typeIdentifier:"); + late final _sel_registerItemForTypeIdentifier_loadHandler_1 = + _registerName1("registerItemForTypeIdentifier:loadHandler:"); + void _objc_msgSend_633( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer typeIdentifier, + ffi.Pointer<_ObjCBlock> loadHandler, + ) { + return __objc_msgSend_633( + obj, + sel, + typeIdentifier, + loadHandler, + ); + } + + late final __objc_msgSend_633Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_633 = __objc_msgSend_633Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_loadItemForTypeIdentifier_options_completionHandler_1 = + _registerName1("loadItemForTypeIdentifier:options:completionHandler:"); + void _objc_msgSend_634( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer typeIdentifier, + ffi.Pointer options, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_634( + obj, + sel, + typeIdentifier, + options, + completionHandler, + ); + } + + late final __objc_msgSend_634Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_634 = __objc_msgSend_634Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_previewImageHandler1 = _registerName1("previewImageHandler"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_635( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_635( + obj, + sel, + ); + } + + late final __objc_msgSend_635Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_635 = __objc_msgSend_635Ptr.asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setPreviewImageHandler_1 = + _registerName1("setPreviewImageHandler:"); + void _objc_msgSend_636( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> value, + ) { + return __objc_msgSend_636( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_636Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_636 = __objc_msgSend_636Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_loadPreviewImageWithOptions_completionHandler_1 = + _registerName1("loadPreviewImageWithOptions:completionHandler:"); + void _objc_msgSend_637( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer options, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_637( + obj, + sel, + options, + completionHandler, + ); + } + + late final __objc_msgSend_637Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_637 = __objc_msgSend_637Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _class_NSMutableString1 = _getClass1("NSMutableString"); + late final _sel_replaceCharactersInRange_withString_1 = + _registerName1("replaceCharactersInRange:withString:"); + void _objc_msgSend_638( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ffi.Pointer aString, + ) { + return __objc_msgSend_638( + obj, + sel, + range, + aString, + ); + } + + late final __objc_msgSend_638Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + _NSRange, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_638 = __objc_msgSend_638Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + ffi.Pointer)>(); + + late final _sel_insertString_atIndex_1 = + _registerName1("insertString:atIndex:"); + void _objc_msgSend_639( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aString, + int loc, + ) { + return __objc_msgSend_639( + obj, + sel, + aString, + loc, + ); + } + + late final __objc_msgSend_639Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_639 = __objc_msgSend_639Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_deleteCharactersInRange_1 = + _registerName1("deleteCharactersInRange:"); + late final _sel_appendString_1 = _registerName1("appendString:"); + late final _sel_appendFormat_1 = _registerName1("appendFormat:"); + late final _sel_setString_1 = _registerName1("setString:"); + late final _sel_replaceOccurrencesOfString_withString_options_range_1 = + _registerName1("replaceOccurrencesOfString:withString:options:range:"); + int _objc_msgSend_640( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer target, + ffi.Pointer replacement, + int options, + _NSRange searchRange, + ) { + return __objc_msgSend_640( + obj, + sel, + target, + replacement, + options, + searchRange, + ); + } + + late final __objc_msgSend_640Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_640 = __objc_msgSend_640Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); + + late final _sel_applyTransform_reverse_range_updatedRange_1 = + _registerName1("applyTransform:reverse:range:updatedRange:"); + bool _objc_msgSend_641( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer transform, + bool reverse, + _NSRange range, + ffi.Pointer<_NSRange> resultingRange, + ) { + return __objc_msgSend_641( + obj, + sel, + transform, + reverse, + range, + resultingRange, + ); + } + + late final __objc_msgSend_641Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + _NSRange, + ffi.Pointer<_NSRange>)>>('objc_msgSend'); + late final __objc_msgSend_641 = __objc_msgSend_641Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool, _NSRange, ffi.Pointer<_NSRange>)>(); + + ffi.Pointer _objc_msgSend_642( + ffi.Pointer obj, + ffi.Pointer sel, + int capacity, + ) { + return __objc_msgSend_642( + obj, + sel, + capacity, + ); + } + + late final __objc_msgSend_642Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_642 = __objc_msgSend_642Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_stringWithCapacity_1 = _registerName1("stringWithCapacity:"); + late final _class_NSNotification1 = _getClass1("NSNotification"); + late final _sel_object1 = _registerName1("object"); + late final _sel_initWithName_object_userInfo_1 = + _registerName1("initWithName:object:userInfo:"); + instancetype _objc_msgSend_643( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer object, + ffi.Pointer userInfo, + ) { + return __objc_msgSend_643( + obj, + sel, + name, + object, + userInfo, + ); + } + + late final __objc_msgSend_643Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_643 = __objc_msgSend_643Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_notificationWithName_object_1 = + _registerName1("notificationWithName:object:"); + late final _sel_notificationWithName_object_userInfo_1 = + _registerName1("notificationWithName:object:userInfo:"); + late final _class_NSBundle1 = _getClass1("NSBundle"); + late final _sel_mainBundle1 = _registerName1("mainBundle"); + ffi.Pointer _objc_msgSend_644( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_644( + obj, + sel, + ); + } + + late final __objc_msgSend_644Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_644 = __objc_msgSend_644Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_bundleWithPath_1 = _registerName1("bundleWithPath:"); + late final _sel_initWithPath_1 = _registerName1("initWithPath:"); + late final _sel_bundleWithURL_1 = _registerName1("bundleWithURL:"); + late final _sel_initWithURL_1 = _registerName1("initWithURL:"); + late final _sel_bundleForClass_1 = _registerName1("bundleForClass:"); + ffi.Pointer _objc_msgSend_645( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aClass, + ) { + return __objc_msgSend_645( + obj, + sel, + aClass, + ); + } + + late final __objc_msgSend_645Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_645 = __objc_msgSend_645Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_bundleWithIdentifier_1 = + _registerName1("bundleWithIdentifier:"); + ffi.Pointer _objc_msgSend_646( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer identifier, + ) { + return __objc_msgSend_646( + obj, + sel, + identifier, + ); + } + + late final __objc_msgSend_646Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_646 = __objc_msgSend_646Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_allBundles1 = _registerName1("allBundles"); + late final _sel_allFrameworks1 = _registerName1("allFrameworks"); + late final _sel_isLoaded1 = _registerName1("isLoaded"); + late final _sel_unload1 = _registerName1("unload"); + late final _sel_preflightAndReturnError_1 = + _registerName1("preflightAndReturnError:"); + late final _sel_loadAndReturnError_1 = _registerName1("loadAndReturnError:"); + late final _sel_bundleURL1 = _registerName1("bundleURL"); + late final _sel_resourceURL1 = _registerName1("resourceURL"); + late final _sel_executableURL1 = _registerName1("executableURL"); + late final _sel_URLForAuxiliaryExecutable_1 = + _registerName1("URLForAuxiliaryExecutable:"); + late final _sel_privateFrameworksURL1 = + _registerName1("privateFrameworksURL"); + late final _sel_sharedFrameworksURL1 = _registerName1("sharedFrameworksURL"); + late final _sel_sharedSupportURL1 = _registerName1("sharedSupportURL"); + late final _sel_builtInPlugInsURL1 = _registerName1("builtInPlugInsURL"); + late final _sel_appStoreReceiptURL1 = _registerName1("appStoreReceiptURL"); + late final _sel_bundlePath1 = _registerName1("bundlePath"); + late final _sel_resourcePath1 = _registerName1("resourcePath"); + late final _sel_executablePath1 = _registerName1("executablePath"); + late final _sel_pathForAuxiliaryExecutable_1 = + _registerName1("pathForAuxiliaryExecutable:"); + late final _sel_privateFrameworksPath1 = + _registerName1("privateFrameworksPath"); + late final _sel_sharedFrameworksPath1 = + _registerName1("sharedFrameworksPath"); + late final _sel_sharedSupportPath1 = _registerName1("sharedSupportPath"); + late final _sel_builtInPlugInsPath1 = _registerName1("builtInPlugInsPath"); + late final _sel_URLForResource_withExtension_subdirectory_inBundleWithURL_1 = + _registerName1( + "URLForResource:withExtension:subdirectory:inBundleWithURL:"); + ffi.Pointer _objc_msgSend_647( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer ext, + ffi.Pointer subpath, + ffi.Pointer bundleURL, + ) { + return __objc_msgSend_647( + obj, + sel, + name, + ext, + subpath, + bundleURL, + ); + } + + late final __objc_msgSend_647Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_647 = __objc_msgSend_647Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_1 = + _registerName1( + "URLsForResourcesWithExtension:subdirectory:inBundleWithURL:"); + ffi.Pointer _objc_msgSend_648( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer ext, + ffi.Pointer subpath, + ffi.Pointer bundleURL, + ) { + return __objc_msgSend_648( + obj, + sel, + ext, + subpath, + bundleURL, + ); + } + + late final __objc_msgSend_648Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_648 = __objc_msgSend_648Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_URLForResource_withExtension_1 = + _registerName1("URLForResource:withExtension:"); + ffi.Pointer _objc_msgSend_649( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer ext, + ) { + return __objc_msgSend_649( + obj, + sel, + name, + ext, + ); + } + + late final __objc_msgSend_649Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_649 = __objc_msgSend_649Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_URLForResource_withExtension_subdirectory_1 = + _registerName1("URLForResource:withExtension:subdirectory:"); + ffi.Pointer _objc_msgSend_650( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer ext, + ffi.Pointer subpath, + ) { + return __objc_msgSend_650( + obj, + sel, + name, + ext, + subpath, + ); + } + + late final __objc_msgSend_650Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_650 = __objc_msgSend_650Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_URLForResource_withExtension_subdirectory_localization_1 = + _registerName1("URLForResource:withExtension:subdirectory:localization:"); + ffi.Pointer _objc_msgSend_651( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer ext, + ffi.Pointer subpath, + ffi.Pointer localizationName, + ) { + return __objc_msgSend_651( + obj, + sel, + name, + ext, + subpath, + localizationName, + ); + } + + late final __objc_msgSend_651Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_651 = __objc_msgSend_651Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_URLsForResourcesWithExtension_subdirectory_1 = + _registerName1("URLsForResourcesWithExtension:subdirectory:"); + ffi.Pointer _objc_msgSend_652( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer ext, + ffi.Pointer subpath, + ) { + return __objc_msgSend_652( + obj, + sel, + ext, + subpath, + ); + } + + late final __objc_msgSend_652Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_652 = __objc_msgSend_652Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_URLsForResourcesWithExtension_subdirectory_localization_1 = + _registerName1( + "URLsForResourcesWithExtension:subdirectory:localization:"); + ffi.Pointer _objc_msgSend_653( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer ext, + ffi.Pointer subpath, + ffi.Pointer localizationName, + ) { + return __objc_msgSend_653( + obj, + sel, + ext, + subpath, + localizationName, + ); + } + + late final __objc_msgSend_653Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_653 = __objc_msgSend_653Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_pathForResource_ofType_inDirectory_1 = + _registerName1("pathForResource:ofType:inDirectory:"); + ffi.Pointer _objc_msgSend_654( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer ext, + ffi.Pointer bundlePath, + ) { + return __objc_msgSend_654( + obj, + sel, + name, + ext, + bundlePath, + ); + } + + late final __objc_msgSend_654Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_654 = __objc_msgSend_654Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_pathsForResourcesOfType_inDirectory_1 = + _registerName1("pathsForResourcesOfType:inDirectory:"); + late final _sel_pathForResource_ofType_1 = + _registerName1("pathForResource:ofType:"); + late final _sel_pathForResource_ofType_inDirectory_forLocalization_1 = + _registerName1("pathForResource:ofType:inDirectory:forLocalization:"); + ffi.Pointer _objc_msgSend_655( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer ext, + ffi.Pointer subpath, + ffi.Pointer localizationName, + ) { + return __objc_msgSend_655( + obj, + sel, + name, + ext, + subpath, + localizationName, + ); + } + + late final __objc_msgSend_655Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_655 = __objc_msgSend_655Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_pathsForResourcesOfType_inDirectory_forLocalization_1 = + _registerName1("pathsForResourcesOfType:inDirectory:forLocalization:"); + late final _sel_localizedStringForKey_value_table_1 = + _registerName1("localizedStringForKey:value:table:"); + late final _class_NSAttributedString1 = _getClass1("NSAttributedString"); + late final _sel_attributesAtIndex_effectiveRange_1 = + _registerName1("attributesAtIndex:effectiveRange:"); + ffi.Pointer _objc_msgSend_656( + ffi.Pointer obj, + ffi.Pointer sel, + int location, + ffi.Pointer<_NSRange> range, + ) { + return __objc_msgSend_656( + obj, + sel, + location, + range, + ); + } + + late final __objc_msgSend_656Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer<_NSRange>)>>('objc_msgSend'); + late final __objc_msgSend_656 = __objc_msgSend_656Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_NSRange>)>(); + + late final _sel_attribute_atIndex_effectiveRange_1 = + _registerName1("attribute:atIndex:effectiveRange:"); + ffi.Pointer _objc_msgSend_657( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer attrName, + int location, + ffi.Pointer<_NSRange> range, + ) { + return __objc_msgSend_657( + obj, + sel, + attrName, + location, + range, + ); + } + + late final __objc_msgSend_657Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer<_NSRange>)>>('objc_msgSend'); + late final __objc_msgSend_657 = __objc_msgSend_657Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_NSRange>)>(); + + late final _sel_attributedSubstringFromRange_1 = + _registerName1("attributedSubstringFromRange:"); + ffi.Pointer _objc_msgSend_658( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ) { + return __objc_msgSend_658( + obj, + sel, + range, + ); + } + + late final __objc_msgSend_658Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_658 = __objc_msgSend_658Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, _NSRange)>(); + + late final _sel_attributesAtIndex_longestEffectiveRange_inRange_1 = + _registerName1("attributesAtIndex:longestEffectiveRange:inRange:"); + ffi.Pointer _objc_msgSend_659( + ffi.Pointer obj, + ffi.Pointer sel, + int location, + ffi.Pointer<_NSRange> range, + _NSRange rangeLimit, + ) { + return __objc_msgSend_659( + obj, + sel, + location, + range, + rangeLimit, + ); + } + + late final __objc_msgSend_659Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer<_NSRange>, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_659 = __objc_msgSend_659Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_NSRange>, _NSRange)>(); + + late final _sel_attribute_atIndex_longestEffectiveRange_inRange_1 = + _registerName1("attribute:atIndex:longestEffectiveRange:inRange:"); + ffi.Pointer _objc_msgSend_660( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer attrName, + int location, + ffi.Pointer<_NSRange> range, + _NSRange rangeLimit, + ) { + return __objc_msgSend_660( + obj, + sel, + attrName, + location, + range, + rangeLimit, + ); + } + + late final __objc_msgSend_660Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer<_NSRange>, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_660 = __objc_msgSend_660Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_NSRange>, + _NSRange)>(); + + late final _sel_isEqualToAttributedString_1 = + _registerName1("isEqualToAttributedString:"); + bool _objc_msgSend_661( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer other, + ) { + return __objc_msgSend_661( + obj, + sel, + other, + ); + } + + late final __objc_msgSend_661Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_661 = __objc_msgSend_661Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_initWithString_attributes_1 = + _registerName1("initWithString:attributes:"); + late final _sel_initWithAttributedString_1 = + _registerName1("initWithAttributedString:"); + instancetype _objc_msgSend_662( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer attrStr, + ) { + return __objc_msgSend_662( + obj, + sel, + attrStr, + ); + } + + late final __objc_msgSend_662Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_662 = __objc_msgSend_662Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_enumerateAttributesInRange_options_usingBlock_1 = + _registerName1("enumerateAttributesInRange:options:usingBlock:"); + void _objc_msgSend_663( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange enumerationRange, + int opts, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_663( + obj, + sel, + enumerationRange, + opts, + block, + ); + } + + late final __objc_msgSend_663Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_663 = __objc_msgSend_663Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_enumerateAttribute_inRange_options_usingBlock_1 = + _registerName1("enumerateAttribute:inRange:options:usingBlock:"); + void _objc_msgSend_664( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer attrName, + _NSRange enumerationRange, + int opts, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_664( + obj, + sel, + attrName, + enumerationRange, + opts, + block, + ); + } + + late final __objc_msgSend_664Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_664 = __objc_msgSend_664Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); + + late final _class_NSAttributedStringMarkdownParsingOptions1 = + _getClass1("NSAttributedStringMarkdownParsingOptions"); + late final _sel_allowsExtendedAttributes1 = + _registerName1("allowsExtendedAttributes"); + late final _sel_setAllowsExtendedAttributes_1 = + _registerName1("setAllowsExtendedAttributes:"); + late final _sel_interpretedSyntax1 = _registerName1("interpretedSyntax"); + int _objc_msgSend_665( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_665( + obj, + sel, + ); + } + + late final __objc_msgSend_665Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_665 = __objc_msgSend_665Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setInterpretedSyntax_1 = + _registerName1("setInterpretedSyntax:"); + void _objc_msgSend_666( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_666( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_666Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_666 = __objc_msgSend_666Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_failurePolicy1 = _registerName1("failurePolicy"); + int _objc_msgSend_667( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_667( + obj, + sel, + ); + } + + late final __objc_msgSend_667Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_667 = __objc_msgSend_667Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setFailurePolicy_1 = _registerName1("setFailurePolicy:"); + void _objc_msgSend_668( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_668( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_668Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_668 = __objc_msgSend_668Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_setLanguageCode_1 = _registerName1("setLanguageCode:"); + late final _sel_appliesSourcePositionAttributes1 = + _registerName1("appliesSourcePositionAttributes"); + late final _sel_setAppliesSourcePositionAttributes_1 = + _registerName1("setAppliesSourcePositionAttributes:"); + late final _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1 = + _registerName1( + "initWithContentsOfMarkdownFileAtURL:options:baseURL:error:"); + instancetype _objc_msgSend_669( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer markdownFile, + ffi.Pointer options, + ffi.Pointer baseURL, + ffi.Pointer> error, + ) { + return __objc_msgSend_669( + obj, + sel, + markdownFile, + options, + baseURL, + error, + ); + } + + late final __objc_msgSend_669Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_669 = __objc_msgSend_669Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_initWithMarkdown_options_baseURL_error_1 = + _registerName1("initWithMarkdown:options:baseURL:error:"); + instancetype _objc_msgSend_670( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer markdown, + ffi.Pointer options, + ffi.Pointer baseURL, + ffi.Pointer> error, + ) { + return __objc_msgSend_670( + obj, + sel, + markdown, + options, + baseURL, + error, + ); + } + + late final __objc_msgSend_670Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_670 = __objc_msgSend_670Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_initWithMarkdownString_options_baseURL_error_1 = + _registerName1("initWithMarkdownString:options:baseURL:error:"); + instancetype _objc_msgSend_671( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer markdownString, + ffi.Pointer options, + ffi.Pointer baseURL, + ffi.Pointer> error, + ) { + return __objc_msgSend_671( + obj, + sel, + markdownString, + options, + baseURL, + error, + ); + } + + late final __objc_msgSend_671Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_671 = __objc_msgSend_671Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_initWithFormat_options_locale_1 = + _registerName1("initWithFormat:options:locale:"); + instancetype _objc_msgSend_672( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + int options, + ffi.Pointer locale, + ) { + return __objc_msgSend_672( + obj, + sel, + format, + options, + locale, + ); + } + + late final __objc_msgSend_672Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_672 = __objc_msgSend_672Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); + + late final _sel_initWithFormat_options_locale_arguments_1 = + _registerName1("initWithFormat:options:locale:arguments:"); + instancetype _objc_msgSend_673( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + int options, + ffi.Pointer locale, + ffi.Pointer<__va_list_tag> arguments, + ) { + return __objc_msgSend_673( + obj, + sel, + format, + options, + locale, + arguments, + ); + } + + late final __objc_msgSend_673Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); + late final __objc_msgSend_673 = __objc_msgSend_673Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer<__va_list_tag>)>(); + + late final _sel_localizedAttributedStringWithFormat_1 = + _registerName1("localizedAttributedStringWithFormat:"); + late final _sel_localizedAttributedStringWithFormat_options_1 = + _registerName1("localizedAttributedStringWithFormat:options:"); + instancetype _objc_msgSend_674( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer format, + int options, + ) { + return __objc_msgSend_674( + obj, + sel, + format, + options, + ); + } + + late final __objc_msgSend_674Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_674 = __objc_msgSend_674Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_attributedStringByInflectingString1 = + _registerName1("attributedStringByInflectingString"); + ffi.Pointer _objc_msgSend_675( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_675( + obj, + sel, + ); + } + + late final __objc_msgSend_675Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_675 = __objc_msgSend_675Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_localizedAttributedStringForKey_value_table_1 = + _registerName1("localizedAttributedStringForKey:value:table:"); + ffi.Pointer _objc_msgSend_676( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer tableName, + ) { + return __objc_msgSend_676( + obj, + sel, + key, + value, + tableName, + ); + } + + late final __objc_msgSend_676Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_676 = __objc_msgSend_676Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_bundleIdentifier1 = _registerName1("bundleIdentifier"); + late final _sel_infoDictionary1 = _registerName1("infoDictionary"); + late final _sel_localizedInfoDictionary1 = + _registerName1("localizedInfoDictionary"); + late final _sel_objectForInfoDictionaryKey_1 = + _registerName1("objectForInfoDictionaryKey:"); + late final _sel_classNamed_1 = _registerName1("classNamed:"); + late final _sel_principalClass1 = _registerName1("principalClass"); + late final _sel_preferredLocalizations1 = + _registerName1("preferredLocalizations"); + late final _sel_localizations1 = _registerName1("localizations"); + late final _sel_developmentLocalization1 = + _registerName1("developmentLocalization"); + late final _sel_preferredLocalizationsFromArray_1 = + _registerName1("preferredLocalizationsFromArray:"); + late final _sel_preferredLocalizationsFromArray_forPreferences_1 = + _registerName1("preferredLocalizationsFromArray:forPreferences:"); + ffi.Pointer _objc_msgSend_677( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer localizationsArray, + ffi.Pointer preferencesArray, + ) { + return __objc_msgSend_677( + obj, + sel, + localizationsArray, + preferencesArray, + ); + } + + late final __objc_msgSend_677Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_677 = __objc_msgSend_677Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_executableArchitectures1 = + _registerName1("executableArchitectures"); + late final _sel_setPreservationPriority_forTags_1 = + _registerName1("setPreservationPriority:forTags:"); + void _objc_msgSend_678( + ffi.Pointer obj, + ffi.Pointer sel, + double priority, + ffi.Pointer tags, + ) { + return __objc_msgSend_678( + obj, + sel, + priority, + tags, + ); + } + + late final __objc_msgSend_678Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Double, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_678 = __objc_msgSend_678Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, double, + ffi.Pointer)>(); + + late final _sel_preservationPriorityForTag_1 = + _registerName1("preservationPriorityForTag:"); + late final _class_NSMutableAttributedString1 = + _getClass1("NSMutableAttributedString"); + late final _sel_setAttributes_range_1 = + _registerName1("setAttributes:range:"); + void _objc_msgSend_679( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer attrs, + _NSRange range, + ) { + return __objc_msgSend_679( + obj, + sel, + attrs, + range, + ); + } + + late final __objc_msgSend_679Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_679 = __objc_msgSend_679Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>(); + + late final _sel_mutableString1 = _registerName1("mutableString"); + ffi.Pointer _objc_msgSend_680( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_680( + obj, + sel, + ); + } + + late final __objc_msgSend_680Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_680 = __objc_msgSend_680Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_addAttribute_value_range_1 = + _registerName1("addAttribute:value:range:"); + void _objc_msgSend_681( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer value, + _NSRange range, + ) { + return __objc_msgSend_681( + obj, + sel, + name, + value, + range, + ); + } + + late final __objc_msgSend_681Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_681 = __objc_msgSend_681Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, _NSRange)>(); + + late final _sel_addAttributes_range_1 = + _registerName1("addAttributes:range:"); + late final _sel_removeAttribute_range_1 = + _registerName1("removeAttribute:range:"); + void _objc_msgSend_682( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + _NSRange range, + ) { + return __objc_msgSend_682( + obj, + sel, + name, + range, + ); + } + + late final __objc_msgSend_682Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_682 = __objc_msgSend_682Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>(); + + late final _sel_replaceCharactersInRange_withAttributedString_1 = + _registerName1("replaceCharactersInRange:withAttributedString:"); + void _objc_msgSend_683( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ffi.Pointer attrString, + ) { + return __objc_msgSend_683( + obj, + sel, + range, + attrString, + ); + } + + late final __objc_msgSend_683Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + _NSRange, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_683 = __objc_msgSend_683Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + ffi.Pointer)>(); + + late final _sel_insertAttributedString_atIndex_1 = + _registerName1("insertAttributedString:atIndex:"); + void _objc_msgSend_684( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer attrString, + int loc, + ) { + return __objc_msgSend_684( + obj, + sel, + attrString, + loc, + ); + } + + late final __objc_msgSend_684Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_684 = __objc_msgSend_684Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_appendAttributedString_1 = + _registerName1("appendAttributedString:"); + void _objc_msgSend_685( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer attrString, + ) { + return __objc_msgSend_685( + obj, + sel, + attrString, + ); + } + + late final __objc_msgSend_685Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_685 = __objc_msgSend_685Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_setAttributedString_1 = + _registerName1("setAttributedString:"); + late final _sel_beginEditing1 = _registerName1("beginEditing"); + late final _sel_endEditing1 = _registerName1("endEditing"); + late final _sel_appendLocalizedFormat_1 = + _registerName1("appendLocalizedFormat:"); + late final _class_NSDateFormatter1 = _getClass1("NSDateFormatter"); + late final _class_NSFormatter1 = _getClass1("NSFormatter"); + late final _sel_stringForObjectValue_1 = + _registerName1("stringForObjectValue:"); + late final _sel_attributedStringForObjectValue_withDefaultAttributes_1 = + _registerName1("attributedStringForObjectValue:withDefaultAttributes:"); + ffi.Pointer _objc_msgSend_686( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer obj1, + ffi.Pointer attrs, + ) { + return __objc_msgSend_686( + obj, + sel, + obj1, + attrs, + ); + } + + late final __objc_msgSend_686Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_686 = __objc_msgSend_686Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_editingStringForObjectValue_1 = + _registerName1("editingStringForObjectValue:"); + late final _sel_getObjectValue_forString_errorDescription_1 = + _registerName1("getObjectValue:forString:errorDescription:"); + bool _objc_msgSend_687( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> obj1, + ffi.Pointer string, + ffi.Pointer> error, + ) { + return __objc_msgSend_687( + obj, + sel, + obj1, + string, + error, + ); + } + + late final __objc_msgSend_687Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_687 = __objc_msgSend_687Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_isPartialStringValid_newEditingString_errorDescription_1 = + _registerName1("isPartialStringValid:newEditingString:errorDescription:"); + bool _objc_msgSend_688( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer partialString, + ffi.Pointer> newString, + ffi.Pointer> error, + ) { + return __objc_msgSend_688( + obj, + sel, + partialString, + newString, + error, + ); + } + + late final __objc_msgSend_688Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_688 = __objc_msgSend_688Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>)>(); + + late final _sel_isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_1 = + _registerName1( + "isPartialStringValid:proposedSelectedRange:originalString:originalSelectedRange:errorDescription:"); + bool _objc_msgSend_689( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> partialStringPtr, + ffi.Pointer<_NSRange> proposedSelRangePtr, + ffi.Pointer origString, + _NSRange origSelRange, + ffi.Pointer> error, + ) { + return __objc_msgSend_689( + obj, + sel, + partialStringPtr, + proposedSelRangePtr, + origString, + origSelRange, + error, + ); + } + + late final __objc_msgSend_689Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer<_NSRange>, + ffi.Pointer, + _NSRange, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_689 = __objc_msgSend_689Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer<_NSRange>, + ffi.Pointer, + _NSRange, + ffi.Pointer>)>(); + + late final _sel_formattingContext1 = _registerName1("formattingContext"); + int _objc_msgSend_690( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_690( + obj, + sel, + ); + } + + late final __objc_msgSend_690Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_690 = __objc_msgSend_690Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setFormattingContext_1 = + _registerName1("setFormattingContext:"); + void _objc_msgSend_691( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_691( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_691Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_691 = __objc_msgSend_691Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_getObjectValue_forString_range_error_1 = + _registerName1("getObjectValue:forString:range:error:"); + bool _objc_msgSend_692( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> obj1, + ffi.Pointer string, + ffi.Pointer<_NSRange> rangep, + ffi.Pointer> error, + ) { + return __objc_msgSend_692( + obj, + sel, + obj1, + string, + rangep, + error, + ); + } + + late final __objc_msgSend_692Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer<_NSRange>, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_692 = __objc_msgSend_692Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer<_NSRange>, + ffi.Pointer>)>(); + + late final _sel_stringFromDate_1 = _registerName1("stringFromDate:"); + late final _sel_dateFromString_1 = _registerName1("dateFromString:"); + late final _sel_localizedStringFromDate_dateStyle_timeStyle_1 = + _registerName1("localizedStringFromDate:dateStyle:timeStyle:"); + ffi.Pointer _objc_msgSend_693( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer date, + int dstyle, + int tstyle, + ) { + return __objc_msgSend_693( + obj, + sel, + date, + dstyle, + tstyle, + ); + } + + late final __objc_msgSend_693Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_693 = __objc_msgSend_693Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, int)>(); + + late final _sel_dateFormatFromTemplate_options_locale_1 = + _registerName1("dateFormatFromTemplate:options:locale:"); + ffi.Pointer _objc_msgSend_694( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer tmplate, + int opts, + ffi.Pointer locale, + ) { + return __objc_msgSend_694( + obj, + sel, + tmplate, + opts, + locale, + ); + } + + late final __objc_msgSend_694Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_694 = __objc_msgSend_694Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer)>(); + + late final _sel_defaultFormatterBehavior1 = + _registerName1("defaultFormatterBehavior"); + int _objc_msgSend_695( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_695( + obj, + sel, + ); + } + + late final __objc_msgSend_695Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_695 = __objc_msgSend_695Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setDefaultFormatterBehavior_1 = + _registerName1("setDefaultFormatterBehavior:"); + void _objc_msgSend_696( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_696( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_696Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_696 = __objc_msgSend_696Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_setLocalizedDateFormatFromTemplate_1 = + _registerName1("setLocalizedDateFormatFromTemplate:"); + late final _sel_dateFormat1 = _registerName1("dateFormat"); + late final _sel_setDateFormat_1 = _registerName1("setDateFormat:"); + late final _sel_dateStyle1 = _registerName1("dateStyle"); + int _objc_msgSend_697( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_697( + obj, + sel, + ); + } + + late final __objc_msgSend_697Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_697 = __objc_msgSend_697Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setDateStyle_1 = _registerName1("setDateStyle:"); + void _objc_msgSend_698( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_698( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_698Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_698 = __objc_msgSend_698Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_timeStyle1 = _registerName1("timeStyle"); + late final _sel_setTimeStyle_1 = _registerName1("setTimeStyle:"); + late final _sel_locale1 = _registerName1("locale"); + late final _sel_setLocale_1 = _registerName1("setLocale:"); + void _objc_msgSend_699( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_699( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_699Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_699 = __objc_msgSend_699Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_generatesCalendarDates1 = + _registerName1("generatesCalendarDates"); + late final _sel_setGeneratesCalendarDates_1 = + _registerName1("setGeneratesCalendarDates:"); + late final _sel_formatterBehavior1 = _registerName1("formatterBehavior"); + late final _sel_setFormatterBehavior_1 = + _registerName1("setFormatterBehavior:"); + late final _class_NSCalendar1 = _getClass1("NSCalendar"); + late final _sel_currentCalendar1 = _registerName1("currentCalendar"); + ffi.Pointer _objc_msgSend_700( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_700( + obj, + sel, + ); + } + + late final __objc_msgSend_700Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_700 = __objc_msgSend_700Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_autoupdatingCurrentCalendar1 = + _registerName1("autoupdatingCurrentCalendar"); + late final _sel_calendarWithIdentifier_1 = + _registerName1("calendarWithIdentifier:"); + ffi.Pointer _objc_msgSend_701( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer calendarIdentifierConstant, + ) { + return __objc_msgSend_701( + obj, + sel, + calendarIdentifierConstant, + ); + } + + late final __objc_msgSend_701Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_701 = __objc_msgSend_701Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_initWithCalendarIdentifier_1 = + _registerName1("initWithCalendarIdentifier:"); + late final _sel_firstWeekday1 = _registerName1("firstWeekday"); + late final _sel_setFirstWeekday_1 = _registerName1("setFirstWeekday:"); + late final _sel_minimumDaysInFirstWeek1 = + _registerName1("minimumDaysInFirstWeek"); + late final _sel_setMinimumDaysInFirstWeek_1 = + _registerName1("setMinimumDaysInFirstWeek:"); + late final _sel_eraSymbols1 = _registerName1("eraSymbols"); + late final _sel_longEraSymbols1 = _registerName1("longEraSymbols"); + late final _sel_monthSymbols1 = _registerName1("monthSymbols"); + late final _sel_shortMonthSymbols1 = _registerName1("shortMonthSymbols"); + late final _sel_veryShortMonthSymbols1 = + _registerName1("veryShortMonthSymbols"); + late final _sel_standaloneMonthSymbols1 = + _registerName1("standaloneMonthSymbols"); + late final _sel_shortStandaloneMonthSymbols1 = + _registerName1("shortStandaloneMonthSymbols"); + late final _sel_veryShortStandaloneMonthSymbols1 = + _registerName1("veryShortStandaloneMonthSymbols"); + late final _sel_weekdaySymbols1 = _registerName1("weekdaySymbols"); + late final _sel_shortWeekdaySymbols1 = _registerName1("shortWeekdaySymbols"); + late final _sel_veryShortWeekdaySymbols1 = + _registerName1("veryShortWeekdaySymbols"); + late final _sel_standaloneWeekdaySymbols1 = + _registerName1("standaloneWeekdaySymbols"); + late final _sel_shortStandaloneWeekdaySymbols1 = + _registerName1("shortStandaloneWeekdaySymbols"); + late final _sel_veryShortStandaloneWeekdaySymbols1 = + _registerName1("veryShortStandaloneWeekdaySymbols"); + late final _sel_quarterSymbols1 = _registerName1("quarterSymbols"); + late final _sel_shortQuarterSymbols1 = _registerName1("shortQuarterSymbols"); + late final _sel_standaloneQuarterSymbols1 = + _registerName1("standaloneQuarterSymbols"); + late final _sel_shortStandaloneQuarterSymbols1 = + _registerName1("shortStandaloneQuarterSymbols"); + late final _sel_AMSymbol1 = _registerName1("AMSymbol"); + late final _sel_PMSymbol1 = _registerName1("PMSymbol"); + late final _sel_minimumRangeOfUnit_1 = _registerName1("minimumRangeOfUnit:"); + _NSRange _objc_msgSend_702( + ffi.Pointer obj, + ffi.Pointer sel, + int unit, + ) { + return __objc_msgSend_702( + obj, + sel, + unit, + ); + } + + late final __objc_msgSend_702Ptr = _lookup< + ffi.NativeFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_702 = __objc_msgSend_702Ptr.asFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_maximumRangeOfUnit_1 = _registerName1("maximumRangeOfUnit:"); + late final _sel_rangeOfUnit_inUnit_forDate_1 = + _registerName1("rangeOfUnit:inUnit:forDate:"); + _NSRange _objc_msgSend_703( + ffi.Pointer obj, + ffi.Pointer sel, + int smaller, + int larger, + ffi.Pointer date, + ) { + return __objc_msgSend_703( + obj, + sel, + smaller, + larger, + date, + ); + } + + late final __objc_msgSend_703Ptr = _lookup< + ffi.NativeFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_703 = __objc_msgSend_703Ptr.asFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, int, int, + ffi.Pointer)>(); + + late final _sel_ordinalityOfUnit_inUnit_forDate_1 = + _registerName1("ordinalityOfUnit:inUnit:forDate:"); + int _objc_msgSend_704( + ffi.Pointer obj, + ffi.Pointer sel, + int smaller, + int larger, + ffi.Pointer date, + ) { + return __objc_msgSend_704( + obj, + sel, + smaller, + larger, + date, + ); + } + + late final __objc_msgSend_704Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Int32, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_704 = __objc_msgSend_704Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, int, + ffi.Pointer)>(); + + late final _sel_rangeOfUnit_startDate_interval_forDate_1 = + _registerName1("rangeOfUnit:startDate:interval:forDate:"); + bool _objc_msgSend_705( + ffi.Pointer obj, + ffi.Pointer sel, + int unit, + ffi.Pointer> datep, + ffi.Pointer tip, + ffi.Pointer date, + ) { + return __objc_msgSend_705( + obj, + sel, + unit, + datep, + tip, + date, + ); + } + + late final __objc_msgSend_705Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_705 = __objc_msgSend_705Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>(); + + late final _class_NSDateComponents1 = _getClass1("NSDateComponents"); + late final _sel_calendar1 = _registerName1("calendar"); + late final _sel_setCalendar_1 = _registerName1("setCalendar:"); + void _objc_msgSend_706( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_706( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_706Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_706 = __objc_msgSend_706Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_era1 = _registerName1("era"); + late final _sel_setEra_1 = _registerName1("setEra:"); + late final _sel_year1 = _registerName1("year"); + late final _sel_setYear_1 = _registerName1("setYear:"); + late final _sel_month1 = _registerName1("month"); + late final _sel_setMonth_1 = _registerName1("setMonth:"); + late final _sel_day1 = _registerName1("day"); + late final _sel_setDay_1 = _registerName1("setDay:"); + late final _sel_hour1 = _registerName1("hour"); + late final _sel_setHour_1 = _registerName1("setHour:"); + late final _sel_minute1 = _registerName1("minute"); + late final _sel_setMinute_1 = _registerName1("setMinute:"); + late final _sel_second1 = _registerName1("second"); + late final _sel_setSecond_1 = _registerName1("setSecond:"); + late final _sel_nanosecond1 = _registerName1("nanosecond"); + late final _sel_setNanosecond_1 = _registerName1("setNanosecond:"); + late final _sel_weekday1 = _registerName1("weekday"); + late final _sel_setWeekday_1 = _registerName1("setWeekday:"); + late final _sel_weekdayOrdinal1 = _registerName1("weekdayOrdinal"); + late final _sel_setWeekdayOrdinal_1 = _registerName1("setWeekdayOrdinal:"); + late final _sel_quarter1 = _registerName1("quarter"); + late final _sel_setQuarter_1 = _registerName1("setQuarter:"); + late final _sel_weekOfMonth1 = _registerName1("weekOfMonth"); + late final _sel_setWeekOfMonth_1 = _registerName1("setWeekOfMonth:"); + late final _sel_weekOfYear1 = _registerName1("weekOfYear"); + late final _sel_setWeekOfYear_1 = _registerName1("setWeekOfYear:"); + late final _sel_yearForWeekOfYear1 = _registerName1("yearForWeekOfYear"); + late final _sel_setYearForWeekOfYear_1 = + _registerName1("setYearForWeekOfYear:"); + late final _sel_isLeapMonth1 = _registerName1("isLeapMonth"); + late final _sel_setLeapMonth_1 = _registerName1("setLeapMonth:"); + late final _sel_week1 = _registerName1("week"); + late final _sel_setWeek_1 = _registerName1("setWeek:"); + late final _sel_setValue_forComponent_1 = + _registerName1("setValue:forComponent:"); + void _objc_msgSend_707( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + int unit, + ) { + return __objc_msgSend_707( + obj, + sel, + value, + unit, + ); + } + + late final __objc_msgSend_707Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Long, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_707 = __objc_msgSend_707Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, int)>(); + + late final _sel_valueForComponent_1 = _registerName1("valueForComponent:"); + int _objc_msgSend_708( + ffi.Pointer obj, + ffi.Pointer sel, + int unit, + ) { + return __objc_msgSend_708( + obj, + sel, + unit, + ); + } + + late final __objc_msgSend_708Ptr = _lookup< + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_708 = __objc_msgSend_708Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_isValidDate1 = _registerName1("isValidDate"); + late final _sel_isValidDateInCalendar_1 = + _registerName1("isValidDateInCalendar:"); + bool _objc_msgSend_709( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer calendar, + ) { + return __objc_msgSend_709( + obj, + sel, + calendar, + ); + } + + late final __objc_msgSend_709Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_709 = __objc_msgSend_709Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_dateFromComponents_1 = _registerName1("dateFromComponents:"); + ffi.Pointer _objc_msgSend_710( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer comps, + ) { + return __objc_msgSend_710( + obj, + sel, + comps, + ); + } + + late final __objc_msgSend_710Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_710 = __objc_msgSend_710Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_components_fromDate_1 = + _registerName1("components:fromDate:"); + ffi.Pointer _objc_msgSend_711( + ffi.Pointer obj, + ffi.Pointer sel, + int unitFlags, + ffi.Pointer date, + ) { + return __objc_msgSend_711( + obj, + sel, + unitFlags, + date, + ); + } + + late final __objc_msgSend_711Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_711 = __objc_msgSend_711Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); + + late final _sel_dateByAddingComponents_toDate_options_1 = + _registerName1("dateByAddingComponents:toDate:options:"); + ffi.Pointer _objc_msgSend_712( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer comps, + ffi.Pointer date, + int opts, + ) { + return __objc_msgSend_712( + obj, + sel, + comps, + date, + opts, + ); + } + + late final __objc_msgSend_712Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_712 = __objc_msgSend_712Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int)>(); + + late final _sel_components_fromDate_toDate_options_1 = + _registerName1("components:fromDate:toDate:options:"); + ffi.Pointer _objc_msgSend_713( + ffi.Pointer obj, + ffi.Pointer sel, + int unitFlags, + ffi.Pointer startingDate, + ffi.Pointer resultDate, + int opts, + ) { + return __objc_msgSend_713( + obj, + sel, + unitFlags, + startingDate, + resultDate, + opts, + ); + } + + late final __objc_msgSend_713Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_713 = __objc_msgSend_713Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + int)>(); + + late final _sel_getEra_year_month_day_fromDate_1 = + _registerName1("getEra:year:month:day:fromDate:"); + void _objc_msgSend_714( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer eraValuePointer, + ffi.Pointer yearValuePointer, + ffi.Pointer monthValuePointer, + ffi.Pointer dayValuePointer, + ffi.Pointer date, + ) { + return __objc_msgSend_714( + obj, + sel, + eraValuePointer, + yearValuePointer, + monthValuePointer, + dayValuePointer, + date, + ); + } + + late final __objc_msgSend_714Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_714 = __objc_msgSend_714Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_1 = + _registerName1("getEra:yearForWeekOfYear:weekOfYear:weekday:fromDate:"); + late final _sel_getHour_minute_second_nanosecond_fromDate_1 = + _registerName1("getHour:minute:second:nanosecond:fromDate:"); + late final _sel_component_fromDate_1 = _registerName1("component:fromDate:"); + int _objc_msgSend_715( + ffi.Pointer obj, + ffi.Pointer sel, + int unit, + ffi.Pointer date, + ) { + return __objc_msgSend_715( + obj, + sel, + unit, + date, + ); + } + + late final __objc_msgSend_715Ptr = _lookup< + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_715 = __objc_msgSend_715Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); + + late final _sel_dateWithEra_year_month_day_hour_minute_second_nanosecond_1 = + _registerName1( + "dateWithEra:year:month:day:hour:minute:second:nanosecond:"); + ffi.Pointer _objc_msgSend_716( + ffi.Pointer obj, + ffi.Pointer sel, + int eraValue, + int yearValue, + int monthValue, + int dayValue, + int hourValue, + int minuteValue, + int secondValue, + int nanosecondValue, + ) { + return __objc_msgSend_716( + obj, + sel, + eraValue, + yearValue, + monthValue, + dayValue, + hourValue, + minuteValue, + secondValue, + nanosecondValue, + ); + } + + late final __objc_msgSend_716Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_716 = __objc_msgSend_716Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, int, int, int, int, int, int, int)>(); + + late final _sel_dateWithEra_yearForWeekOfYear_weekOfYear_weekday_hour_minute_second_nanosecond_1 = + _registerName1( + "dateWithEra:yearForWeekOfYear:weekOfYear:weekday:hour:minute:second:nanosecond:"); + late final _sel_startOfDayForDate_1 = _registerName1("startOfDayForDate:"); + late final _sel_componentsInTimeZone_fromDate_1 = + _registerName1("componentsInTimeZone:fromDate:"); + ffi.Pointer _objc_msgSend_717( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer timezone, + ffi.Pointer date, + ) { + return __objc_msgSend_717( + obj, + sel, + timezone, + date, + ); + } + + late final __objc_msgSend_717Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_717 = __objc_msgSend_717Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_compareDate_toDate_toUnitGranularity_1 = + _registerName1("compareDate:toDate:toUnitGranularity:"); + int _objc_msgSend_718( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer date1, + ffi.Pointer date2, + int unit, + ) { + return __objc_msgSend_718( + obj, + sel, + date1, + date2, + unit, + ); + } + + late final __objc_msgSend_718Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_718 = __objc_msgSend_718Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_isDate_equalToDate_toUnitGranularity_1 = + _registerName1("isDate:equalToDate:toUnitGranularity:"); + bool _objc_msgSend_719( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer date1, + ffi.Pointer date2, + int unit, + ) { + return __objc_msgSend_719( + obj, + sel, + date1, + date2, + unit, + ); + } + + late final __objc_msgSend_719Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_719 = __objc_msgSend_719Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_isDate_inSameDayAsDate_1 = + _registerName1("isDate:inSameDayAsDate:"); + bool _objc_msgSend_720( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer date1, + ffi.Pointer date2, + ) { + return __objc_msgSend_720( + obj, + sel, + date1, + date2, + ); + } + + late final __objc_msgSend_720Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_720 = __objc_msgSend_720Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_isDateInToday_1 = _registerName1("isDateInToday:"); + late final _sel_isDateInYesterday_1 = _registerName1("isDateInYesterday:"); + late final _sel_isDateInTomorrow_1 = _registerName1("isDateInTomorrow:"); + late final _sel_isDateInWeekend_1 = _registerName1("isDateInWeekend:"); + late final _sel_rangeOfWeekendStartDate_interval_containingDate_1 = + _registerName1("rangeOfWeekendStartDate:interval:containingDate:"); + bool _objc_msgSend_721( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> datep, + ffi.Pointer tip, + ffi.Pointer date, + ) { + return __objc_msgSend_721( + obj, + sel, + datep, + tip, + date, + ); + } + + late final __objc_msgSend_721Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_721 = __objc_msgSend_721Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_nextWeekendStartDate_interval_options_afterDate_1 = + _registerName1("nextWeekendStartDate:interval:options:afterDate:"); + bool _objc_msgSend_722( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> datep, + ffi.Pointer tip, + int options, + ffi.Pointer date, + ) { + return __objc_msgSend_722( + obj, + sel, + datep, + tip, + options, + date, + ); + } + + late final __objc_msgSend_722Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_722 = __objc_msgSend_722Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + int, + ffi.Pointer)>(); + + late final _sel_components_fromDateComponents_toDateComponents_options_1 = + _registerName1("components:fromDateComponents:toDateComponents:options:"); + ffi.Pointer _objc_msgSend_723( + ffi.Pointer obj, + ffi.Pointer sel, + int unitFlags, + ffi.Pointer startingDateComp, + ffi.Pointer resultDateComp, + int options, + ) { + return __objc_msgSend_723( + obj, + sel, + unitFlags, + startingDateComp, + resultDateComp, + options, + ); + } + + late final __objc_msgSend_723Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_723 = __objc_msgSend_723Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + int)>(); + + late final _sel_dateByAddingUnit_value_toDate_options_1 = + _registerName1("dateByAddingUnit:value:toDate:options:"); + ffi.Pointer _objc_msgSend_724( + ffi.Pointer obj, + ffi.Pointer sel, + int unit, + int value, + ffi.Pointer date, + int options, + ) { + return __objc_msgSend_724( + obj, + sel, + unit, + value, + date, + options, + ); + } + + late final __objc_msgSend_724Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Long, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_724 = __objc_msgSend_724Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, int, ffi.Pointer, int)>(); + + late final _sel_enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_1 = + _registerName1( + "enumerateDatesStartingAfterDate:matchingComponents:options:usingBlock:"); + void _objc_msgSend_725( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer start, + ffi.Pointer comps, + int opts, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_725( + obj, + sel, + start, + comps, + opts, + block, + ); + } + + late final __objc_msgSend_725Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_725 = __objc_msgSend_725Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_nextDateAfterDate_matchingComponents_options_1 = + _registerName1("nextDateAfterDate:matchingComponents:options:"); + ffi.Pointer _objc_msgSend_726( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer date, + ffi.Pointer comps, + int options, + ) { + return __objc_msgSend_726( + obj, + sel, + date, + comps, + options, + ); + } + + late final __objc_msgSend_726Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_726 = __objc_msgSend_726Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int)>(); + + late final _sel_nextDateAfterDate_matchingUnit_value_options_1 = + _registerName1("nextDateAfterDate:matchingUnit:value:options:"); + ffi.Pointer _objc_msgSend_727( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer date, + int unit, + int value, + int options, + ) { + return __objc_msgSend_727( + obj, + sel, + date, + unit, + value, + options, + ); + } + + late final __objc_msgSend_727Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Long, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_727 = __objc_msgSend_727Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, int, int)>(); + + late final _sel_nextDateAfterDate_matchingHour_minute_second_options_1 = + _registerName1("nextDateAfterDate:matchingHour:minute:second:options:"); + ffi.Pointer _objc_msgSend_728( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer date, + int hourValue, + int minuteValue, + int secondValue, + int options, + ) { + return __objc_msgSend_728( + obj, + sel, + date, + hourValue, + minuteValue, + secondValue, + options, + ); + } + + late final __objc_msgSend_728Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_728 = __objc_msgSend_728Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, int, int, int)>(); + + late final _sel_dateBySettingUnit_value_ofDate_options_1 = + _registerName1("dateBySettingUnit:value:ofDate:options:"); + late final _sel_dateBySettingHour_minute_second_ofDate_options_1 = + _registerName1("dateBySettingHour:minute:second:ofDate:options:"); + ffi.Pointer _objc_msgSend_729( + ffi.Pointer obj, + ffi.Pointer sel, + int h, + int m, + int s, + ffi.Pointer date, + int opts, + ) { + return __objc_msgSend_729( + obj, + sel, + h, + m, + s, + date, + opts, + ); + } + + late final __objc_msgSend_729Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_729 = __objc_msgSend_729Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, int, int, ffi.Pointer, int)>(); + + late final _sel_date_matchesComponents_1 = + _registerName1("date:matchesComponents:"); + bool _objc_msgSend_730( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer date, + ffi.Pointer components, + ) { + return __objc_msgSend_730( + obj, + sel, + date, + components, + ); + } + + late final __objc_msgSend_730Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_730 = __objc_msgSend_730Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_isLenient1 = _registerName1("isLenient"); + late final _sel_setLenient_1 = _registerName1("setLenient:"); + late final _sel_twoDigitStartDate1 = _registerName1("twoDigitStartDate"); + late final _sel_setTwoDigitStartDate_1 = + _registerName1("setTwoDigitStartDate:"); + late final _sel_defaultDate1 = _registerName1("defaultDate"); + late final _sel_setDefaultDate_1 = _registerName1("setDefaultDate:"); + late final _sel_setEraSymbols_1 = _registerName1("setEraSymbols:"); + void _objc_msgSend_731( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_731( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_731Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_731 = __objc_msgSend_731Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_setMonthSymbols_1 = _registerName1("setMonthSymbols:"); + late final _sel_setShortMonthSymbols_1 = + _registerName1("setShortMonthSymbols:"); + late final _sel_setWeekdaySymbols_1 = _registerName1("setWeekdaySymbols:"); + late final _sel_setShortWeekdaySymbols_1 = + _registerName1("setShortWeekdaySymbols:"); + late final _sel_setAMSymbol_1 = _registerName1("setAMSymbol:"); + late final _sel_setPMSymbol_1 = _registerName1("setPMSymbol:"); + late final _sel_setLongEraSymbols_1 = _registerName1("setLongEraSymbols:"); + late final _sel_setVeryShortMonthSymbols_1 = + _registerName1("setVeryShortMonthSymbols:"); + late final _sel_setStandaloneMonthSymbols_1 = + _registerName1("setStandaloneMonthSymbols:"); + late final _sel_setShortStandaloneMonthSymbols_1 = + _registerName1("setShortStandaloneMonthSymbols:"); + late final _sel_setVeryShortStandaloneMonthSymbols_1 = + _registerName1("setVeryShortStandaloneMonthSymbols:"); + late final _sel_setVeryShortWeekdaySymbols_1 = + _registerName1("setVeryShortWeekdaySymbols:"); + late final _sel_setStandaloneWeekdaySymbols_1 = + _registerName1("setStandaloneWeekdaySymbols:"); + late final _sel_setShortStandaloneWeekdaySymbols_1 = + _registerName1("setShortStandaloneWeekdaySymbols:"); + late final _sel_setVeryShortStandaloneWeekdaySymbols_1 = + _registerName1("setVeryShortStandaloneWeekdaySymbols:"); + late final _sel_setQuarterSymbols_1 = _registerName1("setQuarterSymbols:"); + late final _sel_setShortQuarterSymbols_1 = + _registerName1("setShortQuarterSymbols:"); + late final _sel_setStandaloneQuarterSymbols_1 = + _registerName1("setStandaloneQuarterSymbols:"); + late final _sel_setShortStandaloneQuarterSymbols_1 = + _registerName1("setShortStandaloneQuarterSymbols:"); + late final _sel_gregorianStartDate1 = _registerName1("gregorianStartDate"); + late final _sel_setGregorianStartDate_1 = + _registerName1("setGregorianStartDate:"); + late final _sel_doesRelativeDateFormatting1 = + _registerName1("doesRelativeDateFormatting"); + late final _sel_setDoesRelativeDateFormatting_1 = + _registerName1("setDoesRelativeDateFormatting:"); + late final _sel_initWithDateFormat_allowNaturalLanguage_1 = + _registerName1("initWithDateFormat:allowNaturalLanguage:"); + late final _sel_allowsNaturalLanguage1 = + _registerName1("allowsNaturalLanguage"); + late final _class_NSNumberFormatter1 = _getClass1("NSNumberFormatter"); + late final _sel_stringFromNumber_1 = _registerName1("stringFromNumber:"); + ffi.Pointer _objc_msgSend_732( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer number, + ) { + return __objc_msgSend_732( + obj, + sel, + number, + ); + } + + late final __objc_msgSend_732Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_732 = __objc_msgSend_732Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_numberFromString_1 = _registerName1("numberFromString:"); + ffi.Pointer _objc_msgSend_733( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, + ) { + return __objc_msgSend_733( + obj, + sel, + string, + ); + } + + late final __objc_msgSend_733Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_733 = __objc_msgSend_733Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_localizedStringFromNumber_numberStyle_1 = + _registerName1("localizedStringFromNumber:numberStyle:"); + ffi.Pointer _objc_msgSend_734( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer num, + int nstyle, + ) { + return __objc_msgSend_734( + obj, + sel, + num, + nstyle, + ); + } + + late final __objc_msgSend_734Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_734 = __objc_msgSend_734Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); + + int _objc_msgSend_735( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_735( + obj, + sel, + ); + } + + late final __objc_msgSend_735Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_735 = __objc_msgSend_735Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + void _objc_msgSend_736( + ffi.Pointer obj, + ffi.Pointer sel, + int behavior, + ) { + return __objc_msgSend_736( + obj, + sel, + behavior, + ); + } + + late final __objc_msgSend_736Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_736 = __objc_msgSend_736Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_numberStyle1 = _registerName1("numberStyle"); + int _objc_msgSend_737( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_737( + obj, + sel, + ); + } + + late final __objc_msgSend_737Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_737 = __objc_msgSend_737Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setNumberStyle_1 = _registerName1("setNumberStyle:"); + void _objc_msgSend_738( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_738( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_738Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_738 = __objc_msgSend_738Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_generatesDecimalNumbers1 = + _registerName1("generatesDecimalNumbers"); + late final _sel_setGeneratesDecimalNumbers_1 = + _registerName1("setGeneratesDecimalNumbers:"); + void _objc_msgSend_739( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_739( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_739Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_739 = __objc_msgSend_739Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_negativeFormat1 = _registerName1("negativeFormat"); + late final _sel_setNegativeFormat_1 = _registerName1("setNegativeFormat:"); + late final _sel_textAttributesForNegativeValues1 = + _registerName1("textAttributesForNegativeValues"); + late final _sel_setTextAttributesForNegativeValues_1 = + _registerName1("setTextAttributesForNegativeValues:"); + late final _sel_positiveFormat1 = _registerName1("positiveFormat"); + late final _sel_setPositiveFormat_1 = _registerName1("setPositiveFormat:"); + late final _sel_textAttributesForPositiveValues1 = + _registerName1("textAttributesForPositiveValues"); + late final _sel_setTextAttributesForPositiveValues_1 = + _registerName1("setTextAttributesForPositiveValues:"); + late final _sel_allowsFloats1 = _registerName1("allowsFloats"); + late final _sel_setAllowsFloats_1 = _registerName1("setAllowsFloats:"); + late final _sel_setDecimalSeparator_1 = + _registerName1("setDecimalSeparator:"); + late final _sel_alwaysShowsDecimalSeparator1 = + _registerName1("alwaysShowsDecimalSeparator"); + late final _sel_setAlwaysShowsDecimalSeparator_1 = + _registerName1("setAlwaysShowsDecimalSeparator:"); + late final _sel_currencyDecimalSeparator1 = + _registerName1("currencyDecimalSeparator"); + late final _sel_setCurrencyDecimalSeparator_1 = + _registerName1("setCurrencyDecimalSeparator:"); + late final _sel_usesGroupingSeparator1 = + _registerName1("usesGroupingSeparator"); + late final _sel_setUsesGroupingSeparator_1 = + _registerName1("setUsesGroupingSeparator:"); + late final _sel_setGroupingSeparator_1 = + _registerName1("setGroupingSeparator:"); + late final _sel_zeroSymbol1 = _registerName1("zeroSymbol"); + late final _sel_setZeroSymbol_1 = _registerName1("setZeroSymbol:"); + late final _sel_textAttributesForZero1 = + _registerName1("textAttributesForZero"); + late final _sel_setTextAttributesForZero_1 = + _registerName1("setTextAttributesForZero:"); + late final _sel_nilSymbol1 = _registerName1("nilSymbol"); + late final _sel_setNilSymbol_1 = _registerName1("setNilSymbol:"); + late final _sel_textAttributesForNil1 = + _registerName1("textAttributesForNil"); + late final _sel_setTextAttributesForNil_1 = + _registerName1("setTextAttributesForNil:"); + late final _sel_notANumberSymbol1 = _registerName1("notANumberSymbol"); + late final _sel_setNotANumberSymbol_1 = + _registerName1("setNotANumberSymbol:"); + late final _sel_textAttributesForNotANumber1 = + _registerName1("textAttributesForNotANumber"); + late final _sel_setTextAttributesForNotANumber_1 = + _registerName1("setTextAttributesForNotANumber:"); + late final _sel_positiveInfinitySymbol1 = + _registerName1("positiveInfinitySymbol"); + late final _sel_setPositiveInfinitySymbol_1 = + _registerName1("setPositiveInfinitySymbol:"); + late final _sel_textAttributesForPositiveInfinity1 = + _registerName1("textAttributesForPositiveInfinity"); + late final _sel_setTextAttributesForPositiveInfinity_1 = + _registerName1("setTextAttributesForPositiveInfinity:"); + late final _sel_negativeInfinitySymbol1 = + _registerName1("negativeInfinitySymbol"); + late final _sel_setNegativeInfinitySymbol_1 = + _registerName1("setNegativeInfinitySymbol:"); + late final _sel_textAttributesForNegativeInfinity1 = + _registerName1("textAttributesForNegativeInfinity"); + late final _sel_setTextAttributesForNegativeInfinity_1 = + _registerName1("setTextAttributesForNegativeInfinity:"); + late final _sel_positivePrefix1 = _registerName1("positivePrefix"); + late final _sel_setPositivePrefix_1 = _registerName1("setPositivePrefix:"); + late final _sel_positiveSuffix1 = _registerName1("positiveSuffix"); + late final _sel_setPositiveSuffix_1 = _registerName1("setPositiveSuffix:"); + late final _sel_negativePrefix1 = _registerName1("negativePrefix"); + late final _sel_setNegativePrefix_1 = _registerName1("setNegativePrefix:"); + late final _sel_negativeSuffix1 = _registerName1("negativeSuffix"); + late final _sel_setNegativeSuffix_1 = _registerName1("setNegativeSuffix:"); + late final _sel_setCurrencyCode_1 = _registerName1("setCurrencyCode:"); + late final _sel_setCurrencySymbol_1 = _registerName1("setCurrencySymbol:"); + late final _sel_internationalCurrencySymbol1 = + _registerName1("internationalCurrencySymbol"); + late final _sel_setInternationalCurrencySymbol_1 = + _registerName1("setInternationalCurrencySymbol:"); + late final _sel_percentSymbol1 = _registerName1("percentSymbol"); + late final _sel_setPercentSymbol_1 = _registerName1("setPercentSymbol:"); + late final _sel_perMillSymbol1 = _registerName1("perMillSymbol"); + late final _sel_setPerMillSymbol_1 = _registerName1("setPerMillSymbol:"); + late final _sel_minusSign1 = _registerName1("minusSign"); + late final _sel_setMinusSign_1 = _registerName1("setMinusSign:"); + late final _sel_plusSign1 = _registerName1("plusSign"); + late final _sel_setPlusSign_1 = _registerName1("setPlusSign:"); + late final _sel_exponentSymbol1 = _registerName1("exponentSymbol"); + late final _sel_setExponentSymbol_1 = _registerName1("setExponentSymbol:"); + late final _sel_groupingSize1 = _registerName1("groupingSize"); + late final _sel_setGroupingSize_1 = _registerName1("setGroupingSize:"); + late final _sel_secondaryGroupingSize1 = + _registerName1("secondaryGroupingSize"); + late final _sel_setSecondaryGroupingSize_1 = + _registerName1("setSecondaryGroupingSize:"); + late final _sel_multiplier1 = _registerName1("multiplier"); + late final _sel_setMultiplier_1 = _registerName1("setMultiplier:"); + late final _sel_formatWidth1 = _registerName1("formatWidth"); + late final _sel_setFormatWidth_1 = _registerName1("setFormatWidth:"); + late final _sel_paddingCharacter1 = _registerName1("paddingCharacter"); + late final _sel_setPaddingCharacter_1 = + _registerName1("setPaddingCharacter:"); + late final _sel_paddingPosition1 = _registerName1("paddingPosition"); + int _objc_msgSend_740( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_740( + obj, + sel, + ); + } + + late final __objc_msgSend_740Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_740 = __objc_msgSend_740Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setPaddingPosition_1 = _registerName1("setPaddingPosition:"); + void _objc_msgSend_741( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_741( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_741Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_741 = __objc_msgSend_741Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_roundingMode1 = _registerName1("roundingMode"); + int _objc_msgSend_742( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_742( + obj, + sel, + ); + } + + late final __objc_msgSend_742Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_742 = __objc_msgSend_742Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setRoundingMode_1 = _registerName1("setRoundingMode:"); + void _objc_msgSend_743( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_743( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_743Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_743 = __objc_msgSend_743Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_roundingIncrement1 = _registerName1("roundingIncrement"); + late final _sel_setRoundingIncrement_1 = + _registerName1("setRoundingIncrement:"); + late final _sel_minimumIntegerDigits1 = + _registerName1("minimumIntegerDigits"); + late final _sel_setMinimumIntegerDigits_1 = + _registerName1("setMinimumIntegerDigits:"); + late final _sel_maximumIntegerDigits1 = + _registerName1("maximumIntegerDigits"); + late final _sel_setMaximumIntegerDigits_1 = + _registerName1("setMaximumIntegerDigits:"); + late final _sel_minimumFractionDigits1 = + _registerName1("minimumFractionDigits"); + late final _sel_setMinimumFractionDigits_1 = + _registerName1("setMinimumFractionDigits:"); + late final _sel_maximumFractionDigits1 = + _registerName1("maximumFractionDigits"); + late final _sel_setMaximumFractionDigits_1 = + _registerName1("setMaximumFractionDigits:"); + late final _sel_minimum1 = _registerName1("minimum"); + late final _sel_setMinimum_1 = _registerName1("setMinimum:"); + late final _sel_maximum1 = _registerName1("maximum"); + late final _sel_setMaximum_1 = _registerName1("setMaximum:"); + late final _sel_currencyGroupingSeparator1 = + _registerName1("currencyGroupingSeparator"); + late final _sel_setCurrencyGroupingSeparator_1 = + _registerName1("setCurrencyGroupingSeparator:"); + late final _sel_usesSignificantDigits1 = + _registerName1("usesSignificantDigits"); + late final _sel_setUsesSignificantDigits_1 = + _registerName1("setUsesSignificantDigits:"); + late final _sel_minimumSignificantDigits1 = + _registerName1("minimumSignificantDigits"); + late final _sel_setMinimumSignificantDigits_1 = + _registerName1("setMinimumSignificantDigits:"); + late final _sel_maximumSignificantDigits1 = + _registerName1("maximumSignificantDigits"); + late final _sel_setMaximumSignificantDigits_1 = + _registerName1("setMaximumSignificantDigits:"); + late final _sel_isPartialStringValidationEnabled1 = + _registerName1("isPartialStringValidationEnabled"); + late final _sel_setPartialStringValidationEnabled_1 = + _registerName1("setPartialStringValidationEnabled:"); + late final _sel_hasThousandSeparators1 = + _registerName1("hasThousandSeparators"); + late final _sel_setHasThousandSeparators_1 = + _registerName1("setHasThousandSeparators:"); + late final _sel_thousandSeparator1 = _registerName1("thousandSeparator"); + late final _sel_setThousandSeparator_1 = + _registerName1("setThousandSeparator:"); + late final _sel_localizesFormat1 = _registerName1("localizesFormat"); + late final _sel_setLocalizesFormat_1 = _registerName1("setLocalizesFormat:"); + late final _sel_format1 = _registerName1("format"); + late final _sel_setFormat_1 = _registerName1("setFormat:"); + late final _sel_attributedStringForZero1 = + _registerName1("attributedStringForZero"); + late final _sel_setAttributedStringForZero_1 = + _registerName1("setAttributedStringForZero:"); + void _objc_msgSend_744( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_744( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_744Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_744 = __objc_msgSend_744Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_attributedStringForNil1 = + _registerName1("attributedStringForNil"); + late final _sel_setAttributedStringForNil_1 = + _registerName1("setAttributedStringForNil:"); + late final _sel_attributedStringForNotANumber1 = + _registerName1("attributedStringForNotANumber"); + late final _sel_setAttributedStringForNotANumber_1 = + _registerName1("setAttributedStringForNotANumber:"); + late final _class_NSDecimalNumberHandler1 = + _getClass1("NSDecimalNumberHandler"); + late final _sel_defaultDecimalNumberHandler1 = + _registerName1("defaultDecimalNumberHandler"); + ffi.Pointer _objc_msgSend_745( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_745( + obj, + sel, + ); + } + + late final __objc_msgSend_745Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_745 = __objc_msgSend_745Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_initWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1 = + _registerName1( + "initWithRoundingMode:scale:raiseOnExactness:raiseOnOverflow:raiseOnUnderflow:raiseOnDivideByZero:"); + instancetype _objc_msgSend_746( + ffi.Pointer obj, + ffi.Pointer sel, + int roundingMode, + int scale, + bool exact, + bool overflow, + bool underflow, + bool divideByZero, + ) { + return __objc_msgSend_746( + obj, + sel, + roundingMode, + scale, + exact, + overflow, + underflow, + divideByZero, + ); + } + + late final __objc_msgSend_746Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Short, + ffi.Bool, + ffi.Bool, + ffi.Bool, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_746 = __objc_msgSend_746Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, int, + int, bool, bool, bool, bool)>(); + + late final _sel_decimalNumberHandlerWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1 = + _registerName1( + "decimalNumberHandlerWithRoundingMode:scale:raiseOnExactness:raiseOnOverflow:raiseOnUnderflow:raiseOnDivideByZero:"); + late final _sel_roundingBehavior1 = _registerName1("roundingBehavior"); + late final _sel_setRoundingBehavior_1 = + _registerName1("setRoundingBehavior:"); + void _objc_msgSend_747( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_747( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_747Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_747 = __objc_msgSend_747Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _class_NSScanner1 = _getClass1("NSScanner"); + late final _sel_scanLocation1 = _registerName1("scanLocation"); + late final _sel_setScanLocation_1 = _registerName1("setScanLocation:"); + late final _sel_charactersToBeSkipped1 = + _registerName1("charactersToBeSkipped"); + late final _sel_setCharactersToBeSkipped_1 = + _registerName1("setCharactersToBeSkipped:"); + void _objc_msgSend_748( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_748( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_748Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_748 = __objc_msgSend_748Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_caseSensitive1 = _registerName1("caseSensitive"); + late final _sel_setCaseSensitive_1 = _registerName1("setCaseSensitive:"); + late final _sel_scanInt_1 = _registerName1("scanInt:"); + bool _objc_msgSend_749( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer result, + ) { + return __objc_msgSend_749( + obj, + sel, + result, + ); + } + + late final __objc_msgSend_749Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_749 = __objc_msgSend_749Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_scanInteger_1 = _registerName1("scanInteger:"); + bool _objc_msgSend_750( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer result, + ) { + return __objc_msgSend_750( + obj, + sel, + result, + ); + } + + late final __objc_msgSend_750Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_750 = __objc_msgSend_750Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_scanLongLong_1 = _registerName1("scanLongLong:"); + bool _objc_msgSend_751( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer result, + ) { + return __objc_msgSend_751( + obj, + sel, + result, + ); + } + + late final __objc_msgSend_751Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_751 = __objc_msgSend_751Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_scanUnsignedLongLong_1 = + _registerName1("scanUnsignedLongLong:"); + bool _objc_msgSend_752( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer result, + ) { + return __objc_msgSend_752( + obj, + sel, + result, + ); + } + + late final __objc_msgSend_752Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_752 = __objc_msgSend_752Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_scanFloat_1 = _registerName1("scanFloat:"); + bool _objc_msgSend_753( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer result, + ) { + return __objc_msgSend_753( + obj, + sel, + result, + ); + } + + late final __objc_msgSend_753Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_753 = __objc_msgSend_753Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_scanDouble_1 = _registerName1("scanDouble:"); + bool _objc_msgSend_754( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer result, + ) { + return __objc_msgSend_754( + obj, + sel, + result, + ); + } + + late final __objc_msgSend_754Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_754 = __objc_msgSend_754Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_scanHexInt_1 = _registerName1("scanHexInt:"); + bool _objc_msgSend_755( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer result, + ) { + return __objc_msgSend_755( + obj, + sel, + result, + ); + } + + late final __objc_msgSend_755Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_755 = __objc_msgSend_755Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_scanHexLongLong_1 = _registerName1("scanHexLongLong:"); + late final _sel_scanHexFloat_1 = _registerName1("scanHexFloat:"); + late final _sel_scanHexDouble_1 = _registerName1("scanHexDouble:"); + late final _sel_scanString_intoString_1 = + _registerName1("scanString:intoString:"); + bool _objc_msgSend_756( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, + ffi.Pointer> result, + ) { + return __objc_msgSend_756( + obj, + sel, + string, + result, + ); + } + + late final __objc_msgSend_756Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_756 = __objc_msgSend_756Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>(); + + late final _sel_scanCharactersFromSet_intoString_1 = + _registerName1("scanCharactersFromSet:intoString:"); + bool _objc_msgSend_757( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer set1, + ffi.Pointer> result, + ) { + return __objc_msgSend_757( + obj, + sel, + set1, + result, + ); + } + + late final __objc_msgSend_757Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_757 = __objc_msgSend_757Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>(); + + late final _sel_scanUpToString_intoString_1 = + _registerName1("scanUpToString:intoString:"); + late final _sel_scanUpToCharactersFromSet_intoString_1 = + _registerName1("scanUpToCharactersFromSet:intoString:"); + late final _sel_isAtEnd1 = _registerName1("isAtEnd"); + late final _sel_scannerWithString_1 = _registerName1("scannerWithString:"); + late final _sel_localizedScannerWithString_1 = + _registerName1("localizedScannerWithString:"); + late final _sel_scanDecimal_1 = _registerName1("scanDecimal:"); + bool _objc_msgSend_758( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer dcm, + ) { + return __objc_msgSend_758( + obj, + sel, + dcm, + ); + } + + late final __objc_msgSend_758Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_758 = __objc_msgSend_758Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _class_NSException1 = _getClass1("NSException"); + late final _sel_exceptionWithName_reason_userInfo_1 = + _registerName1("exceptionWithName:reason:userInfo:"); + ffi.Pointer _objc_msgSend_759( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer reason, + ffi.Pointer userInfo, + ) { + return __objc_msgSend_759( + obj, + sel, + name, + reason, + userInfo, + ); + } + + late final __objc_msgSend_759Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_759 = __objc_msgSend_759Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_initWithName_reason_userInfo_1 = + _registerName1("initWithName:reason:userInfo:"); + late final _sel_reason1 = _registerName1("reason"); + late final _sel_raise1 = _registerName1("raise"); + late final _sel_raise_format_1 = _registerName1("raise:format:"); + late final _sel_raise_format_arguments_1 = + _registerName1("raise:format:arguments:"); + void _objc_msgSend_760( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer format, + ffi.Pointer<__va_list_tag> argList, + ) { + return __objc_msgSend_760( + obj, + sel, + name, + format, + argList, + ); + } + + late final __objc_msgSend_760Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); + late final __objc_msgSend_760 = __objc_msgSend_760Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__va_list_tag>)>(); + + late final _class_NSFileHandle1 = _getClass1("NSFileHandle"); + late final _sel_availableData1 = _registerName1("availableData"); + late final _sel_initWithFileDescriptor_closeOnDealloc_1 = + _registerName1("initWithFileDescriptor:closeOnDealloc:"); + instancetype _objc_msgSend_761( + ffi.Pointer obj, + ffi.Pointer sel, + int fd, + bool closeopt, + ) { + return __objc_msgSend_761( + obj, + sel, + fd, + closeopt, + ); + } + + late final __objc_msgSend_761Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Int, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_761 = __objc_msgSend_761Ptr.asFunction< + instancetype Function( + ffi.Pointer, ffi.Pointer, int, bool)>(); + + late final _sel_readDataToEndOfFileAndReturnError_1 = + _registerName1("readDataToEndOfFileAndReturnError:"); + ffi.Pointer _objc_msgSend_762( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> error, + ) { + return __objc_msgSend_762( + obj, + sel, + error, + ); + } + + late final __objc_msgSend_762Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_762 = __objc_msgSend_762Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>(); + + late final _sel_readDataUpToLength_error_1 = + _registerName1("readDataUpToLength:error:"); + ffi.Pointer _objc_msgSend_763( + ffi.Pointer obj, + ffi.Pointer sel, + int length, + ffi.Pointer> error, + ) { + return __objc_msgSend_763( + obj, + sel, + length, + error, + ); + } + + late final __objc_msgSend_763Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_763 = __objc_msgSend_763Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer>)>(); + + late final _sel_writeData_error_1 = _registerName1("writeData:error:"); + bool _objc_msgSend_764( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer data, + ffi.Pointer> error, + ) { + return __objc_msgSend_764( + obj, + sel, + data, + error, + ); + } + + late final __objc_msgSend_764Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_764 = __objc_msgSend_764Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>(); + + late final _sel_getOffset_error_1 = _registerName1("getOffset:error:"); + bool _objc_msgSend_765( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer offsetInFile, + ffi.Pointer> error, + ) { + return __objc_msgSend_765( + obj, + sel, + offsetInFile, + error, + ); + } + + late final __objc_msgSend_765Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_765 = __objc_msgSend_765Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_seekToEndReturningOffset_error_1 = + _registerName1("seekToEndReturningOffset:error:"); + late final _sel_seekToOffset_error_1 = _registerName1("seekToOffset:error:"); + bool _objc_msgSend_766( + ffi.Pointer obj, + ffi.Pointer sel, + int offset, + ffi.Pointer> error, + ) { + return __objc_msgSend_766( + obj, + sel, + offset, + error, + ); + } + + late final __objc_msgSend_766Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLongLong, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_766 = __objc_msgSend_766Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer>)>(); + + late final _sel_truncateAtOffset_error_1 = + _registerName1("truncateAtOffset:error:"); + late final _sel_synchronizeAndReturnError_1 = + _registerName1("synchronizeAndReturnError:"); + late final _sel_closeAndReturnError_1 = + _registerName1("closeAndReturnError:"); + late final _sel_fileHandleWithStandardInput1 = + _registerName1("fileHandleWithStandardInput"); + ffi.Pointer _objc_msgSend_767( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_767( + obj, + sel, + ); + } + + late final __objc_msgSend_767Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_767 = __objc_msgSend_767Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_fileHandleWithStandardOutput1 = + _registerName1("fileHandleWithStandardOutput"); + late final _sel_fileHandleWithStandardError1 = + _registerName1("fileHandleWithStandardError"); + late final _sel_fileHandleWithNullDevice1 = + _registerName1("fileHandleWithNullDevice"); + late final _sel_fileHandleForReadingAtPath_1 = + _registerName1("fileHandleForReadingAtPath:"); + late final _sel_fileHandleForWritingAtPath_1 = + _registerName1("fileHandleForWritingAtPath:"); + late final _sel_fileHandleForUpdatingAtPath_1 = + _registerName1("fileHandleForUpdatingAtPath:"); + late final _sel_fileHandleForReadingFromURL_error_1 = + _registerName1("fileHandleForReadingFromURL:error:"); + instancetype _objc_msgSend_768( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer> error, + ) { + return __objc_msgSend_768( + obj, + sel, + url, + error, + ); + } + + late final __objc_msgSend_768Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_768 = __objc_msgSend_768Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>(); + + late final _sel_fileHandleForWritingToURL_error_1 = + _registerName1("fileHandleForWritingToURL:error:"); + late final _sel_fileHandleForUpdatingURL_error_1 = + _registerName1("fileHandleForUpdatingURL:error:"); + late final _sel_readInBackgroundAndNotifyForModes_1 = + _registerName1("readInBackgroundAndNotifyForModes:"); + late final _sel_readInBackgroundAndNotify1 = + _registerName1("readInBackgroundAndNotify"); + late final _sel_readToEndOfFileInBackgroundAndNotifyForModes_1 = + _registerName1("readToEndOfFileInBackgroundAndNotifyForModes:"); + late final _sel_readToEndOfFileInBackgroundAndNotify1 = + _registerName1("readToEndOfFileInBackgroundAndNotify"); + late final _sel_acceptConnectionInBackgroundAndNotifyForModes_1 = + _registerName1("acceptConnectionInBackgroundAndNotifyForModes:"); + late final _sel_acceptConnectionInBackgroundAndNotify1 = + _registerName1("acceptConnectionInBackgroundAndNotify"); + late final _sel_waitForDataInBackgroundAndNotifyForModes_1 = + _registerName1("waitForDataInBackgroundAndNotifyForModes:"); + late final _sel_waitForDataInBackgroundAndNotify1 = + _registerName1("waitForDataInBackgroundAndNotify"); + late final _sel_readabilityHandler1 = _registerName1("readabilityHandler"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_769( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_769( + obj, + sel, + ); + } + + late final __objc_msgSend_769Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_769 = __objc_msgSend_769Ptr.asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setReadabilityHandler_1 = + _registerName1("setReadabilityHandler:"); + void _objc_msgSend_770( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> value, + ) { + return __objc_msgSend_770( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_770Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_770 = __objc_msgSend_770Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_writeabilityHandler1 = _registerName1("writeabilityHandler"); + late final _sel_setWriteabilityHandler_1 = + _registerName1("setWriteabilityHandler:"); + late final _sel_initWithFileDescriptor_1 = + _registerName1("initWithFileDescriptor:"); + instancetype _objc_msgSend_771( + ffi.Pointer obj, + ffi.Pointer sel, + int fd, + ) { + return __objc_msgSend_771( + obj, + sel, + fd, + ); + } + + late final __objc_msgSend_771Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Int)>>('objc_msgSend'); + late final __objc_msgSend_771 = __objc_msgSend_771Ptr.asFunction< + instancetype Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_fileDescriptor1 = _registerName1("fileDescriptor"); + late final _sel_readDataToEndOfFile1 = _registerName1("readDataToEndOfFile"); + late final _sel_readDataOfLength_1 = _registerName1("readDataOfLength:"); + late final _sel_offsetInFile1 = _registerName1("offsetInFile"); + late final _sel_seekToEndOfFile1 = _registerName1("seekToEndOfFile"); + late final _sel_seekToFileOffset_1 = _registerName1("seekToFileOffset:"); + void _objc_msgSend_772( + ffi.Pointer obj, + ffi.Pointer sel, + int offset, + ) { + return __objc_msgSend_772( + obj, + sel, + offset, + ); + } + + late final __objc_msgSend_772Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.UnsignedLongLong)>>('objc_msgSend'); + late final __objc_msgSend_772 = __objc_msgSend_772Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_truncateFileAtOffset_1 = + _registerName1("truncateFileAtOffset:"); + late final _sel_synchronizeFile1 = _registerName1("synchronizeFile"); + late final _sel_closeFile1 = _registerName1("closeFile"); + late final _class_NSHTTPCookieStorage1 = _getClass1("NSHTTPCookieStorage"); + late final _sel_sharedHTTPCookieStorage1 = + _registerName1("sharedHTTPCookieStorage"); + ffi.Pointer _objc_msgSend_773( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_773( + obj, + sel, + ); + } + + late final __objc_msgSend_773Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_773 = __objc_msgSend_773Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_sharedCookieStorageForGroupContainerIdentifier_1 = + _registerName1("sharedCookieStorageForGroupContainerIdentifier:"); + ffi.Pointer _objc_msgSend_774( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer identifier, + ) { + return __objc_msgSend_774( + obj, + sel, + identifier, + ); + } + + late final __objc_msgSend_774Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_774 = __objc_msgSend_774Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_cookies1 = _registerName1("cookies"); + late final _class_NSHTTPCookie1 = _getClass1("NSHTTPCookie"); + late final _sel_initWithProperties_1 = _registerName1("initWithProperties:"); + late final _sel_cookieWithProperties_1 = + _registerName1("cookieWithProperties:"); + ffi.Pointer _objc_msgSend_775( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer properties, + ) { + return __objc_msgSend_775( + obj, + sel, + properties, + ); + } + + late final __objc_msgSend_775Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_775 = __objc_msgSend_775Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_requestHeaderFieldsWithCookies_1 = + _registerName1("requestHeaderFieldsWithCookies:"); + late final _sel_cookiesWithResponseHeaderFields_forURL_1 = + _registerName1("cookiesWithResponseHeaderFields:forURL:"); + ffi.Pointer _objc_msgSend_776( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer headerFields, + ffi.Pointer URL, + ) { + return __objc_msgSend_776( + obj, + sel, + headerFields, + URL, + ); + } + + late final __objc_msgSend_776Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_776 = __objc_msgSend_776Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_properties1 = _registerName1("properties"); + late final _sel_value1 = _registerName1("value"); + late final _sel_expiresDate1 = _registerName1("expiresDate"); + late final _sel_isSessionOnly1 = _registerName1("isSessionOnly"); + late final _sel_isSecure1 = _registerName1("isSecure"); + late final _sel_isHTTPOnly1 = _registerName1("isHTTPOnly"); + late final _sel_comment1 = _registerName1("comment"); + late final _sel_commentURL1 = _registerName1("commentURL"); + late final _sel_portList1 = _registerName1("portList"); + late final _sel_sameSitePolicy1 = _registerName1("sameSitePolicy"); + late final _sel_setCookie_1 = _registerName1("setCookie:"); + void _objc_msgSend_777( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer cookie, + ) { + return __objc_msgSend_777( + obj, + sel, + cookie, + ); + } + + late final __objc_msgSend_777Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_777 = __objc_msgSend_777Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_deleteCookie_1 = _registerName1("deleteCookie:"); + late final _sel_removeCookiesSinceDate_1 = + _registerName1("removeCookiesSinceDate:"); + late final _sel_cookiesForURL_1 = _registerName1("cookiesForURL:"); + late final _sel_setCookies_forURL_mainDocumentURL_1 = + _registerName1("setCookies:forURL:mainDocumentURL:"); + void _objc_msgSend_778( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer cookies, + ffi.Pointer URL, + ffi.Pointer mainDocumentURL, + ) { + return __objc_msgSend_778( + obj, + sel, + cookies, + URL, + mainDocumentURL, + ); + } + + late final __objc_msgSend_778Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_778 = __objc_msgSend_778Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_cookieAcceptPolicy1 = _registerName1("cookieAcceptPolicy"); + int _objc_msgSend_779( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_779( + obj, + sel, + ); + } + + late final __objc_msgSend_779Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_779 = __objc_msgSend_779Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setCookieAcceptPolicy_1 = + _registerName1("setCookieAcceptPolicy:"); + void _objc_msgSend_780( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_780( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_780Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_780 = __objc_msgSend_780Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_sortedCookiesUsingDescriptors_1 = + _registerName1("sortedCookiesUsingDescriptors:"); + late final _class_NSURLSessionTask1 = _getClass1("NSURLSessionTask"); + late final _sel_taskIdentifier1 = _registerName1("taskIdentifier"); + late final _class_NSURLRequest1 = _getClass1("NSURLRequest"); + late final _sel_requestWithURL_1 = _registerName1("requestWithURL:"); + late final _sel_supportsSecureCoding1 = + _registerName1("supportsSecureCoding"); + late final _sel_requestWithURL_cachePolicy_timeoutInterval_1 = + _registerName1("requestWithURL:cachePolicy:timeoutInterval:"); + instancetype _objc_msgSend_781( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer URL, + int cachePolicy, + double timeoutInterval, + ) { + return __objc_msgSend_781( + obj, + sel, + URL, + cachePolicy, + timeoutInterval, + ); + } + + late final __objc_msgSend_781Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32, ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_781 = __objc_msgSend_781Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, double)>(); + + late final _sel_initWithURL_cachePolicy_timeoutInterval_1 = + _registerName1("initWithURL:cachePolicy:timeoutInterval:"); + late final _sel_URL1 = _registerName1("URL"); + late final _sel_cachePolicy1 = _registerName1("cachePolicy"); + int _objc_msgSend_782( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_782( + obj, + sel, + ); + } + + late final __objc_msgSend_782Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_782 = __objc_msgSend_782Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_timeoutInterval1 = _registerName1("timeoutInterval"); + late final _sel_mainDocumentURL1 = _registerName1("mainDocumentURL"); + late final _sel_networkServiceType1 = _registerName1("networkServiceType"); + int _objc_msgSend_783( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_783( + obj, + sel, + ); + } + + late final __objc_msgSend_783Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_783 = __objc_msgSend_783Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_allowsCellularAccess1 = + _registerName1("allowsCellularAccess"); + late final _sel_allowsExpensiveNetworkAccess1 = + _registerName1("allowsExpensiveNetworkAccess"); + late final _sel_allowsConstrainedNetworkAccess1 = + _registerName1("allowsConstrainedNetworkAccess"); + late final _sel_assumesHTTP3Capable1 = _registerName1("assumesHTTP3Capable"); + late final _sel_attribution1 = _registerName1("attribution"); + int _objc_msgSend_784( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_784( + obj, + sel, + ); + } + + late final __objc_msgSend_784Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_784 = __objc_msgSend_784Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_requiresDNSSECValidation1 = + _registerName1("requiresDNSSECValidation"); + late final _sel_HTTPMethod1 = _registerName1("HTTPMethod"); + late final _sel_allHTTPHeaderFields1 = _registerName1("allHTTPHeaderFields"); + late final _sel_valueForHTTPHeaderField_1 = + _registerName1("valueForHTTPHeaderField:"); + late final _sel_HTTPBody1 = _registerName1("HTTPBody"); + late final _class_NSInputStream1 = _getClass1("NSInputStream"); + late final _class_NSStream1 = _getClass1("NSStream"); + late final _sel_open1 = _registerName1("open"); + late final _sel_close1 = _registerName1("close"); + late final _sel_streamStatus1 = _registerName1("streamStatus"); + int _objc_msgSend_785( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_785( + obj, + sel, + ); + } + + late final __objc_msgSend_785Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_785 = __objc_msgSend_785Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_streamError1 = _registerName1("streamError"); + late final _class_NSOutputStream1 = _getClass1("NSOutputStream"); + late final _sel_write_maxLength_1 = _registerName1("write:maxLength:"); + int _objc_msgSend_786( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer buffer, + int len, + ) { + return __objc_msgSend_786( + obj, + sel, + buffer, + len, + ); + } + + late final __objc_msgSend_786Ptr = _lookup< + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_786 = __objc_msgSend_786Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_hasSpaceAvailable1 = _registerName1("hasSpaceAvailable"); + late final _sel_initToMemory1 = _registerName1("initToMemory"); + late final _sel_initToBuffer_capacity_1 = + _registerName1("initToBuffer:capacity:"); + instancetype _objc_msgSend_787( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer buffer, + int capacity, + ) { + return __objc_msgSend_787( + obj, + sel, + buffer, + capacity, + ); + } + + late final __objc_msgSend_787Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_787 = __objc_msgSend_787Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_initWithURL_append_1 = _registerName1("initWithURL:append:"); + late final _sel_initToFileAtPath_append_1 = + _registerName1("initToFileAtPath:append:"); + late final _sel_outputStreamToMemory1 = + _registerName1("outputStreamToMemory"); + late final _sel_outputStreamToBuffer_capacity_1 = + _registerName1("outputStreamToBuffer:capacity:"); + late final _sel_outputStreamToFileAtPath_append_1 = + _registerName1("outputStreamToFileAtPath:append:"); + late final _sel_outputStreamWithURL_append_1 = + _registerName1("outputStreamWithURL:append:"); + late final _sel_getStreamsToHostWithName_port_inputStream_outputStream_1 = + _registerName1("getStreamsToHostWithName:port:inputStream:outputStream:"); + void _objc_msgSend_788( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer hostname, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream, + ) { + return __objc_msgSend_788( + obj, + sel, + hostname, + port, + inputStream, + outputStream, + ); + } + + late final __objc_msgSend_788Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer>, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_788 = __objc_msgSend_788Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ffi.Pointer>)>(); + + late final _class_NSHost1 = _getClass1("NSHost"); + late final _sel_currentHost1 = _registerName1("currentHost"); + late final _sel_hostWithName_1 = _registerName1("hostWithName:"); + late final _sel_hostWithAddress_1 = _registerName1("hostWithAddress:"); + late final _sel_isEqualToHost_1 = _registerName1("isEqualToHost:"); + bool _objc_msgSend_789( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer aHost, + ) { + return __objc_msgSend_789( + obj, + sel, + aHost, + ); + } + + late final __objc_msgSend_789Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_789 = __objc_msgSend_789Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_names1 = _registerName1("names"); + late final _sel_address1 = _registerName1("address"); + late final _sel_addresses1 = _registerName1("addresses"); + late final _sel_localizedName1 = _registerName1("localizedName"); + late final _sel_setHostCacheEnabled_1 = + _registerName1("setHostCacheEnabled:"); + void _objc_msgSend_790( + ffi.Pointer obj, + ffi.Pointer sel, + bool flag, + ) { + return __objc_msgSend_790( + obj, + sel, + flag, + ); + } + + late final __objc_msgSend_790Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_790 = __objc_msgSend_790Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, bool)>(); + + late final _sel_isHostCacheEnabled1 = _registerName1("isHostCacheEnabled"); + late final _sel_flushHostCache1 = _registerName1("flushHostCache"); + late final _sel_getStreamsToHost_port_inputStream_outputStream_1 = + _registerName1("getStreamsToHost:port:inputStream:outputStream:"); + void _objc_msgSend_791( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer host, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream, + ) { + return __objc_msgSend_791( + obj, + sel, + host, + port, + inputStream, + outputStream, + ); + } + + late final __objc_msgSend_791Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer>, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_791 = __objc_msgSend_791Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ffi.Pointer>)>(); + + late final _sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1 = + _registerName1("getBoundStreamsWithBufferSize:inputStream:outputStream:"); + void _objc_msgSend_792( + ffi.Pointer obj, + ffi.Pointer sel, + int bufferSize, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream, + ) { + return __objc_msgSend_792( + obj, + sel, + bufferSize, + inputStream, + outputStream, + ); + } + + late final __objc_msgSend_792Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_792 = __objc_msgSend_792Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ffi.Pointer>)>(); + + late final _sel_read_maxLength_1 = _registerName1("read:maxLength:"); + late final _sel_getBuffer_length_1 = _registerName1("getBuffer:length:"); + bool _objc_msgSend_793( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> buffer, + ffi.Pointer len, + ) { + return __objc_msgSend_793( + obj, + sel, + buffer, + len, + ); + } + + late final __objc_msgSend_793Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_793 = __objc_msgSend_793Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer)>(); + + late final _sel_hasBytesAvailable1 = _registerName1("hasBytesAvailable"); + late final _sel_initWithFileAtPath_1 = _registerName1("initWithFileAtPath:"); + late final _sel_inputStreamWithData_1 = + _registerName1("inputStreamWithData:"); + late final _sel_inputStreamWithFileAtPath_1 = + _registerName1("inputStreamWithFileAtPath:"); + late final _sel_inputStreamWithURL_1 = _registerName1("inputStreamWithURL:"); + late final _sel_HTTPBodyStream1 = _registerName1("HTTPBodyStream"); + ffi.Pointer _objc_msgSend_794( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_794( + obj, + sel, + ); + } + + late final __objc_msgSend_794Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_794 = __objc_msgSend_794Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_HTTPShouldHandleCookies1 = + _registerName1("HTTPShouldHandleCookies"); + late final _sel_HTTPShouldUsePipelining1 = + _registerName1("HTTPShouldUsePipelining"); + late final _sel_originalRequest1 = _registerName1("originalRequest"); + ffi.Pointer _objc_msgSend_795( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_795( + obj, + sel, + ); + } + + late final __objc_msgSend_795Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_795 = __objc_msgSend_795Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_currentRequest1 = _registerName1("currentRequest"); + late final _class_NSURLResponse1 = _getClass1("NSURLResponse"); + late final _sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1 = + _registerName1( + "initWithURL:MIMEType:expectedContentLength:textEncodingName:"); + instancetype _objc_msgSend_796( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer URL, + ffi.Pointer MIMEType, + int length, + ffi.Pointer name, + ) { + return __objc_msgSend_796( + obj, + sel, + URL, + MIMEType, + length, + name, + ); + } + + late final __objc_msgSend_796Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_796 = __objc_msgSend_796Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer)>(); + + late final _sel_MIMEType1 = _registerName1("MIMEType"); + late final _sel_expectedContentLength1 = + _registerName1("expectedContentLength"); + late final _sel_textEncodingName1 = _registerName1("textEncodingName"); + late final _sel_suggestedFilename1 = _registerName1("suggestedFilename"); + late final _sel_response1 = _registerName1("response"); + ffi.Pointer _objc_msgSend_797( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_797( + obj, + sel, + ); + } + + late final __objc_msgSend_797Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_797 = __objc_msgSend_797Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_progress1 = _registerName1("progress"); + late final _sel_earliestBeginDate1 = _registerName1("earliestBeginDate"); + late final _sel_setEarliestBeginDate_1 = + _registerName1("setEarliestBeginDate:"); + late final _sel_countOfBytesClientExpectsToSend1 = + _registerName1("countOfBytesClientExpectsToSend"); + late final _sel_setCountOfBytesClientExpectsToSend_1 = + _registerName1("setCountOfBytesClientExpectsToSend:"); + late final _sel_countOfBytesClientExpectsToReceive1 = + _registerName1("countOfBytesClientExpectsToReceive"); + late final _sel_setCountOfBytesClientExpectsToReceive_1 = + _registerName1("setCountOfBytesClientExpectsToReceive:"); + late final _sel_countOfBytesSent1 = _registerName1("countOfBytesSent"); + late final _sel_countOfBytesReceived1 = + _registerName1("countOfBytesReceived"); + late final _sel_countOfBytesExpectedToSend1 = + _registerName1("countOfBytesExpectedToSend"); + late final _sel_countOfBytesExpectedToReceive1 = + _registerName1("countOfBytesExpectedToReceive"); + late final _sel_taskDescription1 = _registerName1("taskDescription"); + late final _sel_setTaskDescription_1 = _registerName1("setTaskDescription:"); + late final _sel_state1 = _registerName1("state"); + int _objc_msgSend_798( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_798( + obj, + sel, + ); + } + + late final __objc_msgSend_798Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_798 = __objc_msgSend_798Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_suspend1 = _registerName1("suspend"); + late final _sel_priority1 = _registerName1("priority"); + late final _sel_setPriority_1 = _registerName1("setPriority:"); + void _objc_msgSend_799( + ffi.Pointer obj, + ffi.Pointer sel, + double value, + ) { + return __objc_msgSend_799( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_799Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Float)>>('objc_msgSend'); + late final __objc_msgSend_799 = __objc_msgSend_799Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, double)>(); + + late final _sel_prefersIncrementalDelivery1 = + _registerName1("prefersIncrementalDelivery"); + late final _sel_setPrefersIncrementalDelivery_1 = + _registerName1("setPrefersIncrementalDelivery:"); + late final _sel_storeCookies_forTask_1 = + _registerName1("storeCookies:forTask:"); + void _objc_msgSend_800( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer cookies, + ffi.Pointer task, + ) { + return __objc_msgSend_800( + obj, + sel, + cookies, + task, + ); + } + + late final __objc_msgSend_800Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_800 = __objc_msgSend_800Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_getCookiesForTask_completionHandler_1 = + _registerName1("getCookiesForTask:completionHandler:"); + void _objc_msgSend_801( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer task, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_801( + obj, + sel, + task, + completionHandler, + ); + } + + late final __objc_msgSend_801Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_801 = __objc_msgSend_801Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _class_NSIndexPath1 = _getClass1("NSIndexPath"); + late final _sel_indexPathWithIndex_1 = _registerName1("indexPathWithIndex:"); + late final _sel_indexPathWithIndexes_length_1 = + _registerName1("indexPathWithIndexes:length:"); + instancetype _objc_msgSend_802( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer indexes, + int length, + ) { + return __objc_msgSend_802( + obj, + sel, + indexes, + length, + ); + } + + late final __objc_msgSend_802Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_802 = __objc_msgSend_802Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_initWithIndexes_length_1 = + _registerName1("initWithIndexes:length:"); + late final _sel_indexPathByAddingIndex_1 = + _registerName1("indexPathByAddingIndex:"); + ffi.Pointer _objc_msgSend_803( + ffi.Pointer obj, + ffi.Pointer sel, + int index, + ) { + return __objc_msgSend_803( + obj, + sel, + index, + ); + } + + late final __objc_msgSend_803Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_803 = __objc_msgSend_803Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_indexPathByRemovingLastIndex1 = + _registerName1("indexPathByRemovingLastIndex"); + ffi.Pointer _objc_msgSend_804( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_804( + obj, + sel, + ); + } + + late final __objc_msgSend_804Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_804 = __objc_msgSend_804Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_indexAtPosition_1 = _registerName1("indexAtPosition:"); + late final _sel_getIndexes_range_1 = _registerName1("getIndexes:range:"); + void _objc_msgSend_805( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer indexes, + _NSRange positionRange, + ) { + return __objc_msgSend_805( + obj, + sel, + indexes, + positionRange, + ); + } + + late final __objc_msgSend_805Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_805 = __objc_msgSend_805Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>(); + + int _objc_msgSend_806( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer otherObject, + ) { + return __objc_msgSend_806( + obj, + sel, + otherObject, + ); + } + + late final __objc_msgSend_806Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_806 = __objc_msgSend_806Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_getIndexes_1 = _registerName1("getIndexes:"); + void _objc_msgSend_807( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer indexes, + ) { + return __objc_msgSend_807( + obj, + sel, + indexes, + ); + } + + late final __objc_msgSend_807Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_807 = __objc_msgSend_807Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _class_NSInflectionRule1 = _getClass1("NSInflectionRule"); + late final _sel_automaticRule1 = _registerName1("automaticRule"); + ffi.Pointer _objc_msgSend_808( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_808( + obj, + sel, + ); + } + + late final __objc_msgSend_808Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_808 = __objc_msgSend_808Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_canInflectLanguage_1 = _registerName1("canInflectLanguage:"); + late final _sel_canInflectPreferredLocalization1 = + _registerName1("canInflectPreferredLocalization"); + late final _class_NSMorphology1 = _getClass1("NSMorphology"); + late final _sel_grammaticalGender1 = _registerName1("grammaticalGender"); + int _objc_msgSend_809( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_809( + obj, + sel, + ); + } + + late final __objc_msgSend_809Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_809 = __objc_msgSend_809Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setGrammaticalGender_1 = + _registerName1("setGrammaticalGender:"); + void _objc_msgSend_810( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_810( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_810Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_810 = __objc_msgSend_810Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_partOfSpeech1 = _registerName1("partOfSpeech"); + int _objc_msgSend_811( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_811( + obj, + sel, + ); + } + + late final __objc_msgSend_811Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_811 = __objc_msgSend_811Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setPartOfSpeech_1 = _registerName1("setPartOfSpeech:"); + void _objc_msgSend_812( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_812( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_812Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_812 = __objc_msgSend_812Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_number1 = _registerName1("number"); + int _objc_msgSend_813( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_813( + obj, + sel, + ); + } + + late final __objc_msgSend_813Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_813 = __objc_msgSend_813Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setNumber_1 = _registerName1("setNumber:"); + void _objc_msgSend_814( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_814( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_814Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_814 = __objc_msgSend_814Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _class_NSMorphologyCustomPronoun1 = + _getClass1("NSMorphologyCustomPronoun"); + late final _sel_isSupportedForLanguage_1 = + _registerName1("isSupportedForLanguage:"); + late final _sel_requiredKeysForLanguage_1 = + _registerName1("requiredKeysForLanguage:"); + late final _sel_subjectForm1 = _registerName1("subjectForm"); + late final _sel_setSubjectForm_1 = _registerName1("setSubjectForm:"); + late final _sel_objectForm1 = _registerName1("objectForm"); + late final _sel_setObjectForm_1 = _registerName1("setObjectForm:"); + late final _sel_possessiveForm1 = _registerName1("possessiveForm"); + late final _sel_setPossessiveForm_1 = _registerName1("setPossessiveForm:"); + late final _sel_possessiveAdjectiveForm1 = + _registerName1("possessiveAdjectiveForm"); + late final _sel_setPossessiveAdjectiveForm_1 = + _registerName1("setPossessiveAdjectiveForm:"); + late final _sel_reflexiveForm1 = _registerName1("reflexiveForm"); + late final _sel_setReflexiveForm_1 = _registerName1("setReflexiveForm:"); + late final _sel_customPronounForLanguage_1 = + _registerName1("customPronounForLanguage:"); + ffi.Pointer _objc_msgSend_815( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer language, + ) { + return __objc_msgSend_815( + obj, + sel, + language, + ); + } + + late final __objc_msgSend_815Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_815 = __objc_msgSend_815Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setCustomPronoun_forLanguage_error_1 = + _registerName1("setCustomPronoun:forLanguage:error:"); + bool _objc_msgSend_816( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer features, + ffi.Pointer language, + ffi.Pointer> error, + ) { + return __objc_msgSend_816( + obj, + sel, + features, + language, + error, + ); + } + + late final __objc_msgSend_816Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_816 = __objc_msgSend_816Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_isUnspecified1 = _registerName1("isUnspecified"); + late final _sel_userMorphology1 = _registerName1("userMorphology"); + ffi.Pointer _objc_msgSend_817( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_817( + obj, + sel, + ); + } + + late final __objc_msgSend_817Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_817 = __objc_msgSend_817Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _class_NSOperationQueue1 = _getClass1("NSOperationQueue"); + late final _class_NSOperation1 = _getClass1("NSOperation"); + late final _sel_isConcurrent1 = _registerName1("isConcurrent"); + late final _sel_isAsynchronous1 = _registerName1("isAsynchronous"); + late final _sel_isReady1 = _registerName1("isReady"); + late final _sel_addDependency_1 = _registerName1("addDependency:"); + void _objc_msgSend_818( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer op, + ) { + return __objc_msgSend_818( + obj, + sel, + op, + ); + } + + late final __objc_msgSend_818Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_818 = __objc_msgSend_818Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_removeDependency_1 = _registerName1("removeDependency:"); + late final _sel_dependencies1 = _registerName1("dependencies"); + late final _sel_queuePriority1 = _registerName1("queuePriority"); + int _objc_msgSend_819( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_819( + obj, + sel, + ); + } + + late final __objc_msgSend_819Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_819 = __objc_msgSend_819Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setQueuePriority_1 = _registerName1("setQueuePriority:"); + void _objc_msgSend_820( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_820( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_820Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_820 = __objc_msgSend_820Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_completionBlock1 = _registerName1("completionBlock"); + late final _sel_setCompletionBlock_1 = _registerName1("setCompletionBlock:"); + late final _sel_waitUntilFinished1 = _registerName1("waitUntilFinished"); + late final _sel_addOperation_1 = _registerName1("addOperation:"); + late final _sel_addOperations_waitUntilFinished_1 = + _registerName1("addOperations:waitUntilFinished:"); + void _objc_msgSend_821( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer ops, + bool wait, + ) { + return __objc_msgSend_821( + obj, + sel, + ops, + wait, + ); + } + + late final __objc_msgSend_821Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_821 = __objc_msgSend_821Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); + + late final _sel_addOperationWithBlock_1 = + _registerName1("addOperationWithBlock:"); + late final _sel_addBarrierBlock_1 = _registerName1("addBarrierBlock:"); + late final _sel_maxConcurrentOperationCount1 = + _registerName1("maxConcurrentOperationCount"); + late final _sel_setMaxConcurrentOperationCount_1 = + _registerName1("setMaxConcurrentOperationCount:"); + late final _sel_isSuspended1 = _registerName1("isSuspended"); + late final _sel_setSuspended_1 = _registerName1("setSuspended:"); + late final _sel_underlyingQueue1 = _registerName1("underlyingQueue"); + ffi.Pointer _objc_msgSend_822( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_822( + obj, + sel, + ); + } + + late final __objc_msgSend_822Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_822 = __objc_msgSend_822Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setUnderlyingQueue_1 = _registerName1("setUnderlyingQueue:"); + void _objc_msgSend_823( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_823( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_823Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_823 = __objc_msgSend_823Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_cancelAllOperations1 = _registerName1("cancelAllOperations"); + late final _sel_waitUntilAllOperationsAreFinished1 = + _registerName1("waitUntilAllOperationsAreFinished"); + late final _sel_currentQueue1 = _registerName1("currentQueue"); + ffi.Pointer _objc_msgSend_824( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_824( + obj, + sel, + ); + } + + late final __objc_msgSend_824Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_824 = __objc_msgSend_824Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_mainQueue1 = _registerName1("mainQueue"); + late final _sel_operations1 = _registerName1("operations"); + late final _sel_operationCount1 = _registerName1("operationCount"); + late final _class_NSPointerArray1 = _getClass1("NSPointerArray"); + late final _sel_initWithOptions_1 = _registerName1("initWithOptions:"); + instancetype _objc_msgSend_825( + ffi.Pointer obj, + ffi.Pointer sel, + int options, + ) { + return __objc_msgSend_825( + obj, + sel, + options, + ); + } + + late final __objc_msgSend_825Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_825 = __objc_msgSend_825Ptr.asFunction< + instancetype Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _class_NSPointerFunctions1 = _getClass1("NSPointerFunctions"); + late final _sel_pointerFunctionsWithOptions_1 = + _registerName1("pointerFunctionsWithOptions:"); + ffi.Pointer _objc_msgSend_826( + ffi.Pointer obj, + ffi.Pointer sel, + int options, + ) { + return __objc_msgSend_826( + obj, + sel, + options, + ); + } + + late final __objc_msgSend_826Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_826 = __objc_msgSend_826Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_hashFunction1 = _registerName1("hashFunction"); + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + _objc_msgSend_827( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_827( + obj, + sel, + ); + } + + late final __objc_msgSend_827Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + Function(ffi.Pointer, ffi.Pointer)>>( + 'objc_msgSend'); + late final __objc_msgSend_827 = __objc_msgSend_827Ptr.asFunction< + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setHashFunction_1 = _registerName1("setHashFunction:"); + void _objc_msgSend_828( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + value, + ) { + return __objc_msgSend_828( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_828Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>>)>>( + 'objc_msgSend'); + late final __objc_msgSend_828 = __objc_msgSend_828Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>>)>(); + + late final _sel_isEqualFunction1 = _registerName1("isEqualFunction"); + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + _objc_msgSend_829( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_829( + obj, + sel, + ); + } + + late final __objc_msgSend_829Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + Function(ffi.Pointer, ffi.Pointer)>>( + 'objc_msgSend'); + late final __objc_msgSend_829 = __objc_msgSend_829Ptr.asFunction< + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setIsEqualFunction_1 = _registerName1("setIsEqualFunction:"); + void _objc_msgSend_830( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + value, + ) { + return __objc_msgSend_830( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_830Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>>)>>( + 'objc_msgSend'); + late final __objc_msgSend_830 = __objc_msgSend_830Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>>)>(); + + late final _sel_sizeFunction1 = _registerName1("sizeFunction"); + ffi.Pointer< + ffi.NativeFunction)>> + _objc_msgSend_831( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_831( + obj, + sel, + ); + } + + late final __objc_msgSend_831Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>> + Function(ffi.Pointer, ffi.Pointer)>>( + 'objc_msgSend'); + late final __objc_msgSend_831 = __objc_msgSend_831Ptr.asFunction< + ffi.Pointer< + ffi + .NativeFunction)>> + Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setSizeFunction_1 = _registerName1("setSizeFunction:"); + void _objc_msgSend_832( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer< + ffi + .NativeFunction)>> + value, + ) { + return __objc_msgSend_832( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_832Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>>('objc_msgSend'); + late final __objc_msgSend_832 = __objc_msgSend_832Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>)>(); + + late final _sel_descriptionFunction1 = _registerName1("descriptionFunction"); + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>> + _objc_msgSend_833( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_833( + obj, + sel, + ); + } + + late final __objc_msgSend_833Ptr = + _lookup< + ffi.NativeFunction< + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>> + Function(ffi.Pointer, ffi.Pointer)>>( + 'objc_msgSend'); + late final __objc_msgSend_833 = __objc_msgSend_833Ptr.asFunction< + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>> + Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setDescriptionFunction_1 = + _registerName1("setDescriptionFunction:"); + void _objc_msgSend_834( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>> + value, + ) { + return __objc_msgSend_834( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_834Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>)>>('objc_msgSend'); + late final __objc_msgSend_834 = __objc_msgSend_834Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>)>(); + + late final _sel_relinquishFunction1 = _registerName1("relinquishFunction"); + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + _objc_msgSend_835( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_835( + obj, + sel, + ); + } + + late final __objc_msgSend_835Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + Function(ffi.Pointer, ffi.Pointer)>>( + 'objc_msgSend'); + late final __objc_msgSend_835 = __objc_msgSend_835Ptr.asFunction< + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setRelinquishFunction_1 = + _registerName1("setRelinquishFunction:"); + void _objc_msgSend_836( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + value, + ) { + return __objc_msgSend_836( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_836Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>>)>>( + 'objc_msgSend'); + late final __objc_msgSend_836 = __objc_msgSend_836Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>>)>(); + + late final _sel_acquireFunction1 = _registerName1("acquireFunction"); + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>, + ffi.Bool)>> _objc_msgSend_837( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_837( + obj, + sel, + ); + } + + late final __objc_msgSend_837Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>, + ffi.Bool)>> + Function(ffi.Pointer, ffi.Pointer)>>( + 'objc_msgSend'); + late final __objc_msgSend_837 = __objc_msgSend_837Ptr.asFunction< + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>, + ffi.Bool)>> + Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setAcquireFunction_1 = _registerName1("setAcquireFunction:"); + void _objc_msgSend_838( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>, + ffi.Bool)>> + value, + ) { + return __objc_msgSend_838( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_838Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>, + ffi.Bool)>>)>>('objc_msgSend'); + late final __objc_msgSend_838 = __objc_msgSend_838Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>, + ffi.Bool)>>)>(); + + late final _sel_usesStrongWriteBarrier1 = + _registerName1("usesStrongWriteBarrier"); + late final _sel_setUsesStrongWriteBarrier_1 = + _registerName1("setUsesStrongWriteBarrier:"); + late final _sel_usesWeakReadAndWriteBarriers1 = + _registerName1("usesWeakReadAndWriteBarriers"); + late final _sel_setUsesWeakReadAndWriteBarriers_1 = + _registerName1("setUsesWeakReadAndWriteBarriers:"); + late final _sel_initWithPointerFunctions_1 = + _registerName1("initWithPointerFunctions:"); + instancetype _objc_msgSend_839( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer functions, + ) { + return __objc_msgSend_839( + obj, + sel, + functions, + ); + } + + late final __objc_msgSend_839Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_839 = __objc_msgSend_839Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_pointerArrayWithOptions_1 = + _registerName1("pointerArrayWithOptions:"); + ffi.Pointer _objc_msgSend_840( + ffi.Pointer obj, + ffi.Pointer sel, + int options, + ) { + return __objc_msgSend_840( + obj, + sel, + options, + ); + } + + late final __objc_msgSend_840Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_840 = __objc_msgSend_840Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_pointerArrayWithPointerFunctions_1 = + _registerName1("pointerArrayWithPointerFunctions:"); + ffi.Pointer _objc_msgSend_841( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer functions, + ) { + return __objc_msgSend_841( + obj, + sel, + functions, + ); + } + + late final __objc_msgSend_841Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_841 = __objc_msgSend_841Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_pointerFunctions1 = _registerName1("pointerFunctions"); + ffi.Pointer _objc_msgSend_842( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_842( + obj, + sel, + ); + } + + late final __objc_msgSend_842Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_842 = __objc_msgSend_842Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_pointerAtIndex_1 = _registerName1("pointerAtIndex:"); + ffi.Pointer _objc_msgSend_843( + ffi.Pointer obj, + ffi.Pointer sel, + int index, + ) { + return __objc_msgSend_843( + obj, + sel, + index, + ); + } + + late final __objc_msgSend_843Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_843 = __objc_msgSend_843Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_addPointer_1 = _registerName1("addPointer:"); + late final _sel_removePointerAtIndex_1 = + _registerName1("removePointerAtIndex:"); + late final _sel_insertPointer_atIndex_1 = + _registerName1("insertPointer:atIndex:"); + late final _sel_replacePointerAtIndex_withPointer_1 = + _registerName1("replacePointerAtIndex:withPointer:"); + void _objc_msgSend_844( + ffi.Pointer obj, + ffi.Pointer sel, + int index, + ffi.Pointer item, + ) { + return __objc_msgSend_844( + obj, + sel, + index, + item, + ); + } + + late final __objc_msgSend_844Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_844 = __objc_msgSend_844Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); + + late final _sel_compact1 = _registerName1("compact"); + late final _sel_setCount_1 = _registerName1("setCount:"); + late final _sel_pointerArrayWithStrongObjects1 = + _registerName1("pointerArrayWithStrongObjects"); + late final _sel_pointerArrayWithWeakObjects1 = + _registerName1("pointerArrayWithWeakObjects"); + late final _sel_strongObjectsPointerArray1 = + _registerName1("strongObjectsPointerArray"); + ffi.Pointer _objc_msgSend_845( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_845( + obj, + sel, + ); + } + + late final __objc_msgSend_845Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_845 = __objc_msgSend_845Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_weakObjectsPointerArray1 = + _registerName1("weakObjectsPointerArray"); + late final _class_NSProcessInfo1 = _getClass1("NSProcessInfo"); + late final _sel_processInfo1 = _registerName1("processInfo"); + ffi.Pointer _objc_msgSend_846( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_846( + obj, + sel, + ); + } + + late final __objc_msgSend_846Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_846 = __objc_msgSend_846Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_environment1 = _registerName1("environment"); + late final _sel_hostName1 = _registerName1("hostName"); + late final _sel_processName1 = _registerName1("processName"); + late final _sel_setProcessName_1 = _registerName1("setProcessName:"); + late final _sel_processIdentifier1 = _registerName1("processIdentifier"); + late final _sel_globallyUniqueString1 = + _registerName1("globallyUniqueString"); + late final _sel_operatingSystem1 = _registerName1("operatingSystem"); + late final _sel_operatingSystemName1 = _registerName1("operatingSystemName"); + late final _sel_operatingSystemVersionString1 = + _registerName1("operatingSystemVersionString"); + late final _sel_operatingSystemVersion1 = + _registerName1("operatingSystemVersion"); + NSOperatingSystemVersion _objc_msgSend_847( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_847( + obj, + sel, + ); + } + + late final __objc_msgSend_847Ptr = _lookup< + ffi.NativeFunction< + NSOperatingSystemVersion Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_847 = __objc_msgSend_847Ptr.asFunction< + NSOperatingSystemVersion Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_processorCount1 = _registerName1("processorCount"); + late final _sel_activeProcessorCount1 = + _registerName1("activeProcessorCount"); + late final _sel_physicalMemory1 = _registerName1("physicalMemory"); + late final _sel_isOperatingSystemAtLeastVersion_1 = + _registerName1("isOperatingSystemAtLeastVersion:"); + bool _objc_msgSend_848( + ffi.Pointer obj, + ffi.Pointer sel, + NSOperatingSystemVersion version, + ) { + return __objc_msgSend_848( + obj, + sel, + version, + ); + } + + late final __objc_msgSend_848Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + NSOperatingSystemVersion)>>('objc_msgSend'); + late final __objc_msgSend_848 = __objc_msgSend_848Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + NSOperatingSystemVersion)>(); + + late final _sel_systemUptime1 = _registerName1("systemUptime"); + late final _sel_disableSuddenTermination1 = + _registerName1("disableSuddenTermination"); + late final _sel_enableSuddenTermination1 = + _registerName1("enableSuddenTermination"); + late final _sel_disableAutomaticTermination_1 = + _registerName1("disableAutomaticTermination:"); + late final _sel_enableAutomaticTermination_1 = + _registerName1("enableAutomaticTermination:"); + late final _sel_automaticTerminationSupportEnabled1 = + _registerName1("automaticTerminationSupportEnabled"); + late final _sel_setAutomaticTerminationSupportEnabled_1 = + _registerName1("setAutomaticTerminationSupportEnabled:"); + late final _sel_beginActivityWithOptions_reason_1 = + _registerName1("beginActivityWithOptions:reason:"); + ffi.Pointer _objc_msgSend_849( + ffi.Pointer obj, + ffi.Pointer sel, + int options, + ffi.Pointer reason, + ) { + return __objc_msgSend_849( + obj, + sel, + options, + reason, + ); + } + + late final __objc_msgSend_849Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_849 = __objc_msgSend_849Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); + + late final _sel_endActivity_1 = _registerName1("endActivity:"); + late final _sel_performActivityWithOptions_reason_usingBlock_1 = + _registerName1("performActivityWithOptions:reason:usingBlock:"); + void _objc_msgSend_850( + ffi.Pointer obj, + ffi.Pointer sel, + int options, + ffi.Pointer reason, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_850( + obj, + sel, + options, + reason, + block, + ); + } + + late final __objc_msgSend_850Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_850 = __objc_msgSend_850Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_performExpiringActivityWithReason_usingBlock_1 = + _registerName1("performExpiringActivityWithReason:usingBlock:"); + void _objc_msgSend_851( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer reason, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_851( + obj, + sel, + reason, + block, + ); + } + + late final __objc_msgSend_851Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_851 = __objc_msgSend_851Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_userName1 = _registerName1("userName"); + late final _sel_fullUserName1 = _registerName1("fullUserName"); + late final _sel_thermalState1 = _registerName1("thermalState"); + int _objc_msgSend_852( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_852( + obj, + sel, + ); + } + + late final __objc_msgSend_852Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_852 = __objc_msgSend_852Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_isLowPowerModeEnabled1 = + _registerName1("isLowPowerModeEnabled"); + late final _sel_isMacCatalystApp1 = _registerName1("isMacCatalystApp"); + late final _sel_isiOSAppOnMac1 = _registerName1("isiOSAppOnMac"); + late final _class_NSTextCheckingResult1 = _getClass1("NSTextCheckingResult"); + late final _sel_resultType1 = _registerName1("resultType"); + int _objc_msgSend_853( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_853( + obj, + sel, + ); + } + + late final __objc_msgSend_853Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_853 = __objc_msgSend_853Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_range1 = _registerName1("range"); + late final _sel_orthography1 = _registerName1("orthography"); + ffi.Pointer _objc_msgSend_854( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_854( + obj, + sel, + ); + } + + late final __objc_msgSend_854Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_854 = __objc_msgSend_854Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_grammarDetails1 = _registerName1("grammarDetails"); + late final _sel_duration1 = _registerName1("duration"); + late final _sel_components1 = _registerName1("components"); + late final _sel_replacementString1 = _registerName1("replacementString"); + late final _sel_alternativeStrings1 = _registerName1("alternativeStrings"); + late final _class_NSRegularExpression1 = _getClass1("NSRegularExpression"); + late final _sel_regularExpressionWithPattern_options_error_1 = + _registerName1("regularExpressionWithPattern:options:error:"); + ffi.Pointer _objc_msgSend_855( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer pattern, + int options, + ffi.Pointer> error, + ) { + return __objc_msgSend_855( + obj, + sel, + pattern, + options, + error, + ); + } + + late final __objc_msgSend_855Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_855 = __objc_msgSend_855Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); + + late final _sel_initWithPattern_options_error_1 = + _registerName1("initWithPattern:options:error:"); + instancetype _objc_msgSend_856( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer pattern, + int options, + ffi.Pointer> error, + ) { + return __objc_msgSend_856( + obj, + sel, + pattern, + options, + error, + ); + } + + late final __objc_msgSend_856Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_856 = __objc_msgSend_856Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); + + late final _sel_pattern1 = _registerName1("pattern"); + late final _sel_options1 = _registerName1("options"); + int _objc_msgSend_857( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_857( + obj, + sel, + ); + } + + late final __objc_msgSend_857Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_857 = __objc_msgSend_857Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_numberOfCaptureGroups1 = + _registerName1("numberOfCaptureGroups"); + late final _sel_escapedPatternForString_1 = + _registerName1("escapedPatternForString:"); + late final _sel_enumerateMatchesInString_options_range_usingBlock_1 = + _registerName1("enumerateMatchesInString:options:range:usingBlock:"); + void _objc_msgSend_858( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, + int options, + _NSRange range, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_858( + obj, + sel, + string, + options, + range, + block, + ); + } + + late final __objc_msgSend_858Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_858 = __objc_msgSend_858Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, _NSRange, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_matchesInString_options_range_1 = + _registerName1("matchesInString:options:range:"); + ffi.Pointer _objc_msgSend_859( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, + int options, + _NSRange range, + ) { + return __objc_msgSend_859( + obj, + sel, + string, + options, + range, + ); + } + + late final __objc_msgSend_859Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_859 = __objc_msgSend_859Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); + + late final _sel_numberOfMatchesInString_options_range_1 = + _registerName1("numberOfMatchesInString:options:range:"); + int _objc_msgSend_860( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, + int options, + _NSRange range, + ) { + return __objc_msgSend_860( + obj, + sel, + string, + options, + range, + ); + } + + late final __objc_msgSend_860Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_860 = __objc_msgSend_860Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, _NSRange)>(); + + late final _sel_firstMatchInString_options_range_1 = + _registerName1("firstMatchInString:options:range:"); + ffi.Pointer _objc_msgSend_861( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, + int options, + _NSRange range, + ) { + return __objc_msgSend_861( + obj, + sel, + string, + options, + range, + ); + } + + late final __objc_msgSend_861Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_861 = __objc_msgSend_861Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); + + late final _sel_rangeOfFirstMatchInString_options_range_1 = + _registerName1("rangeOfFirstMatchInString:options:range:"); + _NSRange _objc_msgSend_862( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, + int options, + _NSRange range, + ) { + return __objc_msgSend_862( + obj, + sel, + string, + options, + range, + ); + } + + late final __objc_msgSend_862Ptr = _lookup< + ffi.NativeFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_862 = __objc_msgSend_862Ptr.asFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, _NSRange)>(); + + late final _sel_stringByReplacingMatchesInString_options_range_withTemplate_1 = + _registerName1( + "stringByReplacingMatchesInString:options:range:withTemplate:"); + ffi.Pointer _objc_msgSend_863( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, + int options, + _NSRange range, + ffi.Pointer templ, + ) { + return __objc_msgSend_863( + obj, + sel, + string, + options, + range, + templ, + ); + } + + late final __objc_msgSend_863Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_863 = __objc_msgSend_863Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + _NSRange, + ffi.Pointer)>(); + + late final _sel_replaceMatchesInString_options_range_withTemplate_1 = + _registerName1("replaceMatchesInString:options:range:withTemplate:"); + int _objc_msgSend_864( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, + int options, + _NSRange range, + ffi.Pointer templ, + ) { + return __objc_msgSend_864( + obj, + sel, + string, + options, + range, + templ, + ); + } + + late final __objc_msgSend_864Ptr = _lookup< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_864 = __objc_msgSend_864Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, _NSRange, ffi.Pointer)>(); + + late final _sel_replacementStringForResult_inString_offset_template_1 = + _registerName1("replacementStringForResult:inString:offset:template:"); + ffi.Pointer _objc_msgSend_865( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer result, + ffi.Pointer string, + int offset, + ffi.Pointer templ, + ) { + return __objc_msgSend_865( + obj, + sel, + result, + string, + offset, + templ, + ); + } + + late final __objc_msgSend_865Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_865 = __objc_msgSend_865Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer)>(); + + late final _sel_escapedTemplateForString_1 = + _registerName1("escapedTemplateForString:"); + late final _sel_regularExpression1 = _registerName1("regularExpression"); + ffi.Pointer _objc_msgSend_866( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_866( + obj, + sel, + ); + } + + late final __objc_msgSend_866Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_866 = __objc_msgSend_866Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_phoneNumber1 = _registerName1("phoneNumber"); + late final _sel_numberOfRanges1 = _registerName1("numberOfRanges"); + late final _sel_rangeAtIndex_1 = _registerName1("rangeAtIndex:"); + late final _sel_rangeWithName_1 = _registerName1("rangeWithName:"); + late final _sel_resultByAdjustingRangesWithOffset_1 = + _registerName1("resultByAdjustingRangesWithOffset:"); + ffi.Pointer _objc_msgSend_867( + ffi.Pointer obj, + ffi.Pointer sel, + int offset, + ) { + return __objc_msgSend_867( + obj, + sel, + offset, + ); + } + + late final __objc_msgSend_867Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_867 = __objc_msgSend_867Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_addressComponents1 = _registerName1("addressComponents"); + late final _sel_orthographyCheckingResultWithRange_orthography_1 = + _registerName1("orthographyCheckingResultWithRange:orthography:"); + ffi.Pointer _objc_msgSend_868( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ffi.Pointer orthography, + ) { + return __objc_msgSend_868( + obj, + sel, + range, + orthography, + ); + } + + late final __objc_msgSend_868Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_868 = __objc_msgSend_868Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, _NSRange, ffi.Pointer)>(); + + late final _sel_spellCheckingResultWithRange_1 = + _registerName1("spellCheckingResultWithRange:"); + ffi.Pointer _objc_msgSend_869( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ) { + return __objc_msgSend_869( + obj, + sel, + range, + ); + } + + late final __objc_msgSend_869Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); + late final __objc_msgSend_869 = __objc_msgSend_869Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, _NSRange)>(); + + late final _sel_grammarCheckingResultWithRange_details_1 = + _registerName1("grammarCheckingResultWithRange:details:"); + ffi.Pointer _objc_msgSend_870( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ffi.Pointer details, + ) { + return __objc_msgSend_870( + obj, + sel, + range, + details, + ); + } + + late final __objc_msgSend_870Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_870 = __objc_msgSend_870Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, _NSRange, ffi.Pointer)>(); + + late final _sel_dateCheckingResultWithRange_date_1 = + _registerName1("dateCheckingResultWithRange:date:"); + ffi.Pointer _objc_msgSend_871( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ffi.Pointer date, + ) { + return __objc_msgSend_871( + obj, + sel, + range, + date, + ); + } + + late final __objc_msgSend_871Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_871 = __objc_msgSend_871Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, _NSRange, ffi.Pointer)>(); + + late final _sel_dateCheckingResultWithRange_date_timeZone_duration_1 = + _registerName1("dateCheckingResultWithRange:date:timeZone:duration:"); + ffi.Pointer _objc_msgSend_872( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ffi.Pointer date, + ffi.Pointer timeZone, + double duration, + ) { + return __objc_msgSend_872( + obj, + sel, + range, + date, + timeZone, + duration, + ); + } + + late final __objc_msgSend_872Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer, + ffi.Pointer, + ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_872 = __objc_msgSend_872Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer, + ffi.Pointer, + double)>(); + + late final _sel_addressCheckingResultWithRange_components_1 = + _registerName1("addressCheckingResultWithRange:components:"); + ffi.Pointer _objc_msgSend_873( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ffi.Pointer components, + ) { + return __objc_msgSend_873( + obj, + sel, + range, + components, + ); + } + + late final __objc_msgSend_873Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_873 = __objc_msgSend_873Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, _NSRange, ffi.Pointer)>(); + + late final _sel_linkCheckingResultWithRange_URL_1 = + _registerName1("linkCheckingResultWithRange:URL:"); + ffi.Pointer _objc_msgSend_874( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ffi.Pointer url, + ) { + return __objc_msgSend_874( + obj, + sel, + range, + url, + ); + } + + late final __objc_msgSend_874Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_874 = __objc_msgSend_874Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, _NSRange, ffi.Pointer)>(); + + late final _sel_quoteCheckingResultWithRange_replacementString_1 = + _registerName1("quoteCheckingResultWithRange:replacementString:"); + ffi.Pointer _objc_msgSend_875( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ffi.Pointer replacementString, + ) { + return __objc_msgSend_875( + obj, + sel, + range, + replacementString, + ); + } + + late final __objc_msgSend_875Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_875 = __objc_msgSend_875Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, _NSRange, ffi.Pointer)>(); + + late final _sel_dashCheckingResultWithRange_replacementString_1 = + _registerName1("dashCheckingResultWithRange:replacementString:"); + late final _sel_replacementCheckingResultWithRange_replacementString_1 = + _registerName1("replacementCheckingResultWithRange:replacementString:"); + late final _sel_correctionCheckingResultWithRange_replacementString_1 = + _registerName1("correctionCheckingResultWithRange:replacementString:"); + late final _sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_1 = + _registerName1( + "correctionCheckingResultWithRange:replacementString:alternativeStrings:"); + ffi.Pointer _objc_msgSend_876( + ffi.Pointer obj, + ffi.Pointer sel, + _NSRange range, + ffi.Pointer replacementString, + ffi.Pointer alternativeStrings, + ) { + return __objc_msgSend_876( + obj, + sel, + range, + replacementString, + alternativeStrings, + ); + } + + late final __objc_msgSend_876Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_876 = __objc_msgSend_876Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_regularExpressionCheckingResultWithRanges_count_regularExpression_1 = + _registerName1( + "regularExpressionCheckingResultWithRanges:count:regularExpression:"); + ffi.Pointer _objc_msgSend_877( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_NSRange> ranges, + int count, + ffi.Pointer regularExpression, + ) { + return __objc_msgSend_877( + obj, + sel, + ranges, + count, + regularExpression, + ); + } + + late final __objc_msgSend_877Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_NSRange>, + ffi.UnsignedLong, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_877 = __objc_msgSend_877Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_NSRange>, + int, + ffi.Pointer)>(); + + late final _sel_phoneNumberCheckingResultWithRange_phoneNumber_1 = + _registerName1("phoneNumberCheckingResultWithRange:phoneNumber:"); + late final _sel_transitInformationCheckingResultWithRange_components_1 = + _registerName1("transitInformationCheckingResultWithRange:components:"); + late final _class_NSURLCache1 = _getClass1("NSURLCache"); + late final _sel_sharedURLCache1 = _registerName1("sharedURLCache"); + ffi.Pointer _objc_msgSend_878( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_878( + obj, + sel, + ); + } + + late final __objc_msgSend_878Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_878 = __objc_msgSend_878Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setSharedURLCache_1 = _registerName1("setSharedURLCache:"); + void _objc_msgSend_879( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_879( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_879Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_879 = __objc_msgSend_879Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_initWithMemoryCapacity_diskCapacity_diskPath_1 = + _registerName1("initWithMemoryCapacity:diskCapacity:diskPath:"); + instancetype _objc_msgSend_880( + ffi.Pointer obj, + ffi.Pointer sel, + int memoryCapacity, + int diskCapacity, + ffi.Pointer path, + ) { + return __objc_msgSend_880( + obj, + sel, + memoryCapacity, + diskCapacity, + path, + ); + } + + late final __objc_msgSend_880Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_880 = __objc_msgSend_880Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, int, + int, ffi.Pointer)>(); + + late final _sel_initWithMemoryCapacity_diskCapacity_directoryURL_1 = + _registerName1("initWithMemoryCapacity:diskCapacity:directoryURL:"); + instancetype _objc_msgSend_881( + ffi.Pointer obj, + ffi.Pointer sel, + int memoryCapacity, + int diskCapacity, + ffi.Pointer directoryURL, + ) { + return __objc_msgSend_881( + obj, + sel, + memoryCapacity, + diskCapacity, + directoryURL, + ); + } + + late final __objc_msgSend_881Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_881 = __objc_msgSend_881Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, int, + int, ffi.Pointer)>(); + + late final _class_NSCachedURLResponse1 = _getClass1("NSCachedURLResponse"); + late final _sel_initWithResponse_data_1 = + _registerName1("initWithResponse:data:"); + instancetype _objc_msgSend_882( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer response, + ffi.Pointer data, + ) { + return __objc_msgSend_882( + obj, + sel, + response, + data, + ); + } + + late final __objc_msgSend_882Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_882 = __objc_msgSend_882Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_initWithResponse_data_userInfo_storagePolicy_1 = + _registerName1("initWithResponse:data:userInfo:storagePolicy:"); + instancetype _objc_msgSend_883( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer response, + ffi.Pointer data, + ffi.Pointer userInfo, + int storagePolicy, + ) { + return __objc_msgSend_883( + obj, + sel, + response, + data, + userInfo, + storagePolicy, + ); + } + + late final __objc_msgSend_883Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_883 = __objc_msgSend_883Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int)>(); + + late final _sel_storagePolicy1 = _registerName1("storagePolicy"); + int _objc_msgSend_884( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_884( + obj, + sel, + ); + } + + late final __objc_msgSend_884Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_884 = __objc_msgSend_884Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_cachedResponseForRequest_1 = + _registerName1("cachedResponseForRequest:"); + ffi.Pointer _objc_msgSend_885( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer request, + ) { + return __objc_msgSend_885( + obj, + sel, + request, + ); + } + + late final __objc_msgSend_885Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_885 = __objc_msgSend_885Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_storeCachedResponse_forRequest_1 = + _registerName1("storeCachedResponse:forRequest:"); + void _objc_msgSend_886( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer cachedResponse, + ffi.Pointer request, + ) { + return __objc_msgSend_886( + obj, + sel, + cachedResponse, + request, + ); + } + + late final __objc_msgSend_886Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_886 = __objc_msgSend_886Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_removeCachedResponseForRequest_1 = + _registerName1("removeCachedResponseForRequest:"); + void _objc_msgSend_887( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer request, + ) { + return __objc_msgSend_887( + obj, + sel, + request, + ); + } + + late final __objc_msgSend_887Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_887 = __objc_msgSend_887Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_removeAllCachedResponses1 = + _registerName1("removeAllCachedResponses"); + late final _sel_removeCachedResponsesSinceDate_1 = + _registerName1("removeCachedResponsesSinceDate:"); + late final _sel_memoryCapacity1 = _registerName1("memoryCapacity"); + late final _sel_setMemoryCapacity_1 = _registerName1("setMemoryCapacity:"); + late final _sel_diskCapacity1 = _registerName1("diskCapacity"); + late final _sel_setDiskCapacity_1 = _registerName1("setDiskCapacity:"); + late final _sel_currentMemoryUsage1 = _registerName1("currentMemoryUsage"); + late final _sel_currentDiskUsage1 = _registerName1("currentDiskUsage"); + late final _class_NSURLSessionDataTask1 = _getClass1("NSURLSessionDataTask"); + late final _sel_storeCachedResponse_forDataTask_1 = + _registerName1("storeCachedResponse:forDataTask:"); + void _objc_msgSend_888( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer cachedResponse, + ffi.Pointer dataTask, + ) { + return __objc_msgSend_888( + obj, + sel, + cachedResponse, + dataTask, + ); + } + + late final __objc_msgSend_888Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_888 = __objc_msgSend_888Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_getCachedResponseForDataTask_completionHandler_1 = + _registerName1("getCachedResponseForDataTask:completionHandler:"); + void _objc_msgSend_889( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer dataTask, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_889( + obj, + sel, + dataTask, + completionHandler, + ); + } + + late final __objc_msgSend_889Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_889 = __objc_msgSend_889Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_removeCachedResponseForDataTask_1 = + _registerName1("removeCachedResponseForDataTask:"); + void _objc_msgSend_890( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer dataTask, + ) { + return __objc_msgSend_890( + obj, + sel, + dataTask, + ); + } + + late final __objc_msgSend_890Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_890 = __objc_msgSend_890Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _class_NSURLConnection1 = _getClass1("NSURLConnection"); + late final _sel_initWithRequest_delegate_startImmediately_1 = + _registerName1("initWithRequest:delegate:startImmediately:"); + instancetype _objc_msgSend_891( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer request, + ffi.Pointer delegate, + bool startImmediately, + ) { + return __objc_msgSend_891( + obj, + sel, + request, + delegate, + startImmediately, + ); + } + + late final __objc_msgSend_891Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_891 = __objc_msgSend_891Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, bool)>(); + + late final _sel_initWithRequest_delegate_1 = + _registerName1("initWithRequest:delegate:"); + instancetype _objc_msgSend_892( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer request, + ffi.Pointer delegate, + ) { + return __objc_msgSend_892( + obj, + sel, + request, + delegate, + ); + } + + late final __objc_msgSend_892Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_892 = __objc_msgSend_892Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_connectionWithRequest_delegate_1 = + _registerName1("connectionWithRequest:delegate:"); + ffi.Pointer _objc_msgSend_893( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer request, + ffi.Pointer delegate, + ) { + return __objc_msgSend_893( + obj, + sel, + request, + delegate, + ); + } + + late final __objc_msgSend_893Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_893 = __objc_msgSend_893Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_unscheduleFromRunLoop_forMode_1 = + _registerName1("unscheduleFromRunLoop:forMode:"); + late final _sel_setDelegateQueue_1 = _registerName1("setDelegateQueue:"); + void _objc_msgSend_894( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer queue, + ) { + return __objc_msgSend_894( + obj, + sel, + queue, + ); + } + + late final __objc_msgSend_894Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_894 = __objc_msgSend_894Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_canHandleRequest_1 = _registerName1("canHandleRequest:"); + bool _objc_msgSend_895( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer request, + ) { + return __objc_msgSend_895( + obj, + sel, + request, + ); + } + + late final __objc_msgSend_895Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_895 = __objc_msgSend_895Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_sendSynchronousRequest_returningResponse_error_1 = + _registerName1("sendSynchronousRequest:returningResponse:error:"); + ffi.Pointer _objc_msgSend_896( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer request, + ffi.Pointer> response, + ffi.Pointer> error, + ) { + return __objc_msgSend_896( + obj, + sel, + request, + response, + error, + ); + } + + late final __objc_msgSend_896Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_896 = __objc_msgSend_896Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>)>(); + + late final _sel_sendAsynchronousRequest_queue_completionHandler_1 = + _registerName1("sendAsynchronousRequest:queue:completionHandler:"); + void _objc_msgSend_897( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer request, + ffi.Pointer queue, + ffi.Pointer<_ObjCBlock> handler, + ) { + return __objc_msgSend_897( + obj, + sel, + request, + queue, + handler, + ); + } + + late final __objc_msgSend_897Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_897 = __objc_msgSend_897Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _class_NSURLCredential1 = _getClass1("NSURLCredential"); + late final _sel_persistence1 = _registerName1("persistence"); + int _objc_msgSend_898( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_898( + obj, + sel, + ); + } + + late final __objc_msgSend_898Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_898 = __objc_msgSend_898Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_initWithUser_password_persistence_1 = + _registerName1("initWithUser:password:persistence:"); + instancetype _objc_msgSend_899( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer user, + ffi.Pointer password, + int persistence, + ) { + return __objc_msgSend_899( + obj, + sel, + user, + password, + persistence, + ); + } + + late final __objc_msgSend_899Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_899 = __objc_msgSend_899Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_credentialWithUser_password_persistence_1 = + _registerName1("credentialWithUser:password:persistence:"); + ffi.Pointer _objc_msgSend_900( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer user, + ffi.Pointer password, + int persistence, + ) { + return __objc_msgSend_900( + obj, + sel, + user, + password, + persistence, + ); + } + + late final __objc_msgSend_900Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_900 = __objc_msgSend_900Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int)>(); + + late final _sel_hasPassword1 = _registerName1("hasPassword"); + late final _sel_initWithIdentity_certificates_persistence_1 = + _registerName1("initWithIdentity:certificates:persistence:"); + instancetype _objc_msgSend_901( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<__SecIdentity> identity, + ffi.Pointer certArray, + int persistence, + ) { + return __objc_msgSend_901( + obj, + sel, + identity, + certArray, + persistence, + ); + } + + late final __objc_msgSend_901Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__SecIdentity>, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_901 = __objc_msgSend_901Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<__SecIdentity>, ffi.Pointer, int)>(); + + late final _sel_credentialWithIdentity_certificates_persistence_1 = + _registerName1("credentialWithIdentity:certificates:persistence:"); + ffi.Pointer _objc_msgSend_902( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<__SecIdentity> identity, + ffi.Pointer certArray, + int persistence, + ) { + return __objc_msgSend_902( + obj, + sel, + identity, + certArray, + persistence, + ); + } + + late final __objc_msgSend_902Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__SecIdentity>, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_902 = __objc_msgSend_902Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__SecIdentity>, + ffi.Pointer, + int)>(); + + late final _sel_identity1 = _registerName1("identity"); + ffi.Pointer<__SecIdentity> _objc_msgSend_903( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_903( + obj, + sel, + ); + } + + late final __objc_msgSend_903Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer<__SecIdentity> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_903 = __objc_msgSend_903Ptr.asFunction< + ffi.Pointer<__SecIdentity> Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_certificates1 = _registerName1("certificates"); + late final _sel_initWithTrust_1 = _registerName1("initWithTrust:"); + instancetype _objc_msgSend_904( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<__SecTrust> trust, + ) { + return __objc_msgSend_904( + obj, + sel, + trust, + ); + } + + late final __objc_msgSend_904Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<__SecTrust>)>>('objc_msgSend'); + late final __objc_msgSend_904 = __objc_msgSend_904Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<__SecTrust>)>(); + + late final _sel_credentialForTrust_1 = _registerName1("credentialForTrust:"); + ffi.Pointer _objc_msgSend_905( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<__SecTrust> trust, + ) { + return __objc_msgSend_905( + obj, + sel, + trust, + ); + } + + late final __objc_msgSend_905Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<__SecTrust>)>>('objc_msgSend'); + late final __objc_msgSend_905 = __objc_msgSend_905Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<__SecTrust>)>(); + + late final _class_NSURLProtectionSpace1 = _getClass1("NSURLProtectionSpace"); + late final _sel_initWithHost_port_protocol_realm_authenticationMethod_1 = + _registerName1("initWithHost:port:protocol:realm:authenticationMethod:"); + instancetype _objc_msgSend_906( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer host, + int port, + ffi.Pointer protocol, + ffi.Pointer realm, + ffi.Pointer authenticationMethod, + ) { + return __objc_msgSend_906( + obj, + sel, + host, + port, + protocol, + realm, + authenticationMethod, + ); + } + + late final __objc_msgSend_906Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_906 = __objc_msgSend_906Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_initWithProxyHost_port_type_realm_authenticationMethod_1 = + _registerName1("initWithProxyHost:port:type:realm:authenticationMethod:"); + late final _sel_realm1 = _registerName1("realm"); + late final _sel_receivesCredentialSecurely1 = + _registerName1("receivesCredentialSecurely"); + late final _sel_isProxy1 = _registerName1("isProxy"); + late final _sel_proxyType1 = _registerName1("proxyType"); + late final _sel_protocol1 = _registerName1("protocol"); + late final _sel_authenticationMethod1 = + _registerName1("authenticationMethod"); + late final _sel_distinguishedNames1 = _registerName1("distinguishedNames"); + late final _sel_serverTrust1 = _registerName1("serverTrust"); + ffi.Pointer<__SecTrust> _objc_msgSend_907( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_907( + obj, + sel, + ); + } + + late final __objc_msgSend_907Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer<__SecTrust> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_907 = __objc_msgSend_907Ptr.asFunction< + ffi.Pointer<__SecTrust> Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _class_NSURLCredentialStorage1 = + _getClass1("NSURLCredentialStorage"); + late final _sel_sharedCredentialStorage1 = + _registerName1("sharedCredentialStorage"); + ffi.Pointer _objc_msgSend_908( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_908( + obj, + sel, + ); + } + + late final __objc_msgSend_908Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_908 = __objc_msgSend_908Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_credentialsForProtectionSpace_1 = + _registerName1("credentialsForProtectionSpace:"); + ffi.Pointer _objc_msgSend_909( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer space, + ) { + return __objc_msgSend_909( + obj, + sel, + space, + ); + } + + late final __objc_msgSend_909Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_909 = __objc_msgSend_909Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_allCredentials1 = _registerName1("allCredentials"); + late final _sel_setCredential_forProtectionSpace_1 = + _registerName1("setCredential:forProtectionSpace:"); + void _objc_msgSend_910( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer credential, + ffi.Pointer space, + ) { + return __objc_msgSend_910( + obj, + sel, + credential, + space, + ); + } + + late final __objc_msgSend_910Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_910 = __objc_msgSend_910Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_removeCredential_forProtectionSpace_1 = + _registerName1("removeCredential:forProtectionSpace:"); + late final _sel_removeCredential_forProtectionSpace_options_1 = + _registerName1("removeCredential:forProtectionSpace:options:"); + void _objc_msgSend_911( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer credential, + ffi.Pointer space, + ffi.Pointer options, + ) { + return __objc_msgSend_911( + obj, + sel, + credential, + space, + options, + ); + } + + late final __objc_msgSend_911Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_911 = __objc_msgSend_911Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_defaultCredentialForProtectionSpace_1 = + _registerName1("defaultCredentialForProtectionSpace:"); + ffi.Pointer _objc_msgSend_912( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer space, + ) { + return __objc_msgSend_912( + obj, + sel, + space, + ); + } + + late final __objc_msgSend_912Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_912 = __objc_msgSend_912Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setDefaultCredential_forProtectionSpace_1 = + _registerName1("setDefaultCredential:forProtectionSpace:"); + late final _sel_getCredentialsForProtectionSpace_task_completionHandler_1 = + _registerName1( + "getCredentialsForProtectionSpace:task:completionHandler:"); + void _objc_msgSend_913( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer protectionSpace, + ffi.Pointer task, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_913( + obj, + sel, + protectionSpace, + task, + completionHandler, + ); + } + + late final __objc_msgSend_913Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_913 = __objc_msgSend_913Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_setCredential_forProtectionSpace_task_1 = + _registerName1("setCredential:forProtectionSpace:task:"); + void _objc_msgSend_914( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer credential, + ffi.Pointer protectionSpace, + ffi.Pointer task, + ) { + return __objc_msgSend_914( + obj, + sel, + credential, + protectionSpace, + task, + ); + } + + late final __objc_msgSend_914Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_914 = __objc_msgSend_914Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_removeCredential_forProtectionSpace_options_task_1 = + _registerName1("removeCredential:forProtectionSpace:options:task:"); + void _objc_msgSend_915( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer credential, + ffi.Pointer protectionSpace, + ffi.Pointer options, + ffi.Pointer task, + ) { + return __objc_msgSend_915( + obj, + sel, + credential, + protectionSpace, + options, + task, + ); + } + + late final __objc_msgSend_915Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_915 = __objc_msgSend_915Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_getDefaultCredentialForProtectionSpace_task_completionHandler_1 = + _registerName1( + "getDefaultCredentialForProtectionSpace:task:completionHandler:"); + void _objc_msgSend_916( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer space, + ffi.Pointer task, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_916( + obj, + sel, + space, + task, + completionHandler, + ); + } + + late final __objc_msgSend_916Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_916 = __objc_msgSend_916Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_setDefaultCredential_forProtectionSpace_task_1 = + _registerName1("setDefaultCredential:forProtectionSpace:task:"); + late final _class_NSURLProtocol1 = _getClass1("NSURLProtocol"); + late final _sel_initWithRequest_cachedResponse_client_1 = + _registerName1("initWithRequest:cachedResponse:client:"); + instancetype _objc_msgSend_917( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer request, + ffi.Pointer cachedResponse, + ffi.Pointer client, + ) { + return __objc_msgSend_917( + obj, + sel, + request, + cachedResponse, + client, + ); + } + + late final __objc_msgSend_917Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_917 = __objc_msgSend_917Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_client1 = _registerName1("client"); + late final _sel_request1 = _registerName1("request"); + late final _sel_cachedResponse1 = _registerName1("cachedResponse"); + ffi.Pointer _objc_msgSend_918( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_918( + obj, + sel, + ); + } + + late final __objc_msgSend_918Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_918 = __objc_msgSend_918Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_canInitWithRequest_1 = _registerName1("canInitWithRequest:"); + late final _sel_canonicalRequestForRequest_1 = + _registerName1("canonicalRequestForRequest:"); + ffi.Pointer _objc_msgSend_919( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer request, + ) { + return __objc_msgSend_919( + obj, + sel, + request, + ); + } + + late final __objc_msgSend_919Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_919 = __objc_msgSend_919Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_requestIsCacheEquivalent_toRequest_1 = + _registerName1("requestIsCacheEquivalent:toRequest:"); + bool _objc_msgSend_920( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer a, + ffi.Pointer b, + ) { + return __objc_msgSend_920( + obj, + sel, + a, + b, + ); + } + + late final __objc_msgSend_920Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_920 = __objc_msgSend_920Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_startLoading1 = _registerName1("startLoading"); + late final _sel_stopLoading1 = _registerName1("stopLoading"); + late final _sel_propertyForKey_inRequest_1 = + _registerName1("propertyForKey:inRequest:"); + ffi.Pointer _objc_msgSend_921( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ffi.Pointer request, + ) { + return __objc_msgSend_921( + obj, + sel, + key, + request, + ); + } + + late final __objc_msgSend_921Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_921 = __objc_msgSend_921Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _class_NSMutableURLRequest1 = _getClass1("NSMutableURLRequest"); + late final _sel_setURL_1 = _registerName1("setURL:"); + late final _sel_setCachePolicy_1 = _registerName1("setCachePolicy:"); + void _objc_msgSend_922( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_922( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_922Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_922 = __objc_msgSend_922Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_setTimeoutInterval_1 = _registerName1("setTimeoutInterval:"); + late final _sel_setMainDocumentURL_1 = _registerName1("setMainDocumentURL:"); + late final _sel_setNetworkServiceType_1 = + _registerName1("setNetworkServiceType:"); + void _objc_msgSend_923( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_923( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_923Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_923 = __objc_msgSend_923Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_setAllowsCellularAccess_1 = + _registerName1("setAllowsCellularAccess:"); + late final _sel_setAllowsExpensiveNetworkAccess_1 = + _registerName1("setAllowsExpensiveNetworkAccess:"); + late final _sel_setAllowsConstrainedNetworkAccess_1 = + _registerName1("setAllowsConstrainedNetworkAccess:"); + late final _sel_setAssumesHTTP3Capable_1 = + _registerName1("setAssumesHTTP3Capable:"); + late final _sel_setAttribution_1 = _registerName1("setAttribution:"); + void _objc_msgSend_924( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_924( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_924Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_924 = __objc_msgSend_924Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_setRequiresDNSSECValidation_1 = + _registerName1("setRequiresDNSSECValidation:"); + late final _sel_setHTTPMethod_1 = _registerName1("setHTTPMethod:"); + late final _sel_setAllHTTPHeaderFields_1 = + _registerName1("setAllHTTPHeaderFields:"); + late final _sel_setValue_forHTTPHeaderField_1 = + _registerName1("setValue:forHTTPHeaderField:"); + late final _sel_addValue_forHTTPHeaderField_1 = + _registerName1("addValue:forHTTPHeaderField:"); + late final _sel_setHTTPBody_1 = _registerName1("setHTTPBody:"); + void _objc_msgSend_925( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_925( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_925Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_925 = __objc_msgSend_925Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_setHTTPBodyStream_1 = _registerName1("setHTTPBodyStream:"); + void _objc_msgSend_926( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_926( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_926Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_926 = __objc_msgSend_926Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_setHTTPShouldHandleCookies_1 = + _registerName1("setHTTPShouldHandleCookies:"); + late final _sel_setHTTPShouldUsePipelining_1 = + _registerName1("setHTTPShouldUsePipelining:"); + late final _sel_setProperty_forKey_inRequest_1 = + _registerName1("setProperty:forKey:inRequest:"); + void _objc_msgSend_927( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ffi.Pointer key, + ffi.Pointer request, + ) { + return __objc_msgSend_927( + obj, + sel, + value, + key, + request, + ); + } + + late final __objc_msgSend_927Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_927 = __objc_msgSend_927Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_removePropertyForKey_inRequest_1 = + _registerName1("removePropertyForKey:inRequest:"); + void _objc_msgSend_928( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer key, + ffi.Pointer request, + ) { + return __objc_msgSend_928( + obj, + sel, + key, + request, + ); + } + + late final __objc_msgSend_928Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_928 = __objc_msgSend_928Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_registerClass_1 = _registerName1("registerClass:"); + late final _sel_unregisterClass_1 = _registerName1("unregisterClass:"); + late final _sel_canInitWithTask_1 = _registerName1("canInitWithTask:"); + bool _objc_msgSend_929( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer task, + ) { + return __objc_msgSend_929( + obj, + sel, + task, + ); + } + + late final __objc_msgSend_929Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_929 = __objc_msgSend_929Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_initWithTask_cachedResponse_client_1 = + _registerName1("initWithTask:cachedResponse:client:"); + instancetype _objc_msgSend_930( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer task, + ffi.Pointer cachedResponse, + ffi.Pointer client, + ) { + return __objc_msgSend_930( + obj, + sel, + task, + cachedResponse, + client, + ); + } + + late final __objc_msgSend_930Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_930 = __objc_msgSend_930Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_task1 = _registerName1("task"); + ffi.Pointer _objc_msgSend_931( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_931( + obj, + sel, + ); + } + + late final __objc_msgSend_931Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_931 = __objc_msgSend_931Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _class_NSXMLParser1 = _getClass1("NSXMLParser"); + late final _sel_initWithStream_1 = _registerName1("initWithStream:"); + instancetype _objc_msgSend_932( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer stream, + ) { + return __objc_msgSend_932( + obj, + sel, + stream, + ); + } + + late final __objc_msgSend_932Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_932 = __objc_msgSend_932Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_shouldProcessNamespaces1 = + _registerName1("shouldProcessNamespaces"); + late final _sel_setShouldProcessNamespaces_1 = + _registerName1("setShouldProcessNamespaces:"); + late final _sel_shouldReportNamespacePrefixes1 = + _registerName1("shouldReportNamespacePrefixes"); + late final _sel_setShouldReportNamespacePrefixes_1 = + _registerName1("setShouldReportNamespacePrefixes:"); + late final _sel_externalEntityResolvingPolicy1 = + _registerName1("externalEntityResolvingPolicy"); + int _objc_msgSend_933( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_933( + obj, + sel, + ); + } + + late final __objc_msgSend_933Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_933 = __objc_msgSend_933Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setExternalEntityResolvingPolicy_1 = + _registerName1("setExternalEntityResolvingPolicy:"); + void _objc_msgSend_934( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_934( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_934Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_934 = __objc_msgSend_934Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_allowedExternalEntityURLs1 = + _registerName1("allowedExternalEntityURLs"); + late final _sel_setAllowedExternalEntityURLs_1 = + _registerName1("setAllowedExternalEntityURLs:"); + void _objc_msgSend_935( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_935( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_935Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_935 = __objc_msgSend_935Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_parse1 = _registerName1("parse"); + late final _sel_abortParsing1 = _registerName1("abortParsing"); + late final _sel_parserError1 = _registerName1("parserError"); + late final _sel_shouldResolveExternalEntities1 = + _registerName1("shouldResolveExternalEntities"); + late final _sel_setShouldResolveExternalEntities_1 = + _registerName1("setShouldResolveExternalEntities:"); + late final _sel_publicID1 = _registerName1("publicID"); + late final _sel_systemID1 = _registerName1("systemID"); + late final _sel_lineNumber1 = _registerName1("lineNumber"); + late final _sel_columnNumber1 = _registerName1("columnNumber"); + late final _class_NSFileWrapper1 = _getClass1("NSFileWrapper"); + late final _sel_initWithURL_options_error_1 = + _registerName1("initWithURL:options:error:"); + instancetype _objc_msgSend_936( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + int options, + ffi.Pointer> outError, + ) { + return __objc_msgSend_936( + obj, + sel, + url, + options, + outError, + ); + } + + late final __objc_msgSend_936Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_936 = __objc_msgSend_936Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); + + late final _sel_initDirectoryWithFileWrappers_1 = + _registerName1("initDirectoryWithFileWrappers:"); + late final _sel_initRegularFileWithContents_1 = + _registerName1("initRegularFileWithContents:"); + late final _sel_initSymbolicLinkWithDestinationURL_1 = + _registerName1("initSymbolicLinkWithDestinationURL:"); + late final _sel_initWithSerializedRepresentation_1 = + _registerName1("initWithSerializedRepresentation:"); + late final _sel_isDirectory1 = _registerName1("isDirectory"); + late final _sel_isRegularFile1 = _registerName1("isRegularFile"); + late final _sel_isSymbolicLink1 = _registerName1("isSymbolicLink"); + late final _sel_preferredFilename1 = _registerName1("preferredFilename"); + late final _sel_setPreferredFilename_1 = + _registerName1("setPreferredFilename:"); + late final _sel_filename1 = _registerName1("filename"); + late final _sel_setFilename_1 = _registerName1("setFilename:"); + late final _sel_fileAttributes1 = _registerName1("fileAttributes"); + late final _sel_setFileAttributes_1 = _registerName1("setFileAttributes:"); + late final _sel_matchesContentsOfURL_1 = + _registerName1("matchesContentsOfURL:"); + late final _sel_readFromURL_options_error_1 = + _registerName1("readFromURL:options:error:"); + bool _objc_msgSend_937( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + int options, + ffi.Pointer> outError, + ) { + return __objc_msgSend_937( + obj, + sel, + url, + options, + outError, + ); + } + + late final __objc_msgSend_937Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_937 = __objc_msgSend_937Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); + + late final _sel_writeToURL_options_originalContentsURL_error_1 = + _registerName1("writeToURL:options:originalContentsURL:error:"); + bool _objc_msgSend_938( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + int options, + ffi.Pointer originalContentsURL, + ffi.Pointer> outError, + ) { + return __objc_msgSend_938( + obj, + sel, + url, + options, + originalContentsURL, + outError, + ); + } + + late final __objc_msgSend_938Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_938 = __objc_msgSend_938Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_serializedRepresentation1 = + _registerName1("serializedRepresentation"); + late final _sel_addFileWrapper_1 = _registerName1("addFileWrapper:"); + ffi.Pointer _objc_msgSend_939( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer child, + ) { + return __objc_msgSend_939( + obj, + sel, + child, + ); + } + + late final __objc_msgSend_939Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_939 = __objc_msgSend_939Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_addRegularFileWithContents_preferredFilename_1 = + _registerName1("addRegularFileWithContents:preferredFilename:"); + ffi.Pointer _objc_msgSend_940( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer data, + ffi.Pointer fileName, + ) { + return __objc_msgSend_940( + obj, + sel, + data, + fileName, + ); + } + + late final __objc_msgSend_940Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_940 = __objc_msgSend_940Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_removeFileWrapper_1 = _registerName1("removeFileWrapper:"); + void _objc_msgSend_941( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer child, + ) { + return __objc_msgSend_941( + obj, + sel, + child, + ); + } + + late final __objc_msgSend_941Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_941 = __objc_msgSend_941Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_fileWrappers1 = _registerName1("fileWrappers"); + late final _sel_keyForFileWrapper_1 = _registerName1("keyForFileWrapper:"); + late final _sel_regularFileContents1 = _registerName1("regularFileContents"); + late final _sel_symbolicLinkDestinationURL1 = + _registerName1("symbolicLinkDestinationURL"); + late final _sel_initSymbolicLinkWithDestination_1 = + _registerName1("initSymbolicLinkWithDestination:"); + late final _sel_needsToBeUpdatedFromPath_1 = + _registerName1("needsToBeUpdatedFromPath:"); + late final _sel_updateFromPath_1 = _registerName1("updateFromPath:"); + late final _sel_writeToFile_atomically_updateFilenames_1 = + _registerName1("writeToFile:atomically:updateFilenames:"); + bool _objc_msgSend_942( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + bool atomicFlag, + bool updateFilenamesFlag, + ) { + return __objc_msgSend_942( + obj, + sel, + path, + atomicFlag, + updateFilenamesFlag, + ); + } + + late final __objc_msgSend_942Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_942 = __objc_msgSend_942Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool, bool)>(); + + late final _sel_addFileWithPath_1 = _registerName1("addFileWithPath:"); + late final _sel_addSymbolicLinkWithDestination_preferredFilename_1 = + _registerName1("addSymbolicLinkWithDestination:preferredFilename:"); + late final _sel_symbolicLinkDestination1 = + _registerName1("symbolicLinkDestination"); + late final _class_NSURLSession1 = _getClass1("NSURLSession"); + late final _sel_sharedSession1 = _registerName1("sharedSession"); + ffi.Pointer _objc_msgSend_943( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_943( + obj, + sel, + ); + } + + late final __objc_msgSend_943Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_943 = __objc_msgSend_943Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _class_NSURLSessionConfiguration1 = + _getClass1("NSURLSessionConfiguration"); + late final _sel_defaultSessionConfiguration1 = + _registerName1("defaultSessionConfiguration"); + ffi.Pointer _objc_msgSend_944( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_944( + obj, + sel, + ); + } + + late final __objc_msgSend_944Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_944 = __objc_msgSend_944Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_ephemeralSessionConfiguration1 = + _registerName1("ephemeralSessionConfiguration"); + late final _sel_backgroundSessionConfigurationWithIdentifier_1 = + _registerName1("backgroundSessionConfigurationWithIdentifier:"); + ffi.Pointer _objc_msgSend_945( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer identifier, + ) { + return __objc_msgSend_945( + obj, + sel, + identifier, + ); + } + + late final __objc_msgSend_945Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_945 = __objc_msgSend_945Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_identifier1 = _registerName1("identifier"); + late final _sel_requestCachePolicy1 = _registerName1("requestCachePolicy"); + late final _sel_setRequestCachePolicy_1 = + _registerName1("setRequestCachePolicy:"); + late final _sel_timeoutIntervalForRequest1 = + _registerName1("timeoutIntervalForRequest"); + late final _sel_setTimeoutIntervalForRequest_1 = + _registerName1("setTimeoutIntervalForRequest:"); + late final _sel_timeoutIntervalForResource1 = + _registerName1("timeoutIntervalForResource"); + late final _sel_setTimeoutIntervalForResource_1 = + _registerName1("setTimeoutIntervalForResource:"); + late final _sel_waitsForConnectivity1 = + _registerName1("waitsForConnectivity"); + late final _sel_setWaitsForConnectivity_1 = + _registerName1("setWaitsForConnectivity:"); + late final _sel_isDiscretionary1 = _registerName1("isDiscretionary"); + late final _sel_setDiscretionary_1 = _registerName1("setDiscretionary:"); + late final _sel_sharedContainerIdentifier1 = + _registerName1("sharedContainerIdentifier"); + late final _sel_setSharedContainerIdentifier_1 = + _registerName1("setSharedContainerIdentifier:"); + late final _sel_sessionSendsLaunchEvents1 = + _registerName1("sessionSendsLaunchEvents"); + late final _sel_setSessionSendsLaunchEvents_1 = + _registerName1("setSessionSendsLaunchEvents:"); + late final _sel_connectionProxyDictionary1 = + _registerName1("connectionProxyDictionary"); + late final _sel_setConnectionProxyDictionary_1 = + _registerName1("setConnectionProxyDictionary:"); + late final _sel_TLSMinimumSupportedProtocol1 = + _registerName1("TLSMinimumSupportedProtocol"); + int _objc_msgSend_946( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_946( + obj, + sel, + ); + } + + late final __objc_msgSend_946Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_946 = __objc_msgSend_946Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setTLSMinimumSupportedProtocol_1 = + _registerName1("setTLSMinimumSupportedProtocol:"); + void _objc_msgSend_947( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_947( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_947Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_947 = __objc_msgSend_947Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_TLSMaximumSupportedProtocol1 = + _registerName1("TLSMaximumSupportedProtocol"); + late final _sel_setTLSMaximumSupportedProtocol_1 = + _registerName1("setTLSMaximumSupportedProtocol:"); + late final _sel_TLSMinimumSupportedProtocolVersion1 = + _registerName1("TLSMinimumSupportedProtocolVersion"); + int _objc_msgSend_948( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_948( + obj, + sel, + ); + } + + late final __objc_msgSend_948Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_948 = __objc_msgSend_948Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setTLSMinimumSupportedProtocolVersion_1 = + _registerName1("setTLSMinimumSupportedProtocolVersion:"); + void _objc_msgSend_949( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_949( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_949Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_949 = __objc_msgSend_949Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_TLSMaximumSupportedProtocolVersion1 = + _registerName1("TLSMaximumSupportedProtocolVersion"); + late final _sel_setTLSMaximumSupportedProtocolVersion_1 = + _registerName1("setTLSMaximumSupportedProtocolVersion:"); + late final _sel_HTTPShouldSetCookies1 = + _registerName1("HTTPShouldSetCookies"); + late final _sel_setHTTPShouldSetCookies_1 = + _registerName1("setHTTPShouldSetCookies:"); + late final _sel_HTTPCookieAcceptPolicy1 = + _registerName1("HTTPCookieAcceptPolicy"); + late final _sel_setHTTPCookieAcceptPolicy_1 = + _registerName1("setHTTPCookieAcceptPolicy:"); + late final _sel_HTTPAdditionalHeaders1 = + _registerName1("HTTPAdditionalHeaders"); + late final _sel_setHTTPAdditionalHeaders_1 = + _registerName1("setHTTPAdditionalHeaders:"); + late final _sel_HTTPMaximumConnectionsPerHost1 = + _registerName1("HTTPMaximumConnectionsPerHost"); + late final _sel_setHTTPMaximumConnectionsPerHost_1 = + _registerName1("setHTTPMaximumConnectionsPerHost:"); + late final _sel_HTTPCookieStorage1 = _registerName1("HTTPCookieStorage"); + late final _sel_setHTTPCookieStorage_1 = + _registerName1("setHTTPCookieStorage:"); + void _objc_msgSend_950( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_950( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_950Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_950 = __objc_msgSend_950Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_URLCredentialStorage1 = + _registerName1("URLCredentialStorage"); + late final _sel_setURLCredentialStorage_1 = + _registerName1("setURLCredentialStorage:"); + void _objc_msgSend_951( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_951( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_951Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_951 = __objc_msgSend_951Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_URLCache1 = _registerName1("URLCache"); + late final _sel_setURLCache_1 = _registerName1("setURLCache:"); + late final _sel_shouldUseExtendedBackgroundIdleMode1 = + _registerName1("shouldUseExtendedBackgroundIdleMode"); + late final _sel_setShouldUseExtendedBackgroundIdleMode_1 = + _registerName1("setShouldUseExtendedBackgroundIdleMode:"); + late final _sel_protocolClasses1 = _registerName1("protocolClasses"); + late final _sel_setProtocolClasses_1 = _registerName1("setProtocolClasses:"); + late final _sel_multipathServiceType1 = + _registerName1("multipathServiceType"); + int _objc_msgSend_952( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_952( + obj, + sel, + ); + } + + late final __objc_msgSend_952Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_952 = __objc_msgSend_952Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setMultipathServiceType_1 = + _registerName1("setMultipathServiceType:"); + void _objc_msgSend_953( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_953( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_953Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_953 = __objc_msgSend_953Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_backgroundSessionConfiguration_1 = + _registerName1("backgroundSessionConfiguration:"); + late final _sel_sessionWithConfiguration_1 = + _registerName1("sessionWithConfiguration:"); + ffi.Pointer _objc_msgSend_954( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer configuration, + ) { + return __objc_msgSend_954( + obj, + sel, + configuration, + ); + } + + late final __objc_msgSend_954Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_954 = __objc_msgSend_954Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_sessionWithConfiguration_delegate_delegateQueue_1 = + _registerName1("sessionWithConfiguration:delegate:delegateQueue:"); + ffi.Pointer _objc_msgSend_955( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer configuration, + ffi.Pointer delegate, + ffi.Pointer queue, + ) { + return __objc_msgSend_955( + obj, + sel, + configuration, + delegate, + queue, + ); + } + + late final __objc_msgSend_955Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_955 = __objc_msgSend_955Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_delegateQueue1 = _registerName1("delegateQueue"); + late final _sel_configuration1 = _registerName1("configuration"); + late final _sel_sessionDescription1 = _registerName1("sessionDescription"); + late final _sel_setSessionDescription_1 = + _registerName1("setSessionDescription:"); + late final _sel_finishTasksAndInvalidate1 = + _registerName1("finishTasksAndInvalidate"); + late final _sel_invalidateAndCancel1 = _registerName1("invalidateAndCancel"); + late final _sel_resetWithCompletionHandler_1 = + _registerName1("resetWithCompletionHandler:"); + late final _sel_flushWithCompletionHandler_1 = + _registerName1("flushWithCompletionHandler:"); + late final _sel_getTasksWithCompletionHandler_1 = + _registerName1("getTasksWithCompletionHandler:"); + void _objc_msgSend_956( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_956( + obj, + sel, + completionHandler, + ); + } + + late final __objc_msgSend_956Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_956 = __objc_msgSend_956Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_getAllTasksWithCompletionHandler_1 = + _registerName1("getAllTasksWithCompletionHandler:"); + void _objc_msgSend_957( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_957( + obj, + sel, + completionHandler, + ); + } + + late final __objc_msgSend_957Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_957 = __objc_msgSend_957Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_dataTaskWithRequest_1 = + _registerName1("dataTaskWithRequest:"); + ffi.Pointer _objc_msgSend_958( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer request, + ) { + return __objc_msgSend_958( + obj, + sel, + request, + ); + } + + late final __objc_msgSend_958Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_958 = __objc_msgSend_958Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_dataTaskWithURL_1 = _registerName1("dataTaskWithURL:"); + ffi.Pointer _objc_msgSend_959( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ) { + return __objc_msgSend_959( + obj, + sel, + url, + ); + } + + late final __objc_msgSend_959Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_959 = __objc_msgSend_959Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _class_NSURLSessionUploadTask1 = + _getClass1("NSURLSessionUploadTask"); + late final _sel_uploadTaskWithRequest_fromFile_1 = + _registerName1("uploadTaskWithRequest:fromFile:"); + ffi.Pointer _objc_msgSend_960( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer request, + ffi.Pointer fileURL, + ) { + return __objc_msgSend_960( + obj, + sel, + request, + fileURL, + ); + } + + late final __objc_msgSend_960Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_960 = __objc_msgSend_960Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_uploadTaskWithRequest_fromData_1 = + _registerName1("uploadTaskWithRequest:fromData:"); + ffi.Pointer _objc_msgSend_961( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer request, + ffi.Pointer bodyData, + ) { + return __objc_msgSend_961( + obj, + sel, + request, + bodyData, + ); + } + + late final __objc_msgSend_961Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_961 = __objc_msgSend_961Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_uploadTaskWithStreamedRequest_1 = + _registerName1("uploadTaskWithStreamedRequest:"); + ffi.Pointer _objc_msgSend_962( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer request, + ) { + return __objc_msgSend_962( + obj, + sel, + request, + ); + } + + late final __objc_msgSend_962Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_962 = __objc_msgSend_962Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _class_NSURLSessionDownloadTask1 = + _getClass1("NSURLSessionDownloadTask"); + late final _sel_cancelByProducingResumeData_1 = + _registerName1("cancelByProducingResumeData:"); + void _objc_msgSend_963( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_963( + obj, + sel, + completionHandler, + ); + } + + late final __objc_msgSend_963Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_963 = __objc_msgSend_963Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_downloadTaskWithRequest_1 = + _registerName1("downloadTaskWithRequest:"); + ffi.Pointer _objc_msgSend_964( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer request, + ) { + return __objc_msgSend_964( + obj, + sel, + request, + ); + } + + late final __objc_msgSend_964Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_964 = __objc_msgSend_964Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_downloadTaskWithURL_1 = + _registerName1("downloadTaskWithURL:"); + ffi.Pointer _objc_msgSend_965( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ) { + return __objc_msgSend_965( + obj, + sel, + url, + ); + } + + late final __objc_msgSend_965Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_965 = __objc_msgSend_965Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_downloadTaskWithResumeData_1 = + _registerName1("downloadTaskWithResumeData:"); + ffi.Pointer _objc_msgSend_966( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer resumeData, + ) { + return __objc_msgSend_966( + obj, + sel, + resumeData, + ); + } + + late final __objc_msgSend_966Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_966 = __objc_msgSend_966Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _class_NSURLSessionStreamTask1 = + _getClass1("NSURLSessionStreamTask"); + late final _sel_readDataOfMinLength_maxLength_timeout_completionHandler_1 = + _registerName1( + "readDataOfMinLength:maxLength:timeout:completionHandler:"); + void _objc_msgSend_967( + ffi.Pointer obj, + ffi.Pointer sel, + int minBytes, + int maxBytes, + double timeout, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_967( + obj, + sel, + minBytes, + maxBytes, + timeout, + completionHandler, + ); + } + + late final __objc_msgSend_967Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.Double, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_967 = __objc_msgSend_967Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, int, + double, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_writeData_timeout_completionHandler_1 = + _registerName1("writeData:timeout:completionHandler:"); + void _objc_msgSend_968( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer data, + double timeout, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_968( + obj, + sel, + data, + timeout, + completionHandler, + ); + } + + late final __objc_msgSend_968Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_968 = __objc_msgSend_968Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, double, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_captureStreams1 = _registerName1("captureStreams"); + late final _sel_closeWrite1 = _registerName1("closeWrite"); + late final _sel_closeRead1 = _registerName1("closeRead"); + late final _sel_startSecureConnection1 = + _registerName1("startSecureConnection"); + late final _sel_stopSecureConnection1 = + _registerName1("stopSecureConnection"); + late final _sel_streamTaskWithHostName_port_1 = + _registerName1("streamTaskWithHostName:port:"); + ffi.Pointer _objc_msgSend_969( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer hostname, + int port, + ) { + return __objc_msgSend_969( + obj, + sel, + hostname, + port, + ); + } + + late final __objc_msgSend_969Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_969 = __objc_msgSend_969Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); + + late final _class_NSNetService1 = _getClass1("NSNetService"); + late final _sel_initWithDomain_type_name_port_1 = + _registerName1("initWithDomain:type:name:port:"); + instancetype _objc_msgSend_970( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer domain, + ffi.Pointer type, + ffi.Pointer name, + int port, + ) { + return __objc_msgSend_970( + obj, + sel, + domain, + type, + name, + port, + ); + } + + late final __objc_msgSend_970Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int)>>('objc_msgSend'); + late final __objc_msgSend_970 = __objc_msgSend_970Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int)>(); + + late final _sel_initWithDomain_type_name_1 = + _registerName1("initWithDomain:type:name:"); + late final _sel_includesPeerToPeer1 = _registerName1("includesPeerToPeer"); + late final _sel_setIncludesPeerToPeer_1 = + _registerName1("setIncludesPeerToPeer:"); + late final _sel_type1 = _registerName1("type"); + late final _sel_publishWithOptions_1 = _registerName1("publishWithOptions:"); + void _objc_msgSend_971( + ffi.Pointer obj, + ffi.Pointer sel, + int options, + ) { + return __objc_msgSend_971( + obj, + sel, + options, + ); + } + + late final __objc_msgSend_971Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_971 = __objc_msgSend_971Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_resolve1 = _registerName1("resolve"); + late final _sel_stop1 = _registerName1("stop"); + late final _sel_dictionaryFromTXTRecordData_1 = + _registerName1("dictionaryFromTXTRecordData:"); + ffi.Pointer _objc_msgSend_972( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer txtData, + ) { + return __objc_msgSend_972( + obj, + sel, + txtData, + ); + } + + late final __objc_msgSend_972Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_972 = __objc_msgSend_972Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_dataFromTXTRecordDictionary_1 = + _registerName1("dataFromTXTRecordDictionary:"); + ffi.Pointer _objc_msgSend_973( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer txtDictionary, + ) { + return __objc_msgSend_973( + obj, + sel, + txtDictionary, + ); + } + + late final __objc_msgSend_973Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_973 = __objc_msgSend_973Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_resolveWithTimeout_1 = _registerName1("resolveWithTimeout:"); + late final _sel_getInputStream_outputStream_1 = + _registerName1("getInputStream:outputStream:"); + bool _objc_msgSend_974( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream, + ) { + return __objc_msgSend_974( + obj, + sel, + inputStream, + outputStream, + ); + } + + late final __objc_msgSend_974Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_974 = __objc_msgSend_974Ptr.asFunction< + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>)>(); + + late final _sel_setTXTRecordData_1 = _registerName1("setTXTRecordData:"); + late final _sel_TXTRecordData1 = _registerName1("TXTRecordData"); + late final _sel_startMonitoring1 = _registerName1("startMonitoring"); + late final _sel_stopMonitoring1 = _registerName1("stopMonitoring"); + late final _sel_streamTaskWithNetService_1 = + _registerName1("streamTaskWithNetService:"); + ffi.Pointer _objc_msgSend_975( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer service, + ) { + return __objc_msgSend_975( + obj, + sel, + service, + ); + } + + late final __objc_msgSend_975Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_975 = __objc_msgSend_975Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _class_NSURLSessionWebSocketTask1 = + _getClass1("NSURLSessionWebSocketTask"); + late final _class_NSURLSessionWebSocketMessage1 = + _getClass1("NSURLSessionWebSocketMessage"); + int _objc_msgSend_976( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_976( + obj, + sel, + ); + } + + late final __objc_msgSend_976Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_976 = __objc_msgSend_976Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_sendMessage_completionHandler_1 = + _registerName1("sendMessage:completionHandler:"); + void _objc_msgSend_977( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer message, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_977( + obj, + sel, + message, + completionHandler, + ); + } + + late final __objc_msgSend_977Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_977 = __objc_msgSend_977Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_receiveMessageWithCompletionHandler_1 = + _registerName1("receiveMessageWithCompletionHandler:"); + void _objc_msgSend_978( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_978( + obj, + sel, + completionHandler, + ); + } + + late final __objc_msgSend_978Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_978 = __objc_msgSend_978Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_sendPingWithPongReceiveHandler_1 = + _registerName1("sendPingWithPongReceiveHandler:"); + void _objc_msgSend_979( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> pongReceiveHandler, + ) { + return __objc_msgSend_979( + obj, + sel, + pongReceiveHandler, + ); + } + + late final __objc_msgSend_979Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_979 = __objc_msgSend_979Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_cancelWithCloseCode_reason_1 = + _registerName1("cancelWithCloseCode:reason:"); + void _objc_msgSend_980( + ffi.Pointer obj, + ffi.Pointer sel, + int closeCode, + ffi.Pointer reason, + ) { + return __objc_msgSend_980( + obj, + sel, + closeCode, + reason, + ); + } + + late final __objc_msgSend_980Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_980 = __objc_msgSend_980Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); + + late final _sel_maximumMessageSize1 = _registerName1("maximumMessageSize"); + late final _sel_setMaximumMessageSize_1 = + _registerName1("setMaximumMessageSize:"); + late final _sel_closeCode1 = _registerName1("closeCode"); + int _objc_msgSend_981( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_981( + obj, + sel, + ); + } + + late final __objc_msgSend_981Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_981 = __objc_msgSend_981Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_closeReason1 = _registerName1("closeReason"); + late final _sel_webSocketTaskWithURL_1 = + _registerName1("webSocketTaskWithURL:"); + ffi.Pointer _objc_msgSend_982( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ) { + return __objc_msgSend_982( + obj, + sel, + url, + ); + } + + late final __objc_msgSend_982Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_982 = __objc_msgSend_982Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_webSocketTaskWithURL_protocols_1 = + _registerName1("webSocketTaskWithURL:protocols:"); + ffi.Pointer _objc_msgSend_983( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer protocols, + ) { + return __objc_msgSend_983( + obj, + sel, + url, + protocols, + ); + } + + late final __objc_msgSend_983Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_983 = __objc_msgSend_983Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_webSocketTaskWithRequest_1 = + _registerName1("webSocketTaskWithRequest:"); + ffi.Pointer _objc_msgSend_984( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer request, + ) { + return __objc_msgSend_984( + obj, + sel, + request, + ); + } + + late final __objc_msgSend_984Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_984 = __objc_msgSend_984Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_dataTaskWithRequest_completionHandler_1 = + _registerName1("dataTaskWithRequest:completionHandler:"); + ffi.Pointer _objc_msgSend_985( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer request, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_985( + obj, + sel, + request, + completionHandler, + ); + } + + late final __objc_msgSend_985Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_985 = __objc_msgSend_985Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_dataTaskWithURL_completionHandler_1 = + _registerName1("dataTaskWithURL:completionHandler:"); + ffi.Pointer _objc_msgSend_986( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_986( + obj, + sel, + url, + completionHandler, + ); + } + + late final __objc_msgSend_986Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_986 = __objc_msgSend_986Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_uploadTaskWithRequest_fromFile_completionHandler_1 = + _registerName1("uploadTaskWithRequest:fromFile:completionHandler:"); + ffi.Pointer _objc_msgSend_987( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer request, + ffi.Pointer fileURL, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_987( + obj, + sel, + request, + fileURL, + completionHandler, + ); + } + + late final __objc_msgSend_987Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_987 = __objc_msgSend_987Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_uploadTaskWithRequest_fromData_completionHandler_1 = + _registerName1("uploadTaskWithRequest:fromData:completionHandler:"); + ffi.Pointer _objc_msgSend_988( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer request, + ffi.Pointer bodyData, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_988( + obj, + sel, + request, + bodyData, + completionHandler, + ); + } + + late final __objc_msgSend_988Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_988 = __objc_msgSend_988Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_downloadTaskWithRequest_completionHandler_1 = + _registerName1("downloadTaskWithRequest:completionHandler:"); + ffi.Pointer _objc_msgSend_989( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer request, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_989( + obj, + sel, + request, + completionHandler, + ); + } + + late final __objc_msgSend_989Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_989 = __objc_msgSend_989Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_downloadTaskWithURL_completionHandler_1 = + _registerName1("downloadTaskWithURL:completionHandler:"); + ffi.Pointer _objc_msgSend_990( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_990( + obj, + sel, + url, + completionHandler, + ); + } + + late final __objc_msgSend_990Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_990 = __objc_msgSend_990Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_downloadTaskWithResumeData_completionHandler_1 = + _registerName1("downloadTaskWithResumeData:completionHandler:"); + ffi.Pointer _objc_msgSend_991( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer resumeData, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_991( + obj, + sel, + resumeData, + completionHandler, + ); + } + + late final __objc_msgSend_991Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_991 = __objc_msgSend_991Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _class_NSProtocolChecker1 = _getClass1("NSProtocolChecker"); + ffi.Pointer _objc_msgSend_992( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_992( + obj, + sel, + ); + } + + late final __objc_msgSend_992Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_992 = __objc_msgSend_992Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_protocolCheckerWithTarget_protocol_1 = + _registerName1("protocolCheckerWithTarget:protocol:"); + instancetype _objc_msgSend_993( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer anObject, + ffi.Pointer aProtocol, + ) { + return __objc_msgSend_993( + obj, + sel, + anObject, + aProtocol, + ); + } + + late final __objc_msgSend_993Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_993 = __objc_msgSend_993Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_initWithTarget_protocol_1 = + _registerName1("initWithTarget:protocol:"); + late final _class_NSTask1 = _getClass1("NSTask"); + late final _sel_setExecutableURL_1 = _registerName1("setExecutableURL:"); + late final _sel_setEnvironment_1 = _registerName1("setEnvironment:"); + late final _sel_currentDirectoryURL1 = _registerName1("currentDirectoryURL"); + late final _sel_setCurrentDirectoryURL_1 = + _registerName1("setCurrentDirectoryURL:"); + late final _sel_standardInput1 = _registerName1("standardInput"); + late final _sel_setStandardInput_1 = _registerName1("setStandardInput:"); + late final _sel_standardOutput1 = _registerName1("standardOutput"); + late final _sel_setStandardOutput_1 = _registerName1("setStandardOutput:"); + late final _sel_standardError1 = _registerName1("standardError"); + late final _sel_setStandardError_1 = _registerName1("setStandardError:"); + late final _sel_launchAndReturnError_1 = + _registerName1("launchAndReturnError:"); + late final _sel_interrupt1 = _registerName1("interrupt"); + late final _sel_terminate1 = _registerName1("terminate"); + late final _sel_isRunning1 = _registerName1("isRunning"); + late final _sel_terminationStatus1 = _registerName1("terminationStatus"); + late final _sel_terminationReason1 = _registerName1("terminationReason"); + int _objc_msgSend_994( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_994( + obj, + sel, + ); + } + + late final __objc_msgSend_994Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_994 = __objc_msgSend_994Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_terminationHandler1 = _registerName1("terminationHandler"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_995( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_995( + obj, + sel, + ); + } + + late final __objc_msgSend_995Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_995 = __objc_msgSend_995Ptr.asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setTerminationHandler_1 = + _registerName1("setTerminationHandler:"); + void _objc_msgSend_996( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> value, + ) { + return __objc_msgSend_996( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_996Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_996 = __objc_msgSend_996Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_1 = + _registerName1( + "launchedTaskWithExecutableURL:arguments:error:terminationHandler:"); + ffi.Pointer _objc_msgSend_997( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer arguments, + ffi.Pointer> error, + ffi.Pointer<_ObjCBlock> terminationHandler, + ) { + return __objc_msgSend_997( + obj, + sel, + url, + arguments, + error, + terminationHandler, + ); + } + + late final __objc_msgSend_997Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_997 = __objc_msgSend_997Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_waitUntilExit1 = _registerName1("waitUntilExit"); + late final _sel_launchPath1 = _registerName1("launchPath"); + late final _sel_setLaunchPath_1 = _registerName1("setLaunchPath:"); + late final _sel_setCurrentDirectoryPath_1 = + _registerName1("setCurrentDirectoryPath:"); + late final _sel_launch1 = _registerName1("launch"); + late final _sel_launchedTaskWithLaunchPath_arguments_1 = + _registerName1("launchedTaskWithLaunchPath:arguments:"); + ffi.Pointer _objc_msgSend_998( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer arguments, + ) { + return __objc_msgSend_998( + obj, + sel, + path, + arguments, + ); + } + + late final __objc_msgSend_998Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_998 = __objc_msgSend_998Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _class_NSXMLElement1 = _getClass1("NSXMLElement"); + late final _class_NSXMLNode1 = _getClass1("NSXMLNode"); + late final _sel_initWithKind_1 = _registerName1("initWithKind:"); + instancetype _objc_msgSend_999( + ffi.Pointer obj, + ffi.Pointer sel, + int kind, + ) { + return __objc_msgSend_999( + obj, + sel, + kind, + ); + } + + late final __objc_msgSend_999Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_999 = __objc_msgSend_999Ptr.asFunction< + instancetype Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_initWithKind_options_1 = + _registerName1("initWithKind:options:"); + instancetype _objc_msgSend_1000( + ffi.Pointer obj, + ffi.Pointer sel, + int kind, + int options, + ) { + return __objc_msgSend_1000( + obj, + sel, + kind, + options, + ); + } + + late final __objc_msgSend_1000Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_1000 = __objc_msgSend_1000Ptr.asFunction< + instancetype Function( + ffi.Pointer, ffi.Pointer, int, int)>(); + + late final _sel_document1 = _registerName1("document"); + late final _sel_documentWithRootElement_1 = + _registerName1("documentWithRootElement:"); + ffi.Pointer _objc_msgSend_1001( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer element, + ) { + return __objc_msgSend_1001( + obj, + sel, + element, + ); + } + + late final __objc_msgSend_1001Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1001 = __objc_msgSend_1001Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_elementWithName_1 = _registerName1("elementWithName:"); + late final _sel_elementWithName_URI_1 = + _registerName1("elementWithName:URI:"); + late final _sel_elementWithName_stringValue_1 = + _registerName1("elementWithName:stringValue:"); + late final _sel_elementWithName_children_attributes_1 = + _registerName1("elementWithName:children:attributes:"); + ffi.Pointer _objc_msgSend_1002( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer children, + ffi.Pointer attributes, + ) { + return __objc_msgSend_1002( + obj, + sel, + name, + children, + attributes, + ); + } + + late final __objc_msgSend_1002Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1002 = __objc_msgSend_1002Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_attributeWithName_stringValue_1 = + _registerName1("attributeWithName:stringValue:"); + late final _sel_attributeWithName_URI_stringValue_1 = + _registerName1("attributeWithName:URI:stringValue:"); + late final _sel_namespaceWithName_stringValue_1 = + _registerName1("namespaceWithName:stringValue:"); + late final _sel_processingInstructionWithName_stringValue_1 = + _registerName1("processingInstructionWithName:stringValue:"); + late final _sel_commentWithStringValue_1 = + _registerName1("commentWithStringValue:"); + late final _sel_textWithStringValue_1 = + _registerName1("textWithStringValue:"); + late final _sel_DTDNodeWithXMLString_1 = + _registerName1("DTDNodeWithXMLString:"); + int _objc_msgSend_1003( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1003( + obj, + sel, + ); + } + + late final __objc_msgSend_1003Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1003 = __objc_msgSend_1003Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_objectValue1 = _registerName1("objectValue"); + late final _sel_setObjectValue_1 = _registerName1("setObjectValue:"); + late final _sel_setStringValue_1 = _registerName1("setStringValue:"); + late final _sel_setStringValue_resolvingEntities_1 = + _registerName1("setStringValue:resolvingEntities:"); + void _objc_msgSend_1004( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, + bool resolve, + ) { + return __objc_msgSend_1004( + obj, + sel, + string, + resolve, + ); + } + + late final __objc_msgSend_1004Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_1004 = __objc_msgSend_1004Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); + + late final _sel_index1 = _registerName1("index"); + late final _sel_level1 = _registerName1("level"); + late final _class_NSXMLDocument1 = _getClass1("NSXMLDocument"); + late final _sel_initWithXMLString_options_error_1 = + _registerName1("initWithXMLString:options:error:"); + instancetype _objc_msgSend_1005( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer string, + int mask, + ffi.Pointer> error, + ) { + return __objc_msgSend_1005( + obj, + sel, + string, + mask, + error, + ); + } + + late final __objc_msgSend_1005Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_1005 = __objc_msgSend_1005Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); + + instancetype _objc_msgSend_1006( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + int mask, + ffi.Pointer> error, + ) { + return __objc_msgSend_1006( + obj, + sel, + url, + mask, + error, + ); + } + + late final __objc_msgSend_1006Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_1006 = __objc_msgSend_1006Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); + + late final _sel_initWithData_options_error_1 = + _registerName1("initWithData:options:error:"); + instancetype _objc_msgSend_1007( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer data, + int mask, + ffi.Pointer> error, + ) { + return __objc_msgSend_1007( + obj, + sel, + data, + mask, + error, + ); + } + + late final __objc_msgSend_1007Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_1007 = __objc_msgSend_1007Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); + + late final _sel_initWithRootElement_1 = + _registerName1("initWithRootElement:"); + late final _sel_replacementClassForClass_1 = + _registerName1("replacementClassForClass:"); + late final _sel_characterEncoding1 = _registerName1("characterEncoding"); + late final _sel_setCharacterEncoding_1 = + _registerName1("setCharacterEncoding:"); + late final _sel_isStandalone1 = _registerName1("isStandalone"); + late final _sel_setStandalone_1 = _registerName1("setStandalone:"); + late final _sel_documentContentKind1 = _registerName1("documentContentKind"); + int _objc_msgSend_1008( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1008( + obj, + sel, + ); + } + + late final __objc_msgSend_1008Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1008 = __objc_msgSend_1008Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setDocumentContentKind_1 = + _registerName1("setDocumentContentKind:"); + void _objc_msgSend_1009( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_1009( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_1009Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_1009 = __objc_msgSend_1009Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_setMIMEType_1 = _registerName1("setMIMEType:"); + late final _class_NSXMLDTD1 = _getClass1("NSXMLDTD"); + late final _sel_setPublicID_1 = _registerName1("setPublicID:"); + late final _sel_setSystemID_1 = _registerName1("setSystemID:"); + late final _sel_insertChild_atIndex_1 = + _registerName1("insertChild:atIndex:"); + void _objc_msgSend_1010( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer child, + int index, + ) { + return __objc_msgSend_1010( + obj, + sel, + child, + index, + ); + } + + late final __objc_msgSend_1010Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_1010 = __objc_msgSend_1010Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_insertChildren_atIndex_1 = + _registerName1("insertChildren:atIndex:"); + void _objc_msgSend_1011( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer children, + int index, + ) { + return __objc_msgSend_1011( + obj, + sel, + children, + index, + ); + } + + late final __objc_msgSend_1011Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_1011 = __objc_msgSend_1011Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); + + late final _sel_removeChildAtIndex_1 = _registerName1("removeChildAtIndex:"); + late final _sel_setChildren_1 = _registerName1("setChildren:"); + late final _sel_addChild_1 = _registerName1("addChild:"); + void _objc_msgSend_1012( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer child, + ) { + return __objc_msgSend_1012( + obj, + sel, + child, + ); + } + + late final __objc_msgSend_1012Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1012 = __objc_msgSend_1012Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_replaceChildAtIndex_withNode_1 = + _registerName1("replaceChildAtIndex:withNode:"); + void _objc_msgSend_1013( + ffi.Pointer obj, + ffi.Pointer sel, + int index, + ffi.Pointer node, + ) { + return __objc_msgSend_1013( + obj, + sel, + index, + node, + ); + } + + late final __objc_msgSend_1013Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1013 = __objc_msgSend_1013Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); + + late final _class_NSXMLDTDNode1 = _getClass1("NSXMLDTDNode"); + late final _sel_initWithXMLString_1 = _registerName1("initWithXMLString:"); + late final _sel_DTDKind1 = _registerName1("DTDKind"); + int _objc_msgSend_1014( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1014( + obj, + sel, + ); + } + + late final __objc_msgSend_1014Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1014 = __objc_msgSend_1014Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setDTDKind_1 = _registerName1("setDTDKind:"); + void _objc_msgSend_1015( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_1015( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_1015Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_1015 = __objc_msgSend_1015Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_isExternal1 = _registerName1("isExternal"); + late final _sel_notationName1 = _registerName1("notationName"); + late final _sel_setNotationName_1 = _registerName1("setNotationName:"); + late final _sel_localNameForName_1 = _registerName1("localNameForName:"); + late final _sel_prefixForName_1 = _registerName1("prefixForName:"); + late final _sel_predefinedNamespaceForPrefix_1 = + _registerName1("predefinedNamespaceForPrefix:"); + ffi.Pointer _objc_msgSend_1016( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ) { + return __objc_msgSend_1016( + obj, + sel, + name, + ); + } + + late final __objc_msgSend_1016Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1016 = __objc_msgSend_1016Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_entityDeclarationForName_1 = + _registerName1("entityDeclarationForName:"); + ffi.Pointer _objc_msgSend_1017( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ) { + return __objc_msgSend_1017( + obj, + sel, + name, + ); + } + + late final __objc_msgSend_1017Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1017 = __objc_msgSend_1017Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_notationDeclarationForName_1 = + _registerName1("notationDeclarationForName:"); + late final _sel_elementDeclarationForName_1 = + _registerName1("elementDeclarationForName:"); + late final _sel_attributeDeclarationForName_elementName_1 = + _registerName1("attributeDeclarationForName:elementName:"); + ffi.Pointer _objc_msgSend_1018( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer elementName, + ) { + return __objc_msgSend_1018( + obj, + sel, + name, + elementName, + ); + } + + late final __objc_msgSend_1018Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1018 = __objc_msgSend_1018Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_predefinedEntityDeclarationForName_1 = + _registerName1("predefinedEntityDeclarationForName:"); + late final _sel_DTD1 = _registerName1("DTD"); + ffi.Pointer _objc_msgSend_1019( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1019( + obj, + sel, + ); + } + + late final __objc_msgSend_1019Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1019 = __objc_msgSend_1019Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setDTD_1 = _registerName1("setDTD:"); + void _objc_msgSend_1020( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_1020( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_1020Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1020 = __objc_msgSend_1020Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_setRootElement_1 = _registerName1("setRootElement:"); + void _objc_msgSend_1021( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer root, + ) { + return __objc_msgSend_1021( + obj, + sel, + root, + ); + } + + late final __objc_msgSend_1021Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1021 = __objc_msgSend_1021Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_rootElement1 = _registerName1("rootElement"); + ffi.Pointer _objc_msgSend_1022( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1022( + obj, + sel, + ); + } + + late final __objc_msgSend_1022Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1022 = __objc_msgSend_1022Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_XMLData1 = _registerName1("XMLData"); + late final _sel_XMLDataWithOptions_1 = _registerName1("XMLDataWithOptions:"); + ffi.Pointer _objc_msgSend_1023( + ffi.Pointer obj, + ffi.Pointer sel, + int options, + ) { + return __objc_msgSend_1023( + obj, + sel, + options, + ); + } + + late final __objc_msgSend_1023Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_1023 = __objc_msgSend_1023Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_objectByApplyingXSLT_arguments_error_1 = + _registerName1("objectByApplyingXSLT:arguments:error:"); + ffi.Pointer _objc_msgSend_1024( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer xslt, + ffi.Pointer arguments, + ffi.Pointer> error, + ) { + return __objc_msgSend_1024( + obj, + sel, + xslt, + arguments, + error, + ); + } + + late final __objc_msgSend_1024Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_1024 = __objc_msgSend_1024Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_objectByApplyingXSLTString_arguments_error_1 = + _registerName1("objectByApplyingXSLTString:arguments:error:"); + ffi.Pointer _objc_msgSend_1025( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer xslt, + ffi.Pointer arguments, + ffi.Pointer> error, + ) { + return __objc_msgSend_1025( + obj, + sel, + xslt, + arguments, + error, + ); + } + + late final __objc_msgSend_1025Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_1025 = __objc_msgSend_1025Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_objectByApplyingXSLTAtURL_arguments_error_1 = + _registerName1("objectByApplyingXSLTAtURL:arguments:error:"); + ffi.Pointer _objc_msgSend_1026( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer xsltURL, + ffi.Pointer argument, + ffi.Pointer> error, + ) { + return __objc_msgSend_1026( + obj, + sel, + xsltURL, + argument, + error, + ); + } + + late final __objc_msgSend_1026Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_1026 = __objc_msgSend_1026Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_validateAndReturnError_1 = + _registerName1("validateAndReturnError:"); + late final _sel_rootDocument1 = _registerName1("rootDocument"); + ffi.Pointer _objc_msgSend_1027( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1027( + obj, + sel, + ); + } + + late final __objc_msgSend_1027Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1027 = __objc_msgSend_1027Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_parent1 = _registerName1("parent"); + ffi.Pointer _objc_msgSend_1028( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1028( + obj, + sel, + ); + } + + late final __objc_msgSend_1028Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1028 = __objc_msgSend_1028Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_childCount1 = _registerName1("childCount"); + late final _sel_children1 = _registerName1("children"); + late final _sel_childAtIndex_1 = _registerName1("childAtIndex:"); + ffi.Pointer _objc_msgSend_1029( + ffi.Pointer obj, + ffi.Pointer sel, + int index, + ) { + return __objc_msgSend_1029( + obj, + sel, + index, + ); + } + + late final __objc_msgSend_1029Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_1029 = __objc_msgSend_1029Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_previousSibling1 = _registerName1("previousSibling"); + late final _sel_nextSibling1 = _registerName1("nextSibling"); + late final _sel_previousNode1 = _registerName1("previousNode"); + late final _sel_nextNode1 = _registerName1("nextNode"); + late final _sel_detach1 = _registerName1("detach"); + late final _sel_XPath1 = _registerName1("XPath"); + late final _sel_localName1 = _registerName1("localName"); + late final _sel_prefix1 = _registerName1("prefix"); + late final _sel_URI1 = _registerName1("URI"); + late final _sel_setURI_1 = _registerName1("setURI:"); + late final _sel_XMLString1 = _registerName1("XMLString"); + late final _sel_XMLStringWithOptions_1 = + _registerName1("XMLStringWithOptions:"); + ffi.Pointer _objc_msgSend_1030( + ffi.Pointer obj, + ffi.Pointer sel, + int options, + ) { + return __objc_msgSend_1030( + obj, + sel, + options, + ); + } + + late final __objc_msgSend_1030Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_1030 = __objc_msgSend_1030Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_canonicalXMLStringPreservingComments_1 = + _registerName1("canonicalXMLStringPreservingComments:"); + ffi.Pointer _objc_msgSend_1031( + ffi.Pointer obj, + ffi.Pointer sel, + bool comments, + ) { + return __objc_msgSend_1031( + obj, + sel, + comments, + ); + } + + late final __objc_msgSend_1031Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_1031 = __objc_msgSend_1031Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, bool)>(); + + late final _sel_nodesForXPath_error_1 = + _registerName1("nodesForXPath:error:"); + late final _sel_objectsForXQuery_constants_error_1 = + _registerName1("objectsForXQuery:constants:error:"); + ffi.Pointer _objc_msgSend_1032( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer xquery, + ffi.Pointer constants, + ffi.Pointer> error, + ) { + return __objc_msgSend_1032( + obj, + sel, + xquery, + constants, + error, + ); + } + + late final __objc_msgSend_1032Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_1032 = __objc_msgSend_1032Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_objectsForXQuery_error_1 = + _registerName1("objectsForXQuery:error:"); + late final _sel_initWithName_URI_1 = _registerName1("initWithName:URI:"); + late final _sel_initWithName_stringValue_1 = + _registerName1("initWithName:stringValue:"); + late final _sel_initWithXMLString_error_1 = + _registerName1("initWithXMLString:error:"); + late final _sel_elementsForName_1 = _registerName1("elementsForName:"); + late final _sel_elementsForLocalName_URI_1 = + _registerName1("elementsForLocalName:URI:"); + late final _sel_addAttribute_1 = _registerName1("addAttribute:"); + late final _sel_removeAttributeForName_1 = + _registerName1("removeAttributeForName:"); + late final _sel_attributes1 = _registerName1("attributes"); + late final _sel_setAttributes_1 = _registerName1("setAttributes:"); + late final _sel_setAttributesWithDictionary_1 = + _registerName1("setAttributesWithDictionary:"); + late final _sel_attributeForName_1 = _registerName1("attributeForName:"); + late final _sel_attributeForLocalName_URI_1 = + _registerName1("attributeForLocalName:URI:"); + ffi.Pointer _objc_msgSend_1033( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer localName, + ffi.Pointer URI, + ) { + return __objc_msgSend_1033( + obj, + sel, + localName, + URI, + ); + } + + late final __objc_msgSend_1033Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1033 = __objc_msgSend_1033Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_addNamespace_1 = _registerName1("addNamespace:"); + late final _sel_removeNamespaceForPrefix_1 = + _registerName1("removeNamespaceForPrefix:"); + late final _sel_namespaces1 = _registerName1("namespaces"); + late final _sel_setNamespaces_1 = _registerName1("setNamespaces:"); + late final _sel_namespaceForPrefix_1 = _registerName1("namespaceForPrefix:"); + late final _sel_resolveNamespaceForName_1 = + _registerName1("resolveNamespaceForName:"); + late final _sel_resolvePrefixForNamespaceURI_1 = + _registerName1("resolvePrefixForNamespaceURI:"); + late final _sel_normalizeAdjacentTextNodesPreservingCDATA_1 = + _registerName1("normalizeAdjacentTextNodesPreservingCDATA:"); + late final _sel_setAttributesAsDictionary_1 = + _registerName1("setAttributesAsDictionary:"); + late final _class_HidListenerBindings1 = + _getClass1("hid_listener.HidListenerBindings"); + late final _sel_InitializeDartAPIWithData_1 = + _registerName1("InitializeDartAPIWithData:"); + late final _sel_InitializeListeners1 = _registerName1("InitializeListeners"); + late final _sel_SetKeyboardListenerWithPort_1 = + _registerName1("SetKeyboardListenerWithPort:"); + bool _objc_msgSend_1034( + ffi.Pointer obj, + ffi.Pointer sel, + int port, + ) { + return __objc_msgSend_1034( + obj, + sel, + port, + ); + } + + late final __objc_msgSend_1034Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Int64)>>('objc_msgSend'); + late final __objc_msgSend_1034 = __objc_msgSend_1034Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_SetMouseListenerWithPort_1 = + _registerName1("SetMouseListenerWithPort:"); + late final _class_MacOsKeyboardEvent1 = + _getClass1("hid_listener.MacOsKeyboardEvent"); + late final _sel_eventType1 = _registerName1("eventType"); + int _objc_msgSend_1035( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1035( + obj, + sel, + ); + } + + late final __objc_msgSend_1035Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1035 = __objc_msgSend_1035Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setEventType_1 = _registerName1("setEventType:"); + void _objc_msgSend_1036( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_1036( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_1036Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_1036 = __objc_msgSend_1036Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + + late final _sel_characters1 = _registerName1("characters"); + late final _sel_setCharacters_1 = _registerName1("setCharacters:"); + late final _sel_charactersIgnoringModifiers1 = + _registerName1("charactersIgnoringModifiers"); + late final _sel_setCharactersIgnoringModifiers_1 = + _registerName1("setCharactersIgnoringModifiers:"); + late final _sel_keyCode1 = _registerName1("keyCode"); + late final _sel_setKeyCode_1 = _registerName1("setKeyCode:"); + late final _sel_modifiers1 = _registerName1("modifiers"); + late final _sel_setModifiers_1 = _registerName1("setModifiers:"); + late final _sel_isMedia1 = _registerName1("isMedia"); + late final _sel_setIsMedia_1 = _registerName1("setIsMedia:"); + late final _sel_mediaEventType1 = _registerName1("mediaEventType"); + int _objc_msgSend_1037( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1037( + obj, + sel, + ); + } + + late final __objc_msgSend_1037Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1037 = __objc_msgSend_1037Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setMediaEventType_1 = _registerName1("setMediaEventType:"); + void _objc_msgSend_1038( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_1038( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_1038Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_1038 = __objc_msgSend_1038Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); +} + +class _ObjCWrapper implements ffi.Finalizable { + final ffi.Pointer _id; + final HidListenerBindingsSwift _lib; + bool _pendingRelease; + + _ObjCWrapper._(this._id, this._lib, + {bool retain = false, bool release = false}) + : _pendingRelease = release { + if (retain) { + _lib._objc_retain(_id.cast()); + } + if (release) { + _lib._objc_releaseFinalizer2.attach(this, _id.cast(), detach: this); + } + } + + /// Releases the reference to the underlying ObjC object held by this wrapper. + /// Throws a StateError if this wrapper doesn't currently hold a reference. + void release() { + if (_pendingRelease) { + _pendingRelease = false; + _lib._objc_release(_id.cast()); + _lib._objc_releaseFinalizer2.detach(this); + } else { + throw StateError( + 'Released an ObjC object that was unowned or already released.'); + } + } + + @override + bool operator ==(Object other) { + return other is _ObjCWrapper && _id == other._id; + } + + @override + int get hashCode => _id.hashCode; + + /// Return a pointer to this object. + ffi.Pointer get pointer => _id; +} + +class NSObject extends _ObjCWrapper { + NSObject._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSObject] that points to the same underlying object as [other]. + static NSObject castFrom(T other) { + return NSObject._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSObject] that wraps the given raw object pointer. + static NSObject castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSObject._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSObject]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSObject1); + } + + static void load(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_load1); + } + + static void initialize(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_initialize1); + } + + NSObject init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_new1); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + static NSObject allocWithZone_( + HidListenerBindingsSwift _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSObject1, _lib._sel_allocWithZone_1, zone); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + static NSObject alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_alloc1); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + void dealloc() { + return _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); + } + + void finalize() { + return _lib._objc_msgSend_1(_id, _lib._sel_finalize1); + } + + NSObject copy() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_copy1); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + NSObject mutableCopy() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_mutableCopy1); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + static NSObject copyWithZone_( + HidListenerBindingsSwift _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSObject1, _lib._sel_copyWithZone_1, zone); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + static NSObject mutableCopyWithZone_( + HidListenerBindingsSwift _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSObject1, _lib._sel_mutableCopyWithZone_1, zone); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + static bool instancesRespondToSelector_( + HidListenerBindingsSwift _lib, ffi.Pointer aSelector) { + return _lib._objc_msgSend_4(_lib._class_NSObject1, + _lib._sel_instancesRespondToSelector_1, aSelector); + } + + static bool conformsToProtocol_( + HidListenerBindingsSwift _lib, Protocol? protocol) { + return _lib._objc_msgSend_5(_lib._class_NSObject1, + _lib._sel_conformsToProtocol_1, protocol?._id ?? ffi.nullptr); + } + + ffi.Pointer> methodForSelector_( + ffi.Pointer aSelector) { + return _lib._objc_msgSend_6(_id, _lib._sel_methodForSelector_1, aSelector); + } + + static ffi.Pointer> + instanceMethodForSelector_( + HidListenerBindingsSwift _lib, ffi.Pointer aSelector) { + return _lib._objc_msgSend_6(_lib._class_NSObject1, + _lib._sel_instanceMethodForSelector_1, aSelector); + } + + void doesNotRecognizeSelector_(ffi.Pointer aSelector) { + return _lib._objc_msgSend_7( + _id, _lib._sel_doesNotRecognizeSelector_1, aSelector); + } + + NSObject forwardingTargetForSelector_(ffi.Pointer aSelector) { + final _ret = _lib._objc_msgSend_8( + _id, _lib._sel_forwardingTargetForSelector_1, aSelector); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void forwardInvocation_(NSInvocation? anInvocation) { + return _lib._objc_msgSend_392( + _id, _lib._sel_forwardInvocation_1, anInvocation?._id ?? ffi.nullptr); + } + + NSMethodSignature methodSignatureForSelector_( + ffi.Pointer aSelector) { + final _ret = _lib._objc_msgSend_393( + _id, _lib._sel_methodSignatureForSelector_1, aSelector); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); + } + + static NSMethodSignature instanceMethodSignatureForSelector_( + HidListenerBindingsSwift _lib, ffi.Pointer aSelector) { + final _ret = _lib._objc_msgSend_393(_lib._class_NSObject1, + _lib._sel_instanceMethodSignatureForSelector_1, aSelector); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); + } + + bool allowsWeakReference() { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsWeakReference1); + } + + bool retainWeakReference() { + return _lib._objc_msgSend_12(_id, _lib._sel_retainWeakReference1); + } + + static bool isSubclassOfClass_( + HidListenerBindingsSwift _lib, NSObject aClass) { + return _lib._objc_msgSend_0( + _lib._class_NSObject1, _lib._sel_isSubclassOfClass_1, aClass._id); + } + + static bool resolveClassMethod_( + HidListenerBindingsSwift _lib, ffi.Pointer sel) { + return _lib._objc_msgSend_4( + _lib._class_NSObject1, _lib._sel_resolveClassMethod_1, sel); + } + + static bool resolveInstanceMethod_( + HidListenerBindingsSwift _lib, ffi.Pointer sel) { + return _lib._objc_msgSend_4( + _lib._class_NSObject1, _lib._sel_resolveInstanceMethod_1, sel); + } + + static int hash(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_10(_lib._class_NSObject1, _lib._sel_hash1); + } + + static NSObject superclass(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_superclass1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject class1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_class1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSString description(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_20(_lib._class_NSObject1, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString debugDescription(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_20( + _lib._class_NSObject1, _lib._sel_debugDescription1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static int version(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_78(_lib._class_NSObject1, _lib._sel_version1); + } + + static void setVersion_(HidListenerBindingsSwift _lib, int aVersion) { + return _lib._objc_msgSend_394( + _lib._class_NSObject1, _lib._sel_setVersion_1, aVersion); + } + + NSObject get classForCoder { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForCoder1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject replacementObjectForCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_replacementObjectForCoder_1, coder?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject awakeAfterUsingCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_awakeAfterUsingCoder_1, coder?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + static void poseAsClass_(HidListenerBindingsSwift _lib, NSObject aClass) { + return _lib._objc_msgSend_15( + _lib._class_NSObject1, _lib._sel_poseAsClass_1, aClass._id); + } + + NSObject get autoContentAccessingProxy { + final _ret = + _lib._objc_msgSend_2(_id, _lib._sel_autoContentAccessingProxy1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void + attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_( + NSError? error, + int recoveryOptionIndex, + NSObject delegate, + ffi.Pointer didRecoverSelector, + ffi.Pointer contextInfo) { + return _lib._objc_msgSend_395( + _id, + _lib._sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_1, + error?._id ?? ffi.nullptr, + recoveryOptionIndex, + delegate._id, + didRecoverSelector, + contextInfo); + } + + bool attemptRecoveryFromError_optionIndex_( + NSError? error, int recoveryOptionIndex) { + return _lib._objc_msgSend_396( + _id, + _lib._sel_attemptRecoveryFromError_optionIndex_1, + error?._id ?? ffi.nullptr, + recoveryOptionIndex); + } + + void performSelector_withObject_afterDelay_inModes_( + ffi.Pointer aSelector, + NSObject anArgument, + double delay, + NSArray? modes) { + return _lib._objc_msgSend_397( + _id, + _lib._sel_performSelector_withObject_afterDelay_inModes_1, + aSelector, + anArgument._id, + delay, + modes?._id ?? ffi.nullptr); + } + + void performSelector_withObject_afterDelay_( + ffi.Pointer aSelector, NSObject anArgument, double delay) { + return _lib._objc_msgSend_398( + _id, + _lib._sel_performSelector_withObject_afterDelay_1, + aSelector, + anArgument._id, + delay); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSObject1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSObject1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + void URL_resourceDataDidBecomeAvailable_(NSURL? sender, NSData? newBytes) { + return _lib._objc_msgSend_399( + _id, + _lib._sel_URL_resourceDataDidBecomeAvailable_1, + sender?._id ?? ffi.nullptr, + newBytes?._id ?? ffi.nullptr); + } + + void URLResourceDidFinishLoading_(NSURL? sender) { + return _lib._objc_msgSend_400(_id, _lib._sel_URLResourceDidFinishLoading_1, + sender?._id ?? ffi.nullptr); + } + + void URLResourceDidCancelLoading_(NSURL? sender) { + return _lib._objc_msgSend_400(_id, _lib._sel_URLResourceDidCancelLoading_1, + sender?._id ?? ffi.nullptr); + } + + void URL_resourceDidFailLoadingWithReason_(NSURL? sender, NSString? reason) { + return _lib._objc_msgSend_401( + _id, + _lib._sel_URL_resourceDidFailLoadingWithReason_1, + sender?._id ?? ffi.nullptr, + reason?._id ?? ffi.nullptr); + } + + bool fileManager_shouldProceedAfterError_( + NSFileManager? fm, NSDictionary? errorInfo) { + return _lib._objc_msgSend_436( + _id, + _lib._sel_fileManager_shouldProceedAfterError_1, + fm?._id ?? ffi.nullptr, + errorInfo?._id ?? ffi.nullptr); + } + + void fileManager_willProcessPath_(NSFileManager? fm, NSString? path) { + return _lib._objc_msgSend_437(_id, _lib._sel_fileManager_willProcessPath_1, + fm?._id ?? ffi.nullptr, path?._id ?? ffi.nullptr); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSObject1, _lib._sel_accessInstanceVariablesDirectly1); + } + + NSObject valueForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void setValue_forKey_(NSObject value, NSString? key) { + return _lib._objc_msgSend_126( + _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + } + + bool validateValue_forKey_error_(ffi.Pointer> ioValue, + NSString? inKey, ffi.Pointer> outError) { + return _lib._objc_msgSend_226(_id, _lib._sel_validateValue_forKey_error_1, + ioValue, inKey?._id ?? ffi.nullptr, outError); + } + + NSMutableArray mutableArrayValueForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_454( + _id, _lib._sel_mutableArrayValueForKey_1, key?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + NSMutableOrderedSet mutableOrderedSetValueForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_473( + _id, _lib._sel_mutableOrderedSetValueForKey_1, key?._id ?? ffi.nullptr); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + NSMutableSet mutableSetValueForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_474( + _id, _lib._sel_mutableSetValueForKey_1, key?._id ?? ffi.nullptr); + return NSMutableSet._(_ret, _lib, retain: true, release: true); + } + + NSObject valueForKeyPath_(NSString? keyPath) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_valueForKeyPath_1, keyPath?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void setValue_forKeyPath_(NSObject value, NSString? keyPath) { + return _lib._objc_msgSend_126(_id, _lib._sel_setValue_forKeyPath_1, + value._id, keyPath?._id ?? ffi.nullptr); + } + + bool validateValue_forKeyPath_error_( + ffi.Pointer> ioValue, + NSString? inKeyPath, + ffi.Pointer> outError) { + return _lib._objc_msgSend_226( + _id, + _lib._sel_validateValue_forKeyPath_error_1, + ioValue, + inKeyPath?._id ?? ffi.nullptr, + outError); + } + + NSMutableArray mutableArrayValueForKeyPath_(NSString? keyPath) { + final _ret = _lib._objc_msgSend_454(_id, + _lib._sel_mutableArrayValueForKeyPath_1, keyPath?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + NSMutableOrderedSet mutableOrderedSetValueForKeyPath_(NSString? keyPath) { + final _ret = _lib._objc_msgSend_473( + _id, + _lib._sel_mutableOrderedSetValueForKeyPath_1, + keyPath?._id ?? ffi.nullptr); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + NSMutableSet mutableSetValueForKeyPath_(NSString? keyPath) { + final _ret = _lib._objc_msgSend_474(_id, + _lib._sel_mutableSetValueForKeyPath_1, keyPath?._id ?? ffi.nullptr); + return NSMutableSet._(_ret, _lib, retain: true, release: true); + } + + NSObject valueForUndefinedKey_(NSString? key) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_valueForUndefinedKey_1, key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void setValue_forUndefinedKey_(NSObject value, NSString? key) { + return _lib._objc_msgSend_126(_id, _lib._sel_setValue_forUndefinedKey_1, + value._id, key?._id ?? ffi.nullptr); + } + + void setNilValueForKey_(NSString? key) { + return _lib._objc_msgSend_192( + _id, _lib._sel_setNilValueForKey_1, key?._id ?? ffi.nullptr); + } + + NSDictionary dictionaryWithValuesForKeys_(NSArray? keys) { + final _ret = _lib._objc_msgSend_475( + _id, _lib._sel_dictionaryWithValuesForKeys_1, keys?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + void setValuesForKeysWithDictionary_(NSDictionary? keyedValues) { + return _lib._objc_msgSend_476( + _id, + _lib._sel_setValuesForKeysWithDictionary_1, + keyedValues?._id ?? ffi.nullptr); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSObject1, _lib._sel_useStoredAccessor1); + } + + NSObject storedValueForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_storedValueForKey_1, key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void takeStoredValue_forKey_(NSObject value, NSString? key) { + return _lib._objc_msgSend_126(_id, _lib._sel_takeStoredValue_forKey_1, + value._id, key?._id ?? ffi.nullptr); + } + + void takeValue_forKey_(NSObject value, NSString? key) { + return _lib._objc_msgSend_126( + _id, _lib._sel_takeValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + } + + void takeValue_forKeyPath_(NSObject value, NSString? keyPath) { + return _lib._objc_msgSend_126(_id, _lib._sel_takeValue_forKeyPath_1, + value._id, keyPath?._id ?? ffi.nullptr); + } + + NSObject handleQueryWithUnboundKey_(NSString? key) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_handleQueryWithUnboundKey_1, key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void handleTakeValue_forUnboundKey_(NSObject value, NSString? key) { + return _lib._objc_msgSend_126( + _id, + _lib._sel_handleTakeValue_forUnboundKey_1, + value._id, + key?._id ?? ffi.nullptr); + } + + void unableToSetNilForKey_(NSString? key) { + return _lib._objc_msgSend_192( + _id, _lib._sel_unableToSetNilForKey_1, key?._id ?? ffi.nullptr); + } + + NSDictionary valuesForKeys_(NSArray? keys) { + final _ret = _lib._objc_msgSend_475( + _id, _lib._sel_valuesForKeys_1, keys?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + void takeValuesFromDictionary_(NSDictionary? properties) { + return _lib._objc_msgSend_476(_id, _lib._sel_takeValuesFromDictionary_1, + properties?._id ?? ffi.nullptr); + } + + void observeValueForKeyPath_ofObject_change_context_(NSString? keyPath, + NSObject object, NSDictionary? change, ffi.Pointer context) { + return _lib._objc_msgSend_477( + _id, + _lib._sel_observeValueForKeyPath_ofObject_change_context_1, + keyPath?._id ?? ffi.nullptr, + object._id, + change?._id ?? ffi.nullptr, + context); + } + + void addObserver_forKeyPath_options_context_(NSObject? observer, + NSString? keyPath, int options, ffi.Pointer context) { + return _lib._objc_msgSend_130( + _id, + _lib._sel_addObserver_forKeyPath_options_context_1, + observer?._id ?? ffi.nullptr, + keyPath?._id ?? ffi.nullptr, + options, + context); + } + + void removeObserver_forKeyPath_context_( + NSObject? observer, NSString? keyPath, ffi.Pointer context) { + return _lib._objc_msgSend_131( + _id, + _lib._sel_removeObserver_forKeyPath_context_1, + observer?._id ?? ffi.nullptr, + keyPath?._id ?? ffi.nullptr, + context); + } + + void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { + return _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, + observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); + } + + void willChangeValueForKey_(NSString? key) { + return _lib._objc_msgSend_192( + _id, _lib._sel_willChangeValueForKey_1, key?._id ?? ffi.nullptr); + } + + void didChangeValueForKey_(NSString? key) { + return _lib._objc_msgSend_192( + _id, _lib._sel_didChangeValueForKey_1, key?._id ?? ffi.nullptr); + } + + void willChange_valuesAtIndexes_forKey_( + int changeKind, NSIndexSet? indexes, NSString? key) { + return _lib._objc_msgSend_478( + _id, + _lib._sel_willChange_valuesAtIndexes_forKey_1, + changeKind, + indexes?._id ?? ffi.nullptr, + key?._id ?? ffi.nullptr); + } + + void didChange_valuesAtIndexes_forKey_( + int changeKind, NSIndexSet? indexes, NSString? key) { + return _lib._objc_msgSend_478( + _id, + _lib._sel_didChange_valuesAtIndexes_forKey_1, + changeKind, + indexes?._id ?? ffi.nullptr, + key?._id ?? ffi.nullptr); + } + + void willChangeValueForKey_withSetMutation_usingObjects_( + NSString? key, int mutationKind, NSSet? objects) { + return _lib._objc_msgSend_479( + _id, + _lib._sel_willChangeValueForKey_withSetMutation_usingObjects_1, + key?._id ?? ffi.nullptr, + mutationKind, + objects?._id ?? ffi.nullptr); + } + + void didChangeValueForKey_withSetMutation_usingObjects_( + NSString? key, int mutationKind, NSSet? objects) { + return _lib._objc_msgSend_479( + _id, + _lib._sel_didChangeValueForKey_withSetMutation_usingObjects_1, + key?._id ?? ffi.nullptr, + mutationKind, + objects?._id ?? ffi.nullptr); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSObject1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSObject1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + ffi.Pointer get observationInfo { + return _lib._objc_msgSend_19(_id, _lib._sel_observationInfo1); + } + + set observationInfo(ffi.Pointer value) { + _lib._objc_msgSend_480(_id, _lib._sel_setObservationInfo_1, value); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSObject1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + NSObject get classForKeyedArchiver { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForKeyedArchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject replacementObjectForKeyedArchiver_(NSKeyedArchiver? archiver) { + final _ret = _lib._objc_msgSend_493( + _id, + _lib._sel_replacementObjectForKeyedArchiver_1, + archiver?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSObject1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSObject1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void performSelectorOnMainThread_withObject_waitUntilDone_modes_( + ffi.Pointer aSelector, NSObject arg, bool wait, NSArray? array) { + return _lib._objc_msgSend_494( + _id, + _lib._sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_1, + aSelector, + arg._id, + wait, + array?._id ?? ffi.nullptr); + } + + void performSelectorOnMainThread_withObject_waitUntilDone_( + ffi.Pointer aSelector, NSObject arg, bool wait) { + return _lib._objc_msgSend_495( + _id, + _lib._sel_performSelectorOnMainThread_withObject_waitUntilDone_1, + aSelector, + arg._id, + wait); + } + + void performSelector_onThread_withObject_waitUntilDone_modes_( + ffi.Pointer aSelector, + NSThread? thr, + NSObject arg, + bool wait, + NSArray? array) { + return _lib._objc_msgSend_512( + _id, + _lib._sel_performSelector_onThread_withObject_waitUntilDone_modes_1, + aSelector, + thr?._id ?? ffi.nullptr, + arg._id, + wait, + array?._id ?? ffi.nullptr); + } + + void performSelector_onThread_withObject_waitUntilDone_( + ffi.Pointer aSelector, NSThread? thr, NSObject arg, bool wait) { + return _lib._objc_msgSend_513( + _id, + _lib._sel_performSelector_onThread_withObject_waitUntilDone_1, + aSelector, + thr?._id ?? ffi.nullptr, + arg._id, + wait); + } + + void performSelectorInBackground_withObject_( + ffi.Pointer aSelector, NSObject arg) { + return _lib._objc_msgSend_84(_id, + _lib._sel_performSelectorInBackground_withObject_1, aSelector, arg._id); + } + + NSObject get classForArchiver { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForArchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject replacementObjectForArchiver_(NSArchiver? archiver) { + final _ret = _lib._objc_msgSend_516(_id, + _lib._sel_replacementObjectForArchiver_1, archiver?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject get classForPortCoder { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForPortCoder1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject replacementObjectForPortCoder_(NSPortCoder? coder) { + final _ret = _lib._objc_msgSend_554(_id, + _lib._sel_replacementObjectForPortCoder_1, coder?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSClassDescription? get classDescription { + final _ret = _lib._objc_msgSend_557(_id, _lib._sel_classDescription1); + return _ret.address == 0 + ? null + : NSClassDescription._(_ret, _lib, retain: true, release: true); + } + + NSArray? get attributeKeys { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attributeKeys1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get toOneRelationshipKeys { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toOneRelationshipKeys1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get toManyRelationshipKeys { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toManyRelationshipKeys1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString inverseForRelationshipKey_(NSString? relationshipKey) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_inverseForRelationshipKey_1, + relationshipKey?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSObject scriptingValueForSpecifier_( + NSScriptObjectSpecifier? objectSpecifier) { + final _ret = _lib._objc_msgSend_601( + _id, + _lib._sel_scriptingValueForSpecifier_1, + objectSpecifier?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSDictionary? get scriptingProperties { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_scriptingProperties1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set scriptingProperties(NSDictionary? value) { + _lib._objc_msgSend_171( + _id, _lib._sel_setScriptingProperties_1, value?._id ?? ffi.nullptr); + } + + NSObject copyScriptingValue_forKey_withProperties_( + NSObject value, NSString? key, NSDictionary? properties) { + final _ret = _lib._objc_msgSend_602( + _id, + _lib._sel_copyScriptingValue_forKey_withProperties_1, + value._id, + key?._id ?? ffi.nullptr, + properties?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + NSObject + newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_( + NSObject objectClass, + NSString? key, + NSObject contentsValue, + NSDictionary? properties) { + final _ret = _lib._objc_msgSend_603( + _id, + _lib._sel_newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_1, + objectClass._id, + key?._id ?? ffi.nullptr, + contentsValue._id, + properties?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + int get classCode { + return _lib._objc_msgSend_197(_id, _lib._sel_classCode1); + } + + NSString? get className { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_className1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSObject valueAtIndex_inPropertyWithKey_(int index, NSString? key) { + final _ret = _lib._objc_msgSend_604( + _id, + _lib._sel_valueAtIndex_inPropertyWithKey_1, + index, + key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject valueWithName_inPropertyWithKey_(NSString? name, NSString? key) { + final _ret = _lib._objc_msgSend_165( + _id, + _lib._sel_valueWithName_inPropertyWithKey_1, + name?._id ?? ffi.nullptr, + key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject valueWithUniqueID_inPropertyWithKey_( + NSObject uniqueID, NSString? key) { + final _ret = _lib._objc_msgSend_287( + _id, + _lib._sel_valueWithUniqueID_inPropertyWithKey_1, + uniqueID._id, + key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void insertValue_atIndex_inPropertyWithKey_( + NSObject value, int index, NSString? key) { + return _lib._objc_msgSend_605( + _id, + _lib._sel_insertValue_atIndex_inPropertyWithKey_1, + value._id, + index, + key?._id ?? ffi.nullptr); + } + + void removeValueAtIndex_fromPropertyWithKey_(int index, NSString? key) { + return _lib._objc_msgSend_606( + _id, + _lib._sel_removeValueAtIndex_fromPropertyWithKey_1, + index, + key?._id ?? ffi.nullptr); + } + + void replaceValueAtIndex_inPropertyWithKey_withValue_( + int index, NSString? key, NSObject value) { + return _lib._objc_msgSend_607( + _id, + _lib._sel_replaceValueAtIndex_inPropertyWithKey_withValue_1, + index, + key?._id ?? ffi.nullptr, + value._id); + } + + void insertValue_inPropertyWithKey_(NSObject value, NSString? key) { + return _lib._objc_msgSend_126( + _id, + _lib._sel_insertValue_inPropertyWithKey_1, + value._id, + key?._id ?? ffi.nullptr); + } + + NSObject coerceValue_forKey_(NSObject value, NSString? key) { + final _ret = _lib._objc_msgSend_287(_id, _lib._sel_coerceValue_forKey_1, + value._id, key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSScriptObjectSpecifier? get objectSpecifier { + final _ret = _lib._objc_msgSend_588(_id, _lib._sel_objectSpecifier1); + return _ret.address == 0 + ? null + : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + } + + NSArray indicesOfObjectsByEvaluatingObjectSpecifier_( + NSScriptObjectSpecifier? specifier) { + final _ret = _lib._objc_msgSend_608( + _id, + _lib._sel_indicesOfObjectsByEvaluatingObjectSpecifier_1, + specifier?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + bool isEqualTo_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_isEqualTo_1, object._id); + } + + bool isLessThanOrEqualTo_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_isLessThanOrEqualTo_1, object._id); + } + + bool isLessThan_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_isLessThan_1, object._id); + } + + bool isGreaterThanOrEqualTo_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_isGreaterThanOrEqualTo_1, object._id); + } + + bool isGreaterThan_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_isGreaterThan_1, object._id); + } + + bool isNotEqualTo_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_isNotEqualTo_1, object._id); + } + + bool doesContain_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_doesContain_1, object._id); + } + + bool isLike_(NSString? object) { + return _lib._objc_msgSend_59( + _id, _lib._sel_isLike_1, object?._id ?? ffi.nullptr); + } + + bool isCaseInsensitiveLike_(NSString? object) { + return _lib._objc_msgSend_59( + _id, _lib._sel_isCaseInsensitiveLike_1, object?._id ?? ffi.nullptr); + } + + bool scriptingIsEqualTo_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_scriptingIsEqualTo_1, object._id); + } + + bool scriptingIsLessThanOrEqualTo_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_scriptingIsLessThanOrEqualTo_1, object._id); + } + + bool scriptingIsLessThan_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_scriptingIsLessThan_1, object._id); + } + + bool scriptingIsGreaterThanOrEqualTo_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_scriptingIsGreaterThanOrEqualTo_1, object._id); + } + + bool scriptingIsGreaterThan_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_scriptingIsGreaterThan_1, object._id); + } + + bool scriptingBeginsWith_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_scriptingBeginsWith_1, object._id); + } + + bool scriptingEndsWith_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_scriptingEndsWith_1, object._id); + } + + bool scriptingContains_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_scriptingContains_1, object._id); + } +} + +final class ObjCSel extends ffi.Opaque {} + +final class ObjCObject extends ffi.Opaque {} + +typedef instancetype = ffi.Pointer; + +final class _NSZone extends ffi.Opaque {} + +class Protocol extends _ObjCWrapper { + Protocol._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [Protocol] that points to the same underlying object as [other]. + static Protocol castFrom(T other) { + return Protocol._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [Protocol] that wraps the given raw object pointer. + static Protocol castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return Protocol._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [Protocol]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_Protocol1); + } +} + +class NSInvocation extends NSObject { + NSInvocation._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSInvocation] that points to the same underlying object as [other]. + static NSInvocation castFrom(T other) { + return NSInvocation._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSInvocation] that wraps the given raw object pointer. + static NSInvocation castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSInvocation._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSInvocation]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSInvocation1); + } + + static NSInvocation invocationWithMethodSignature_( + HidListenerBindingsSwift _lib, NSMethodSignature? sig) { + final _ret = _lib._objc_msgSend_385(_lib._class_NSInvocation1, + _lib._sel_invocationWithMethodSignature_1, sig?._id ?? ffi.nullptr); + return NSInvocation._(_ret, _lib, retain: true, release: true); + } + + NSMethodSignature? get methodSignature { + final _ret = _lib._objc_msgSend_386(_id, _lib._sel_methodSignature1); + return _ret.address == 0 + ? null + : NSMethodSignature._(_ret, _lib, retain: true, release: true); + } + + void retainArguments() { + return _lib._objc_msgSend_1(_id, _lib._sel_retainArguments1); + } + + bool get argumentsRetained { + return _lib._objc_msgSend_12(_id, _lib._sel_argumentsRetained1); + } + + NSObject get target { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_target1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + set target(NSObject value) { + _lib._objc_msgSend_387(_id, _lib._sel_setTarget_1, value._id); + } + + ffi.Pointer get selector { + return _lib._objc_msgSend_388(_id, _lib._sel_selector1); + } + + set selector(ffi.Pointer value) { + _lib._objc_msgSend_389(_id, _lib._sel_setSelector_1, value); + } + + void getReturnValue_(ffi.Pointer retLoc) { + return _lib._objc_msgSend_47(_id, _lib._sel_getReturnValue_1, retLoc); + } + + void setReturnValue_(ffi.Pointer retLoc) { + return _lib._objc_msgSend_47(_id, _lib._sel_setReturnValue_1, retLoc); + } + + void getArgument_atIndex_(ffi.Pointer argumentLocation, int idx) { + return _lib._objc_msgSend_390( + _id, _lib._sel_getArgument_atIndex_1, argumentLocation, idx); + } + + void setArgument_atIndex_(ffi.Pointer argumentLocation, int idx) { + return _lib._objc_msgSend_390( + _id, _lib._sel_setArgument_atIndex_1, argumentLocation, idx); + } + + void invoke() { + return _lib._objc_msgSend_1(_id, _lib._sel_invoke1); + } + + void invokeWithTarget_(NSObject target) { + return _lib._objc_msgSend_15(_id, _lib._sel_invokeWithTarget_1, target._id); + } + + void invokeUsingIMP_( + ffi.Pointer> imp) { + return _lib._objc_msgSend_391(_id, _lib._sel_invokeUsingIMP_1, imp); + } + + static NSInvocation new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSInvocation1, _lib._sel_new1); + return NSInvocation._(_ret, _lib, retain: false, release: true); + } + + static NSInvocation alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSInvocation1, _lib._sel_alloc1); + return NSInvocation._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSInvocation1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSInvocation1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSInvocation1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSInvocation1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSInvocation1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSInvocation1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSInvocation1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSInvocation1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSInvocation1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSMethodSignature extends NSObject { + NSMethodSignature._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSMethodSignature] that points to the same underlying object as [other]. + static NSMethodSignature castFrom(T other) { + return NSMethodSignature._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSMethodSignature] that wraps the given raw object pointer. + static NSMethodSignature castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMethodSignature._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSMethodSignature]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMethodSignature1); + } + + static NSMethodSignature signatureWithObjCTypes_( + HidListenerBindingsSwift _lib, ffi.Pointer types) { + final _ret = _lib._objc_msgSend_9(_lib._class_NSMethodSignature1, + _lib._sel_signatureWithObjCTypes_1, types); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); + } + + int get numberOfArguments { + return _lib._objc_msgSend_10(_id, _lib._sel_numberOfArguments1); + } + + ffi.Pointer getArgumentTypeAtIndex_(int idx) { + return _lib._objc_msgSend_11(_id, _lib._sel_getArgumentTypeAtIndex_1, idx); + } + + int get frameLength { + return _lib._objc_msgSend_10(_id, _lib._sel_frameLength1); + } + + bool isOneway() { + return _lib._objc_msgSend_12(_id, _lib._sel_isOneway1); + } + + ffi.Pointer get methodReturnType { + return _lib._objc_msgSend_13(_id, _lib._sel_methodReturnType1); + } + + int get methodReturnLength { + return _lib._objc_msgSend_10(_id, _lib._sel_methodReturnLength1); + } + + static NSMethodSignature new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMethodSignature1, _lib._sel_new1); + return NSMethodSignature._(_ret, _lib, retain: false, release: true); + } + + static NSMethodSignature alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMethodSignature1, _lib._sel_alloc1); + return NSMethodSignature._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSMethodSignature1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSMethodSignature1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSMethodSignature1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMethodSignature1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSMethodSignature1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSMethodSignature1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSMethodSignature1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSMethodSignature1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMethodSignature1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSSet extends NSObject { + NSSet._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSSet] that points to the same underlying object as [other]. + static NSSet castFrom(T other) { + return NSSet._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSSet] that wraps the given raw object pointer. + static NSSet castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSSet._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSSet]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSSet1); + } + + int get count { + return _lib._objc_msgSend_10(_id, _lib._sel_count1); + } + + NSObject member_(NSObject object) { + final _ret = _lib._objc_msgSend_16(_id, _lib._sel_member_1, object._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSEnumerator objectEnumerator() { + final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); + } + + @override + NSSet init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + NSSet initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + NSSet initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + NSArray? get allObjects { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allObjects1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSObject anyObject() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_anyObject1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + bool containsObject_(NSObject anObject) { + return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, anObject._id); + } + + NSString? get description { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString descriptionWithLocale_(NSObject locale) { + final _ret = _lib._objc_msgSend_65( + _id, _lib._sel_descriptionWithLocale_1, locale._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + bool intersectsSet_(NSSet? otherSet) { + return _lib._objc_msgSend_374( + _id, _lib._sel_intersectsSet_1, otherSet?._id ?? ffi.nullptr); + } + + bool isEqualToSet_(NSSet? otherSet) { + return _lib._objc_msgSend_374( + _id, _lib._sel_isEqualToSet_1, otherSet?._id ?? ffi.nullptr); + } + + bool isSubsetOfSet_(NSSet? otherSet) { + return _lib._objc_msgSend_374( + _id, _lib._sel_isSubsetOfSet_1, otherSet?._id ?? ffi.nullptr); + } + + void makeObjectsPerformSelector_(ffi.Pointer aSelector) { + return _lib._objc_msgSend_7( + _id, _lib._sel_makeObjectsPerformSelector_1, aSelector); + } + + void makeObjectsPerformSelector_withObject_( + ffi.Pointer aSelector, NSObject argument) { + return _lib._objc_msgSend_84( + _id, + _lib._sel_makeObjectsPerformSelector_withObject_1, + aSelector, + argument._id); + } + + NSSet setByAddingObject_(NSObject anObject) { + final _ret = _lib._objc_msgSend_375( + _id, _lib._sel_setByAddingObject_1, anObject._id); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + NSSet setByAddingObjectsFromSet_(NSSet? other) { + final _ret = _lib._objc_msgSend_376( + _id, _lib._sel_setByAddingObjectsFromSet_1, other?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + NSSet setByAddingObjectsFromArray_(NSArray? other) { + final _ret = _lib._objc_msgSend_377(_id, + _lib._sel_setByAddingObjectsFromArray_1, other?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + void enumerateObjectsUsingBlock_(ObjCBlock16 block) { + return _lib._objc_msgSend_378( + _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); + } + + void enumerateObjectsWithOptions_usingBlock_(int opts, ObjCBlock16 block) { + return _lib._objc_msgSend_379(_id, + _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); + } + + NSSet objectsPassingTest_(ObjCBlock17 predicate) { + final _ret = _lib._objc_msgSend_380( + _id, _lib._sel_objectsPassingTest_1, predicate._id); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + NSSet objectsWithOptions_passingTest_(int opts, ObjCBlock17 predicate) { + final _ret = _lib._objc_msgSend_381( + _id, _lib._sel_objectsWithOptions_passingTest_1, opts, predicate._id); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static NSSet set1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSSet1, _lib._sel_set1); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static NSSet setWithObject_(HidListenerBindingsSwift _lib, NSObject object) { + final _ret = _lib._objc_msgSend_16( + _lib._class_NSSet1, _lib._sel_setWithObject_1, object._id); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static NSSet setWithObjects_count_(HidListenerBindingsSwift _lib, + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61( + _lib._class_NSSet1, _lib._sel_setWithObjects_count_1, objects, cnt); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static NSSet setWithObjects_( + HidListenerBindingsSwift _lib, NSObject firstObj) { + final _ret = _lib._objc_msgSend_16( + _lib._class_NSSet1, _lib._sel_setWithObjects_1, firstObj._id); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static NSSet setWithSet_(HidListenerBindingsSwift _lib, NSSet? set) { + final _ret = _lib._objc_msgSend_382( + _lib._class_NSSet1, _lib._sel_setWithSet_1, set?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static NSSet setWithArray_(HidListenerBindingsSwift _lib, NSArray? array) { + final _ret = _lib._objc_msgSend_67(_lib._class_NSSet1, + _lib._sel_setWithArray_1, array?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + NSSet initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + NSSet initWithSet_(NSSet? set) { + final _ret = _lib._objc_msgSend_382( + _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + NSSet initWithSet_copyItems_(NSSet? set, bool flag) { + final _ret = _lib._objc_msgSend_383( + _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + return NSSet._(_ret, _lib, retain: false, release: true); + } + + NSSet initWithArray_(NSArray? array) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSObject valueForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + @override + void setValue_forKey_(NSObject value, NSString? key) { + return _lib._objc_msgSend_126( + _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + } + + @override + void addObserver_forKeyPath_options_context_(NSObject? observer, + NSString? keyPath, int options, ffi.Pointer context) { + return _lib._objc_msgSend_130( + _id, + _lib._sel_addObserver_forKeyPath_options_context_1, + observer?._id ?? ffi.nullptr, + keyPath?._id ?? ffi.nullptr, + options, + context); + } + + @override + void removeObserver_forKeyPath_context_( + NSObject? observer, NSString? keyPath, ffi.Pointer context) { + return _lib._objc_msgSend_131( + _id, + _lib._sel_removeObserver_forKeyPath_context_1, + observer?._id ?? ffi.nullptr, + keyPath?._id ?? ffi.nullptr, + context); + } + + @override + void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { + return _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, + observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); + } + + NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { + final _ret = _lib._objc_msgSend_63( + _id, + _lib._sel_sortedArrayUsingDescriptors_1, + sortDescriptors?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSSet filteredSetUsingPredicate_(NSPredicate? predicate) { + final _ret = _lib._objc_msgSend_384(_id, + _lib._sel_filteredSetUsingPredicate_1, predicate?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static NSSet new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSSet1, _lib._sel_new1); + return NSSet._(_ret, _lib, retain: false, release: true); + } + + static NSSet alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSSet1, _lib._sel_alloc1); + return NSSet._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSSet1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSSet1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSSet1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSSet1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSSet1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSEnumerator extends NSObject { + NSEnumerator._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSEnumerator] that points to the same underlying object as [other]. + static NSEnumerator castFrom(T other) { + return NSEnumerator._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSEnumerator] that wraps the given raw object pointer. + static NSEnumerator castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSEnumerator._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSEnumerator]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSEnumerator1); + } + + NSObject nextObject() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_nextObject1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject? get allObjects { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_allObjects1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSEnumerator new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_new1); + return NSEnumerator._(_ret, _lib, retain: false, release: true); + } + + static NSEnumerator alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_alloc1); + return NSEnumerator._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSEnumerator1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSEnumerator1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSEnumerator1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSEnumerator1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSEnumerator1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSEnumerator1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSEnumerator1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSEnumerator1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSEnumerator1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSString extends NSObject { + NSString._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSString] that points to the same underlying object as [other]. + static NSString castFrom(T other) { + return NSString._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSString] that wraps the given raw object pointer. + static NSString castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSString._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSString]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSString1); + } + + factory NSString(HidListenerBindingsSwift _lib, String str) { + final cstr = str.toNativeUtf16(); + final nsstr = stringWithCharacters_length_(_lib, cstr.cast(), str.length); + pkg_ffi.calloc.free(cstr); + return nsstr; + } + + @override + String toString() { + final data = + dataUsingEncoding_(0x94000100 /* NSUTF16LittleEndianStringEncoding */); + return data.bytes.cast().toDartString(length: length); + } + + int get length { + return _lib._objc_msgSend_10(_id, _lib._sel_length1); + } + + int characterAtIndex_(int index) { + return _lib._objc_msgSend_17(_id, _lib._sel_characterAtIndex_1, index); + } + + @override + NSString init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString substringFromIndex_(int from) { + final _ret = + _lib._objc_msgSend_308(_id, _lib._sel_substringFromIndex_1, from); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString substringToIndex_(int to) { + final _ret = _lib._objc_msgSend_308(_id, _lib._sel_substringToIndex_1, to); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString substringWithRange_(_NSRange range) { + final _ret = + _lib._objc_msgSend_309(_id, _lib._sel_substringWithRange_1, range); + return NSString._(_ret, _lib, retain: true, release: true); + } + + void getCharacters_range_( + ffi.Pointer buffer, _NSRange range) { + return _lib._objc_msgSend_310( + _id, _lib._sel_getCharacters_range_1, buffer, range); + } + + int compare_(NSString? string) { + return _lib._objc_msgSend_311( + _id, _lib._sel_compare_1, string?._id ?? ffi.nullptr); + } + + int compare_options_(NSString? string, int mask) { + return _lib._objc_msgSend_312( + _id, _lib._sel_compare_options_1, string?._id ?? ffi.nullptr, mask); + } + + int compare_options_range_( + NSString? string, int mask, _NSRange rangeOfReceiverToCompare) { + return _lib._objc_msgSend_313(_id, _lib._sel_compare_options_range_1, + string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare); + } + + int compare_options_range_locale_(NSString? string, int mask, + _NSRange rangeOfReceiverToCompare, NSObject locale) { + return _lib._objc_msgSend_314(_id, _lib._sel_compare_options_range_locale_1, + string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare, locale._id); + } + + int caseInsensitiveCompare_(NSString? string) { + return _lib._objc_msgSend_311( + _id, _lib._sel_caseInsensitiveCompare_1, string?._id ?? ffi.nullptr); + } + + int localizedCompare_(NSString? string) { + return _lib._objc_msgSend_311( + _id, _lib._sel_localizedCompare_1, string?._id ?? ffi.nullptr); + } + + int localizedCaseInsensitiveCompare_(NSString? string) { + return _lib._objc_msgSend_311( + _id, + _lib._sel_localizedCaseInsensitiveCompare_1, + string?._id ?? ffi.nullptr); + } + + int localizedStandardCompare_(NSString? string) { + return _lib._objc_msgSend_311( + _id, _lib._sel_localizedStandardCompare_1, string?._id ?? ffi.nullptr); + } + + bool isEqualToString_(NSString? aString) { + return _lib._objc_msgSend_59( + _id, _lib._sel_isEqualToString_1, aString?._id ?? ffi.nullptr); + } + + bool hasPrefix_(NSString? str) { + return _lib._objc_msgSend_59( + _id, _lib._sel_hasPrefix_1, str?._id ?? ffi.nullptr); + } + + bool hasSuffix_(NSString? str) { + return _lib._objc_msgSend_59( + _id, _lib._sel_hasSuffix_1, str?._id ?? ffi.nullptr); + } + + NSString commonPrefixWithString_options_(NSString? str, int mask) { + final _ret = _lib._objc_msgSend_315( + _id, + _lib._sel_commonPrefixWithString_options_1, + str?._id ?? ffi.nullptr, + mask); + return NSString._(_ret, _lib, retain: true, release: true); + } + + bool containsString_(NSString? str) { + return _lib._objc_msgSend_59( + _id, _lib._sel_containsString_1, str?._id ?? ffi.nullptr); + } + + bool localizedCaseInsensitiveContainsString_(NSString? str) { + return _lib._objc_msgSend_59( + _id, + _lib._sel_localizedCaseInsensitiveContainsString_1, + str?._id ?? ffi.nullptr); + } + + bool localizedStandardContainsString_(NSString? str) { + return _lib._objc_msgSend_59(_id, + _lib._sel_localizedStandardContainsString_1, str?._id ?? ffi.nullptr); + } + + _NSRange localizedStandardRangeOfString_(NSString? str) { + return _lib._objc_msgSend_316(_id, + _lib._sel_localizedStandardRangeOfString_1, str?._id ?? ffi.nullptr); + } + + _NSRange rangeOfString_(NSString? searchString) { + return _lib._objc_msgSend_316( + _id, _lib._sel_rangeOfString_1, searchString?._id ?? ffi.nullptr); + } + + _NSRange rangeOfString_options_(NSString? searchString, int mask) { + return _lib._objc_msgSend_317(_id, _lib._sel_rangeOfString_options_1, + searchString?._id ?? ffi.nullptr, mask); + } + + _NSRange rangeOfString_options_range_( + NSString? searchString, int mask, _NSRange rangeOfReceiverToSearch) { + return _lib._objc_msgSend_318(_id, _lib._sel_rangeOfString_options_range_1, + searchString?._id ?? ffi.nullptr, mask, rangeOfReceiverToSearch); + } + + _NSRange rangeOfString_options_range_locale_(NSString? searchString, int mask, + _NSRange rangeOfReceiverToSearch, NSLocale? locale) { + return _lib._objc_msgSend_319( + _id, + _lib._sel_rangeOfString_options_range_locale_1, + searchString?._id ?? ffi.nullptr, + mask, + rangeOfReceiverToSearch, + locale?._id ?? ffi.nullptr); + } + + _NSRange rangeOfCharacterFromSet_(NSCharacterSet? searchSet) { + return _lib._objc_msgSend_320(_id, _lib._sel_rangeOfCharacterFromSet_1, + searchSet?._id ?? ffi.nullptr); + } + + _NSRange rangeOfCharacterFromSet_options_( + NSCharacterSet? searchSet, int mask) { + return _lib._objc_msgSend_321( + _id, + _lib._sel_rangeOfCharacterFromSet_options_1, + searchSet?._id ?? ffi.nullptr, + mask); + } + + _NSRange rangeOfCharacterFromSet_options_range_( + NSCharacterSet? searchSet, int mask, _NSRange rangeOfReceiverToSearch) { + return _lib._objc_msgSend_322( + _id, + _lib._sel_rangeOfCharacterFromSet_options_range_1, + searchSet?._id ?? ffi.nullptr, + mask, + rangeOfReceiverToSearch); + } + + _NSRange rangeOfComposedCharacterSequenceAtIndex_(int index) { + return _lib._objc_msgSend_323( + _id, _lib._sel_rangeOfComposedCharacterSequenceAtIndex_1, index); + } + + _NSRange rangeOfComposedCharacterSequencesForRange_(_NSRange range) { + return _lib._objc_msgSend_324( + _id, _lib._sel_rangeOfComposedCharacterSequencesForRange_1, range); + } + + NSString stringByAppendingString_(NSString? aString) { + final _ret = _lib._objc_msgSend_64( + _id, _lib._sel_stringByAppendingString_1, aString?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString stringByAppendingFormat_(NSString? format) { + final _ret = _lib._objc_msgSend_64( + _id, _lib._sel_stringByAppendingFormat_1, format?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + double get doubleValue { + return _lib._objc_msgSend_155(_id, _lib._sel_doubleValue1); + } + + double get floatValue { + return _lib._objc_msgSend_221(_id, _lib._sel_floatValue1); + } + + int get intValue { + return _lib._objc_msgSend_219(_id, _lib._sel_intValue1); + } + + int get integerValue { + return _lib._objc_msgSend_78(_id, _lib._sel_integerValue1); + } + + int get longLongValue { + return _lib._objc_msgSend_220(_id, _lib._sel_longLongValue1); + } + + bool get boolValue { + return _lib._objc_msgSend_12(_id, _lib._sel_boolValue1); + } + + NSString? get uppercaseString { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_uppercaseString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get lowercaseString { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_lowercaseString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get capitalizedString { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_capitalizedString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get localizedUppercaseString { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_localizedUppercaseString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get localizedLowercaseString { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_localizedLowercaseString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get localizedCapitalizedString { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_localizedCapitalizedString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString uppercaseStringWithLocale_(NSLocale? locale) { + final _ret = _lib._objc_msgSend_325( + _id, _lib._sel_uppercaseStringWithLocale_1, locale?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString lowercaseStringWithLocale_(NSLocale? locale) { + final _ret = _lib._objc_msgSend_325( + _id, _lib._sel_lowercaseStringWithLocale_1, locale?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString capitalizedStringWithLocale_(NSLocale? locale) { + final _ret = _lib._objc_msgSend_325(_id, + _lib._sel_capitalizedStringWithLocale_1, locale?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + void getLineStart_end_contentsEnd_forRange_( + ffi.Pointer startPtr, + ffi.Pointer lineEndPtr, + ffi.Pointer contentsEndPtr, + _NSRange range) { + return _lib._objc_msgSend_326( + _id, + _lib._sel_getLineStart_end_contentsEnd_forRange_1, + startPtr, + lineEndPtr, + contentsEndPtr, + range); + } + + _NSRange lineRangeForRange_(_NSRange range) { + return _lib._objc_msgSend_324(_id, _lib._sel_lineRangeForRange_1, range); + } + + void getParagraphStart_end_contentsEnd_forRange_( + ffi.Pointer startPtr, + ffi.Pointer parEndPtr, + ffi.Pointer contentsEndPtr, + _NSRange range) { + return _lib._objc_msgSend_326( + _id, + _lib._sel_getParagraphStart_end_contentsEnd_forRange_1, + startPtr, + parEndPtr, + contentsEndPtr, + range); + } + + _NSRange paragraphRangeForRange_(_NSRange range) { + return _lib._objc_msgSend_324( + _id, _lib._sel_paragraphRangeForRange_1, range); + } + + void enumerateSubstringsInRange_options_usingBlock_( + _NSRange range, int opts, ObjCBlock13 block) { + return _lib._objc_msgSend_327( + _id, + _lib._sel_enumerateSubstringsInRange_options_usingBlock_1, + range, + opts, + block._id); + } + + void enumerateLinesUsingBlock_(ObjCBlock14 block) { + return _lib._objc_msgSend_328( + _id, _lib._sel_enumerateLinesUsingBlock_1, block._id); + } + + ffi.Pointer get UTF8String { + return _lib._objc_msgSend_13(_id, _lib._sel_UTF8String1); + } + + int get fastestEncoding { + return _lib._objc_msgSend_10(_id, _lib._sel_fastestEncoding1); + } + + int get smallestEncoding { + return _lib._objc_msgSend_10(_id, _lib._sel_smallestEncoding1); + } + + NSData dataUsingEncoding_allowLossyConversion_(int encoding, bool lossy) { + final _ret = _lib._objc_msgSend_329(_id, + _lib._sel_dataUsingEncoding_allowLossyConversion_1, encoding, lossy); + return NSData._(_ret, _lib, retain: true, release: true); + } + + NSData dataUsingEncoding_(int encoding) { + final _ret = + _lib._objc_msgSend_330(_id, _lib._sel_dataUsingEncoding_1, encoding); + return NSData._(_ret, _lib, retain: true, release: true); + } + + bool canBeConvertedToEncoding_(int encoding) { + return _lib._objc_msgSend_91( + _id, _lib._sel_canBeConvertedToEncoding_1, encoding); + } + + ffi.Pointer cStringUsingEncoding_(int encoding) { + return _lib._objc_msgSend_11( + _id, _lib._sel_cStringUsingEncoding_1, encoding); + } + + bool getCString_maxLength_encoding_( + ffi.Pointer buffer, int maxBufferCount, int encoding) { + return _lib._objc_msgSend_331( + _id, + _lib._sel_getCString_maxLength_encoding_1, + buffer, + maxBufferCount, + encoding); + } + + bool getBytes_maxLength_usedLength_encoding_options_range_remainingRange_( + ffi.Pointer buffer, + int maxBufferCount, + ffi.Pointer usedBufferCount, + int encoding, + int options, + _NSRange range, + ffi.Pointer<_NSRange> leftover) { + return _lib._objc_msgSend_332( + _id, + _lib._sel_getBytes_maxLength_usedLength_encoding_options_range_remainingRange_1, + buffer, + maxBufferCount, + usedBufferCount, + encoding, + options, + range, + leftover); + } + + int maximumLengthOfBytesUsingEncoding_(int enc) { + return _lib._objc_msgSend_88( + _id, _lib._sel_maximumLengthOfBytesUsingEncoding_1, enc); + } + + int lengthOfBytesUsingEncoding_(int enc) { + return _lib._objc_msgSend_88( + _id, _lib._sel_lengthOfBytesUsingEncoding_1, enc); + } + + static ffi.Pointer getAvailableStringEncodings( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_333( + _lib._class_NSString1, _lib._sel_availableStringEncodings1); + } + + static NSString localizedNameOfStringEncoding_( + HidListenerBindingsSwift _lib, int encoding) { + final _ret = _lib._objc_msgSend_308(_lib._class_NSString1, + _lib._sel_localizedNameOfStringEncoding_1, encoding); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static int getDefaultCStringEncoding(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_10( + _lib._class_NSString1, _lib._sel_defaultCStringEncoding1); + } + + NSString? get decomposedStringWithCanonicalMapping { + final _ret = _lib._objc_msgSend_20( + _id, _lib._sel_decomposedStringWithCanonicalMapping1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get precomposedStringWithCanonicalMapping { + final _ret = _lib._objc_msgSend_20( + _id, _lib._sel_precomposedStringWithCanonicalMapping1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get decomposedStringWithCompatibilityMapping { + final _ret = _lib._objc_msgSend_20( + _id, _lib._sel_decomposedStringWithCompatibilityMapping1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get precomposedStringWithCompatibilityMapping { + final _ret = _lib._objc_msgSend_20( + _id, _lib._sel_precomposedStringWithCompatibilityMapping1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray componentsSeparatedByString_(NSString? separator) { + final _ret = _lib._objc_msgSend_123(_id, + _lib._sel_componentsSeparatedByString_1, separator?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray componentsSeparatedByCharactersInSet_(NSCharacterSet? separator) { + final _ret = _lib._objc_msgSend_334( + _id, + _lib._sel_componentsSeparatedByCharactersInSet_1, + separator?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString stringByTrimmingCharactersInSet_(NSCharacterSet? set) { + final _ret = _lib._objc_msgSend_335(_id, + _lib._sel_stringByTrimmingCharactersInSet_1, set?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString stringByPaddingToLength_withString_startingAtIndex_( + int newLength, NSString? padString, int padIndex) { + final _ret = _lib._objc_msgSend_336( + _id, + _lib._sel_stringByPaddingToLength_withString_startingAtIndex_1, + newLength, + padString?._id ?? ffi.nullptr, + padIndex); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString stringByFoldingWithOptions_locale_(int options, NSLocale? locale) { + final _ret = _lib._objc_msgSend_337( + _id, + _lib._sel_stringByFoldingWithOptions_locale_1, + options, + locale?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString stringByReplacingOccurrencesOfString_withString_options_range_( + NSString? target, + NSString? replacement, + int options, + _NSRange searchRange) { + final _ret = _lib._objc_msgSend_338( + _id, + _lib._sel_stringByReplacingOccurrencesOfString_withString_options_range_1, + target?._id ?? ffi.nullptr, + replacement?._id ?? ffi.nullptr, + options, + searchRange); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString stringByReplacingOccurrencesOfString_withString_( + NSString? target, NSString? replacement) { + final _ret = _lib._objc_msgSend_339( + _id, + _lib._sel_stringByReplacingOccurrencesOfString_withString_1, + target?._id ?? ffi.nullptr, + replacement?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString stringByReplacingCharactersInRange_withString_( + _NSRange range, NSString? replacement) { + final _ret = _lib._objc_msgSend_340( + _id, + _lib._sel_stringByReplacingCharactersInRange_withString_1, + range, + replacement?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString stringByApplyingTransform_reverse_( + NSString transform, bool reverse) { + final _ret = _lib._objc_msgSend_341(_id, + _lib._sel_stringByApplyingTransform_reverse_1, transform._id, reverse); + return NSString._(_ret, _lib, retain: true, release: true); + } + + bool writeToURL_atomically_encoding_error_(NSURL? url, bool useAuxiliaryFile, + int enc, ffi.Pointer> error) { + return _lib._objc_msgSend_342( + _id, + _lib._sel_writeToURL_atomically_encoding_error_1, + url?._id ?? ffi.nullptr, + useAuxiliaryFile, + enc, + error); + } + + bool writeToFile_atomically_encoding_error_( + NSString? path, + bool useAuxiliaryFile, + int enc, + ffi.Pointer> error) { + return _lib._objc_msgSend_343( + _id, + _lib._sel_writeToFile_atomically_encoding_error_1, + path?._id ?? ffi.nullptr, + useAuxiliaryFile, + enc, + error); + } + + NSString? get description { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + int get hash { + return _lib._objc_msgSend_10(_id, _lib._sel_hash1); + } + + NSString initWithCharactersNoCopy_length_freeWhenDone_( + ffi.Pointer characters, int length, bool freeBuffer) { + final _ret = _lib._objc_msgSend_344( + _id, + _lib._sel_initWithCharactersNoCopy_length_freeWhenDone_1, + characters, + length, + freeBuffer); + return NSString._(_ret, _lib, retain: false, release: true); + } + + NSString initWithCharactersNoCopy_length_deallocator_( + ffi.Pointer chars, int len, ObjCBlock15 deallocator) { + final _ret = _lib._objc_msgSend_345( + _id, + _lib._sel_initWithCharactersNoCopy_length_deallocator_1, + chars, + len, + deallocator._id); + return NSString._(_ret, _lib, retain: false, release: true); + } + + NSString initWithCharacters_length_( + ffi.Pointer characters, int length) { + final _ret = _lib._objc_msgSend_346( + _id, _lib._sel_initWithCharacters_length_1, characters, length); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString initWithUTF8String_(ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_347( + _id, _lib._sel_initWithUTF8String_1, nullTerminatedCString); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString initWithString_(NSString? aString) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithString_1, aString?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString initWithFormat_(NSString? format) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithFormat_1, format?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString initWithFormat_arguments_( + NSString? format, ffi.Pointer<__va_list_tag> argList) { + final _ret = _lib._objc_msgSend_348( + _id, + _lib._sel_initWithFormat_arguments_1, + format?._id ?? ffi.nullptr, + argList); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString initWithFormat_locale_(NSString? format, NSObject locale) { + final _ret = _lib._objc_msgSend_163(_id, _lib._sel_initWithFormat_locale_1, + format?._id ?? ffi.nullptr, locale._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString initWithFormat_locale_arguments_( + NSString? format, NSObject locale, ffi.Pointer<__va_list_tag> argList) { + final _ret = _lib._objc_msgSend_349( + _id, + _lib._sel_initWithFormat_locale_arguments_1, + format?._id ?? ffi.nullptr, + locale._id, + argList); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString initWithValidatedFormat_validFormatSpecifiers_error_( + NSString? format, + NSString? validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_350( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + error); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString initWithValidatedFormat_validFormatSpecifiers_locale_error_( + NSString? format, + NSString? validFormatSpecifiers, + NSObject locale, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_351( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + locale._id, + error); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString initWithValidatedFormat_validFormatSpecifiers_arguments_error_( + NSString? format, + NSString? validFormatSpecifiers, + ffi.Pointer<__va_list_tag> argList, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_352( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + argList, + error); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString + initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_( + NSString? format, + NSString? validFormatSpecifiers, + NSObject locale, + ffi.Pointer<__va_list_tag> argList, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_353( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + locale._id, + argList, + error); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString initWithData_encoding_(NSData? data, int encoding) { + final _ret = _lib._objc_msgSend_354(_id, _lib._sel_initWithData_encoding_1, + data?._id ?? ffi.nullptr, encoding); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString initWithBytes_length_encoding_( + ffi.Pointer bytes, int len, int encoding) { + final _ret = _lib._objc_msgSend_355( + _id, _lib._sel_initWithBytes_length_encoding_1, bytes, len, encoding); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString initWithBytesNoCopy_length_encoding_freeWhenDone_( + ffi.Pointer bytes, int len, int encoding, bool freeBuffer) { + final _ret = _lib._objc_msgSend_356( + _id, + _lib._sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1, + bytes, + len, + encoding, + freeBuffer); + return NSString._(_ret, _lib, retain: false, release: true); + } + + NSString initWithBytesNoCopy_length_encoding_deallocator_( + ffi.Pointer bytes, + int len, + int encoding, + ObjCBlock12 deallocator) { + final _ret = _lib._objc_msgSend_357( + _id, + _lib._sel_initWithBytesNoCopy_length_encoding_deallocator_1, + bytes, + len, + encoding, + deallocator._id); + return NSString._(_ret, _lib, retain: false, release: true); + } + + static NSString string(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_string1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString stringWithString_( + HidListenerBindingsSwift _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, + _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString stringWithCharacters_length_(HidListenerBindingsSwift _lib, + ffi.Pointer characters, int length) { + final _ret = _lib._objc_msgSend_346(_lib._class_NSString1, + _lib._sel_stringWithCharacters_length_1, characters, length); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString stringWithUTF8String_(HidListenerBindingsSwift _lib, + ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_347(_lib._class_NSString1, + _lib._sel_stringWithUTF8String_1, nullTerminatedCString); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString stringWithFormat_( + HidListenerBindingsSwift _lib, NSString? format) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, + _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString localizedStringWithFormat_( + HidListenerBindingsSwift _lib, NSString? format) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, + _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString stringWithValidatedFormat_validFormatSpecifiers_error_( + HidListenerBindingsSwift _lib, + NSString? format, + NSString? validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_350( + _lib._class_NSString1, + _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + error); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString + localizedStringWithValidatedFormat_validFormatSpecifiers_error_( + HidListenerBindingsSwift _lib, + NSString? format, + NSString? validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_350( + _lib._class_NSString1, + _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + error); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString initWithCString_encoding_( + ffi.Pointer nullTerminatedCString, int encoding) { + final _ret = _lib._objc_msgSend_358(_id, + _lib._sel_initWithCString_encoding_1, nullTerminatedCString, encoding); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString stringWithCString_encoding_( + HidListenerBindingsSwift _lib, ffi.Pointer cString, int enc) { + final _ret = _lib._objc_msgSend_358(_lib._class_NSString1, + _lib._sel_stringWithCString_encoding_1, cString, enc); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString initWithContentsOfURL_encoding_error_( + NSURL? url, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_359( + _id, + _lib._sel_initWithContentsOfURL_encoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString initWithContentsOfFile_encoding_error_( + NSString? path, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_360( + _id, + _lib._sel_initWithContentsOfFile_encoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString stringWithContentsOfURL_encoding_error_( + HidListenerBindingsSwift _lib, + NSURL? url, + int enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_359( + _lib._class_NSString1, + _lib._sel_stringWithContentsOfURL_encoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString stringWithContentsOfFile_encoding_error_( + HidListenerBindingsSwift _lib, + NSString? path, + int enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_360( + _lib._class_NSString1, + _lib._sel_stringWithContentsOfFile_encoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString initWithContentsOfURL_usedEncoding_error_( + NSURL? url, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_361( + _id, + _lib._sel_initWithContentsOfURL_usedEncoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString initWithContentsOfFile_usedEncoding_error_( + NSString? path, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_362( + _id, + _lib._sel_initWithContentsOfFile_usedEncoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString stringWithContentsOfURL_usedEncoding_error_( + HidListenerBindingsSwift _lib, + NSURL? url, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_361( + _lib._class_NSString1, + _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString stringWithContentsOfFile_usedEncoding_error_( + HidListenerBindingsSwift _lib, + NSString? path, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_362( + _lib._class_NSString1, + _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static int + stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( + HidListenerBindingsSwift _lib, + NSData? data, + NSDictionary? opts, + ffi.Pointer> string, + ffi.Pointer usedLossyConversion) { + return _lib._objc_msgSend_363( + _lib._class_NSString1, + _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, + data?._id ?? ffi.nullptr, + opts?._id ?? ffi.nullptr, + string, + usedLossyConversion); + } + + NSObject propertyList() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_propertyList1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSDictionary propertyListFromStringsFileFormat() { + final _ret = _lib._objc_msgSend_170( + _id, _lib._sel_propertyListFromStringsFileFormat1); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + ffi.Pointer cString() { + return _lib._objc_msgSend_13(_id, _lib._sel_cString1); + } + + ffi.Pointer lossyCString() { + return _lib._objc_msgSend_13(_id, _lib._sel_lossyCString1); + } + + int cStringLength() { + return _lib._objc_msgSend_10(_id, _lib._sel_cStringLength1); + } + + void getCString_(ffi.Pointer bytes) { + return _lib._objc_msgSend_266(_id, _lib._sel_getCString_1, bytes); + } + + void getCString_maxLength_(ffi.Pointer bytes, int maxLength) { + return _lib._objc_msgSend_364( + _id, _lib._sel_getCString_maxLength_1, bytes, maxLength); + } + + void getCString_maxLength_range_remainingRange_(ffi.Pointer bytes, + int maxLength, _NSRange aRange, ffi.Pointer<_NSRange> leftoverRange) { + return _lib._objc_msgSend_365( + _id, + _lib._sel_getCString_maxLength_range_remainingRange_1, + bytes, + maxLength, + aRange, + leftoverRange); + } + + bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_25(_id, _lib._sel_writeToFile_atomically_1, + path?._id ?? ffi.nullptr, useAuxiliaryFile); + } + + bool writeToURL_atomically_(NSURL? url, bool atomically) { + return _lib._objc_msgSend_125(_id, _lib._sel_writeToURL_atomically_1, + url?._id ?? ffi.nullptr, atomically); + } + + NSObject initWithContentsOfFile_(NSString? path) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_241( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject stringWithContentsOfFile_( + HidListenerBindingsSwift _lib, NSString? path) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSString1, + _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject stringWithContentsOfURL_( + HidListenerBindingsSwift _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSString1, + _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject initWithCStringNoCopy_length_freeWhenDone_( + ffi.Pointer bytes, int length, bool freeBuffer) { + final _ret = _lib._objc_msgSend_366( + _id, + _lib._sel_initWithCStringNoCopy_length_freeWhenDone_1, + bytes, + length, + freeBuffer); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + NSObject initWithCString_length_(ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_358( + _id, _lib._sel_initWithCString_length_1, bytes, length); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject initWithCString_(ffi.Pointer bytes) { + final _ret = + _lib._objc_msgSend_347(_id, _lib._sel_initWithCString_1, bytes); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject stringWithCString_length_( + HidListenerBindingsSwift _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_358(_lib._class_NSString1, + _lib._sel_stringWithCString_length_1, bytes, length); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject stringWithCString_( + HidListenerBindingsSwift _lib, ffi.Pointer bytes) { + final _ret = _lib._objc_msgSend_347( + _lib._class_NSString1, _lib._sel_stringWithCString_1, bytes); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void getCharacters_(ffi.Pointer buffer) { + return _lib._objc_msgSend_367(_id, _lib._sel_getCharacters_1, buffer); + } + + NSString variantFittingPresentationWidth_(int width) { + final _ret = _lib._objc_msgSend_368( + _id, _lib._sel_variantFittingPresentationWidth_1, width); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString pathWithComponents_( + HidListenerBindingsSwift _lib, NSArray? components) { + final _ret = _lib._objc_msgSend_369(_lib._class_NSString1, + _lib._sel_pathWithComponents_1, components?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray? get pathComponents { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_pathComponents1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + bool get absolutePath { + return _lib._objc_msgSend_12(_id, _lib._sel_isAbsolutePath1); + } + + NSString? get lastPathComponent { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_lastPathComponent1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get stringByDeletingLastPathComponent { + final _ret = _lib._objc_msgSend_20( + _id, _lib._sel_stringByDeletingLastPathComponent1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString stringByAppendingPathComponent_(NSString? str) { + final _ret = _lib._objc_msgSend_64(_id, + _lib._sel_stringByAppendingPathComponent_1, str?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get pathExtension { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_pathExtension1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get stringByDeletingPathExtension { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_stringByDeletingPathExtension1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString stringByAppendingPathExtension_(NSString? str) { + final _ret = _lib._objc_msgSend_64(_id, + _lib._sel_stringByAppendingPathExtension_1, str?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get stringByAbbreviatingWithTildeInPath { + final _ret = _lib._objc_msgSend_20( + _id, _lib._sel_stringByAbbreviatingWithTildeInPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get stringByExpandingTildeInPath { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_stringByExpandingTildeInPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get stringByStandardizingPath { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_stringByStandardizingPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get stringByResolvingSymlinksInPath { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_stringByResolvingSymlinksInPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray stringsByAppendingPaths_(NSArray? paths) { + final _ret = _lib._objc_msgSend_63( + _id, _lib._sel_stringsByAppendingPaths_1, paths?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + int completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_( + ffi.Pointer> outputName, + bool flag, + ffi.Pointer> outputArray, + NSArray? filterTypes) { + return _lib._objc_msgSend_370( + _id, + _lib._sel_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_1, + outputName, + flag, + outputArray, + filterTypes?._id ?? ffi.nullptr); + } + + ffi.Pointer get fileSystemRepresentation { + return _lib._objc_msgSend_13(_id, _lib._sel_fileSystemRepresentation1); + } + + bool getFileSystemRepresentation_maxLength_( + ffi.Pointer cname, int max) { + return _lib._objc_msgSend_224( + _id, _lib._sel_getFileSystemRepresentation_maxLength_1, cname, max); + } + + NSString stringByAddingPercentEncodingWithAllowedCharacters_( + NSCharacterSet? allowedCharacters) { + final _ret = _lib._objc_msgSend_335( + _id, + _lib._sel_stringByAddingPercentEncodingWithAllowedCharacters_1, + allowedCharacters?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get stringByRemovingPercentEncoding { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_stringByRemovingPercentEncoding1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString stringByAddingPercentEscapesUsingEncoding_(int enc) { + final _ret = _lib._objc_msgSend_308( + _id, _lib._sel_stringByAddingPercentEscapesUsingEncoding_1, enc); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString stringByReplacingPercentEscapesUsingEncoding_(int enc) { + final _ret = _lib._objc_msgSend_308( + _id, _lib._sel_stringByReplacingPercentEscapesUsingEncoding_1, enc); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray linguisticTagsInRange_scheme_options_orthography_tokenRanges_( + _NSRange range, + NSString scheme, + int options, + NSOrthography? orthography, + ffi.Pointer> tokenRanges) { + final _ret = _lib._objc_msgSend_372( + _id, + _lib._sel_linguisticTagsInRange_scheme_options_orthography_tokenRanges_1, + range, + scheme._id, + options, + orthography?._id ?? ffi.nullptr, + tokenRanges); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + void enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_( + _NSRange range, + NSString scheme, + int options, + NSOrthography? orthography, + ObjCBlock13 block) { + return _lib._objc_msgSend_373( + _id, + _lib._sel_enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_1, + range, + scheme._id, + options, + orthography?._id ?? ffi.nullptr, + block._id); + } + + static NSString new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_new1); + return NSString._(_ret, _lib, retain: false, release: true); + } + + static NSString alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_alloc1); + return NSString._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSString1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSString1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSString1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSString1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSString1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSString1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSString1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSString1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSString1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +extension StringToNSString on String { + NSString toNSString(HidListenerBindingsSwift lib) => NSString(lib, this); +} + +class NSCoder extends NSObject { + NSCoder._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSCoder] that points to the same underlying object as [other]. + static NSCoder castFrom(T other) { + return NSCoder._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSCoder] that wraps the given raw object pointer. + static NSCoder castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSCoder._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSCoder]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSCoder1); + } + + void encodeValueOfObjCType_at_( + ffi.Pointer type, ffi.Pointer addr) { + return _lib._objc_msgSend_18( + _id, _lib._sel_encodeValueOfObjCType_at_1, type, addr); + } + + void encodeDataObject_(NSData? data) { + return _lib._objc_msgSend_263( + _id, _lib._sel_encodeDataObject_1, data?._id ?? ffi.nullptr); + } + + NSData decodeDataObject() { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_decodeDataObject1); + return NSData._(_ret, _lib, retain: true, release: true); + } + + void decodeValueOfObjCType_at_size_( + ffi.Pointer type, ffi.Pointer data, int size) { + return _lib._objc_msgSend_264( + _id, _lib._sel_decodeValueOfObjCType_at_size_1, type, data, size); + } + + int versionForClassName_(NSString? className) { + return _lib._objc_msgSend_265( + _id, _lib._sel_versionForClassName_1, className?._id ?? ffi.nullptr); + } + + void encodeObject_(NSObject object) { + return _lib._objc_msgSend_15(_id, _lib._sel_encodeObject_1, object._id); + } + + void encodeRootObject_(NSObject rootObject) { + return _lib._objc_msgSend_15( + _id, _lib._sel_encodeRootObject_1, rootObject._id); + } + + void encodeBycopyObject_(NSObject anObject) { + return _lib._objc_msgSend_15( + _id, _lib._sel_encodeBycopyObject_1, anObject._id); + } + + void encodeByrefObject_(NSObject anObject) { + return _lib._objc_msgSend_15( + _id, _lib._sel_encodeByrefObject_1, anObject._id); + } + + void encodeConditionalObject_(NSObject object) { + return _lib._objc_msgSend_15( + _id, _lib._sel_encodeConditionalObject_1, object._id); + } + + void encodeValuesOfObjCTypes_(ffi.Pointer types) { + return _lib._objc_msgSend_266( + _id, _lib._sel_encodeValuesOfObjCTypes_1, types); + } + + void encodeArrayOfObjCType_count_at_( + ffi.Pointer type, int count, ffi.Pointer array) { + return _lib._objc_msgSend_267( + _id, _lib._sel_encodeArrayOfObjCType_count_at_1, type, count, array); + } + + void encodeBytes_length_(ffi.Pointer byteaddr, int length) { + return _lib._objc_msgSend_21( + _id, _lib._sel_encodeBytes_length_1, byteaddr, length); + } + + NSObject decodeObject() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_decodeObject1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject decodeTopLevelObjectAndReturnError_( + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_268( + _id, _lib._sel_decodeTopLevelObjectAndReturnError_1, error); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void decodeValuesOfObjCTypes_(ffi.Pointer types) { + return _lib._objc_msgSend_266( + _id, _lib._sel_decodeValuesOfObjCTypes_1, types); + } + + void decodeArrayOfObjCType_count_at_( + ffi.Pointer itemType, int count, ffi.Pointer array) { + return _lib._objc_msgSend_267(_id, + _lib._sel_decodeArrayOfObjCType_count_at_1, itemType, count, array); + } + + ffi.Pointer decodeBytesWithReturnedLength_( + ffi.Pointer lengthp) { + return _lib._objc_msgSend_269( + _id, _lib._sel_decodeBytesWithReturnedLength_1, lengthp); + } + + void encodePropertyList_(NSObject aPropertyList) { + return _lib._objc_msgSend_15( + _id, _lib._sel_encodePropertyList_1, aPropertyList._id); + } + + NSObject decodePropertyList() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_decodePropertyList1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void setObjectZone_(ffi.Pointer<_NSZone> zone) { + return _lib._objc_msgSend_270(_id, _lib._sel_setObjectZone_1, zone); + } + + ffi.Pointer<_NSZone> objectZone() { + return _lib._objc_msgSend_271(_id, _lib._sel_objectZone1); + } + + int get systemVersion { + return _lib._objc_msgSend_197(_id, _lib._sel_systemVersion1); + } + + bool get allowsKeyedCoding { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsKeyedCoding1); + } + + void encodeObject_forKey_(NSObject object, NSString? key) { + return _lib._objc_msgSend_126(_id, _lib._sel_encodeObject_forKey_1, + object._id, key?._id ?? ffi.nullptr); + } + + void encodeConditionalObject_forKey_(NSObject object, NSString? key) { + return _lib._objc_msgSend_126( + _id, + _lib._sel_encodeConditionalObject_forKey_1, + object._id, + key?._id ?? ffi.nullptr); + } + + void encodeBool_forKey_(bool value, NSString? key) { + return _lib._objc_msgSend_272( + _id, _lib._sel_encodeBool_forKey_1, value, key?._id ?? ffi.nullptr); + } + + void encodeInt_forKey_(int value, NSString? key) { + return _lib._objc_msgSend_273( + _id, _lib._sel_encodeInt_forKey_1, value, key?._id ?? ffi.nullptr); + } + + void encodeInt32_forKey_(int value, NSString? key) { + return _lib._objc_msgSend_274( + _id, _lib._sel_encodeInt32_forKey_1, value, key?._id ?? ffi.nullptr); + } + + void encodeInt64_forKey_(int value, NSString? key) { + return _lib._objc_msgSend_275( + _id, _lib._sel_encodeInt64_forKey_1, value, key?._id ?? ffi.nullptr); + } + + void encodeFloat_forKey_(double value, NSString? key) { + return _lib._objc_msgSend_276( + _id, _lib._sel_encodeFloat_forKey_1, value, key?._id ?? ffi.nullptr); + } + + void encodeDouble_forKey_(double value, NSString? key) { + return _lib._objc_msgSend_277( + _id, _lib._sel_encodeDouble_forKey_1, value, key?._id ?? ffi.nullptr); + } + + void encodeBytes_length_forKey_( + ffi.Pointer bytes, int length, NSString? key) { + return _lib._objc_msgSend_278(_id, _lib._sel_encodeBytes_length_forKey_1, + bytes, length, key?._id ?? ffi.nullptr); + } + + bool containsValueForKey_(NSString? key) { + return _lib._objc_msgSend_59( + _id, _lib._sel_containsValueForKey_1, key?._id ?? ffi.nullptr); + } + + NSObject decodeObjectForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_decodeObjectForKey_1, key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject decodeTopLevelObjectForKey_error_( + NSString? key, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_279( + _id, + _lib._sel_decodeTopLevelObjectForKey_error_1, + key?._id ?? ffi.nullptr, + error); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + bool decodeBoolForKey_(NSString? key) { + return _lib._objc_msgSend_59( + _id, _lib._sel_decodeBoolForKey_1, key?._id ?? ffi.nullptr); + } + + int decodeIntForKey_(NSString? key) { + return _lib._objc_msgSend_280( + _id, _lib._sel_decodeIntForKey_1, key?._id ?? ffi.nullptr); + } + + int decodeInt32ForKey_(NSString? key) { + return _lib._objc_msgSend_281( + _id, _lib._sel_decodeInt32ForKey_1, key?._id ?? ffi.nullptr); + } + + int decodeInt64ForKey_(NSString? key) { + return _lib._objc_msgSend_282( + _id, _lib._sel_decodeInt64ForKey_1, key?._id ?? ffi.nullptr); + } + + double decodeFloatForKey_(NSString? key) { + return _lib._objc_msgSend_283( + _id, _lib._sel_decodeFloatForKey_1, key?._id ?? ffi.nullptr); + } + + double decodeDoubleForKey_(NSString? key) { + return _lib._objc_msgSend_284( + _id, _lib._sel_decodeDoubleForKey_1, key?._id ?? ffi.nullptr); + } + + ffi.Pointer decodeBytesForKey_returnedLength_( + NSString? key, ffi.Pointer lengthp) { + return _lib._objc_msgSend_285( + _id, + _lib._sel_decodeBytesForKey_returnedLength_1, + key?._id ?? ffi.nullptr, + lengthp); + } + + void encodeInteger_forKey_(int value, NSString? key) { + return _lib._objc_msgSend_286( + _id, _lib._sel_encodeInteger_forKey_1, value, key?._id ?? ffi.nullptr); + } + + int decodeIntegerForKey_(NSString? key) { + return _lib._objc_msgSend_265( + _id, _lib._sel_decodeIntegerForKey_1, key?._id ?? ffi.nullptr); + } + + bool get requiresSecureCoding { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresSecureCoding1); + } + + NSObject decodeObjectOfClass_forKey_(NSObject aClass, NSString? key) { + final _ret = _lib._objc_msgSend_287( + _id, + _lib._sel_decodeObjectOfClass_forKey_1, + aClass._id, + key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject decodeTopLevelObjectOfClass_forKey_error_(NSObject aClass, + NSString? key, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_288( + _id, + _lib._sel_decodeTopLevelObjectOfClass_forKey_error_1, + aClass._id, + key?._id ?? ffi.nullptr, + error); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSArray decodeArrayOfObjectsOfClass_forKey_(NSObject cls, NSString? key) { + final _ret = _lib._objc_msgSend_289( + _id, + _lib._sel_decodeArrayOfObjectsOfClass_forKey_1, + cls._id, + key?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSDictionary decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_( + NSObject keyCls, NSObject objectCls, NSString? key) { + final _ret = _lib._objc_msgSend_290( + _id, + _lib._sel_decodeDictionaryWithKeysOfClass_objectsOfClass_forKey_1, + keyCls._id, + objectCls._id, + key?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSObject decodeObjectOfClasses_forKey_(NSSet? classes, NSString? key) { + final _ret = _lib._objc_msgSend_291( + _id, + _lib._sel_decodeObjectOfClasses_forKey_1, + classes?._id ?? ffi.nullptr, + key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject decodeTopLevelObjectOfClasses_forKey_error_(NSSet? classes, + NSString? key, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_292( + _id, + _lib._sel_decodeTopLevelObjectOfClasses_forKey_error_1, + classes?._id ?? ffi.nullptr, + key?._id ?? ffi.nullptr, + error); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSArray decodeArrayOfObjectsOfClasses_forKey_(NSSet? classes, NSString? key) { + final _ret = _lib._objc_msgSend_293( + _id, + _lib._sel_decodeArrayOfObjectsOfClasses_forKey_1, + classes?._id ?? ffi.nullptr, + key?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSDictionary decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_( + NSSet? keyClasses, NSSet? objectClasses, NSString? key) { + final _ret = _lib._objc_msgSend_294( + _id, + _lib._sel_decodeDictionaryWithKeysOfClasses_objectsOfClasses_forKey_1, + keyClasses?._id ?? ffi.nullptr, + objectClasses?._id ?? ffi.nullptr, + key?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSObject decodePropertyListForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_decodePropertyListForKey_1, key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSSet? get allowedClasses { + final _ret = _lib._objc_msgSend_295(_id, _lib._sel_allowedClasses1); + return _ret.address == 0 + ? null + : NSSet._(_ret, _lib, retain: true, release: true); + } + + void failWithError_(NSError? error) { + return _lib._objc_msgSend_296( + _id, _lib._sel_failWithError_1, error?._id ?? ffi.nullptr); + } + + int get decodingFailurePolicy { + return _lib._objc_msgSend_297(_id, _lib._sel_decodingFailurePolicy1); + } + + NSError? get error { + final _ret = _lib._objc_msgSend_298(_id, _lib._sel_error1); + return _ret.address == 0 + ? null + : NSError._(_ret, _lib, retain: true, release: true); + } + + void encodeNXObject_(NSObject object) { + return _lib._objc_msgSend_15(_id, _lib._sel_encodeNXObject_1, object._id); + } + + NSObject decodeNXObject() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_decodeNXObject1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void decodeValueOfObjCType_at_( + ffi.Pointer type, ffi.Pointer data) { + return _lib._objc_msgSend_18( + _id, _lib._sel_decodeValueOfObjCType_at_1, type, data); + } + + void encodePoint_(CGPoint point) { + return _lib._objc_msgSend_299(_id, _lib._sel_encodePoint_1, point); + } + + CGPoint decodePoint() { + return _lib._objc_msgSend_54(_id, _lib._sel_decodePoint1); + } + + void encodeSize_(CGSize size) { + return _lib._objc_msgSend_300(_id, _lib._sel_encodeSize_1, size); + } + + CGSize decodeSize() { + return _lib._objc_msgSend_55(_id, _lib._sel_decodeSize1); + } + + void encodeRect_(CGRect rect) { + return _lib._objc_msgSend_301(_id, _lib._sel_encodeRect_1, rect); + } + + CGRect decodeRect() { + return _lib._objc_msgSend_56(_id, _lib._sel_decodeRect1); + } + + void encodePoint_forKey_(CGPoint point, NSString? key) { + return _lib._objc_msgSend_302( + _id, _lib._sel_encodePoint_forKey_1, point, key?._id ?? ffi.nullptr); + } + + void encodeSize_forKey_(CGSize size, NSString? key) { + return _lib._objc_msgSend_303( + _id, _lib._sel_encodeSize_forKey_1, size, key?._id ?? ffi.nullptr); + } + + void encodeRect_forKey_(CGRect rect, NSString? key) { + return _lib._objc_msgSend_304( + _id, _lib._sel_encodeRect_forKey_1, rect, key?._id ?? ffi.nullptr); + } + + CGPoint decodePointForKey_(NSString? key) { + return _lib._objc_msgSend_305( + _id, _lib._sel_decodePointForKey_1, key?._id ?? ffi.nullptr); + } + + CGSize decodeSizeForKey_(NSString? key) { + return _lib._objc_msgSend_306( + _id, _lib._sel_decodeSizeForKey_1, key?._id ?? ffi.nullptr); + } + + CGRect decodeRectForKey_(NSString? key) { + return _lib._objc_msgSend_307( + _id, _lib._sel_decodeRectForKey_1, key?._id ?? ffi.nullptr); + } + + static NSCoder new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSCoder1, _lib._sel_new1); + return NSCoder._(_ret, _lib, retain: false, release: true); + } + + static NSCoder alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSCoder1, _lib._sel_alloc1); + return NSCoder._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSCoder1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSCoder1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSCoder1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSCoder1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSCoder1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSCoder1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSCoder1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSCoder1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSCoder1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSData extends NSObject { + NSData._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSData] that points to the same underlying object as [other]. + static NSData castFrom(T other) { + return NSData._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSData] that wraps the given raw object pointer. + static NSData castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSData._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSData]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSData1); + } + + int get length { + return _lib._objc_msgSend_10(_id, _lib._sel_length1); + } + + ffi.Pointer get bytes { + return _lib._objc_msgSend_19(_id, _lib._sel_bytes1); + } + + NSString? get description { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + void getBytes_length_(ffi.Pointer buffer, int length) { + return _lib._objc_msgSend_21( + _id, _lib._sel_getBytes_length_1, buffer, length); + } + + void getBytes_range_(ffi.Pointer buffer, _NSRange range) { + return _lib._objc_msgSend_22( + _id, _lib._sel_getBytes_range_1, buffer, range); + } + + bool isEqualToData_(NSData? other) { + return _lib._objc_msgSend_23( + _id, _lib._sel_isEqualToData_1, other?._id ?? ffi.nullptr); + } + + NSData subdataWithRange_(_NSRange range) { + final _ret = + _lib._objc_msgSend_24(_id, _lib._sel_subdataWithRange_1, range); + return NSData._(_ret, _lib, retain: true, release: true); + } + + bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_25(_id, _lib._sel_writeToFile_atomically_1, + path?._id ?? ffi.nullptr, useAuxiliaryFile); + } + + bool writeToURL_atomically_(NSURL? url, bool atomically) { + return _lib._objc_msgSend_125(_id, _lib._sel_writeToURL_atomically_1, + url?._id ?? ffi.nullptr, atomically); + } + + bool writeToFile_options_error_(NSString? path, int writeOptionsMask, + ffi.Pointer> errorPtr) { + return _lib._objc_msgSend_248(_id, _lib._sel_writeToFile_options_error_1, + path?._id ?? ffi.nullptr, writeOptionsMask, errorPtr); + } + + bool writeToURL_options_error_(NSURL? url, int writeOptionsMask, + ffi.Pointer> errorPtr) { + return _lib._objc_msgSend_249(_id, _lib._sel_writeToURL_options_error_1, + url?._id ?? ffi.nullptr, writeOptionsMask, errorPtr); + } + + _NSRange rangeOfData_options_range_( + NSData? dataToFind, int mask, _NSRange searchRange) { + return _lib._objc_msgSend_250(_id, _lib._sel_rangeOfData_options_range_1, + dataToFind?._id ?? ffi.nullptr, mask, searchRange); + } + + void enumerateByteRangesUsingBlock_(ObjCBlock11 block) { + return _lib._objc_msgSend_251( + _id, _lib._sel_enumerateByteRangesUsingBlock_1, block._id); + } + + static NSData data(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_data1); + return NSData._(_ret, _lib, retain: true, release: true); + } + + static NSData dataWithBytes_length_( + HidListenerBindingsSwift _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_252( + _lib._class_NSData1, _lib._sel_dataWithBytes_length_1, bytes, length); + return NSData._(_ret, _lib, retain: true, release: true); + } + + static NSData dataWithBytesNoCopy_length_( + HidListenerBindingsSwift _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_252(_lib._class_NSData1, + _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); + return NSData._(_ret, _lib, retain: false, release: true); + } + + static NSData dataWithBytesNoCopy_length_freeWhenDone_( + HidListenerBindingsSwift _lib, + ffi.Pointer bytes, + int length, + bool b) { + final _ret = _lib._objc_msgSend_253(_lib._class_NSData1, + _lib._sel_dataWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); + return NSData._(_ret, _lib, retain: false, release: true); + } + + static NSData dataWithContentsOfFile_options_error_( + HidListenerBindingsSwift _lib, + NSString? path, + int readOptionsMask, + ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_254( + _lib._class_NSData1, + _lib._sel_dataWithContentsOfFile_options_error_1, + path?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSData._(_ret, _lib, retain: true, release: true); + } + + static NSData dataWithContentsOfURL_options_error_( + HidListenerBindingsSwift _lib, + NSURL? url, + int readOptionsMask, + ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_255( + _lib._class_NSData1, + _lib._sel_dataWithContentsOfURL_options_error_1, + url?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSData._(_ret, _lib, retain: true, release: true); + } + + static NSData dataWithContentsOfFile_( + HidListenerBindingsSwift _lib, NSString? path) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSData1, + _lib._sel_dataWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSData._(_ret, _lib, retain: true, release: true); + } + + static NSData dataWithContentsOfURL_( + HidListenerBindingsSwift _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSData1, + _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSData._(_ret, _lib, retain: true, release: true); + } + + NSData initWithBytes_length_(ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_252( + _id, _lib._sel_initWithBytes_length_1, bytes, length); + return NSData._(_ret, _lib, retain: true, release: true); + } + + NSData initWithBytesNoCopy_length_(ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_252( + _id, _lib._sel_initWithBytesNoCopy_length_1, bytes, length); + return NSData._(_ret, _lib, retain: false, release: true); + } + + NSData initWithBytesNoCopy_length_freeWhenDone_( + ffi.Pointer bytes, int length, bool b) { + final _ret = _lib._objc_msgSend_253(_id, + _lib._sel_initWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); + return NSData._(_ret, _lib, retain: false, release: true); + } + + NSData initWithBytesNoCopy_length_deallocator_( + ffi.Pointer bytes, int length, ObjCBlock12 deallocator) { + final _ret = _lib._objc_msgSend_256( + _id, + _lib._sel_initWithBytesNoCopy_length_deallocator_1, + bytes, + length, + deallocator._id); + return NSData._(_ret, _lib, retain: false, release: true); + } + + NSData initWithContentsOfFile_options_error_(NSString? path, + int readOptionsMask, ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_254( + _id, + _lib._sel_initWithContentsOfFile_options_error_1, + path?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSData._(_ret, _lib, retain: true, release: true); + } + + NSData initWithContentsOfURL_options_error_(NSURL? url, int readOptionsMask, + ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_255( + _id, + _lib._sel_initWithContentsOfURL_options_error_1, + url?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSData._(_ret, _lib, retain: true, release: true); + } + + NSData initWithContentsOfFile_(NSString? path) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSData._(_ret, _lib, retain: true, release: true); + } + + NSData initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_241( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSData._(_ret, _lib, retain: true, release: true); + } + + NSData initWithData_(NSData? data) { + final _ret = _lib._objc_msgSend_257( + _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + return NSData._(_ret, _lib, retain: true, release: true); + } + + static NSData dataWithData_(HidListenerBindingsSwift _lib, NSData? data) { + final _ret = _lib._objc_msgSend_257(_lib._class_NSData1, + _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); + return NSData._(_ret, _lib, retain: true, release: true); + } + + NSData initWithBase64EncodedString_options_( + NSString? base64String, int options) { + final _ret = _lib._objc_msgSend_258( + _id, + _lib._sel_initWithBase64EncodedString_options_1, + base64String?._id ?? ffi.nullptr, + options); + return NSData._(_ret, _lib, retain: true, release: true); + } + + NSString base64EncodedStringWithOptions_(int options) { + final _ret = _lib._objc_msgSend_259( + _id, _lib._sel_base64EncodedStringWithOptions_1, options); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSData initWithBase64EncodedData_options_(NSData? base64Data, int options) { + final _ret = _lib._objc_msgSend_260( + _id, + _lib._sel_initWithBase64EncodedData_options_1, + base64Data?._id ?? ffi.nullptr, + options); + return NSData._(_ret, _lib, retain: true, release: true); + } + + NSData base64EncodedDataWithOptions_(int options) { + final _ret = _lib._objc_msgSend_261( + _id, _lib._sel_base64EncodedDataWithOptions_1, options); + return NSData._(_ret, _lib, retain: true, release: true); + } + + NSData decompressedDataUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_262(_id, + _lib._sel_decompressedDataUsingAlgorithm_error_1, algorithm, error); + return NSData._(_ret, _lib, retain: true, release: true); + } + + NSData compressedDataUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_262( + _id, _lib._sel_compressedDataUsingAlgorithm_error_1, algorithm, error); + return NSData._(_ret, _lib, retain: true, release: true); + } + + void getBytes_(ffi.Pointer buffer) { + return _lib._objc_msgSend_47(_id, _lib._sel_getBytes_1, buffer); + } + + static NSObject dataWithContentsOfMappedFile_( + HidListenerBindingsSwift _lib, NSString? path) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSData1, + _lib._sel_dataWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject initWithContentsOfMappedFile_(NSString? path) { + final _ret = _lib._objc_msgSend_30(_id, + _lib._sel_initWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject initWithBase64Encoding_(NSString? base64String) { + final _ret = _lib._objc_msgSend_30(_id, _lib._sel_initWithBase64Encoding_1, + base64String?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSString base64Encoding() { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_base64Encoding1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSData new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_new1); + return NSData._(_ret, _lib, retain: false, release: true); + } + + static NSData alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_alloc1); + return NSData._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSData1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSData1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSData1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSData1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSData1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSData1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSData1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSData1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSData1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +final class _NSRange extends ffi.Struct { + @ffi.UnsignedLong() + external int location; + + @ffi.UnsignedLong() + external int length; +} + +class NSURL extends NSObject { + NSURL._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURL] that points to the same underlying object as [other]. + static NSURL castFrom(T other) { + return NSURL._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSURL] that wraps the given raw object pointer. + static NSURL castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURL._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSURL]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURL1); + } + + NSURL initWithScheme_host_path_( + NSString? scheme, NSString? host, NSString? path) { + final _ret = _lib._objc_msgSend_26( + _id, + _lib._sel_initWithScheme_host_path_1, + scheme?._id ?? ffi.nullptr, + host?._id ?? ffi.nullptr, + path?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL initFileURLWithPath_isDirectory_relativeToURL_( + NSString? path, bool isDir, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_27( + _id, + _lib._sel_initFileURLWithPath_isDirectory_relativeToURL_1, + path?._id ?? ffi.nullptr, + isDir, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL initFileURLWithPath_relativeToURL_(NSString? path, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_28( + _id, + _lib._sel_initFileURLWithPath_relativeToURL_1, + path?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL initFileURLWithPath_isDirectory_(NSString? path, bool isDir) { + final _ret = _lib._objc_msgSend_29( + _id, + _lib._sel_initFileURLWithPath_isDirectory_1, + path?._id ?? ffi.nullptr, + isDir); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL initFileURLWithPath_(NSString? path) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initFileURLWithPath_1, path?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + static NSURL fileURLWithPath_isDirectory_relativeToURL_( + HidListenerBindingsSwift _lib, + NSString? path, + bool isDir, + NSURL? baseURL) { + final _ret = _lib._objc_msgSend_31( + _lib._class_NSURL1, + _lib._sel_fileURLWithPath_isDirectory_relativeToURL_1, + path?._id ?? ffi.nullptr, + isDir, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + static NSURL fileURLWithPath_relativeToURL_( + HidListenerBindingsSwift _lib, NSString? path, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_32( + _lib._class_NSURL1, + _lib._sel_fileURLWithPath_relativeToURL_1, + path?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + static NSURL fileURLWithPath_isDirectory_( + HidListenerBindingsSwift _lib, NSString? path, bool isDir) { + final _ret = _lib._objc_msgSend_33( + _lib._class_NSURL1, + _lib._sel_fileURLWithPath_isDirectory_1, + path?._id ?? ffi.nullptr, + isDir); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + static NSURL fileURLWithPath_(HidListenerBindingsSwift _lib, NSString? path) { + final _ret = _lib._objc_msgSend_34(_lib._class_NSURL1, + _lib._sel_fileURLWithPath_1, path?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_( + ffi.Pointer path, bool isDir, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_35( + _id, + _lib._sel_initFileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1, + path, + isDir, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + static NSURL fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_( + HidListenerBindingsSwift _lib, + ffi.Pointer path, + bool isDir, + NSURL? baseURL) { + final _ret = _lib._objc_msgSend_36( + _lib._class_NSURL1, + _lib._sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_1, + path, + isDir, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL initWithString_(NSString? URLString) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithString_1, URLString?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL initWithString_relativeToURL_(NSString? URLString, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_28( + _id, + _lib._sel_initWithString_relativeToURL_1, + URLString?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + static NSURL URLWithString_( + HidListenerBindingsSwift _lib, NSString? URLString) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSURL1, + _lib._sel_URLWithString_1, URLString?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + static NSURL URLWithString_relativeToURL_( + HidListenerBindingsSwift _lib, NSString? URLString, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_28( + _lib._class_NSURL1, + _lib._sel_URLWithString_relativeToURL_1, + URLString?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL initWithDataRepresentation_relativeToURL_( + NSData? data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_37( + _id, + _lib._sel_initWithDataRepresentation_relativeToURL_1, + data?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + static NSURL URLWithDataRepresentation_relativeToURL_( + HidListenerBindingsSwift _lib, NSData? data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSURL1, + _lib._sel_URLWithDataRepresentation_relativeToURL_1, + data?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL initAbsoluteURLWithDataRepresentation_relativeToURL_( + NSData? data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_37( + _id, + _lib._sel_initAbsoluteURLWithDataRepresentation_relativeToURL_1, + data?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + static NSURL absoluteURLWithDataRepresentation_relativeToURL_( + HidListenerBindingsSwift _lib, NSData? data, NSURL? baseURL) { + final _ret = _lib._objc_msgSend_38( + _lib._class_NSURL1, + _lib._sel_absoluteURLWithDataRepresentation_relativeToURL_1, + data?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSData? get dataRepresentation { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_dataRepresentation1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + NSString? get absoluteString { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_absoluteString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get relativeString { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_relativeString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSURL? get baseURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_baseURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get absoluteURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_absoluteURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSString? get scheme { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_scheme1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get resourceSpecifier { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_resourceSpecifier1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get host { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_host1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSNumber? get port { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_port1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSString? get user { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_user1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get password { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_password1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get path { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_path1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get fragment { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fragment1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get parameterString { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_parameterString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get query { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_query1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get relativePath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_relativePath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + bool get hasDirectoryPath { + return _lib._objc_msgSend_12(_id, _lib._sel_hasDirectoryPath1); + } + + bool getFileSystemRepresentation_maxLength_( + ffi.Pointer buffer, int maxBufferLength) { + return _lib._objc_msgSend_224( + _id, + _lib._sel_getFileSystemRepresentation_maxLength_1, + buffer, + maxBufferLength); + } + + ffi.Pointer get fileSystemRepresentation { + return _lib._objc_msgSend_13(_id, _lib._sel_fileSystemRepresentation1); + } + + bool get fileURL { + return _lib._objc_msgSend_12(_id, _lib._sel_isFileURL1); + } + + NSURL? get standardizedURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_standardizedURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + bool checkResourceIsReachableAndReturnError_( + ffi.Pointer> error) { + return _lib._objc_msgSend_225( + _id, _lib._sel_checkResourceIsReachableAndReturnError_1, error); + } + + bool isFileReferenceURL() { + return _lib._objc_msgSend_12(_id, _lib._sel_isFileReferenceURL1); + } + + NSURL fileReferenceURL() { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_fileReferenceURL1); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get filePathURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_filePathURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + bool getResourceValue_forKey_error_( + ffi.Pointer> value, + NSString key, + ffi.Pointer> error) { + return _lib._objc_msgSend_226( + _id, _lib._sel_getResourceValue_forKey_error_1, value, key._id, error); + } + + NSObject resourceValuesForKeys_error_( + NSArray? keys, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_227( + _id, + _lib._sel_resourceValuesForKeys_error_1, + keys?._id ?? ffi.nullptr, + error); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + bool setResourceValue_forKey_error_(NSObject value, NSString key, + ffi.Pointer> error) { + return _lib._objc_msgSend_228(_id, + _lib._sel_setResourceValue_forKey_error_1, value._id, key._id, error); + } + + bool setResourceValues_error_( + NSObject? keyedValues, ffi.Pointer> error) { + return _lib._objc_msgSend_229(_id, _lib._sel_setResourceValues_error_1, + keyedValues?._id ?? ffi.nullptr, error); + } + + void removeCachedResourceValueForKey_(NSString key) { + return _lib._objc_msgSend_192( + _id, _lib._sel_removeCachedResourceValueForKey_1, key._id); + } + + void removeAllCachedResourceValues() { + return _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResourceValues1); + } + + void setTemporaryResourceValue_forKey_(NSObject value, NSString key) { + return _lib._objc_msgSend_126( + _id, _lib._sel_setTemporaryResourceValue_forKey_1, value._id, key._id); + } + + NSData + bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_( + int options, + NSArray? keys, + NSURL? relativeURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_230( + _id, + _lib._sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_1, + options, + keys?._id ?? ffi.nullptr, + relativeURL?._id ?? ffi.nullptr, + error); + return NSData._(_ret, _lib, retain: true, release: true); + } + + NSURL + initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( + NSData? bookmarkData, + int options, + NSURL? relativeURL, + ffi.Pointer isStale, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_231( + _id, + _lib._sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1, + bookmarkData?._id ?? ffi.nullptr, + options, + relativeURL?._id ?? ffi.nullptr, + isStale, + error); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + static NSURL + URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_( + HidListenerBindingsSwift _lib, + NSData? bookmarkData, + int options, + NSURL? relativeURL, + ffi.Pointer isStale, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_231( + _lib._class_NSURL1, + _lib._sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1, + bookmarkData?._id ?? ffi.nullptr, + options, + relativeURL?._id ?? ffi.nullptr, + isStale, + error); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + static NSObject resourceValuesForKeys_fromBookmarkData_( + HidListenerBindingsSwift _lib, NSArray? keys, NSData? bookmarkData) { + final _ret = _lib._objc_msgSend_232( + _lib._class_NSURL1, + _lib._sel_resourceValuesForKeys_fromBookmarkData_1, + keys?._id ?? ffi.nullptr, + bookmarkData?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static bool writeBookmarkData_toURL_options_error_( + HidListenerBindingsSwift _lib, + NSData? bookmarkData, + NSURL? bookmarkFileURL, + int options, + ffi.Pointer> error) { + return _lib._objc_msgSend_233( + _lib._class_NSURL1, + _lib._sel_writeBookmarkData_toURL_options_error_1, + bookmarkData?._id ?? ffi.nullptr, + bookmarkFileURL?._id ?? ffi.nullptr, + options, + error); + } + + static NSData bookmarkDataWithContentsOfURL_error_( + HidListenerBindingsSwift _lib, + NSURL? bookmarkFileURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_234( + _lib._class_NSURL1, + _lib._sel_bookmarkDataWithContentsOfURL_error_1, + bookmarkFileURL?._id ?? ffi.nullptr, + error); + return NSData._(_ret, _lib, retain: true, release: true); + } + + static NSURL URLByResolvingAliasFileAtURL_options_error_( + HidListenerBindingsSwift _lib, + NSURL? url, + int options, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_235( + _lib._class_NSURL1, + _lib._sel_URLByResolvingAliasFileAtURL_options_error_1, + url?._id ?? ffi.nullptr, + options, + error); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + bool startAccessingSecurityScopedResource() { + return _lib._objc_msgSend_12( + _id, _lib._sel_startAccessingSecurityScopedResource1); + } + + void stopAccessingSecurityScopedResource() { + return _lib._objc_msgSend_1( + _id, _lib._sel_stopAccessingSecurityScopedResource1); + } + + bool getPromisedItemResourceValue_forKey_error_( + ffi.Pointer> value, + NSString key, + ffi.Pointer> error) { + return _lib._objc_msgSend_226( + _id, + _lib._sel_getPromisedItemResourceValue_forKey_error_1, + value, + key._id, + error); + } + + NSDictionary promisedItemResourceValuesForKeys_error_( + NSArray? keys, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_236( + _id, + _lib._sel_promisedItemResourceValuesForKeys_error_1, + keys?._id ?? ffi.nullptr, + error); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + bool checkPromisedItemIsReachableAndReturnError_( + ffi.Pointer> error) { + return _lib._objc_msgSend_225( + _id, _lib._sel_checkPromisedItemIsReachableAndReturnError_1, error); + } + + static NSURL fileURLWithPathComponents_( + HidListenerBindingsSwift _lib, NSArray? components) { + final _ret = _lib._objc_msgSend_237(_lib._class_NSURL1, + _lib._sel_fileURLWithPathComponents_1, components?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSArray? get pathComponents { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_pathComponents1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString? get lastPathComponent { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_lastPathComponent1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get pathExtension { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_pathExtension1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSURL URLByAppendingPathComponent_(NSString? pathComponent) { + final _ret = _lib._objc_msgSend_34( + _id, + _lib._sel_URLByAppendingPathComponent_1, + pathComponent?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL URLByAppendingPathComponent_isDirectory_( + NSString? pathComponent, bool isDirectory) { + final _ret = _lib._objc_msgSend_33( + _id, + _lib._sel_URLByAppendingPathComponent_isDirectory_1, + pathComponent?._id ?? ffi.nullptr, + isDirectory); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get URLByDeletingLastPathComponent { + final _ret = + _lib._objc_msgSend_40(_id, _lib._sel_URLByDeletingLastPathComponent1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL URLByAppendingPathExtension_(NSString? pathExtension) { + final _ret = _lib._objc_msgSend_34( + _id, + _lib._sel_URLByAppendingPathExtension_1, + pathExtension?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get URLByDeletingPathExtension { + final _ret = + _lib._objc_msgSend_40(_id, _lib._sel_URLByDeletingPathExtension1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get URLByStandardizingPath { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URLByStandardizingPath1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get URLByResolvingSymlinksInPath { + final _ret = + _lib._objc_msgSend_40(_id, _lib._sel_URLByResolvingSymlinksInPath1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSData resourceDataUsingCache_(bool shouldUseCache) { + final _ret = _lib._objc_msgSend_238( + _id, _lib._sel_resourceDataUsingCache_1, shouldUseCache); + return NSData._(_ret, _lib, retain: true, release: true); + } + + void loadResourceDataNotifyingClient_usingCache_( + NSObject client, bool shouldUseCache) { + return _lib._objc_msgSend_239( + _id, + _lib._sel_loadResourceDataNotifyingClient_usingCache_1, + client._id, + shouldUseCache); + } + + NSObject propertyForKey_(NSString? propertyKey) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_propertyForKey_1, propertyKey?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + bool setResourceData_(NSData? data) { + return _lib._objc_msgSend_23( + _id, _lib._sel_setResourceData_1, data?._id ?? ffi.nullptr); + } + + bool setProperty_forKey_(NSObject property, NSString? propertyKey) { + return _lib._objc_msgSend_240(_id, _lib._sel_setProperty_forKey_1, + property._id, propertyKey?._id ?? ffi.nullptr); + } + + NSURLHandle URLHandleUsingCache_(bool shouldUseCache) { + final _ret = _lib._objc_msgSend_247( + _id, _lib._sel_URLHandleUsingCache_1, shouldUseCache); + return NSURLHandle._(_ret, _lib, retain: true, release: true); + } + + static NSURL new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURL1, _lib._sel_new1); + return NSURL._(_ret, _lib, retain: false, release: true); + } + + static NSURL alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURL1, _lib._sel_alloc1); + return NSURL._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSURL1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSURL1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURL1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURL1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURL1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURL1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSURL1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSURL1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURL1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSNumber extends NSValue { + NSNumber._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSNumber] that points to the same underlying object as [other]. + static NSNumber castFrom(T other) { + return NSNumber._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSNumber] that wraps the given raw object pointer. + static NSNumber castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSNumber._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSNumber]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSNumber1); + } + + @override + NSNumber initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithChar_(int value) { + final _ret = _lib._objc_msgSend_202(_id, _lib._sel_initWithChar_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithUnsignedChar_(int value) { + final _ret = + _lib._objc_msgSend_203(_id, _lib._sel_initWithUnsignedChar_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithShort_(int value) { + final _ret = _lib._objc_msgSend_204(_id, _lib._sel_initWithShort_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithUnsignedShort_(int value) { + final _ret = + _lib._objc_msgSend_205(_id, _lib._sel_initWithUnsignedShort_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithInt_(int value) { + final _ret = _lib._objc_msgSend_206(_id, _lib._sel_initWithInt_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithUnsignedInt_(int value) { + final _ret = + _lib._objc_msgSend_207(_id, _lib._sel_initWithUnsignedInt_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithLong_(int value) { + final _ret = _lib._objc_msgSend_208(_id, _lib._sel_initWithLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithUnsignedLong_(int value) { + final _ret = + _lib._objc_msgSend_209(_id, _lib._sel_initWithUnsignedLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithLongLong_(int value) { + final _ret = + _lib._objc_msgSend_210(_id, _lib._sel_initWithLongLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithUnsignedLongLong_(int value) { + final _ret = _lib._objc_msgSend_211( + _id, _lib._sel_initWithUnsignedLongLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithFloat_(double value) { + final _ret = _lib._objc_msgSend_212(_id, _lib._sel_initWithFloat_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithDouble_(double value) { + final _ret = _lib._objc_msgSend_213(_id, _lib._sel_initWithDouble_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithBool_(bool value) { + final _ret = _lib._objc_msgSend_214(_id, _lib._sel_initWithBool_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithInteger_(int value) { + final _ret = + _lib._objc_msgSend_208(_id, _lib._sel_initWithInteger_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber initWithUnsignedInteger_(int value) { + final _ret = + _lib._objc_msgSend_209(_id, _lib._sel_initWithUnsignedInteger_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + int get charValue { + return _lib._objc_msgSend_215(_id, _lib._sel_charValue1); + } + + int get unsignedCharValue { + return _lib._objc_msgSend_216(_id, _lib._sel_unsignedCharValue1); + } + + int get shortValue { + return _lib._objc_msgSend_217(_id, _lib._sel_shortValue1); + } + + int get unsignedShortValue { + return _lib._objc_msgSend_218(_id, _lib._sel_unsignedShortValue1); + } + + int get intValue { + return _lib._objc_msgSend_219(_id, _lib._sel_intValue1); + } + + int get unsignedIntValue { + return _lib._objc_msgSend_197(_id, _lib._sel_unsignedIntValue1); + } + + int get longValue { + return _lib._objc_msgSend_78(_id, _lib._sel_longValue1); + } + + int get unsignedLongValue { + return _lib._objc_msgSend_10(_id, _lib._sel_unsignedLongValue1); + } + + int get longLongValue { + return _lib._objc_msgSend_220(_id, _lib._sel_longLongValue1); + } + + int get unsignedLongLongValue { + return _lib._objc_msgSend_154(_id, _lib._sel_unsignedLongLongValue1); + } + + double get floatValue { + return _lib._objc_msgSend_221(_id, _lib._sel_floatValue1); + } + + double get doubleValue { + return _lib._objc_msgSend_155(_id, _lib._sel_doubleValue1); + } + + bool get boolValue { + return _lib._objc_msgSend_12(_id, _lib._sel_boolValue1); + } + + int get integerValue { + return _lib._objc_msgSend_78(_id, _lib._sel_integerValue1); + } + + int get unsignedIntegerValue { + return _lib._objc_msgSend_10(_id, _lib._sel_unsignedIntegerValue1); + } + + NSString? get stringValue { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_stringValue1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + int compare_(NSNumber? otherNumber) { + return _lib._objc_msgSend_222( + _id, _lib._sel_compare_1, otherNumber?._id ?? ffi.nullptr); + } + + bool isEqualToNumber_(NSNumber? number) { + return _lib._objc_msgSend_223( + _id, _lib._sel_isEqualToNumber_1, number?._id ?? ffi.nullptr); + } + + NSString descriptionWithLocale_(NSObject locale) { + final _ret = _lib._objc_msgSend_65( + _id, _lib._sel_descriptionWithLocale_1, locale._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithChar_(HidListenerBindingsSwift _lib, int value) { + final _ret = _lib._objc_msgSend_202( + _lib._class_NSNumber1, _lib._sel_numberWithChar_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithUnsignedChar_( + HidListenerBindingsSwift _lib, int value) { + final _ret = _lib._objc_msgSend_203( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedChar_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithShort_(HidListenerBindingsSwift _lib, int value) { + final _ret = _lib._objc_msgSend_204( + _lib._class_NSNumber1, _lib._sel_numberWithShort_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithUnsignedShort_( + HidListenerBindingsSwift _lib, int value) { + final _ret = _lib._objc_msgSend_205( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedShort_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithInt_(HidListenerBindingsSwift _lib, int value) { + final _ret = _lib._objc_msgSend_206( + _lib._class_NSNumber1, _lib._sel_numberWithInt_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithUnsignedInt_( + HidListenerBindingsSwift _lib, int value) { + final _ret = _lib._objc_msgSend_207( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedInt_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithLong_(HidListenerBindingsSwift _lib, int value) { + final _ret = _lib._objc_msgSend_208( + _lib._class_NSNumber1, _lib._sel_numberWithLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithUnsignedLong_( + HidListenerBindingsSwift _lib, int value) { + final _ret = _lib._objc_msgSend_209( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithLongLong_( + HidListenerBindingsSwift _lib, int value) { + final _ret = _lib._objc_msgSend_210( + _lib._class_NSNumber1, _lib._sel_numberWithLongLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithUnsignedLongLong_( + HidListenerBindingsSwift _lib, int value) { + final _ret = _lib._objc_msgSend_211( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedLongLong_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithFloat_( + HidListenerBindingsSwift _lib, double value) { + final _ret = _lib._objc_msgSend_212( + _lib._class_NSNumber1, _lib._sel_numberWithFloat_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithDouble_( + HidListenerBindingsSwift _lib, double value) { + final _ret = _lib._objc_msgSend_213( + _lib._class_NSNumber1, _lib._sel_numberWithDouble_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithBool_(HidListenerBindingsSwift _lib, bool value) { + final _ret = _lib._objc_msgSend_214( + _lib._class_NSNumber1, _lib._sel_numberWithBool_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithInteger_(HidListenerBindingsSwift _lib, int value) { + final _ret = _lib._objc_msgSend_208( + _lib._class_NSNumber1, _lib._sel_numberWithInteger_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSNumber numberWithUnsignedInteger_( + HidListenerBindingsSwift _lib, int value) { + final _ret = _lib._objc_msgSend_209( + _lib._class_NSNumber1, _lib._sel_numberWithUnsignedInteger_1, value); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithBytes_objCType_(HidListenerBindingsSwift _lib, + ffi.Pointer value, ffi.Pointer type) { + final _ret = _lib._objc_msgSend_43(_lib._class_NSNumber1, + _lib._sel_valueWithBytes_objCType_1, value, type); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue value_withObjCType_(HidListenerBindingsSwift _lib, + ffi.Pointer value, ffi.Pointer type) { + final _ret = _lib._objc_msgSend_43( + _lib._class_NSNumber1, _lib._sel_value_withObjCType_1, value, type); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithNonretainedObject_( + HidListenerBindingsSwift _lib, NSObject anObject) { + final _ret = _lib._objc_msgSend_44(_lib._class_NSNumber1, + _lib._sel_valueWithNonretainedObject_1, anObject._id); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithPointer_( + HidListenerBindingsSwift _lib, ffi.Pointer pointer) { + final _ret = _lib._objc_msgSend_45( + _lib._class_NSNumber1, _lib._sel_valueWithPointer_1, pointer); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithRange_( + HidListenerBindingsSwift _lib, _NSRange range) { + final _ret = _lib._objc_msgSend_48( + _lib._class_NSNumber1, _lib._sel_valueWithRange_1, range); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithPoint_(HidListenerBindingsSwift _lib, CGPoint point) { + final _ret = _lib._objc_msgSend_50( + _lib._class_NSNumber1, _lib._sel_valueWithPoint_1, point); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithSize_(HidListenerBindingsSwift _lib, CGSize size) { + final _ret = _lib._objc_msgSend_51( + _lib._class_NSNumber1, _lib._sel_valueWithSize_1, size); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithRect_(HidListenerBindingsSwift _lib, CGRect rect) { + final _ret = _lib._objc_msgSend_52( + _lib._class_NSNumber1, _lib._sel_valueWithRect_1, rect); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithEdgeInsets_( + HidListenerBindingsSwift _lib, NSEdgeInsets insets) { + final _ret = _lib._objc_msgSend_53( + _lib._class_NSNumber1, _lib._sel_valueWithEdgeInsets_1, insets); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSNumber new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_new1); + return NSNumber._(_ret, _lib, retain: false, release: true); + } + + static NSNumber alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_alloc1); + return NSNumber._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSNumber1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSNumber1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSNumber1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSNumber1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSNumber1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSNumber1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSNumber1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSNumber1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSNumber1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSValue extends NSObject { + NSValue._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSValue] that points to the same underlying object as [other]. + static NSValue castFrom(T other) { + return NSValue._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSValue] that wraps the given raw object pointer. + static NSValue castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSValue._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSValue]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSValue1); + } + + void getValue_size_(ffi.Pointer value, int size) { + return _lib._objc_msgSend_21(_id, _lib._sel_getValue_size_1, value, size); + } + + ffi.Pointer get objCType { + return _lib._objc_msgSend_13(_id, _lib._sel_objCType1); + } + + NSValue initWithBytes_objCType_( + ffi.Pointer value, ffi.Pointer type) { + final _ret = _lib._objc_msgSend_41( + _id, _lib._sel_initWithBytes_objCType_1, value, type); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + NSValue initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithBytes_objCType_(HidListenerBindingsSwift _lib, + ffi.Pointer value, ffi.Pointer type) { + final _ret = _lib._objc_msgSend_43( + _lib._class_NSValue1, _lib._sel_valueWithBytes_objCType_1, value, type); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue value_withObjCType_(HidListenerBindingsSwift _lib, + ffi.Pointer value, ffi.Pointer type) { + final _ret = _lib._objc_msgSend_43( + _lib._class_NSValue1, _lib._sel_value_withObjCType_1, value, type); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithNonretainedObject_( + HidListenerBindingsSwift _lib, NSObject anObject) { + final _ret = _lib._objc_msgSend_44(_lib._class_NSValue1, + _lib._sel_valueWithNonretainedObject_1, anObject._id); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + NSObject get nonretainedObjectValue { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_nonretainedObjectValue1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithPointer_( + HidListenerBindingsSwift _lib, ffi.Pointer pointer) { + final _ret = _lib._objc_msgSend_45( + _lib._class_NSValue1, _lib._sel_valueWithPointer_1, pointer); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + ffi.Pointer get pointerValue { + return _lib._objc_msgSend_19(_id, _lib._sel_pointerValue1); + } + + bool isEqualToValue_(NSValue? value) { + return _lib._objc_msgSend_46( + _id, _lib._sel_isEqualToValue_1, value?._id ?? ffi.nullptr); + } + + void getValue_(ffi.Pointer value) { + return _lib._objc_msgSend_47(_id, _lib._sel_getValue_1, value); + } + + static NSValue valueWithRange_( + HidListenerBindingsSwift _lib, _NSRange range) { + final _ret = _lib._objc_msgSend_48( + _lib._class_NSValue1, _lib._sel_valueWithRange_1, range); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + _NSRange get rangeValue { + return _lib._objc_msgSend_49(_id, _lib._sel_rangeValue1); + } + + static NSValue valueWithPoint_(HidListenerBindingsSwift _lib, CGPoint point) { + final _ret = _lib._objc_msgSend_50( + _lib._class_NSValue1, _lib._sel_valueWithPoint_1, point); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithSize_(HidListenerBindingsSwift _lib, CGSize size) { + final _ret = _lib._objc_msgSend_51( + _lib._class_NSValue1, _lib._sel_valueWithSize_1, size); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithRect_(HidListenerBindingsSwift _lib, CGRect rect) { + final _ret = _lib._objc_msgSend_52( + _lib._class_NSValue1, _lib._sel_valueWithRect_1, rect); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + static NSValue valueWithEdgeInsets_( + HidListenerBindingsSwift _lib, NSEdgeInsets insets) { + final _ret = _lib._objc_msgSend_53( + _lib._class_NSValue1, _lib._sel_valueWithEdgeInsets_1, insets); + return NSValue._(_ret, _lib, retain: true, release: true); + } + + CGPoint get pointValue { + return _lib._objc_msgSend_54(_id, _lib._sel_pointValue1); + } + + CGSize get sizeValue { + return _lib._objc_msgSend_55(_id, _lib._sel_sizeValue1); + } + + CGRect get rectValue { + return _lib._objc_msgSend_56(_id, _lib._sel_rectValue1); + } + + NSEdgeInsets get edgeInsetsValue { + return _lib._objc_msgSend_57(_id, _lib._sel_edgeInsetsValue1); + } + + static NSValue new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSValue1, _lib._sel_new1); + return NSValue._(_ret, _lib, retain: false, release: true); + } + + static NSValue alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSValue1, _lib._sel_alloc1); + return NSValue._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSValue1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSValue1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSValue1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSValue1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSValue1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSValue1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSValue1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSValue1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSValue1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +final class CGPoint extends ffi.Struct { + @ffi.Double() + external double x; + + @ffi.Double() + external double y; +} + +final class CGSize extends ffi.Struct { + @ffi.Double() + external double width; + + @ffi.Double() + external double height; +} + +final class CGRect extends ffi.Struct { + external CGPoint origin; + + external CGSize size; +} + +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; +} + +class NSArray extends NSObject { + NSArray._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSArray] that points to the same underlying object as [other]. + static NSArray castFrom(T other) { + return NSArray._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSArray] that wraps the given raw object pointer. + static NSArray castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSArray._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSArray]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSArray1); + } + + int get count { + return _lib._objc_msgSend_10(_id, _lib._sel_count1); + } + + NSObject objectAtIndex_(int index) { + final _ret = _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndex_1, index); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + @override + NSArray init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray arrayByAddingObject_(NSObject anObject) { + final _ret = _lib._objc_msgSend_62( + _id, _lib._sel_arrayByAddingObject_1, anObject._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray arrayByAddingObjectsFromArray_(NSArray? otherArray) { + final _ret = _lib._objc_msgSend_63( + _id, + _lib._sel_arrayByAddingObjectsFromArray_1, + otherArray?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString componentsJoinedByString_(NSString? separator) { + final _ret = _lib._objc_msgSend_64(_id, + _lib._sel_componentsJoinedByString_1, separator?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + bool containsObject_(NSObject anObject) { + return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, anObject._id); + } + + NSString? get description { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString descriptionWithLocale_(NSObject locale) { + final _ret = _lib._objc_msgSend_65( + _id, _lib._sel_descriptionWithLocale_1, locale._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString descriptionWithLocale_indent_(NSObject locale, int level) { + final _ret = _lib._objc_msgSend_66( + _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSObject firstObjectCommonWithArray_(NSArray? otherArray) { + final _ret = _lib._objc_msgSend_67(_id, + _lib._sel_firstObjectCommonWithArray_1, otherArray?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void getObjects_range_( + ffi.Pointer> objects, _NSRange range) { + return _lib._objc_msgSend_68( + _id, _lib._sel_getObjects_range_1, objects, range); + } + + int indexOfObject_(NSObject anObject) { + return _lib._objc_msgSend_69(_id, _lib._sel_indexOfObject_1, anObject._id); + } + + int indexOfObject_inRange_(NSObject anObject, _NSRange range) { + return _lib._objc_msgSend_70( + _id, _lib._sel_indexOfObject_inRange_1, anObject._id, range); + } + + int indexOfObjectIdenticalTo_(NSObject anObject) { + return _lib._objc_msgSend_69( + _id, _lib._sel_indexOfObjectIdenticalTo_1, anObject._id); + } + + int indexOfObjectIdenticalTo_inRange_(NSObject anObject, _NSRange range) { + return _lib._objc_msgSend_70( + _id, _lib._sel_indexOfObjectIdenticalTo_inRange_1, anObject._id, range); + } + + bool isEqualToArray_(NSArray? otherArray) { + return _lib._objc_msgSend_71( + _id, _lib._sel_isEqualToArray_1, otherArray?._id ?? ffi.nullptr); + } + + NSObject get firstObject { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_firstObject1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject get lastObject { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_lastObject1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSEnumerator objectEnumerator() { + final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); + } + + NSEnumerator reverseObjectEnumerator() { + final _ret = _lib._objc_msgSend_72(_id, _lib._sel_reverseObjectEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); + } + + NSData? get sortedArrayHint { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_sortedArrayHint1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + NSArray sortedArrayUsingFunction_context_( + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>> + comparator, + ffi.Pointer context) { + final _ret = _lib._objc_msgSend_73( + _id, _lib._sel_sortedArrayUsingFunction_context_1, comparator, context); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray sortedArrayUsingFunction_context_hint_( + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>> + comparator, + ffi.Pointer context, + NSData? hint) { + final _ret = _lib._objc_msgSend_74( + _id, + _lib._sel_sortedArrayUsingFunction_context_hint_1, + comparator, + context, + hint?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray sortedArrayUsingSelector_(ffi.Pointer comparator) { + final _ret = _lib._objc_msgSend_75( + _id, _lib._sel_sortedArrayUsingSelector_1, comparator); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray subarrayWithRange_(_NSRange range) { + final _ret = + _lib._objc_msgSend_76(_id, _lib._sel_subarrayWithRange_1, range); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + bool writeToURL_error_( + NSURL? url, ffi.Pointer> error) { + return _lib._objc_msgSend_83( + _id, _lib._sel_writeToURL_error_1, url?._id ?? ffi.nullptr, error); + } + + void makeObjectsPerformSelector_(ffi.Pointer aSelector) { + return _lib._objc_msgSend_7( + _id, _lib._sel_makeObjectsPerformSelector_1, aSelector); + } + + void makeObjectsPerformSelector_withObject_( + ffi.Pointer aSelector, NSObject argument) { + return _lib._objc_msgSend_84( + _id, + _lib._sel_makeObjectsPerformSelector_withObject_1, + aSelector, + argument._id); + } + + NSArray objectsAtIndexes_(NSIndexSet? indexes) { + final _ret = _lib._objc_msgSend_105( + _id, _lib._sel_objectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSObject objectAtIndexedSubscript_(int idx) { + final _ret = + _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndexedSubscript_1, idx); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void enumerateObjectsUsingBlock_(ObjCBlock4 block) { + return _lib._objc_msgSend_106( + _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); + } + + void enumerateObjectsWithOptions_usingBlock_(int opts, ObjCBlock4 block) { + return _lib._objc_msgSend_107(_id, + _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); + } + + void enumerateObjectsAtIndexes_options_usingBlock_( + NSIndexSet? s, int opts, ObjCBlock4 block) { + return _lib._objc_msgSend_108( + _id, + _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, + s?._id ?? ffi.nullptr, + opts, + block._id); + } + + int indexOfObjectPassingTest_(ObjCBlock5 predicate) { + return _lib._objc_msgSend_109( + _id, _lib._sel_indexOfObjectPassingTest_1, predicate._id); + } + + int indexOfObjectWithOptions_passingTest_(int opts, ObjCBlock5 predicate) { + return _lib._objc_msgSend_110(_id, + _lib._sel_indexOfObjectWithOptions_passingTest_1, opts, predicate._id); + } + + int indexOfObjectAtIndexes_options_passingTest_( + NSIndexSet? s, int opts, ObjCBlock5 predicate) { + return _lib._objc_msgSend_111( + _id, + _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, + s?._id ?? ffi.nullptr, + opts, + predicate._id); + } + + NSIndexSet indexesOfObjectsPassingTest_(ObjCBlock5 predicate) { + final _ret = _lib._objc_msgSend_112( + _id, _lib._sel_indexesOfObjectsPassingTest_1, predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + NSIndexSet indexesOfObjectsWithOptions_passingTest_( + int opts, ObjCBlock5 predicate) { + final _ret = _lib._objc_msgSend_113( + _id, + _lib._sel_indexesOfObjectsWithOptions_passingTest_1, + opts, + predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_( + NSIndexSet? s, int opts, ObjCBlock5 predicate) { + final _ret = _lib._objc_msgSend_114( + _id, + _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, + s?._id ?? ffi.nullptr, + opts, + predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + NSArray sortedArrayUsingComparator_(ObjCBlock6 cmptr) { + final _ret = _lib._objc_msgSend_115( + _id, _lib._sel_sortedArrayUsingComparator_1, cmptr._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray sortedArrayWithOptions_usingComparator_(int opts, ObjCBlock6 cmptr) { + final _ret = _lib._objc_msgSend_116(_id, + _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + int indexOfObject_inSortedRange_options_usingComparator_( + NSObject obj, _NSRange r, int opts, ObjCBlock6 cmp) { + return _lib._objc_msgSend_117( + _id, + _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, + obj._id, + r, + opts, + cmp._id); + } + + static NSArray array(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_array1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray arrayWithObject_( + HidListenerBindingsSwift _lib, NSObject anObject) { + final _ret = _lib._objc_msgSend_16( + _lib._class_NSArray1, _lib._sel_arrayWithObject_1, anObject._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray arrayWithObjects_count_(HidListenerBindingsSwift _lib, + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61( + _lib._class_NSArray1, _lib._sel_arrayWithObjects_count_1, objects, cnt); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray arrayWithObjects_( + HidListenerBindingsSwift _lib, NSObject firstObj) { + final _ret = _lib._objc_msgSend_16( + _lib._class_NSArray1, _lib._sel_arrayWithObjects_1, firstObj._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray arrayWithArray_( + HidListenerBindingsSwift _lib, NSArray? array) { + final _ret = _lib._objc_msgSend_67(_lib._class_NSArray1, + _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray initWithArray_(NSArray? array) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray initWithArray_copyItems_(NSArray? array, bool flag) { + final _ret = _lib._objc_msgSend_118(_id, + _lib._sel_initWithArray_copyItems_1, array?._id ?? ffi.nullptr, flag); + return NSArray._(_ret, _lib, retain: false, release: true); + } + + NSArray initWithContentsOfURL_error_( + NSURL? url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_119( + _id, + _lib._sel_initWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray arrayWithContentsOfURL_error_(HidListenerBindingsSwift _lib, + NSURL? url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_119( + _lib._class_NSArray1, + _lib._sel_arrayWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSObject differenceFromArray_withOptions_usingEquivalenceTest_( + NSArray? other, int options, ObjCBlock7 block) { + final _ret = _lib._objc_msgSend_120( + _id, + _lib._sel_differenceFromArray_withOptions_usingEquivalenceTest_1, + other?._id ?? ffi.nullptr, + options, + block._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject differenceFromArray_withOptions_(NSArray? other, int options) { + final _ret = _lib._objc_msgSend_121( + _id, + _lib._sel_differenceFromArray_withOptions_1, + other?._id ?? ffi.nullptr, + options); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject differenceFromArray_(NSArray? other) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_differenceFromArray_1, other?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSArray arrayByApplyingDifference_(NSObject? difference) { + final _ret = _lib._objc_msgSend_62(_id, + _lib._sel_arrayByApplyingDifference_1, difference?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + void getObjects_(ffi.Pointer> objects) { + return _lib._objc_msgSend_122(_id, _lib._sel_getObjects_1, objects); + } + + static NSArray arrayWithContentsOfFile_( + HidListenerBindingsSwift _lib, NSString? path) { + final _ret = _lib._objc_msgSend_123(_lib._class_NSArray1, + _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray arrayWithContentsOfURL_( + HidListenerBindingsSwift _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_124(_lib._class_NSArray1, + _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray initWithContentsOfFile_(NSString? path) { + final _ret = _lib._objc_msgSend_123( + _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_124( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_25(_id, _lib._sel_writeToFile_atomically_1, + path?._id ?? ffi.nullptr, useAuxiliaryFile); + } + + bool writeToURL_atomically_(NSURL? url, bool atomically) { + return _lib._objc_msgSend_125(_id, _lib._sel_writeToURL_atomically_1, + url?._id ?? ffi.nullptr, atomically); + } + + NSArray pathsMatchingExtensions_(NSArray? filterTypes) { + final _ret = _lib._objc_msgSend_63(_id, _lib._sel_pathsMatchingExtensions_1, + filterTypes?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + @override + NSObject valueForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + @override + void setValue_forKey_(NSObject value, NSString? key) { + return _lib._objc_msgSend_126( + _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + } + + void addObserver_toObjectsAtIndexes_forKeyPath_options_context_( + NSObject? observer, + NSIndexSet? indexes, + NSString? keyPath, + int options, + ffi.Pointer context) { + return _lib._objc_msgSend_127( + _id, + _lib._sel_addObserver_toObjectsAtIndexes_forKeyPath_options_context_1, + observer?._id ?? ffi.nullptr, + indexes?._id ?? ffi.nullptr, + keyPath?._id ?? ffi.nullptr, + options, + context); + } + + void removeObserver_fromObjectsAtIndexes_forKeyPath_context_( + NSObject? observer, + NSIndexSet? indexes, + NSString? keyPath, + ffi.Pointer context) { + return _lib._objc_msgSend_128( + _id, + _lib._sel_removeObserver_fromObjectsAtIndexes_forKeyPath_context_1, + observer?._id ?? ffi.nullptr, + indexes?._id ?? ffi.nullptr, + keyPath?._id ?? ffi.nullptr, + context); + } + + void removeObserver_fromObjectsAtIndexes_forKeyPath_( + NSObject? observer, NSIndexSet? indexes, NSString? keyPath) { + return _lib._objc_msgSend_129( + _id, + _lib._sel_removeObserver_fromObjectsAtIndexes_forKeyPath_1, + observer?._id ?? ffi.nullptr, + indexes?._id ?? ffi.nullptr, + keyPath?._id ?? ffi.nullptr); + } + + @override + void addObserver_forKeyPath_options_context_(NSObject? observer, + NSString? keyPath, int options, ffi.Pointer context) { + return _lib._objc_msgSend_130( + _id, + _lib._sel_addObserver_forKeyPath_options_context_1, + observer?._id ?? ffi.nullptr, + keyPath?._id ?? ffi.nullptr, + options, + context); + } + + @override + void removeObserver_forKeyPath_context_( + NSObject? observer, NSString? keyPath, ffi.Pointer context) { + return _lib._objc_msgSend_131( + _id, + _lib._sel_removeObserver_forKeyPath_context_1, + observer?._id ?? ffi.nullptr, + keyPath?._id ?? ffi.nullptr, + context); + } + + @override + void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { + return _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, + observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); + } + + NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { + final _ret = _lib._objc_msgSend_63( + _id, + _lib._sel_sortedArrayUsingDescriptors_1, + sortDescriptors?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray filteredArrayUsingPredicate_(NSPredicate? predicate) { + final _ret = _lib._objc_msgSend_201(_id, + _lib._sel_filteredArrayUsingPredicate_1, predicate?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_new1); + return NSArray._(_ret, _lib, retain: false, release: true); + } + + static NSArray alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_alloc1); + return NSArray._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSArray1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSArray1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSArray1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSArray1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSArray1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSArray1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSArray1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSArray1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSArray1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSError extends NSObject { + NSError._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSError] that points to the same underlying object as [other]. + static NSError castFrom(T other) { + return NSError._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSError] that wraps the given raw object pointer. + static NSError castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSError._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSError]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSError1); + } + + NSError initWithDomain_code_userInfo_( + NSString domain, int code, NSObject? dict) { + final _ret = _lib._objc_msgSend_77( + _id, + _lib._sel_initWithDomain_code_userInfo_1, + domain._id, + code, + dict?._id ?? ffi.nullptr); + return NSError._(_ret, _lib, retain: true, release: true); + } + + static NSError errorWithDomain_code_userInfo_(HidListenerBindingsSwift _lib, + NSString domain, int code, NSObject? dict) { + final _ret = _lib._objc_msgSend_77( + _lib._class_NSError1, + _lib._sel_errorWithDomain_code_userInfo_1, + domain._id, + code, + dict?._id ?? ffi.nullptr); + return NSError._(_ret, _lib, retain: true, release: true); + } + + NSString get domain { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_domain1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + int get code { + return _lib._objc_msgSend_78(_id, _lib._sel_code1); + } + + NSObject? get userInfo { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_userInfo1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + NSString? get localizedDescription { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localizedDescription1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get localizedFailureReason { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localizedFailureReason1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get localizedRecoverySuggestion { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_localizedRecoverySuggestion1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray? get localizedRecoveryOptions { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_localizedRecoveryOptions1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSObject get recoveryAttempter { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_recoveryAttempter1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSString? get helpAnchor { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_helpAnchor1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray? get underlyingErrors { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_underlyingErrors1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static void setUserInfoValueProviderForDomain_provider_( + HidListenerBindingsSwift _lib, NSString errorDomain, ObjCBlock provider) { + return _lib._objc_msgSend_80( + _lib._class_NSError1, + _lib._sel_setUserInfoValueProviderForDomain_provider_1, + errorDomain._id, + provider._id); + } + + static ObjCBlock userInfoValueProviderForDomain_( + HidListenerBindingsSwift _lib, + NSError? err, + NSString userInfoKey, + NSString errorDomain) { + final _ret = _lib._objc_msgSend_81( + _lib._class_NSError1, + _lib._sel_userInfoValueProviderForDomain_1, + err?._id ?? ffi.nullptr, + userInfoKey._id, + errorDomain._id); + return ObjCBlock._(_ret, _lib); + } + + static NSError new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSError1, _lib._sel_new1); + return NSError._(_ret, _lib, retain: false, release: true); + } + + static NSError alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSError1, _lib._sel_alloc1); + return NSError._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSError1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSError1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSError1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSError1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSError1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSError1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSError1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSError1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSError1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class _ObjCBlockBase implements ffi.Finalizable { + final ffi.Pointer<_ObjCBlock> _id; + final HidListenerBindingsSwift _lib; + bool _pendingRelease; + + _ObjCBlockBase._(this._id, this._lib, + {bool retain = false, bool release = false}) + : _pendingRelease = release { + if (retain) { + _lib._Block_copy(_id.cast()); + } + if (release) { + _lib._objc_releaseFinalizer11.attach(this, _id.cast(), detach: this); + } + } + + /// Releases the reference to the underlying ObjC block held by this wrapper. + /// Throws a StateError if this wrapper doesn't currently hold a reference. + void release() { + if (_pendingRelease) { + _pendingRelease = false; + _lib._Block_release(_id.cast()); + _lib._objc_releaseFinalizer11.detach(this); + } else { + throw StateError( + 'Released an ObjC block that was unowned or already released.'); + } + } + + @override + bool operator ==(Object other) { + return other is _ObjCBlockBase && _id == other._id; + } + + @override + int get hashCode => _id.hashCode; + + /// Return a pointer to this object. + ffi.Pointer<_ObjCBlock> get pointer => _id; +} + +ffi.Pointer _ObjCBlock_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + ffi.Pointer Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); +} + +final _ObjCBlock_closureRegistry = {}; +int _ObjCBlock_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_registerClosure(Function fn) { + final id = ++_ObjCBlock_closureRegistryIndex; + _ObjCBlock_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +ffi.Pointer _ObjCBlock_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) { + return _ObjCBlock_closureRegistry[block.ref.target.address]!(arg0, arg1); +} + +class ObjCBlock extends _ObjCBlockBase { + ObjCBlock._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock.fromFunction( + HidListenerBindingsSwift lib, + ffi.Pointer Function( + ffi.Pointer arg0, ffi.Pointer arg1) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock_closureTrampoline) + .cast(), + _ObjCBlock_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + ffi.Pointer call( + ffi.Pointer arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); + } +} + +final class _ObjCBlockDesc extends ffi.Struct { + @ffi.UnsignedLong() + external int reserved; + + @ffi.UnsignedLong() + external int size; + + external ffi.Pointer copy_helper; + + external ffi.Pointer dispose_helper; + + external ffi.Pointer signature; +} + +final class _ObjCBlock extends ffi.Struct { + external ffi.Pointer isa; + + @ffi.Int() + external int flags; + + @ffi.Int() + external int reserved; + + external ffi.Pointer invoke; + + external ffi.Pointer<_ObjCBlockDesc> descriptor; + + external ffi.Pointer target; +} + +class NSIndexSet extends NSObject { + NSIndexSet._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSIndexSet] that points to the same underlying object as [other]. + static NSIndexSet castFrom(T other) { + return NSIndexSet._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSIndexSet] that wraps the given raw object pointer. + static NSIndexSet castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSIndexSet._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSIndexSet]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSIndexSet1); + } + + static NSIndexSet indexSet(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_indexSet1); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + static NSIndexSet indexSetWithIndex_( + HidListenerBindingsSwift _lib, int value) { + final _ret = _lib._objc_msgSend_60( + _lib._class_NSIndexSet1, _lib._sel_indexSetWithIndex_1, value); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + static NSIndexSet indexSetWithIndexesInRange_( + HidListenerBindingsSwift _lib, _NSRange range) { + final _ret = _lib._objc_msgSend_85( + _lib._class_NSIndexSet1, _lib._sel_indexSetWithIndexesInRange_1, range); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + NSIndexSet initWithIndexesInRange_(_NSRange range) { + final _ret = + _lib._objc_msgSend_85(_id, _lib._sel_initWithIndexesInRange_1, range); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + NSIndexSet initWithIndexSet_(NSIndexSet? indexSet) { + final _ret = _lib._objc_msgSend_86( + _id, _lib._sel_initWithIndexSet_1, indexSet?._id ?? ffi.nullptr); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + NSIndexSet initWithIndex_(int value) { + final _ret = _lib._objc_msgSend_60(_id, _lib._sel_initWithIndex_1, value); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + bool isEqualToIndexSet_(NSIndexSet? indexSet) { + return _lib._objc_msgSend_87( + _id, _lib._sel_isEqualToIndexSet_1, indexSet?._id ?? ffi.nullptr); + } + + int get count { + return _lib._objc_msgSend_10(_id, _lib._sel_count1); + } + + int get firstIndex { + return _lib._objc_msgSend_10(_id, _lib._sel_firstIndex1); + } + + int get lastIndex { + return _lib._objc_msgSend_10(_id, _lib._sel_lastIndex1); + } + + int indexGreaterThanIndex_(int value) { + return _lib._objc_msgSend_88(_id, _lib._sel_indexGreaterThanIndex_1, value); + } + + int indexLessThanIndex_(int value) { + return _lib._objc_msgSend_88(_id, _lib._sel_indexLessThanIndex_1, value); + } + + int indexGreaterThanOrEqualToIndex_(int value) { + return _lib._objc_msgSend_88( + _id, _lib._sel_indexGreaterThanOrEqualToIndex_1, value); + } + + int indexLessThanOrEqualToIndex_(int value) { + return _lib._objc_msgSend_88( + _id, _lib._sel_indexLessThanOrEqualToIndex_1, value); + } + + int getIndexes_maxCount_inIndexRange_( + ffi.Pointer indexBuffer, + int bufferSize, + ffi.Pointer<_NSRange> range) { + return _lib._objc_msgSend_89( + _id, + _lib._sel_getIndexes_maxCount_inIndexRange_1, + indexBuffer, + bufferSize, + range); + } + + int countOfIndexesInRange_(_NSRange range) { + return _lib._objc_msgSend_90(_id, _lib._sel_countOfIndexesInRange_1, range); + } + + bool containsIndex_(int value) { + return _lib._objc_msgSend_91(_id, _lib._sel_containsIndex_1, value); + } + + bool containsIndexesInRange_(_NSRange range) { + return _lib._objc_msgSend_92( + _id, _lib._sel_containsIndexesInRange_1, range); + } + + bool containsIndexes_(NSIndexSet? indexSet) { + return _lib._objc_msgSend_87( + _id, _lib._sel_containsIndexes_1, indexSet?._id ?? ffi.nullptr); + } + + bool intersectsIndexesInRange_(_NSRange range) { + return _lib._objc_msgSend_92( + _id, _lib._sel_intersectsIndexesInRange_1, range); + } + + void enumerateIndexesUsingBlock_(ObjCBlock1 block) { + return _lib._objc_msgSend_93( + _id, _lib._sel_enumerateIndexesUsingBlock_1, block._id); + } + + void enumerateIndexesWithOptions_usingBlock_(int opts, ObjCBlock1 block) { + return _lib._objc_msgSend_94(_id, + _lib._sel_enumerateIndexesWithOptions_usingBlock_1, opts, block._id); + } + + void enumerateIndexesInRange_options_usingBlock_( + _NSRange range, int opts, ObjCBlock1 block) { + return _lib._objc_msgSend_95( + _id, + _lib._sel_enumerateIndexesInRange_options_usingBlock_1, + range, + opts, + block._id); + } + + int indexPassingTest_(ObjCBlock2 predicate) { + return _lib._objc_msgSend_96( + _id, _lib._sel_indexPassingTest_1, predicate._id); + } + + int indexWithOptions_passingTest_(int opts, ObjCBlock2 predicate) { + return _lib._objc_msgSend_97( + _id, _lib._sel_indexWithOptions_passingTest_1, opts, predicate._id); + } + + int indexInRange_options_passingTest_( + _NSRange range, int opts, ObjCBlock2 predicate) { + return _lib._objc_msgSend_98( + _id, + _lib._sel_indexInRange_options_passingTest_1, + range, + opts, + predicate._id); + } + + NSIndexSet indexesPassingTest_(ObjCBlock2 predicate) { + final _ret = _lib._objc_msgSend_99( + _id, _lib._sel_indexesPassingTest_1, predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + NSIndexSet indexesWithOptions_passingTest_(int opts, ObjCBlock2 predicate) { + final _ret = _lib._objc_msgSend_100( + _id, _lib._sel_indexesWithOptions_passingTest_1, opts, predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + NSIndexSet indexesInRange_options_passingTest_( + _NSRange range, int opts, ObjCBlock2 predicate) { + final _ret = _lib._objc_msgSend_101( + _id, + _lib._sel_indexesInRange_options_passingTest_1, + range, + opts, + predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + void enumerateRangesUsingBlock_(ObjCBlock3 block) { + return _lib._objc_msgSend_102( + _id, _lib._sel_enumerateRangesUsingBlock_1, block._id); + } + + void enumerateRangesWithOptions_usingBlock_(int opts, ObjCBlock3 block) { + return _lib._objc_msgSend_103(_id, + _lib._sel_enumerateRangesWithOptions_usingBlock_1, opts, block._id); + } + + void enumerateRangesInRange_options_usingBlock_( + _NSRange range, int opts, ObjCBlock3 block) { + return _lib._objc_msgSend_104( + _id, + _lib._sel_enumerateRangesInRange_options_usingBlock_1, + range, + opts, + block._id); + } + + static NSIndexSet new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_new1); + return NSIndexSet._(_ret, _lib, retain: false, release: true); + } + + static NSIndexSet alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_alloc1); + return NSIndexSet._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSIndexSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSIndexSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSIndexSet1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSIndexSet1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSIndexSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSIndexSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSIndexSet1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSIndexSet1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSIndexSet1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +void _ObjCBlock1_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() + .asFunction arg1)>()( + arg0, arg1); +} + +final _ObjCBlock1_closureRegistry = {}; +int _ObjCBlock1_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock1_registerClosure(Function fn) { + final id = ++_ObjCBlock1_closureRegistryIndex; + _ObjCBlock1_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock1_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { + return _ObjCBlock1_closureRegistry[block.ref.target.address]!(arg0, arg1); +} + +class ObjCBlock1 extends _ObjCBlockBase { + ObjCBlock1._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock1.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.UnsignedLong arg0, ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.UnsignedLong arg0, + ffi.Pointer arg1)>( + _ObjCBlock1_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock1.fromFunction(HidListenerBindingsSwift lib, + void Function(int arg0, ffi.Pointer arg1) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.UnsignedLong arg0, + ffi.Pointer arg1)>( + _ObjCBlock1_closureTrampoline) + .cast(), + _ObjCBlock1_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(int arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, int arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); + } +} + +abstract class NSEnumerationOptions { + static const int NSEnumerationConcurrent = 1; + static const int NSEnumerationReverse = 2; +} + +bool _ObjCBlock2_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() + .asFunction arg1)>()( + arg0, arg1); +} + +final _ObjCBlock2_closureRegistry = {}; +int _ObjCBlock2_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock2_registerClosure(Function fn) { + final id = ++_ObjCBlock2_closureRegistryIndex; + _ObjCBlock2_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +bool _ObjCBlock2_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { + return _ObjCBlock2_closureRegistry[block.ref.target.address]!(arg0, arg1); +} + +class ObjCBlock2 extends _ObjCBlockBase { + ObjCBlock2._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock2.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.UnsignedLong arg0, ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.UnsignedLong arg0, + ffi.Pointer arg1)>( + _ObjCBlock2_fnPtrTrampoline, false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock2.fromFunction(HidListenerBindingsSwift lib, + bool Function(int arg0, ffi.Pointer arg1) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.UnsignedLong arg0, + ffi.Pointer arg1)>( + _ObjCBlock2_closureTrampoline, false) + .cast(), + _ObjCBlock2_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + bool call(int arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer<_ObjCBlock> block, + ffi.UnsignedLong arg0, ffi.Pointer arg1)>>() + .asFunction< + bool Function(ffi.Pointer<_ObjCBlock> block, int arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); + } +} + +void _ObjCBlock3_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, _NSRange arg0, ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(_NSRange arg0, ffi.Pointer arg1)>>() + .asFunction< + void Function( + _NSRange arg0, ffi.Pointer arg1)>()(arg0, arg1); +} + +final _ObjCBlock3_closureRegistry = {}; +int _ObjCBlock3_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock3_registerClosure(Function fn) { + final id = ++_ObjCBlock3_closureRegistryIndex; + _ObjCBlock3_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock3_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, _NSRange arg0, ffi.Pointer arg1) { + return _ObjCBlock3_closureRegistry[block.ref.target.address]!(arg0, arg1); +} + +class ObjCBlock3 extends _ObjCBlockBase { + ObjCBlock3._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock3.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(_NSRange arg0, ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + _NSRange arg0, ffi.Pointer arg1)>( + _ObjCBlock3_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock3.fromFunction(HidListenerBindingsSwift lib, + void Function(_NSRange arg0, ffi.Pointer arg1) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + _NSRange arg0, ffi.Pointer arg1)>( + _ObjCBlock3_closureTrampoline) + .cast(), + _ObjCBlock3_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(_NSRange arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, _NSRange arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, _NSRange arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); + } +} + +void _ObjCBlock4_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.UnsignedLong arg1, ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer arg0, int arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} + +final _ObjCBlock4_closureRegistry = {}; +int _ObjCBlock4_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock4_registerClosure(Function fn) { + final id = ++_ObjCBlock4_closureRegistryIndex; + _ObjCBlock4_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock4_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + return _ObjCBlock4_closureRegistry[block.ref.target.address]!( + arg0, arg1, arg2); +} + +class ObjCBlock4 extends _ObjCBlockBase { + ObjCBlock4._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock4.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.UnsignedLong arg1, ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2)>( + _ObjCBlock4_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock4.fromFunction( + HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0, int arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2)>( + _ObjCBlock4_closureTrampoline) + .cast(), + _ObjCBlock4_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call( + ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } +} + +bool _ObjCBlock5_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.UnsignedLong arg1, ffi.Pointer arg2)>>() + .asFunction< + bool Function(ffi.Pointer arg0, int arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} + +final _ObjCBlock5_closureRegistry = {}; +int _ObjCBlock5_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock5_registerClosure(Function fn) { + final id = ++_ObjCBlock5_closureRegistryIndex; + _ObjCBlock5_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +bool _ObjCBlock5_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + return _ObjCBlock5_closureRegistry[block.ref.target.address]!( + arg0, arg1, arg2); +} + +class ObjCBlock5 extends _ObjCBlockBase { + ObjCBlock5._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock5.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.UnsignedLong arg1, ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2)>( + _ObjCBlock5_fnPtrTrampoline, false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock5.fromFunction( + HidListenerBindingsSwift lib, + bool Function(ffi.Pointer arg0, int arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2)>( + _ObjCBlock5_closureTrampoline, false) + .cast(), + _ObjCBlock5_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + bool call( + ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1, + ffi.Pointer arg2)>>() + .asFunction< + bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } +} + +int _ObjCBlock6_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + int Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); +} + +final _ObjCBlock6_closureRegistry = {}; +int _ObjCBlock6_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock6_registerClosure(Function fn) { + final id = ++_ObjCBlock6_closureRegistryIndex; + _ObjCBlock6_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +int _ObjCBlock6_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return _ObjCBlock6_closureRegistry[block.ref.target.address]!(arg0, arg1); +} + +class ObjCBlock6 extends _ObjCBlockBase { + ObjCBlock6._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock6.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Int32 Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock6_fnPtrTrampoline, 0) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock6.fromFunction( + HidListenerBindingsSwift lib, + int Function(ffi.Pointer arg0, ffi.Pointer arg1) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Int32 Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock6_closureTrampoline, 0) + .cast(), + _ObjCBlock6_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + int call(ffi.Pointer arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + int Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); + } +} + +abstract class NSComparisonResult { + static const int NSOrderedAscending = -1; + static const int NSOrderedSame = 0; + static const int NSOrderedDescending = 1; +} + +abstract class NSSortOptions { + static const int NSSortConcurrent = 1; + static const int NSSortStable = 16; +} + +abstract class NSBinarySearchingOptions { + static const int NSBinarySearchingFirstEqual = 256; + static const int NSBinarySearchingLastEqual = 512; + static const int NSBinarySearchingInsertionIndex = 1024; +} + +abstract class NSOrderedCollectionDifferenceCalculationOptions { + static const int NSOrderedCollectionDifferenceCalculationOmitInsertedObjects = + 1; + static const int NSOrderedCollectionDifferenceCalculationOmitRemovedObjects = + 2; + static const int NSOrderedCollectionDifferenceCalculationInferMoves = 4; +} + +bool _ObjCBlock7_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); +} + +final _ObjCBlock7_closureRegistry = {}; +int _ObjCBlock7_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock7_registerClosure(Function fn) { + final id = ++_ObjCBlock7_closureRegistryIndex; + _ObjCBlock7_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +bool _ObjCBlock7_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return _ObjCBlock7_closureRegistry[block.ref.target.address]!(arg0, arg1); +} + +class ObjCBlock7 extends _ObjCBlockBase { + ObjCBlock7._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock7.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock7_fnPtrTrampoline, false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock7.fromFunction( + HidListenerBindingsSwift lib, + bool Function(ffi.Pointer arg0, ffi.Pointer arg1) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock7_closureTrampoline, false) + .cast(), + _ObjCBlock7_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + bool call(ffi.Pointer arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); + } +} + +abstract class NSKeyValueObservingOptions { + static const int NSKeyValueObservingOptionNew = 1; + static const int NSKeyValueObservingOptionOld = 2; + static const int NSKeyValueObservingOptionInitial = 4; + static const int NSKeyValueObservingOptionPrior = 8; +} + +class NSPredicate extends NSObject { + NSPredicate._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSPredicate] that points to the same underlying object as [other]. + static NSPredicate castFrom(T other) { + return NSPredicate._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSPredicate] that wraps the given raw object pointer. + static NSPredicate castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSPredicate._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSPredicate]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSPredicate1); + } + + static NSPredicate predicateWithFormat_argumentArray_( + HidListenerBindingsSwift _lib, + NSString? predicateFormat, + NSArray? arguments) { + final _ret = _lib._objc_msgSend_133( + _lib._class_NSPredicate1, + _lib._sel_predicateWithFormat_argumentArray_1, + predicateFormat?._id ?? ffi.nullptr, + arguments?._id ?? ffi.nullptr); + return NSPredicate._(_ret, _lib, retain: true, release: true); + } + + static NSPredicate predicateWithFormat_( + HidListenerBindingsSwift _lib, NSString? predicateFormat) { + final _ret = _lib._objc_msgSend_134(_lib._class_NSPredicate1, + _lib._sel_predicateWithFormat_1, predicateFormat?._id ?? ffi.nullptr); + return NSPredicate._(_ret, _lib, retain: true, release: true); + } + + static NSPredicate predicateWithFormat_arguments_( + HidListenerBindingsSwift _lib, + NSString? predicateFormat, + ffi.Pointer<__va_list_tag> argList) { + final _ret = _lib._objc_msgSend_135( + _lib._class_NSPredicate1, + _lib._sel_predicateWithFormat_arguments_1, + predicateFormat?._id ?? ffi.nullptr, + argList); + return NSPredicate._(_ret, _lib, retain: true, release: true); + } + + static NSPredicate predicateFromMetadataQueryString_( + HidListenerBindingsSwift _lib, NSString? queryString) { + final _ret = _lib._objc_msgSend_134( + _lib._class_NSPredicate1, + _lib._sel_predicateFromMetadataQueryString_1, + queryString?._id ?? ffi.nullptr); + return NSPredicate._(_ret, _lib, retain: true, release: true); + } + + static NSPredicate predicateWithValue_( + HidListenerBindingsSwift _lib, bool value) { + final _ret = _lib._objc_msgSend_136( + _lib._class_NSPredicate1, _lib._sel_predicateWithValue_1, value); + return NSPredicate._(_ret, _lib, retain: true, release: true); + } + + static NSPredicate predicateWithBlock_( + HidListenerBindingsSwift _lib, ObjCBlock8 block) { + final _ret = _lib._objc_msgSend_199( + _lib._class_NSPredicate1, _lib._sel_predicateWithBlock_1, block._id); + return NSPredicate._(_ret, _lib, retain: true, release: true); + } + + NSString? get predicateFormat { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_predicateFormat1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSPredicate predicateWithSubstitutionVariables_(NSDictionary? variables) { + final _ret = _lib._objc_msgSend_149( + _id, + _lib._sel_predicateWithSubstitutionVariables_1, + variables?._id ?? ffi.nullptr); + return NSPredicate._(_ret, _lib, retain: true, release: true); + } + + bool evaluateWithObject_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_evaluateWithObject_1, object._id); + } + + bool evaluateWithObject_substitutionVariables_( + NSObject object, NSDictionary? bindings) { + return _lib._objc_msgSend_200( + _id, + _lib._sel_evaluateWithObject_substitutionVariables_1, + object._id, + bindings?._id ?? ffi.nullptr); + } + + void allowEvaluation() { + return _lib._objc_msgSend_1(_id, _lib._sel_allowEvaluation1); + } + + static NSPredicate new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSPredicate1, _lib._sel_new1); + return NSPredicate._(_ret, _lib, retain: false, release: true); + } + + static NSPredicate alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSPredicate1, _lib._sel_alloc1); + return NSPredicate._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSPredicate1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSPredicate1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSPredicate1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSPredicate1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSPredicate1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSPredicate1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSPredicate1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSPredicate1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSPredicate1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +final class __va_list_tag extends ffi.Struct { + @ffi.UnsignedInt() + external int gp_offset; + + @ffi.UnsignedInt() + external int fp_offset; + + external ffi.Pointer overflow_arg_area; + + external ffi.Pointer reg_save_area; +} + +bool _ObjCBlock8_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); +} + +final _ObjCBlock8_closureRegistry = {}; +int _ObjCBlock8_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock8_registerClosure(Function fn) { + final id = ++_ObjCBlock8_closureRegistryIndex; + _ObjCBlock8_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +bool _ObjCBlock8_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return _ObjCBlock8_closureRegistry[block.ref.target.address]!(arg0, arg1); +} + +class ObjCBlock8 extends _ObjCBlockBase { + ObjCBlock8._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock8.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock8_fnPtrTrampoline, false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock8.fromFunction( + HidListenerBindingsSwift lib, + bool Function(ffi.Pointer arg0, ffi.Pointer arg1) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock8_closureTrampoline, false) + .cast(), + _ObjCBlock8_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + bool call(ffi.Pointer arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); + } +} + +class NSDictionary extends NSObject { + NSDictionary._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSDictionary] that points to the same underlying object as [other]. + static NSDictionary castFrom(T other) { + return NSDictionary._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSDictionary] that wraps the given raw object pointer. + static NSDictionary castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSDictionary._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSDictionary]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSDictionary1); + } + + int get count { + return _lib._objc_msgSend_10(_id, _lib._sel_count1); + } + + NSObject objectForKey_(NSObject aKey) { + final _ret = _lib._objc_msgSend_16(_id, _lib._sel_objectForKey_1, aKey._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSEnumerator keyEnumerator() { + final _ret = _lib._objc_msgSend_72(_id, _lib._sel_keyEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); + } + + @override + NSDictionary init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSDictionary initWithObjects_forKeys_count_( + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt) { + final _ret = _lib._objc_msgSend_137( + _id, _lib._sel_initWithObjects_forKeys_count_1, objects, keys, cnt); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSDictionary initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSArray? get allKeys { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allKeys1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray allKeysForObject_(NSObject anObject) { + final _ret = + _lib._objc_msgSend_62(_id, _lib._sel_allKeysForObject_1, anObject._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get allValues { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allValues1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString? get description { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get descriptionInStringsFileFormat { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_descriptionInStringsFileFormat1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString descriptionWithLocale_(NSObject locale) { + final _ret = _lib._objc_msgSend_65( + _id, _lib._sel_descriptionWithLocale_1, locale._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString descriptionWithLocale_indent_(NSObject locale, int level) { + final _ret = _lib._objc_msgSend_66( + _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); + return NSString._(_ret, _lib, retain: true, release: true); + } + + bool isEqualToDictionary_(NSDictionary? otherDictionary) { + return _lib._objc_msgSend_138(_id, _lib._sel_isEqualToDictionary_1, + otherDictionary?._id ?? ffi.nullptr); + } + + NSEnumerator objectEnumerator() { + final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); + } + + NSArray objectsForKeys_notFoundMarker_(NSArray? keys, NSObject marker) { + final _ret = _lib._objc_msgSend_139( + _id, + _lib._sel_objectsForKeys_notFoundMarker_1, + keys?._id ?? ffi.nullptr, + marker._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + bool writeToURL_error_( + NSURL? url, ffi.Pointer> error) { + return _lib._objc_msgSend_83( + _id, _lib._sel_writeToURL_error_1, url?._id ?? ffi.nullptr, error); + } + + NSArray keysSortedByValueUsingSelector_(ffi.Pointer comparator) { + final _ret = _lib._objc_msgSend_75( + _id, _lib._sel_keysSortedByValueUsingSelector_1, comparator); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + void getObjects_andKeys_count_(ffi.Pointer> objects, + ffi.Pointer> keys, int count) { + return _lib._objc_msgSend_140( + _id, _lib._sel_getObjects_andKeys_count_1, objects, keys, count); + } + + NSObject objectForKeyedSubscript_(NSObject key) { + final _ret = _lib._objc_msgSend_16( + _id, _lib._sel_objectForKeyedSubscript_1, key._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void enumerateKeysAndObjectsUsingBlock_(ObjCBlock9 block) { + return _lib._objc_msgSend_141( + _id, _lib._sel_enumerateKeysAndObjectsUsingBlock_1, block._id); + } + + void enumerateKeysAndObjectsWithOptions_usingBlock_( + int opts, ObjCBlock9 block) { + return _lib._objc_msgSend_142( + _id, + _lib._sel_enumerateKeysAndObjectsWithOptions_usingBlock_1, + opts, + block._id); + } + + NSArray keysSortedByValueUsingComparator_(ObjCBlock6 cmptr) { + final _ret = _lib._objc_msgSend_115( + _id, _lib._sel_keysSortedByValueUsingComparator_1, cmptr._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray keysSortedByValueWithOptions_usingComparator_( + int opts, ObjCBlock6 cmptr) { + final _ret = _lib._objc_msgSend_116( + _id, + _lib._sel_keysSortedByValueWithOptions_usingComparator_1, + opts, + cmptr._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSObject keysOfEntriesPassingTest_(ObjCBlock10 predicate) { + final _ret = _lib._objc_msgSend_143( + _id, _lib._sel_keysOfEntriesPassingTest_1, predicate._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject keysOfEntriesWithOptions_passingTest_( + int opts, ObjCBlock10 predicate) { + final _ret = _lib._objc_msgSend_144(_id, + _lib._sel_keysOfEntriesWithOptions_passingTest_1, opts, predicate._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void getObjects_andKeys_(ffi.Pointer> objects, + ffi.Pointer> keys) { + return _lib._objc_msgSend_145( + _id, _lib._sel_getObjects_andKeys_1, objects, keys); + } + + static NSDictionary dictionaryWithContentsOfFile_( + HidListenerBindingsSwift _lib, NSString? path) { + final _ret = _lib._objc_msgSend_146(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSDictionary dictionaryWithContentsOfURL_( + HidListenerBindingsSwift _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_147(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSDictionary initWithContentsOfFile_(NSString? path) { + final _ret = _lib._objc_msgSend_146( + _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSDictionary initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_147( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + bool writeToFile_atomically_(NSString? path, bool useAuxiliaryFile) { + return _lib._objc_msgSend_25(_id, _lib._sel_writeToFile_atomically_1, + path?._id ?? ffi.nullptr, useAuxiliaryFile); + } + + bool writeToURL_atomically_(NSURL? url, bool atomically) { + return _lib._objc_msgSend_125(_id, _lib._sel_writeToURL_atomically_1, + url?._id ?? ffi.nullptr, atomically); + } + + static NSDictionary dictionary(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_dictionary1); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSDictionary dictionaryWithObject_forKey_( + HidListenerBindingsSwift _lib, NSObject object, NSObject? key) { + final _ret = _lib._objc_msgSend_148( + _lib._class_NSDictionary1, + _lib._sel_dictionaryWithObject_forKey_1, + object._id, + key?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSDictionary dictionaryWithObjects_forKeys_count_( + HidListenerBindingsSwift _lib, + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt) { + final _ret = _lib._objc_msgSend_137(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSDictionary dictionaryWithObjectsAndKeys_( + HidListenerBindingsSwift _lib, NSObject firstObject) { + final _ret = _lib._objc_msgSend_16(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithObjectsAndKeys_1, firstObject._id); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSDictionary dictionaryWithDictionary_( + HidListenerBindingsSwift _lib, NSDictionary? dict) { + final _ret = _lib._objc_msgSend_149(_lib._class_NSDictionary1, + _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSDictionary dictionaryWithObjects_forKeys_( + HidListenerBindingsSwift _lib, NSArray? objects, NSArray? keys) { + final _ret = _lib._objc_msgSend_150( + _lib._class_NSDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_1, + objects?._id ?? ffi.nullptr, + keys?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSDictionary initWithObjectsAndKeys_(NSObject firstObject) { + final _ret = _lib._objc_msgSend_16( + _id, _lib._sel_initWithObjectsAndKeys_1, firstObject._id); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSDictionary initWithDictionary_(NSDictionary? otherDictionary) { + final _ret = _lib._objc_msgSend_149(_id, _lib._sel_initWithDictionary_1, + otherDictionary?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSDictionary initWithDictionary_copyItems_( + NSDictionary? otherDictionary, bool flag) { + final _ret = _lib._objc_msgSend_151( + _id, + _lib._sel_initWithDictionary_copyItems_1, + otherDictionary?._id ?? ffi.nullptr, + flag); + return NSDictionary._(_ret, _lib, retain: false, release: true); + } + + NSDictionary initWithObjects_forKeys_(NSArray? objects, NSArray? keys) { + final _ret = _lib._objc_msgSend_150( + _id, + _lib._sel_initWithObjects_forKeys_1, + objects?._id ?? ffi.nullptr, + keys?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSDictionary initWithContentsOfURL_error_( + NSURL? url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_152( + _id, + _lib._sel_initWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSDictionary dictionaryWithContentsOfURL_error_( + HidListenerBindingsSwift _lib, + NSURL? url, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_152( + _lib._class_NSDictionary1, + _lib._sel_dictionaryWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSObject sharedKeySetForKeys_( + HidListenerBindingsSwift _lib, NSArray? keys) { + final _ret = _lib._objc_msgSend_67(_lib._class_NSDictionary1, + _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + int countByEnumeratingWithState_objects_count_( + ffi.Pointer state, + ffi.Pointer> buffer, + int len) { + return _lib._objc_msgSend_153( + _id, + _lib._sel_countByEnumeratingWithState_objects_count_1, + state, + buffer, + len); + } + + int fileSize() { + return _lib._objc_msgSend_154(_id, _lib._sel_fileSize1); + } + + NSDate fileModificationDate() { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_fileModificationDate1); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSString fileType() { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fileType1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + int filePosixPermissions() { + return _lib._objc_msgSend_10(_id, _lib._sel_filePosixPermissions1); + } + + NSString fileOwnerAccountName() { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fileOwnerAccountName1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString fileGroupOwnerAccountName() { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_fileGroupOwnerAccountName1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + int fileSystemNumber() { + return _lib._objc_msgSend_78(_id, _lib._sel_fileSystemNumber1); + } + + int fileSystemFileNumber() { + return _lib._objc_msgSend_10(_id, _lib._sel_fileSystemFileNumber1); + } + + bool fileExtensionHidden() { + return _lib._objc_msgSend_12(_id, _lib._sel_fileExtensionHidden1); + } + + int fileHFSCreatorCode() { + return _lib._objc_msgSend_197(_id, _lib._sel_fileHFSCreatorCode1); + } + + int fileHFSTypeCode() { + return _lib._objc_msgSend_197(_id, _lib._sel_fileHFSTypeCode1); + } + + bool fileIsImmutable() { + return _lib._objc_msgSend_12(_id, _lib._sel_fileIsImmutable1); + } + + bool fileIsAppendOnly() { + return _lib._objc_msgSend_12(_id, _lib._sel_fileIsAppendOnly1); + } + + NSDate fileCreationDate() { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_fileCreationDate1); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSNumber fileOwnerAccountID() { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_fileOwnerAccountID1); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + NSNumber fileGroupOwnerAccountID() { + final _ret = + _lib._objc_msgSend_198(_id, _lib._sel_fileGroupOwnerAccountID1); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + @override + NSObject valueForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSDictionary new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_new1); + return NSDictionary._(_ret, _lib, retain: false, release: true); + } + + static NSDictionary alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_alloc1); + return NSDictionary._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSDictionary1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSDictionary1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSDictionary1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSDictionary1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSDictionary1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSDictionary1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSDictionary1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSDictionary1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSDictionary1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +void _ObjCBlock9_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1, ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} + +final _ObjCBlock9_closureRegistry = {}; +int _ObjCBlock9_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock9_registerClosure(Function fn) { + final id = ++_ObjCBlock9_closureRegistryIndex; + _ObjCBlock9_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock9_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return _ObjCBlock9_closureRegistry[block.ref.target.address]!( + arg0, arg1, arg2); +} + +class ObjCBlock9 extends _ObjCBlockBase { + ObjCBlock9._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock9.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock9_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock9.fromFunction( + HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock9_closureTrampoline) + .cast(), + _ObjCBlock9_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } +} + +bool _ObjCBlock10_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1, ffi.Pointer arg2)>>() + .asFunction< + bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} + +final _ObjCBlock10_closureRegistry = {}; +int _ObjCBlock10_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock10_registerClosure(Function fn) { + final id = ++_ObjCBlock10_closureRegistryIndex; + _ObjCBlock10_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +bool _ObjCBlock10_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return _ObjCBlock10_closureRegistry[block.ref.target.address]!( + arg0, arg1, arg2); +} + +class ObjCBlock10 extends _ObjCBlockBase { + ObjCBlock10._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock10.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi + .NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib + ._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock10_fnPtrTrampoline, false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock10.fromFunction( + HidListenerBindingsSwift lib, + bool Function(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock10_closureTrampoline, false) + .cast(), + _ObjCBlock10_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + bool call(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } +} + +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; +} + +class NSDate extends NSObject { + NSDate._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSDate] that points to the same underlying object as [other]. + static NSDate castFrom(T other) { + return NSDate._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSDate] that wraps the given raw object pointer. + static NSDate castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSDate._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSDate]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSDate1); + } + + double get timeIntervalSinceReferenceDate { + return _lib._objc_msgSend_155( + _id, _lib._sel_timeIntervalSinceReferenceDate1); + } + + @override + NSDate init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate initWithTimeIntervalSinceReferenceDate_(double ti) { + final _ret = _lib._objc_msgSend_156( + _id, _lib._sel_initWithTimeIntervalSinceReferenceDate_1, ti); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + double timeIntervalSinceDate_(NSDate? anotherDate) { + return _lib._objc_msgSend_157(_id, _lib._sel_timeIntervalSinceDate_1, + anotherDate?._id ?? ffi.nullptr); + } + + double get timeIntervalSinceNow { + return _lib._objc_msgSend_155(_id, _lib._sel_timeIntervalSinceNow1); + } + + double get timeIntervalSince1970 { + return _lib._objc_msgSend_155(_id, _lib._sel_timeIntervalSince19701); + } + + NSObject addTimeInterval_(double seconds) { + final _ret = + _lib._objc_msgSend_156(_id, _lib._sel_addTimeInterval_1, seconds); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSDate dateByAddingTimeInterval_(double ti) { + final _ret = + _lib._objc_msgSend_156(_id, _lib._sel_dateByAddingTimeInterval_1, ti); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate earlierDate_(NSDate? anotherDate) { + final _ret = _lib._objc_msgSend_158( + _id, _lib._sel_earlierDate_1, anotherDate?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate laterDate_(NSDate? anotherDate) { + final _ret = _lib._objc_msgSend_158( + _id, _lib._sel_laterDate_1, anotherDate?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + int compare_(NSDate? other) { + return _lib._objc_msgSend_159( + _id, _lib._sel_compare_1, other?._id ?? ffi.nullptr); + } + + bool isEqualToDate_(NSDate? otherDate) { + return _lib._objc_msgSend_160( + _id, _lib._sel_isEqualToDate_1, otherDate?._id ?? ffi.nullptr); + } + + NSString? get description { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString descriptionWithLocale_(NSObject locale) { + final _ret = _lib._objc_msgSend_65( + _id, _lib._sel_descriptionWithLocale_1, locale._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSDate date(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_date1); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSDate dateWithTimeIntervalSinceNow_( + HidListenerBindingsSwift _lib, double secs) { + final _ret = _lib._objc_msgSend_156( + _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSinceNow_1, secs); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSDate dateWithTimeIntervalSinceReferenceDate_( + HidListenerBindingsSwift _lib, double ti) { + final _ret = _lib._objc_msgSend_156(_lib._class_NSDate1, + _lib._sel_dateWithTimeIntervalSinceReferenceDate_1, ti); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSDate dateWithTimeIntervalSince1970_( + HidListenerBindingsSwift _lib, double secs) { + final _ret = _lib._objc_msgSend_156( + _lib._class_NSDate1, _lib._sel_dateWithTimeIntervalSince1970_1, secs); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSDate dateWithTimeInterval_sinceDate_( + HidListenerBindingsSwift _lib, double secsToBeAdded, NSDate? date) { + final _ret = _lib._objc_msgSend_161( + _lib._class_NSDate1, + _lib._sel_dateWithTimeInterval_sinceDate_1, + secsToBeAdded, + date?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSDate? getDistantFuture(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_162(_lib._class_NSDate1, _lib._sel_distantFuture1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSDate? getDistantPast(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_162(_lib._class_NSDate1, _lib._sel_distantPast1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSDate? getNow(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_162(_lib._class_NSDate1, _lib._sel_now1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate initWithTimeIntervalSinceNow_(double secs) { + final _ret = _lib._objc_msgSend_156( + _id, _lib._sel_initWithTimeIntervalSinceNow_1, secs); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate initWithTimeIntervalSince1970_(double secs) { + final _ret = _lib._objc_msgSend_156( + _id, _lib._sel_initWithTimeIntervalSince1970_1, secs); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate initWithTimeInterval_sinceDate_(double secsToBeAdded, NSDate? date) { + final _ret = _lib._objc_msgSend_161( + _id, + _lib._sel_initWithTimeInterval_sinceDate_1, + secsToBeAdded, + date?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSObject dateWithNaturalLanguageString_locale_( + HidListenerBindingsSwift _lib, NSString? string, NSObject locale) { + final _ret = _lib._objc_msgSend_163( + _lib._class_NSDate1, + _lib._sel_dateWithNaturalLanguageString_locale_1, + string?._id ?? ffi.nullptr, + locale._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject dateWithNaturalLanguageString_( + HidListenerBindingsSwift _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSDate1, + _lib._sel_dateWithNaturalLanguageString_1, string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject dateWithString_( + HidListenerBindingsSwift _lib, NSString? aString) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSDate1, + _lib._sel_dateWithString_1, aString?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSCalendarDate dateWithCalendarFormat_timeZone_( + NSString? format, NSTimeZone? aTimeZone) { + final _ret = _lib._objc_msgSend_195( + _id, + _lib._sel_dateWithCalendarFormat_timeZone_1, + format?._id ?? ffi.nullptr, + aTimeZone?._id ?? ffi.nullptr); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + NSString descriptionWithCalendarFormat_timeZone_locale_( + NSString? format, NSTimeZone? aTimeZone, NSObject locale) { + final _ret = _lib._objc_msgSend_196( + _id, + _lib._sel_descriptionWithCalendarFormat_timeZone_locale_1, + format?._id ?? ffi.nullptr, + aTimeZone?._id ?? ffi.nullptr, + locale._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSObject initWithString_(NSString? description) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithString_1, description?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSDate new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_new1); + return NSDate._(_ret, _lib, retain: false, release: true); + } + + static NSDate alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_alloc1); + return NSDate._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSDate1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSDate1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSDate1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSDate1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSDate1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSDate1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSDate1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSDate1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSDate1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSCalendarDate extends NSDate { + NSCalendarDate._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSCalendarDate] that points to the same underlying object as [other]. + static NSCalendarDate castFrom(T other) { + return NSCalendarDate._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSCalendarDate] that wraps the given raw object pointer. + static NSCalendarDate castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSCalendarDate._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSCalendarDate]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSCalendarDate1); + } + + static NSObject calendarDate(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSCalendarDate1, _lib._sel_calendarDate1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject dateWithString_calendarFormat_locale_( + HidListenerBindingsSwift _lib, + NSString? description, + NSString? format, + NSObject locale) { + final _ret = _lib._objc_msgSend_164( + _lib._class_NSCalendarDate1, + _lib._sel_dateWithString_calendarFormat_locale_1, + description?._id ?? ffi.nullptr, + format?._id ?? ffi.nullptr, + locale._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject dateWithString_calendarFormat_( + HidListenerBindingsSwift _lib, NSString? description, NSString? format) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSCalendarDate1, + _lib._sel_dateWithString_calendarFormat_1, + description?._id ?? ffi.nullptr, + format?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject dateWithYear_month_day_hour_minute_second_timeZone_( + HidListenerBindingsSwift _lib, + int year, + int month, + int day, + int hour, + int minute, + int second, + NSTimeZone? aTimeZone) { + final _ret = _lib._objc_msgSend_190( + _lib._class_NSCalendarDate1, + _lib._sel_dateWithYear_month_day_hour_minute_second_timeZone_1, + year, + month, + day, + hour, + minute, + second, + aTimeZone?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSCalendarDate dateByAddingYears_months_days_hours_minutes_seconds_( + int year, int month, int day, int hour, int minute, int second) { + final _ret = _lib._objc_msgSend_191( + _id, + _lib._sel_dateByAddingYears_months_days_hours_minutes_seconds_1, + year, + month, + day, + hour, + minute, + second); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + int dayOfCommonEra() { + return _lib._objc_msgSend_78(_id, _lib._sel_dayOfCommonEra1); + } + + int dayOfMonth() { + return _lib._objc_msgSend_78(_id, _lib._sel_dayOfMonth1); + } + + int dayOfWeek() { + return _lib._objc_msgSend_78(_id, _lib._sel_dayOfWeek1); + } + + int dayOfYear() { + return _lib._objc_msgSend_78(_id, _lib._sel_dayOfYear1); + } + + int hourOfDay() { + return _lib._objc_msgSend_78(_id, _lib._sel_hourOfDay1); + } + + int minuteOfHour() { + return _lib._objc_msgSend_78(_id, _lib._sel_minuteOfHour1); + } + + int monthOfYear() { + return _lib._objc_msgSend_78(_id, _lib._sel_monthOfYear1); + } + + int secondOfMinute() { + return _lib._objc_msgSend_78(_id, _lib._sel_secondOfMinute1); + } + + int yearOfCommonEra() { + return _lib._objc_msgSend_78(_id, _lib._sel_yearOfCommonEra1); + } + + NSString calendarFormat() { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_calendarFormat1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString descriptionWithCalendarFormat_locale_( + NSString? format, NSObject locale) { + final _ret = _lib._objc_msgSend_173( + _id, + _lib._sel_descriptionWithCalendarFormat_locale_1, + format?._id ?? ffi.nullptr, + locale._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString descriptionWithCalendarFormat_(NSString? format) { + final _ret = _lib._objc_msgSend_64(_id, + _lib._sel_descriptionWithCalendarFormat_1, format?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + @override + NSString descriptionWithLocale_(NSObject locale) { + final _ret = _lib._objc_msgSend_65( + _id, _lib._sel_descriptionWithLocale_1, locale._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSTimeZone timeZone() { + final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); + return NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + NSObject initWithString_calendarFormat_locale_( + NSString? description, NSString? format, NSObject locale) { + final _ret = _lib._objc_msgSend_164( + _id, + _lib._sel_initWithString_calendarFormat_locale_1, + description?._id ?? ffi.nullptr, + format?._id ?? ffi.nullptr, + locale._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject initWithString_calendarFormat_( + NSString? description, NSString? format) { + final _ret = _lib._objc_msgSend_165( + _id, + _lib._sel_initWithString_calendarFormat_1, + description?._id ?? ffi.nullptr, + format?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + @override + NSObject initWithString_(NSString? description) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithString_1, description?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject initWithYear_month_day_hour_minute_second_timeZone_( + int year, + int month, + int day, + int hour, + int minute, + int second, + NSTimeZone? aTimeZone) { + final _ret = _lib._objc_msgSend_190( + _id, + _lib._sel_initWithYear_month_day_hour_minute_second_timeZone_1, + year, + month, + day, + hour, + minute, + second, + aTimeZone?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void setCalendarFormat_(NSString? format) { + return _lib._objc_msgSend_192( + _id, _lib._sel_setCalendarFormat_1, format?._id ?? ffi.nullptr); + } + + void setTimeZone_(NSTimeZone? aTimeZone) { + return _lib._objc_msgSend_193( + _id, _lib._sel_setTimeZone_1, aTimeZone?._id ?? ffi.nullptr); + } + + void years_months_days_hours_minutes_seconds_sinceDate_( + ffi.Pointer yp, + ffi.Pointer mop, + ffi.Pointer dp, + ffi.Pointer hp, + ffi.Pointer mip, + ffi.Pointer sp, + NSCalendarDate? date) { + return _lib._objc_msgSend_194( + _id, + _lib._sel_years_months_days_hours_minutes_seconds_sinceDate_1, + yp, + mop, + dp, + hp, + mip, + sp, + date?._id ?? ffi.nullptr); + } + + static NSDate? getDistantFuture(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_162( + _lib._class_NSCalendarDate1, _lib._sel_distantFuture1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSDate? getDistantPast(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_162( + _lib._class_NSCalendarDate1, _lib._sel_distantPast1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSCalendarDate date(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSCalendarDate1, _lib._sel_date1); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + static NSCalendarDate dateWithTimeIntervalSinceNow_( + HidListenerBindingsSwift _lib, double secs) { + final _ret = _lib._objc_msgSend_156(_lib._class_NSCalendarDate1, + _lib._sel_dateWithTimeIntervalSinceNow_1, secs); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + static NSCalendarDate dateWithTimeIntervalSinceReferenceDate_( + HidListenerBindingsSwift _lib, double ti) { + final _ret = _lib._objc_msgSend_156(_lib._class_NSCalendarDate1, + _lib._sel_dateWithTimeIntervalSinceReferenceDate_1, ti); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + static NSCalendarDate dateWithTimeIntervalSince1970_( + HidListenerBindingsSwift _lib, double secs) { + final _ret = _lib._objc_msgSend_156(_lib._class_NSCalendarDate1, + _lib._sel_dateWithTimeIntervalSince1970_1, secs); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + static NSCalendarDate dateWithTimeInterval_sinceDate_( + HidListenerBindingsSwift _lib, double secsToBeAdded, NSDate? date) { + final _ret = _lib._objc_msgSend_161( + _lib._class_NSCalendarDate1, + _lib._sel_dateWithTimeInterval_sinceDate_1, + secsToBeAdded, + date?._id ?? ffi.nullptr); + return NSCalendarDate._(_ret, _lib, retain: true, release: true); + } + + static NSDate? getNow(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_162(_lib._class_NSCalendarDate1, _lib._sel_now1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSObject dateWithNaturalLanguageString_locale_( + HidListenerBindingsSwift _lib, NSString? string, NSObject locale) { + final _ret = _lib._objc_msgSend_163( + _lib._class_NSCalendarDate1, + _lib._sel_dateWithNaturalLanguageString_locale_1, + string?._id ?? ffi.nullptr, + locale._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject dateWithNaturalLanguageString_( + HidListenerBindingsSwift _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSCalendarDate1, + _lib._sel_dateWithNaturalLanguageString_1, string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject dateWithString_( + HidListenerBindingsSwift _lib, NSString? aString) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSCalendarDate1, + _lib._sel_dateWithString_1, aString?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSCalendarDate new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSCalendarDate1, _lib._sel_new1); + return NSCalendarDate._(_ret, _lib, retain: false, release: true); + } + + static NSCalendarDate alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSCalendarDate1, _lib._sel_alloc1); + return NSCalendarDate._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSCalendarDate1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSCalendarDate1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSCalendarDate1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSCalendarDate1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSCalendarDate1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSCalendarDate1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSCalendarDate1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSCalendarDate1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSCalendarDate1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSTimeZone extends NSObject { + NSTimeZone._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSTimeZone] that points to the same underlying object as [other]. + static NSTimeZone castFrom(T other) { + return NSTimeZone._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSTimeZone] that wraps the given raw object pointer. + static NSTimeZone castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSTimeZone._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSTimeZone]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSTimeZone1); + } + + NSString? get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSData? get data { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + int secondsFromGMTForDate_(NSDate? aDate) { + return _lib._objc_msgSend_166( + _id, _lib._sel_secondsFromGMTForDate_1, aDate?._id ?? ffi.nullptr); + } + + NSString abbreviationForDate_(NSDate? aDate) { + final _ret = _lib._objc_msgSend_167( + _id, _lib._sel_abbreviationForDate_1, aDate?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + bool isDaylightSavingTimeForDate_(NSDate? aDate) { + return _lib._objc_msgSend_160(_id, _lib._sel_isDaylightSavingTimeForDate_1, + aDate?._id ?? ffi.nullptr); + } + + double daylightSavingTimeOffsetForDate_(NSDate? aDate) { + return _lib._objc_msgSend_157(_id, + _lib._sel_daylightSavingTimeOffsetForDate_1, aDate?._id ?? ffi.nullptr); + } + + NSDate nextDaylightSavingTimeTransitionAfterDate_(NSDate? aDate) { + final _ret = _lib._objc_msgSend_158( + _id, + _lib._sel_nextDaylightSavingTimeTransitionAfterDate_1, + aDate?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSTimeZone? getSystemTimeZone(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_168( + _lib._class_NSTimeZone1, _lib._sel_systemTimeZone1); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + static void resetSystemTimeZone(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_1( + _lib._class_NSTimeZone1, _lib._sel_resetSystemTimeZone1); + } + + static NSTimeZone? getDefaultTimeZone(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_168( + _lib._class_NSTimeZone1, _lib._sel_defaultTimeZone1); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + static void setDefaultTimeZone( + HidListenerBindingsSwift _lib, NSTimeZone? value) { + _lib._objc_msgSend_169(_lib._class_NSTimeZone1, + _lib._sel_setDefaultTimeZone_1, value?._id ?? ffi.nullptr); + } + + static NSTimeZone? getLocalTimeZone(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_168( + _lib._class_NSTimeZone1, _lib._sel_localTimeZone1); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + static NSArray? getKnownTimeZoneNames(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSTimeZone1, _lib._sel_knownTimeZoneNames1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSDictionary? getAbbreviationDictionary( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_170( + _lib._class_NSTimeZone1, _lib._sel_abbreviationDictionary1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static void setAbbreviationDictionary( + HidListenerBindingsSwift _lib, NSDictionary? value) { + _lib._objc_msgSend_171(_lib._class_NSTimeZone1, + _lib._sel_setAbbreviationDictionary_1, value?._id ?? ffi.nullptr); + } + + static NSString? getTimeZoneDataVersion(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_20( + _lib._class_NSTimeZone1, _lib._sel_timeZoneDataVersion1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + int get secondsFromGMT { + return _lib._objc_msgSend_78(_id, _lib._sel_secondsFromGMT1); + } + + NSString? get abbreviation { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_abbreviation1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + bool get daylightSavingTime { + return _lib._objc_msgSend_12(_id, _lib._sel_isDaylightSavingTime1); + } + + double get daylightSavingTimeOffset { + return _lib._objc_msgSend_155(_id, _lib._sel_daylightSavingTimeOffset1); + } + + NSDate? get nextDaylightSavingTimeTransition { + final _ret = _lib._objc_msgSend_162( + _id, _lib._sel_nextDaylightSavingTimeTransition1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + NSString? get description { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + bool isEqualToTimeZone_(NSTimeZone? aTimeZone) { + return _lib._objc_msgSend_172( + _id, _lib._sel_isEqualToTimeZone_1, aTimeZone?._id ?? ffi.nullptr); + } + + NSString localizedName_locale_(int style, NSLocale? locale) { + final _ret = _lib._objc_msgSend_187(_id, _lib._sel_localizedName_locale_1, + style, locale?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSTimeZone timeZoneWithName_( + HidListenerBindingsSwift _lib, NSString? tzName) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSTimeZone1, + _lib._sel_timeZoneWithName_1, tzName?._id ?? ffi.nullptr); + return NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + static NSTimeZone timeZoneWithName_data_( + HidListenerBindingsSwift _lib, NSString? tzName, NSData? aData) { + final _ret = _lib._objc_msgSend_188( + _lib._class_NSTimeZone1, + _lib._sel_timeZoneWithName_data_1, + tzName?._id ?? ffi.nullptr, + aData?._id ?? ffi.nullptr); + return NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + NSTimeZone initWithName_(NSString? tzName) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithName_1, tzName?._id ?? ffi.nullptr); + return NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + NSTimeZone initWithName_data_(NSString? tzName, NSData? aData) { + final _ret = _lib._objc_msgSend_188(_id, _lib._sel_initWithName_data_1, + tzName?._id ?? ffi.nullptr, aData?._id ?? ffi.nullptr); + return NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + static NSTimeZone timeZoneForSecondsFromGMT_( + HidListenerBindingsSwift _lib, int seconds) { + final _ret = _lib._objc_msgSend_189(_lib._class_NSTimeZone1, + _lib._sel_timeZoneForSecondsFromGMT_1, seconds); + return NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + static NSTimeZone timeZoneWithAbbreviation_( + HidListenerBindingsSwift _lib, NSString? abbreviation) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSTimeZone1, + _lib._sel_timeZoneWithAbbreviation_1, abbreviation?._id ?? ffi.nullptr); + return NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + static NSTimeZone new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSTimeZone1, _lib._sel_new1); + return NSTimeZone._(_ret, _lib, retain: false, release: true); + } + + static NSTimeZone alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSTimeZone1, _lib._sel_alloc1); + return NSTimeZone._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSTimeZone1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSTimeZone1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSTimeZone1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSTimeZone1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSTimeZone1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSTimeZone1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSTimeZone1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSTimeZone1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSTimeZone1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSTimeZoneNameStyle { + static const int NSTimeZoneNameStyleStandard = 0; + static const int NSTimeZoneNameStyleShortStandard = 1; + static const int NSTimeZoneNameStyleDaylightSaving = 2; + static const int NSTimeZoneNameStyleShortDaylightSaving = 3; + static const int NSTimeZoneNameStyleGeneric = 4; + static const int NSTimeZoneNameStyleShortGeneric = 5; +} + +class NSLocale extends NSObject { + NSLocale._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSLocale] that points to the same underlying object as [other]. + static NSLocale castFrom(T other) { + return NSLocale._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSLocale] that wraps the given raw object pointer. + static NSLocale castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSLocale._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSLocale]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSLocale1); + } + + NSObject objectForKey_(NSString key) { + final _ret = _lib._objc_msgSend_30(_id, _lib._sel_objectForKey_1, key._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSString displayNameForKey_value_(NSString key, NSObject value) { + final _ret = _lib._objc_msgSend_173( + _id, _lib._sel_displayNameForKey_value_1, key._id, value._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSLocale initWithLocaleIdentifier_(NSString? string) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithLocaleIdentifier_1, string?._id ?? ffi.nullptr); + return NSLocale._(_ret, _lib, retain: true, release: true); + } + + NSLocale initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSLocale._(_ret, _lib, retain: true, release: true); + } + + NSString? get localeIdentifier { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localeIdentifier1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString localizedStringForLocaleIdentifier_(NSString? localeIdentifier) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_localizedStringForLocaleIdentifier_1, + localeIdentifier?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get languageCode { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_languageCode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString localizedStringForLanguageCode_(NSString? languageCode) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_localizedStringForLanguageCode_1, + languageCode?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get countryCode { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_countryCode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString localizedStringForCountryCode_(NSString? countryCode) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_localizedStringForCountryCode_1, + countryCode?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get scriptCode { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_scriptCode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString localizedStringForScriptCode_(NSString? scriptCode) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_localizedStringForScriptCode_1, + scriptCode?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get variantCode { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_variantCode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString localizedStringForVariantCode_(NSString? variantCode) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_localizedStringForVariantCode_1, + variantCode?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSCharacterSet? get exemplarCharacterSet { + final _ret = _lib._objc_msgSend_174(_id, _lib._sel_exemplarCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + NSString? get calendarIdentifier { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_calendarIdentifier1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString localizedStringForCalendarIdentifier_(NSString? calendarIdentifier) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_localizedStringForCalendarIdentifier_1, + calendarIdentifier?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get collationIdentifier { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_collationIdentifier1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString localizedStringForCollationIdentifier_( + NSString? collationIdentifier) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_localizedStringForCollationIdentifier_1, + collationIdentifier?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + bool get usesMetricSystem { + return _lib._objc_msgSend_12(_id, _lib._sel_usesMetricSystem1); + } + + NSString? get decimalSeparator { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_decimalSeparator1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get groupingSeparator { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_groupingSeparator1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get currencySymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencySymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get currencyCode { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencyCode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString localizedStringForCurrencyCode_(NSString? currencyCode) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_localizedStringForCurrencyCode_1, + currencyCode?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get collatorIdentifier { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_collatorIdentifier1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString localizedStringForCollatorIdentifier_(NSString? collatorIdentifier) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_localizedStringForCollatorIdentifier_1, + collatorIdentifier?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get quotationBeginDelimiter { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_quotationBeginDelimiter1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get quotationEndDelimiter { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_quotationEndDelimiter1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get alternateQuotationBeginDelimiter { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_alternateQuotationBeginDelimiter1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get alternateQuotationEndDelimiter { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_alternateQuotationEndDelimiter1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + static NSLocale? getAutoupdatingCurrentLocale(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_182( + _lib._class_NSLocale1, _lib._sel_autoupdatingCurrentLocale1); + return _ret.address == 0 + ? null + : NSLocale._(_ret, _lib, retain: true, release: true); + } + + static NSLocale? getCurrentLocale(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_182(_lib._class_NSLocale1, _lib._sel_currentLocale1); + return _ret.address == 0 + ? null + : NSLocale._(_ret, _lib, retain: true, release: true); + } + + static NSLocale? getSystemLocale(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_182(_lib._class_NSLocale1, _lib._sel_systemLocale1); + return _ret.address == 0 + ? null + : NSLocale._(_ret, _lib, retain: true, release: true); + } + + static NSLocale localeWithLocaleIdentifier_( + HidListenerBindingsSwift _lib, NSString? ident) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSLocale1, + _lib._sel_localeWithLocaleIdentifier_1, ident?._id ?? ffi.nullptr); + return NSLocale._(_ret, _lib, retain: true, release: true); + } + + @override + NSLocale init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSLocale._(_ret, _lib, retain: true, release: true); + } + + static NSArray? getAvailableLocaleIdentifiers(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSLocale1, _lib._sel_availableLocaleIdentifiers1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray? getISOLanguageCodes(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSLocale1, _lib._sel_ISOLanguageCodes1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray? getISOCountryCodes(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSLocale1, _lib._sel_ISOCountryCodes1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray? getISOCurrencyCodes(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSLocale1, _lib._sel_ISOCurrencyCodes1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray? getCommonISOCurrencyCodes(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSLocale1, _lib._sel_commonISOCurrencyCodes1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray? getPreferredLanguages(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSLocale1, _lib._sel_preferredLanguages1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSDictionary componentsFromLocaleIdentifier_( + HidListenerBindingsSwift _lib, NSString? string) { + final _ret = _lib._objc_msgSend_146(_lib._class_NSLocale1, + _lib._sel_componentsFromLocaleIdentifier_1, string?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSString localeIdentifierFromComponents_( + HidListenerBindingsSwift _lib, NSDictionary? dict) { + final _ret = _lib._objc_msgSend_183(_lib._class_NSLocale1, + _lib._sel_localeIdentifierFromComponents_1, dict?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString canonicalLocaleIdentifierFromString_( + HidListenerBindingsSwift _lib, NSString? string) { + final _ret = _lib._objc_msgSend_64( + _lib._class_NSLocale1, + _lib._sel_canonicalLocaleIdentifierFromString_1, + string?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString canonicalLanguageIdentifierFromString_( + HidListenerBindingsSwift _lib, NSString? string) { + final _ret = _lib._objc_msgSend_64( + _lib._class_NSLocale1, + _lib._sel_canonicalLanguageIdentifierFromString_1, + string?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString localeIdentifierFromWindowsLocaleCode_( + HidListenerBindingsSwift _lib, int lcid) { + final _ret = _lib._objc_msgSend_184(_lib._class_NSLocale1, + _lib._sel_localeIdentifierFromWindowsLocaleCode_1, lcid); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static int windowsLocaleCodeFromLocaleIdentifier_( + HidListenerBindingsSwift _lib, NSString? localeIdentifier) { + return _lib._objc_msgSend_185( + _lib._class_NSLocale1, + _lib._sel_windowsLocaleCodeFromLocaleIdentifier_1, + localeIdentifier?._id ?? ffi.nullptr); + } + + static int characterDirectionForLanguage_( + HidListenerBindingsSwift _lib, NSString? isoLangCode) { + return _lib._objc_msgSend_186( + _lib._class_NSLocale1, + _lib._sel_characterDirectionForLanguage_1, + isoLangCode?._id ?? ffi.nullptr); + } + + static int lineDirectionForLanguage_( + HidListenerBindingsSwift _lib, NSString? isoLangCode) { + return _lib._objc_msgSend_186(_lib._class_NSLocale1, + _lib._sel_lineDirectionForLanguage_1, isoLangCode?._id ?? ffi.nullptr); + } + + static NSLocale new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSLocale1, _lib._sel_new1); + return NSLocale._(_ret, _lib, retain: false, release: true); + } + + static NSLocale alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSLocale1, _lib._sel_alloc1); + return NSLocale._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSLocale1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSLocale1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSLocale1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSLocale1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSLocale1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSLocale1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSLocale1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSLocale1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSLocale1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSCharacterSet extends NSObject { + NSCharacterSet._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSCharacterSet] that points to the same underlying object as [other]. + static NSCharacterSet castFrom(T other) { + return NSCharacterSet._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSCharacterSet] that wraps the given raw object pointer. + static NSCharacterSet castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSCharacterSet._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSCharacterSet]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSCharacterSet1); + } + + static NSCharacterSet? getControlCharacterSet(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_controlCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getWhitespaceCharacterSet( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_whitespaceCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getWhitespaceAndNewlineCharacterSet( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_174(_lib._class_NSCharacterSet1, + _lib._sel_whitespaceAndNewlineCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getDecimalDigitCharacterSet( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_decimalDigitCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getLetterCharacterSet(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_letterCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getLowercaseLetterCharacterSet( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_lowercaseLetterCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getUppercaseLetterCharacterSet( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_uppercaseLetterCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getNonBaseCharacterSet(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_nonBaseCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getAlphanumericCharacterSet( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_alphanumericCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getDecomposableCharacterSet( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_decomposableCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getIllegalCharacterSet(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_illegalCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getPunctuationCharacterSet( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_punctuationCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getCapitalizedLetterCharacterSet( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_capitalizedLetterCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getSymbolCharacterSet(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_symbolCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getNewlineCharacterSet(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_newlineCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: false, release: true); + } + + static NSCharacterSet characterSetWithRange_( + HidListenerBindingsSwift _lib, _NSRange aRange) { + final _ret = _lib._objc_msgSend_175( + _lib._class_NSCharacterSet1, _lib._sel_characterSetWithRange_1, aRange); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet characterSetWithCharactersInString_( + HidListenerBindingsSwift _lib, NSString? aString) { + final _ret = _lib._objc_msgSend_176( + _lib._class_NSCharacterSet1, + _lib._sel_characterSetWithCharactersInString_1, + aString?._id ?? ffi.nullptr); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet characterSetWithBitmapRepresentation_( + HidListenerBindingsSwift _lib, NSData? data) { + final _ret = _lib._objc_msgSend_177( + _lib._class_NSCharacterSet1, + _lib._sel_characterSetWithBitmapRepresentation_1, + data?._id ?? ffi.nullptr); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet characterSetWithContentsOfFile_( + HidListenerBindingsSwift _lib, NSString? fName) { + final _ret = _lib._objc_msgSend_176(_lib._class_NSCharacterSet1, + _lib._sel_characterSetWithContentsOfFile_1, fName?._id ?? ffi.nullptr); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + NSCharacterSet initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + bool characterIsMember_(int aCharacter) { + return _lib._objc_msgSend_178( + _id, _lib._sel_characterIsMember_1, aCharacter); + } + + NSData? get bitmapRepresentation { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_bitmapRepresentation1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + NSCharacterSet? get invertedSet { + final _ret = _lib._objc_msgSend_174(_id, _lib._sel_invertedSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + bool longCharacterIsMember_(int theLongChar) { + return _lib._objc_msgSend_179( + _id, _lib._sel_longCharacterIsMember_1, theLongChar); + } + + bool isSupersetOfSet_(NSCharacterSet? theOtherSet) { + return _lib._objc_msgSend_180( + _id, _lib._sel_isSupersetOfSet_1, theOtherSet?._id ?? ffi.nullptr); + } + + bool hasMemberInPlane_(int thePlane) { + return _lib._objc_msgSend_181(_id, _lib._sel_hasMemberInPlane_1, thePlane); + } + + static NSCharacterSet? getURLUserAllowedCharacterSet( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_URLUserAllowedCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getURLPasswordAllowedCharacterSet( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_URLPasswordAllowedCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getURLHostAllowedCharacterSet( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_URLHostAllowedCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getURLPathAllowedCharacterSet( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_URLPathAllowedCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getURLQueryAllowedCharacterSet( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_URLQueryAllowedCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet? getURLFragmentAllowedCharacterSet( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_174( + _lib._class_NSCharacterSet1, _lib._sel_URLFragmentAllowedCharacterSet1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + static NSCharacterSet new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSCharacterSet1, _lib._sel_new1); + return NSCharacterSet._(_ret, _lib, retain: false, release: true); + } + + static NSCharacterSet alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSCharacterSet1, _lib._sel_alloc1); + return NSCharacterSet._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSCharacterSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSCharacterSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSCharacterSet1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSCharacterSet1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSCharacterSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSCharacterSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSCharacterSet1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSCharacterSet1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSCharacterSet1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSLocaleLanguageDirection { + static const int NSLocaleLanguageDirectionUnknown = 0; + static const int NSLocaleLanguageDirectionLeftToRight = 1; + static const int NSLocaleLanguageDirectionRightToLeft = 2; + static const int NSLocaleLanguageDirectionTopToBottom = 3; + static const int NSLocaleLanguageDirectionBottomToTop = 4; +} + +abstract class NSURLBookmarkCreationOptions { + static const int NSURLBookmarkCreationPreferFileIDResolution = 256; + static const int NSURLBookmarkCreationMinimalBookmark = 512; + static const int NSURLBookmarkCreationSuitableForBookmarkFile = 1024; + static const int NSURLBookmarkCreationWithSecurityScope = 2048; + static const int NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess = 4096; + static const int NSURLBookmarkCreationWithoutImplicitSecurityScope = + 536870912; +} + +abstract class NSURLBookmarkResolutionOptions { + static const int NSURLBookmarkResolutionWithoutUI = 256; + static const int NSURLBookmarkResolutionWithoutMounting = 512; + static const int NSURLBookmarkResolutionWithSecurityScope = 1024; + static const int NSURLBookmarkResolutionWithoutImplicitStartAccessing = 32768; +} + +class NSURLHandle extends NSObject { + NSURLHandle._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLHandle] that points to the same underlying object as [other]. + static NSURLHandle castFrom(T other) { + return NSURLHandle._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSURLHandle] that wraps the given raw object pointer. + static NSURLHandle castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLHandle._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSURLHandle]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLHandle1); + } + + static void registerURLHandleClass_( + HidListenerBindingsSwift _lib, NSObject anURLHandleSubclass) { + return _lib._objc_msgSend_15(_lib._class_NSURLHandle1, + _lib._sel_registerURLHandleClass_1, anURLHandleSubclass._id); + } + + static NSObject URLHandleClassForURL_( + HidListenerBindingsSwift _lib, NSURL? anURL) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSURLHandle1, + _lib._sel_URLHandleClassForURL_1, anURL?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + int status() { + return _lib._objc_msgSend_242(_id, _lib._sel_status1); + } + + NSString failureReason() { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_failureReason1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + void addClient_(NSObject? client) { + return _lib._objc_msgSend_15( + _id, _lib._sel_addClient_1, client?._id ?? ffi.nullptr); + } + + void removeClient_(NSObject? client) { + return _lib._objc_msgSend_15( + _id, _lib._sel_removeClient_1, client?._id ?? ffi.nullptr); + } + + void loadInBackground() { + return _lib._objc_msgSend_1(_id, _lib._sel_loadInBackground1); + } + + void cancelLoadInBackground() { + return _lib._objc_msgSend_1(_id, _lib._sel_cancelLoadInBackground1); + } + + NSData resourceData() { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_resourceData1); + return NSData._(_ret, _lib, retain: true, release: true); + } + + NSData availableResourceData() { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_availableResourceData1); + return NSData._(_ret, _lib, retain: true, release: true); + } + + int expectedResourceDataSize() { + return _lib._objc_msgSend_220(_id, _lib._sel_expectedResourceDataSize1); + } + + void flushCachedData() { + return _lib._objc_msgSend_1(_id, _lib._sel_flushCachedData1); + } + + void backgroundLoadDidFailWithReason_(NSString? reason) { + return _lib._objc_msgSend_192( + _id, + _lib._sel_backgroundLoadDidFailWithReason_1, + reason?._id ?? ffi.nullptr); + } + + void didLoadBytes_loadComplete_(NSData? newBytes, bool yorn) { + return _lib._objc_msgSend_243(_id, _lib._sel_didLoadBytes_loadComplete_1, + newBytes?._id ?? ffi.nullptr, yorn); + } + + static bool canInitWithURL_(HidListenerBindingsSwift _lib, NSURL? anURL) { + return _lib._objc_msgSend_244(_lib._class_NSURLHandle1, + _lib._sel_canInitWithURL_1, anURL?._id ?? ffi.nullptr); + } + + static NSURLHandle cachedHandleForURL_( + HidListenerBindingsSwift _lib, NSURL? anURL) { + final _ret = _lib._objc_msgSend_245(_lib._class_NSURLHandle1, + _lib._sel_cachedHandleForURL_1, anURL?._id ?? ffi.nullptr); + return NSURLHandle._(_ret, _lib, retain: true, release: true); + } + + NSObject initWithURL_cached_(NSURL? anURL, bool willCache) { + final _ret = _lib._objc_msgSend_246(_id, _lib._sel_initWithURL_cached_1, + anURL?._id ?? ffi.nullptr, willCache); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject propertyForKey_(NSString? propertyKey) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_propertyForKey_1, propertyKey?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject propertyForKeyIfAvailable_(NSString? propertyKey) { + final _ret = _lib._objc_msgSend_30(_id, + _lib._sel_propertyForKeyIfAvailable_1, propertyKey?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + bool writeProperty_forKey_(NSObject propertyValue, NSString? propertyKey) { + return _lib._objc_msgSend_240(_id, _lib._sel_writeProperty_forKey_1, + propertyValue._id, propertyKey?._id ?? ffi.nullptr); + } + + bool writeData_(NSData? data) { + return _lib._objc_msgSend_23( + _id, _lib._sel_writeData_1, data?._id ?? ffi.nullptr); + } + + NSData loadInForeground() { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_loadInForeground1); + return NSData._(_ret, _lib, retain: true, release: true); + } + + void beginLoadInBackground() { + return _lib._objc_msgSend_1(_id, _lib._sel_beginLoadInBackground1); + } + + void endLoadInBackground() { + return _lib._objc_msgSend_1(_id, _lib._sel_endLoadInBackground1); + } + + static NSURLHandle new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLHandle1, _lib._sel_new1); + return NSURLHandle._(_ret, _lib, retain: false, release: true); + } + + static NSURLHandle alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLHandle1, _lib._sel_alloc1); + return NSURLHandle._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSURLHandle1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSURLHandle1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLHandle1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLHandle1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLHandle1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLHandle1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSURLHandle1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSURLHandle1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLHandle1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSURLHandleStatus { + static const int NSURLHandleNotLoaded = 0; + static const int NSURLHandleLoadSucceeded = 1; + static const int NSURLHandleLoadInProgress = 2; + static const int NSURLHandleLoadFailed = 3; +} + +abstract class NSDataWritingOptions { + static const int NSDataWritingAtomic = 1; + static const int NSDataWritingWithoutOverwriting = 2; + static const int NSDataWritingFileProtectionNone = 268435456; + static const int NSDataWritingFileProtectionComplete = 536870912; + static const int NSDataWritingFileProtectionCompleteUnlessOpen = 805306368; + static const int + NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication = + 1073741824; + static const int NSDataWritingFileProtectionMask = 4026531840; + static const int NSAtomicWrite = 1; +} + +abstract class NSDataSearchOptions { + static const int NSDataSearchBackwards = 1; + static const int NSDataSearchAnchored = 2; +} + +void _ObjCBlock11_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} + +final _ObjCBlock11_closureRegistry = {}; +int _ObjCBlock11_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock11_registerClosure(Function fn) { + final id = ++_ObjCBlock11_closureRegistryIndex; + _ObjCBlock11_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock11_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { + return _ObjCBlock11_closureRegistry[block.ref.target.address]!( + arg0, arg1, arg2); +} + +class ObjCBlock11 extends _ObjCBlockBase { + ObjCBlock11._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock11.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>( + _ObjCBlock11_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock11.fromFunction( + HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>( + _ObjCBlock11_closureTrampoline) + .cast(), + _ObjCBlock11_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call( + ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } +} + +abstract class NSDataReadingOptions { + static const int NSDataReadingMappedIfSafe = 1; + static const int NSDataReadingUncached = 2; + static const int NSDataReadingMappedAlways = 8; + static const int NSDataReadingMapped = 1; + static const int NSMappedRead = 1; + static const int NSUncachedRead = 2; +} + +void _ObjCBlock12_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, ffi.UnsignedLong arg1)>>() + .asFunction arg0, int arg1)>()( + arg0, arg1); +} + +final _ObjCBlock12_closureRegistry = {}; +int _ObjCBlock12_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock12_registerClosure(Function fn) { + final id = ++_ObjCBlock12_closureRegistryIndex; + _ObjCBlock12_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock12_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { + return _ObjCBlock12_closureRegistry[block.ref.target.address]!(arg0, arg1); +} + +class ObjCBlock12 extends _ObjCBlockBase { + ObjCBlock12._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock12.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, ffi.UnsignedLong arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1)>( + _ObjCBlock12_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock12.fromFunction(HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0, int arg1) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1)>( + _ObjCBlock12_closureTrampoline) + .cast(), + _ObjCBlock12_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, int arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.UnsignedLong arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1)>()(_id, arg0, arg1); + } +} + +abstract class NSDataBase64DecodingOptions { + static const int NSDataBase64DecodingIgnoreUnknownCharacters = 1; +} + +abstract class NSDataBase64EncodingOptions { + static const int NSDataBase64Encoding64CharacterLineLength = 1; + static const int NSDataBase64Encoding76CharacterLineLength = 2; + static const int NSDataBase64EncodingEndLineWithCarriageReturn = 16; + static const int NSDataBase64EncodingEndLineWithLineFeed = 32; +} + +abstract class NSDataCompressionAlgorithm { + static const int NSDataCompressionAlgorithmLZFSE = 0; + static const int NSDataCompressionAlgorithmLZ4 = 1; + static const int NSDataCompressionAlgorithmLZMA = 2; + static const int NSDataCompressionAlgorithmZlib = 3; +} + +abstract class NSDecodingFailurePolicy { + static const int NSDecodingFailurePolicyRaiseException = 0; + static const int NSDecodingFailurePolicySetErrorAndReturn = 1; +} + +abstract class NSStringCompareOptions { + static const int NSCaseInsensitiveSearch = 1; + static const int NSLiteralSearch = 2; + static const int NSBackwardsSearch = 4; + static const int NSAnchoredSearch = 8; + static const int NSNumericSearch = 64; + static const int NSDiacriticInsensitiveSearch = 128; + static const int NSWidthInsensitiveSearch = 256; + static const int NSForcedOrderingSearch = 512; + static const int NSRegularExpressionSearch = 1024; +} + +abstract class NSStringEnumerationOptions { + static const int NSStringEnumerationByLines = 0; + static const int NSStringEnumerationByParagraphs = 1; + static const int NSStringEnumerationByComposedCharacterSequences = 2; + static const int NSStringEnumerationByWords = 3; + static const int NSStringEnumerationBySentences = 4; + static const int NSStringEnumerationByCaretPositions = 5; + static const int NSStringEnumerationByDeletionClusters = 6; + static const int NSStringEnumerationReverse = 256; + static const int NSStringEnumerationSubstringNotRequired = 512; + static const int NSStringEnumerationLocalized = 1024; +} + +void _ObjCBlock13_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, + _NSRange arg2, ffi.Pointer arg3)>>() + .asFunction< + void Function( + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3)>()(arg0, arg1, arg2, arg3); +} + +final _ObjCBlock13_closureRegistry = {}; +int _ObjCBlock13_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock13_registerClosure(Function fn) { + final id = ++_ObjCBlock13_closureRegistryIndex; + _ObjCBlock13_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock13_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3) { + return _ObjCBlock13_closureRegistry[block.ref.target.address]!( + arg0, arg1, arg2, arg3); +} + +class ObjCBlock13 extends _ObjCBlockBase { + ObjCBlock13._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock13.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, + _NSRange arg2, ffi.Pointer arg3)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3)>( + _ObjCBlock13_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock13.fromFunction( + HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0, _NSRange arg1, _NSRange arg2, + ffi.Pointer arg3) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3)>( + _ObjCBlock13_closureTrampoline) + .cast(), + _ObjCBlock13_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, _NSRange arg1, _NSRange arg2, + ffi.Pointer arg3) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + _NSRange arg2, + ffi.Pointer arg3)>()(_id, arg0, arg1, arg2, arg3); + } +} + +void _ObjCBlock14_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); +} + +final _ObjCBlock14_closureRegistry = {}; +int _ObjCBlock14_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock14_registerClosure(Function fn) { + final id = ++_ObjCBlock14_closureRegistryIndex; + _ObjCBlock14_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock14_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return _ObjCBlock14_closureRegistry[block.ref.target.address]!(arg0, arg1); +} + +class ObjCBlock14 extends _ObjCBlockBase { + ObjCBlock14._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock14.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock14_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock14.fromFunction( + HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock14_closureTrampoline) + .cast(), + _ObjCBlock14_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); + } +} + +abstract class NSStringEncodingConversionOptions { + static const int NSStringEncodingConversionAllowLossy = 1; + static const int NSStringEncodingConversionExternalRepresentation = 2; +} + +void _ObjCBlock15_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.UnsignedLong arg1)>>() + .asFunction< + void Function( + ffi.Pointer arg0, int arg1)>()(arg0, arg1); +} + +final _ObjCBlock15_closureRegistry = {}; +int _ObjCBlock15_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock15_registerClosure(Function fn) { + final id = ++_ObjCBlock15_closureRegistryIndex; + _ObjCBlock15_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock15_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1) { + return _ObjCBlock15_closureRegistry[block.ref.target.address]!(arg0, arg1); +} + +class ObjCBlock15 extends _ObjCBlockBase { + ObjCBlock15._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock15.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.UnsignedLong arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1)>( + _ObjCBlock15_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock15.fromFunction(HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0, int arg1) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1)>( + _ObjCBlock15_closureTrampoline) + .cast(), + _ObjCBlock15_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, int arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1)>()(_id, arg0, arg1); + } +} + +abstract class NSLinguisticTaggerOptions { + static const int NSLinguisticTaggerOmitWords = 1; + static const int NSLinguisticTaggerOmitPunctuation = 2; + static const int NSLinguisticTaggerOmitWhitespace = 4; + static const int NSLinguisticTaggerOmitOther = 8; + static const int NSLinguisticTaggerJoinNames = 16; +} + +class NSOrthography extends NSObject { + NSOrthography._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSOrthography] that points to the same underlying object as [other]. + static NSOrthography castFrom(T other) { + return NSOrthography._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSOrthography] that wraps the given raw object pointer. + static NSOrthography castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSOrthography._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSOrthography]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSOrthography1); + } + + NSString? get dominantScript { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_dominantScript1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSDictionary? get languageMap { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_languageMap1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSOrthography initWithDominantScript_languageMap_( + NSString? script, NSDictionary? map) { + final _ret = _lib._objc_msgSend_371( + _id, + _lib._sel_initWithDominantScript_languageMap_1, + script?._id ?? ffi.nullptr, + map?._id ?? ffi.nullptr); + return NSOrthography._(_ret, _lib, retain: true, release: true); + } + + NSOrthography initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSOrthography._(_ret, _lib, retain: true, release: true); + } + + NSArray languagesForScript_(NSString? script) { + final _ret = _lib._objc_msgSend_123( + _id, _lib._sel_languagesForScript_1, script?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString dominantLanguageForScript_(NSString? script) { + final _ret = _lib._objc_msgSend_64( + _id, _lib._sel_dominantLanguageForScript_1, script?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get dominantLanguage { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_dominantLanguage1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray? get allScripts { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allScripts1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get allLanguages { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allLanguages1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSOrthography defaultOrthographyForLanguage_( + HidListenerBindingsSwift _lib, NSString? language) { + final _ret = _lib._objc_msgSend_30( + _lib._class_NSOrthography1, + _lib._sel_defaultOrthographyForLanguage_1, + language?._id ?? ffi.nullptr); + return NSOrthography._(_ret, _lib, retain: true, release: true); + } + + static NSOrthography orthographyWithDominantScript_languageMap_( + HidListenerBindingsSwift _lib, NSString? script, NSDictionary? map) { + final _ret = _lib._objc_msgSend_371( + _lib._class_NSOrthography1, + _lib._sel_orthographyWithDominantScript_languageMap_1, + script?._id ?? ffi.nullptr, + map?._id ?? ffi.nullptr); + return NSOrthography._(_ret, _lib, retain: true, release: true); + } + + static NSOrthography new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOrthography1, _lib._sel_new1); + return NSOrthography._(_ret, _lib, retain: false, release: true); + } + + static NSOrthography alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOrthography1, _lib._sel_alloc1); + return NSOrthography._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSOrthography1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSOrthography1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSOrthography1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSOrthography1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSOrthography1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSOrthography1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSOrthography1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSOrthography1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSOrthography1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +void _ObjCBlock16_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); +} + +final _ObjCBlock16_closureRegistry = {}; +int _ObjCBlock16_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock16_registerClosure(Function fn) { + final id = ++_ObjCBlock16_closureRegistryIndex; + _ObjCBlock16_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock16_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return _ObjCBlock16_closureRegistry[block.ref.target.address]!(arg0, arg1); +} + +class ObjCBlock16 extends _ObjCBlockBase { + ObjCBlock16._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock16.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock16_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock16.fromFunction( + HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock16_closureTrampoline) + .cast(), + _ObjCBlock16_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); + } +} + +bool _ObjCBlock17_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer arg0, ffi.Pointer arg1)>>() + .asFunction< + bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); +} + +final _ObjCBlock17_closureRegistry = {}; +int _ObjCBlock17_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock17_registerClosure(Function fn) { + final id = ++_ObjCBlock17_closureRegistryIndex; + _ObjCBlock17_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +bool _ObjCBlock17_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return _ObjCBlock17_closureRegistry[block.ref.target.address]!(arg0, arg1); +} + +class ObjCBlock17 extends _ObjCBlockBase { + ObjCBlock17._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock17.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock17_fnPtrTrampoline, false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock17.fromFunction( + HidListenerBindingsSwift lib, + bool Function(ffi.Pointer arg0, ffi.Pointer arg1) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock17_closureTrampoline, false) + .cast(), + _ObjCBlock17_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + bool call(ffi.Pointer arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); + } +} + +class NSFileManager extends NSObject { + NSFileManager._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSFileManager] that points to the same underlying object as [other]. + static NSFileManager castFrom(T other) { + return NSFileManager._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSFileManager] that wraps the given raw object pointer. + static NSFileManager castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSFileManager._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSFileManager]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileManager1); + } + + static NSFileManager? getDefaultManager(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_402( + _lib._class_NSFileManager1, _lib._sel_defaultManager1); + return _ret.address == 0 + ? null + : NSFileManager._(_ret, _lib, retain: true, release: true); + } + + NSArray mountedVolumeURLsIncludingResourceValuesForKeys_options_( + NSArray? propertyKeys, int options) { + final _ret = _lib._objc_msgSend_403( + _id, + _lib._sel_mountedVolumeURLsIncludingResourceValuesForKeys_options_1, + propertyKeys?._id ?? ffi.nullptr, + options); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + void unmountVolumeAtURL_options_completionHandler_( + NSURL? url, int mask, ObjCBlock18 completionHandler) { + return _lib._objc_msgSend_404( + _id, + _lib._sel_unmountVolumeAtURL_options_completionHandler_1, + url?._id ?? ffi.nullptr, + mask, + completionHandler._id); + } + + NSArray contentsOfDirectoryAtURL_includingPropertiesForKeys_options_error_( + NSURL? url, + NSArray? keys, + int mask, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_405( + _id, + _lib._sel_contentsOfDirectoryAtURL_includingPropertiesForKeys_options_error_1, + url?._id ?? ffi.nullptr, + keys?._id ?? ffi.nullptr, + mask, + error); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray URLsForDirectory_inDomains_(int directory, int domainMask) { + final _ret = _lib._objc_msgSend_406( + _id, _lib._sel_URLsForDirectory_inDomains_1, directory, domainMask); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSURL URLForDirectory_inDomain_appropriateForURL_create_error_( + int directory, + int domain, + NSURL? url, + bool shouldCreate, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_407( + _id, + _lib._sel_URLForDirectory_inDomain_appropriateForURL_create_error_1, + directory, + domain, + url?._id ?? ffi.nullptr, + shouldCreate, + error); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + bool getRelationship_ofDirectoryAtURL_toItemAtURL_error_( + ffi.Pointer outRelationship, + NSURL? directoryURL, + NSURL? otherURL, + ffi.Pointer> error) { + return _lib._objc_msgSend_408( + _id, + _lib._sel_getRelationship_ofDirectoryAtURL_toItemAtURL_error_1, + outRelationship, + directoryURL?._id ?? ffi.nullptr, + otherURL?._id ?? ffi.nullptr, + error); + } + + bool getRelationship_ofDirectory_inDomain_toItemAtURL_error_( + ffi.Pointer outRelationship, + int directory, + int domainMask, + NSURL? url, + ffi.Pointer> error) { + return _lib._objc_msgSend_409( + _id, + _lib._sel_getRelationship_ofDirectory_inDomain_toItemAtURL_error_1, + outRelationship, + directory, + domainMask, + url?._id ?? ffi.nullptr, + error); + } + + bool createDirectoryAtURL_withIntermediateDirectories_attributes_error_( + NSURL? url, + bool createIntermediates, + NSDictionary? attributes, + ffi.Pointer> error) { + return _lib._objc_msgSend_410( + _id, + _lib._sel_createDirectoryAtURL_withIntermediateDirectories_attributes_error_1, + url?._id ?? ffi.nullptr, + createIntermediates, + attributes?._id ?? ffi.nullptr, + error); + } + + bool createSymbolicLinkAtURL_withDestinationURL_error_( + NSURL? url, NSURL? destURL, ffi.Pointer> error) { + return _lib._objc_msgSend_411( + _id, + _lib._sel_createSymbolicLinkAtURL_withDestinationURL_error_1, + url?._id ?? ffi.nullptr, + destURL?._id ?? ffi.nullptr, + error); + } + + NSObject? get delegate { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + set delegate(NSObject? value) { + _lib._objc_msgSend_387( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + } + + bool setAttributes_ofItemAtPath_error_(NSDictionary? attributes, + NSString? path, ffi.Pointer> error) { + return _lib._objc_msgSend_412( + _id, + _lib._sel_setAttributes_ofItemAtPath_error_1, + attributes?._id ?? ffi.nullptr, + path?._id ?? ffi.nullptr, + error); + } + + bool createDirectoryAtPath_withIntermediateDirectories_attributes_error_( + NSString? path, + bool createIntermediates, + NSDictionary? attributes, + ffi.Pointer> error) { + return _lib._objc_msgSend_413( + _id, + _lib._sel_createDirectoryAtPath_withIntermediateDirectories_attributes_error_1, + path?._id ?? ffi.nullptr, + createIntermediates, + attributes?._id ?? ffi.nullptr, + error); + } + + NSArray contentsOfDirectoryAtPath_error_( + NSString? path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_414( + _id, + _lib._sel_contentsOfDirectoryAtPath_error_1, + path?._id ?? ffi.nullptr, + error); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray subpathsOfDirectoryAtPath_error_( + NSString? path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_414( + _id, + _lib._sel_subpathsOfDirectoryAtPath_error_1, + path?._id ?? ffi.nullptr, + error); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSDictionary attributesOfItemAtPath_error_( + NSString? path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_415( + _id, + _lib._sel_attributesOfItemAtPath_error_1, + path?._id ?? ffi.nullptr, + error); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSDictionary attributesOfFileSystemForPath_error_( + NSString? path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_415( + _id, + _lib._sel_attributesOfFileSystemForPath_error_1, + path?._id ?? ffi.nullptr, + error); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + bool createSymbolicLinkAtPath_withDestinationPath_error_(NSString? path, + NSString? destPath, ffi.Pointer> error) { + return _lib._objc_msgSend_416( + _id, + _lib._sel_createSymbolicLinkAtPath_withDestinationPath_error_1, + path?._id ?? ffi.nullptr, + destPath?._id ?? ffi.nullptr, + error); + } + + NSString destinationOfSymbolicLinkAtPath_error_( + NSString? path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_417( + _id, + _lib._sel_destinationOfSymbolicLinkAtPath_error_1, + path?._id ?? ffi.nullptr, + error); + return NSString._(_ret, _lib, retain: true, release: true); + } + + bool copyItemAtPath_toPath_error_(NSString? srcPath, NSString? dstPath, + ffi.Pointer> error) { + return _lib._objc_msgSend_416(_id, _lib._sel_copyItemAtPath_toPath_error_1, + srcPath?._id ?? ffi.nullptr, dstPath?._id ?? ffi.nullptr, error); + } + + bool moveItemAtPath_toPath_error_(NSString? srcPath, NSString? dstPath, + ffi.Pointer> error) { + return _lib._objc_msgSend_416(_id, _lib._sel_moveItemAtPath_toPath_error_1, + srcPath?._id ?? ffi.nullptr, dstPath?._id ?? ffi.nullptr, error); + } + + bool linkItemAtPath_toPath_error_(NSString? srcPath, NSString? dstPath, + ffi.Pointer> error) { + return _lib._objc_msgSend_416(_id, _lib._sel_linkItemAtPath_toPath_error_1, + srcPath?._id ?? ffi.nullptr, dstPath?._id ?? ffi.nullptr, error); + } + + bool removeItemAtPath_error_( + NSString? path, ffi.Pointer> error) { + return _lib._objc_msgSend_418(_id, _lib._sel_removeItemAtPath_error_1, + path?._id ?? ffi.nullptr, error); + } + + bool copyItemAtURL_toURL_error_(NSURL? srcURL, NSURL? dstURL, + ffi.Pointer> error) { + return _lib._objc_msgSend_411(_id, _lib._sel_copyItemAtURL_toURL_error_1, + srcURL?._id ?? ffi.nullptr, dstURL?._id ?? ffi.nullptr, error); + } + + bool moveItemAtURL_toURL_error_(NSURL? srcURL, NSURL? dstURL, + ffi.Pointer> error) { + return _lib._objc_msgSend_411(_id, _lib._sel_moveItemAtURL_toURL_error_1, + srcURL?._id ?? ffi.nullptr, dstURL?._id ?? ffi.nullptr, error); + } + + bool linkItemAtURL_toURL_error_(NSURL? srcURL, NSURL? dstURL, + ffi.Pointer> error) { + return _lib._objc_msgSend_411(_id, _lib._sel_linkItemAtURL_toURL_error_1, + srcURL?._id ?? ffi.nullptr, dstURL?._id ?? ffi.nullptr, error); + } + + bool removeItemAtURL_error_( + NSURL? URL, ffi.Pointer> error) { + return _lib._objc_msgSend_83( + _id, _lib._sel_removeItemAtURL_error_1, URL?._id ?? ffi.nullptr, error); + } + + bool trashItemAtURL_resultingItemURL_error_( + NSURL? url, + ffi.Pointer> outResultingURL, + ffi.Pointer> error) { + return _lib._objc_msgSend_419( + _id, + _lib._sel_trashItemAtURL_resultingItemURL_error_1, + url?._id ?? ffi.nullptr, + outResultingURL, + error); + } + + NSDictionary fileAttributesAtPath_traverseLink_(NSString? path, bool yorn) { + final _ret = _lib._objc_msgSend_420( + _id, + _lib._sel_fileAttributesAtPath_traverseLink_1, + path?._id ?? ffi.nullptr, + yorn); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + bool changeFileAttributes_atPath_(NSDictionary? attributes, NSString? path) { + return _lib._objc_msgSend_421(_id, _lib._sel_changeFileAttributes_atPath_1, + attributes?._id ?? ffi.nullptr, path?._id ?? ffi.nullptr); + } + + NSArray directoryContentsAtPath_(NSString? path) { + final _ret = _lib._objc_msgSend_123( + _id, _lib._sel_directoryContentsAtPath_1, path?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSDictionary fileSystemAttributesAtPath_(NSString? path) { + final _ret = _lib._objc_msgSend_146( + _id, _lib._sel_fileSystemAttributesAtPath_1, path?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSString pathContentOfSymbolicLinkAtPath_(NSString? path) { + final _ret = _lib._objc_msgSend_64(_id, + _lib._sel_pathContentOfSymbolicLinkAtPath_1, path?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + bool createSymbolicLinkAtPath_pathContent_( + NSString? path, NSString? otherpath) { + return _lib._objc_msgSend_422( + _id, + _lib._sel_createSymbolicLinkAtPath_pathContent_1, + path?._id ?? ffi.nullptr, + otherpath?._id ?? ffi.nullptr); + } + + bool createDirectoryAtPath_attributes_( + NSString? path, NSDictionary? attributes) { + return _lib._objc_msgSend_423( + _id, + _lib._sel_createDirectoryAtPath_attributes_1, + path?._id ?? ffi.nullptr, + attributes?._id ?? ffi.nullptr); + } + + bool linkPath_toPath_handler_( + NSString? src, NSString? dest, NSObject handler) { + return _lib._objc_msgSend_424(_id, _lib._sel_linkPath_toPath_handler_1, + src?._id ?? ffi.nullptr, dest?._id ?? ffi.nullptr, handler._id); + } + + bool copyPath_toPath_handler_( + NSString? src, NSString? dest, NSObject handler) { + return _lib._objc_msgSend_424(_id, _lib._sel_copyPath_toPath_handler_1, + src?._id ?? ffi.nullptr, dest?._id ?? ffi.nullptr, handler._id); + } + + bool movePath_toPath_handler_( + NSString? src, NSString? dest, NSObject handler) { + return _lib._objc_msgSend_424(_id, _lib._sel_movePath_toPath_handler_1, + src?._id ?? ffi.nullptr, dest?._id ?? ffi.nullptr, handler._id); + } + + bool removeFileAtPath_handler_(NSString? path, NSObject handler) { + return _lib._objc_msgSend_425(_id, _lib._sel_removeFileAtPath_handler_1, + path?._id ?? ffi.nullptr, handler._id); + } + + NSString? get currentDirectoryPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currentDirectoryPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + bool changeCurrentDirectoryPath_(NSString? path) { + return _lib._objc_msgSend_59( + _id, _lib._sel_changeCurrentDirectoryPath_1, path?._id ?? ffi.nullptr); + } + + bool fileExistsAtPath_(NSString? path) { + return _lib._objc_msgSend_59( + _id, _lib._sel_fileExistsAtPath_1, path?._id ?? ffi.nullptr); + } + + bool fileExistsAtPath_isDirectory_( + NSString? path, ffi.Pointer isDirectory) { + return _lib._objc_msgSend_426(_id, _lib._sel_fileExistsAtPath_isDirectory_1, + path?._id ?? ffi.nullptr, isDirectory); + } + + bool isReadableFileAtPath_(NSString? path) { + return _lib._objc_msgSend_59( + _id, _lib._sel_isReadableFileAtPath_1, path?._id ?? ffi.nullptr); + } + + bool isWritableFileAtPath_(NSString? path) { + return _lib._objc_msgSend_59( + _id, _lib._sel_isWritableFileAtPath_1, path?._id ?? ffi.nullptr); + } + + bool isExecutableFileAtPath_(NSString? path) { + return _lib._objc_msgSend_59( + _id, _lib._sel_isExecutableFileAtPath_1, path?._id ?? ffi.nullptr); + } + + bool isDeletableFileAtPath_(NSString? path) { + return _lib._objc_msgSend_59( + _id, _lib._sel_isDeletableFileAtPath_1, path?._id ?? ffi.nullptr); + } + + bool contentsEqualAtPath_andPath_(NSString? path1, NSString? path2) { + return _lib._objc_msgSend_422(_id, _lib._sel_contentsEqualAtPath_andPath_1, + path1?._id ?? ffi.nullptr, path2?._id ?? ffi.nullptr); + } + + NSString displayNameAtPath_(NSString? path) { + final _ret = _lib._objc_msgSend_64( + _id, _lib._sel_displayNameAtPath_1, path?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray componentsToDisplayForPath_(NSString? path) { + final _ret = _lib._objc_msgSend_123( + _id, _lib._sel_componentsToDisplayForPath_1, path?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSObject enumeratorAtPath_(NSString? path) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_enumeratorAtPath_1, path?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject enumeratorAtURL_includingPropertiesForKeys_options_errorHandler_( + NSURL? url, NSArray? keys, int mask, ObjCBlock19 handler) { + final _ret = _lib._objc_msgSend_427( + _id, + _lib._sel_enumeratorAtURL_includingPropertiesForKeys_options_errorHandler_1, + url?._id ?? ffi.nullptr, + keys?._id ?? ffi.nullptr, + mask, + handler._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSArray subpathsAtPath_(NSString? path) { + final _ret = _lib._objc_msgSend_123( + _id, _lib._sel_subpathsAtPath_1, path?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSData contentsAtPath_(NSString? path) { + final _ret = _lib._objc_msgSend_428( + _id, _lib._sel_contentsAtPath_1, path?._id ?? ffi.nullptr); + return NSData._(_ret, _lib, retain: true, release: true); + } + + bool createFileAtPath_contents_attributes_( + NSString? path, NSData? data, NSDictionary? attr) { + return _lib._objc_msgSend_429( + _id, + _lib._sel_createFileAtPath_contents_attributes_1, + path?._id ?? ffi.nullptr, + data?._id ?? ffi.nullptr, + attr?._id ?? ffi.nullptr); + } + + ffi.Pointer fileSystemRepresentationWithPath_(NSString? path) { + return _lib._objc_msgSend_430(_id, + _lib._sel_fileSystemRepresentationWithPath_1, path?._id ?? ffi.nullptr); + } + + NSString stringWithFileSystemRepresentation_length_( + ffi.Pointer str, int len) { + final _ret = _lib._objc_msgSend_431( + _id, _lib._sel_stringWithFileSystemRepresentation_length_1, str, len); + return NSString._(_ret, _lib, retain: true, release: true); + } + + bool + replaceItemAtURL_withItemAtURL_backupItemName_options_resultingItemURL_error_( + NSURL? originalItemURL, + NSURL? newItemURL, + NSString? backupItemName, + int options, + ffi.Pointer> resultingURL, + ffi.Pointer> error) { + return _lib._objc_msgSend_432( + _id, + _lib._sel_replaceItemAtURL_withItemAtURL_backupItemName_options_resultingItemURL_error_1, + originalItemURL?._id ?? ffi.nullptr, + newItemURL?._id ?? ffi.nullptr, + backupItemName?._id ?? ffi.nullptr, + options, + resultingURL, + error); + } + + bool setUbiquitous_itemAtURL_destinationURL_error_(bool flag, NSURL? url, + NSURL? destinationURL, ffi.Pointer> error) { + return _lib._objc_msgSend_433( + _id, + _lib._sel_setUbiquitous_itemAtURL_destinationURL_error_1, + flag, + url?._id ?? ffi.nullptr, + destinationURL?._id ?? ffi.nullptr, + error); + } + + bool isUbiquitousItemAtURL_(NSURL? url) { + return _lib._objc_msgSend_244( + _id, _lib._sel_isUbiquitousItemAtURL_1, url?._id ?? ffi.nullptr); + } + + bool startDownloadingUbiquitousItemAtURL_error_( + NSURL? url, ffi.Pointer> error) { + return _lib._objc_msgSend_83( + _id, + _lib._sel_startDownloadingUbiquitousItemAtURL_error_1, + url?._id ?? ffi.nullptr, + error); + } + + bool evictUbiquitousItemAtURL_error_( + NSURL? url, ffi.Pointer> error) { + return _lib._objc_msgSend_83( + _id, + _lib._sel_evictUbiquitousItemAtURL_error_1, + url?._id ?? ffi.nullptr, + error); + } + + NSURL URLForUbiquityContainerIdentifier_(NSString? containerIdentifier) { + final _ret = _lib._objc_msgSend_34( + _id, + _lib._sel_URLForUbiquityContainerIdentifier_1, + containerIdentifier?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL URLForPublishingUbiquitousItemAtURL_expirationDate_error_( + NSURL? url, + ffi.Pointer> outDate, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_434( + _id, + _lib._sel_URLForPublishingUbiquitousItemAtURL_expirationDate_error_1, + url?._id ?? ffi.nullptr, + outDate, + error); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSObject? get ubiquityIdentityToken { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_ubiquityIdentityToken1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + void getFileProviderServicesForItemAtURL_completionHandler_( + NSURL? url, ObjCBlock20 completionHandler) { + return _lib._objc_msgSend_435( + _id, + _lib._sel_getFileProviderServicesForItemAtURL_completionHandler_1, + url?._id ?? ffi.nullptr, + completionHandler._id); + } + + NSURL containerURLForSecurityApplicationGroupIdentifier_( + NSString? groupIdentifier) { + final _ret = _lib._objc_msgSend_34( + _id, + _lib._sel_containerURLForSecurityApplicationGroupIdentifier_1, + groupIdentifier?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get homeDirectoryForCurrentUser { + final _ret = + _lib._objc_msgSend_40(_id, _lib._sel_homeDirectoryForCurrentUser1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get temporaryDirectory { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_temporaryDirectory1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL homeDirectoryForUser_(NSString? userName) { + final _ret = _lib._objc_msgSend_34( + _id, _lib._sel_homeDirectoryForUser_1, userName?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + static NSFileManager new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSFileManager1, _lib._sel_new1); + return NSFileManager._(_ret, _lib, retain: false, release: true); + } + + static NSFileManager alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSFileManager1, _lib._sel_alloc1); + return NSFileManager._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSFileManager1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSFileManager1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSFileManager1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSFileManager1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSFileManager1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSFileManager1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSFileManager1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSFileManager1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSFileManager1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSVolumeEnumerationOptions { + static const int NSVolumeEnumerationSkipHiddenVolumes = 2; + static const int NSVolumeEnumerationProduceFileReferenceURLs = 4; +} + +abstract class NSFileManagerUnmountOptions { + static const int NSFileManagerUnmountAllPartitionsAndEjectDisk = 1; + static const int NSFileManagerUnmountWithoutUI = 2; +} + +void _ObjCBlock18_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} + +final _ObjCBlock18_closureRegistry = {}; +int _ObjCBlock18_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock18_registerClosure(Function fn) { + final id = ++_ObjCBlock18_closureRegistryIndex; + _ObjCBlock18_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock18_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return _ObjCBlock18_closureRegistry[block.ref.target.address]!(arg0); +} + +class ObjCBlock18 extends _ObjCBlockBase { + ObjCBlock18._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock18.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock18_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock18.fromFunction(HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock18_closureTrampoline) + .cast(), + _ObjCBlock18_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); + } +} + +abstract class NSDirectoryEnumerationOptions { + static const int NSDirectoryEnumerationSkipsSubdirectoryDescendants = 1; + static const int NSDirectoryEnumerationSkipsPackageDescendants = 2; + static const int NSDirectoryEnumerationSkipsHiddenFiles = 4; + static const int NSDirectoryEnumerationIncludesDirectoriesPostOrder = 8; + static const int NSDirectoryEnumerationProducesRelativePathURLs = 16; +} + +abstract class NSSearchPathDirectory { + static const int NSApplicationDirectory = 1; + static const int NSDemoApplicationDirectory = 2; + static const int NSDeveloperApplicationDirectory = 3; + static const int NSAdminApplicationDirectory = 4; + static const int NSLibraryDirectory = 5; + static const int NSDeveloperDirectory = 6; + static const int NSUserDirectory = 7; + static const int NSDocumentationDirectory = 8; + static const int NSDocumentDirectory = 9; + static const int NSCoreServiceDirectory = 10; + static const int NSAutosavedInformationDirectory = 11; + static const int NSDesktopDirectory = 12; + static const int NSCachesDirectory = 13; + static const int NSApplicationSupportDirectory = 14; + static const int NSDownloadsDirectory = 15; + static const int NSInputMethodsDirectory = 16; + static const int NSMoviesDirectory = 17; + static const int NSMusicDirectory = 18; + static const int NSPicturesDirectory = 19; + static const int NSPrinterDescriptionDirectory = 20; + static const int NSSharedPublicDirectory = 21; + static const int NSPreferencePanesDirectory = 22; + static const int NSApplicationScriptsDirectory = 23; + static const int NSItemReplacementDirectory = 99; + static const int NSAllApplicationsDirectory = 100; + static const int NSAllLibrariesDirectory = 101; + static const int NSTrashDirectory = 102; +} + +abstract class NSSearchPathDomainMask { + static const int NSUserDomainMask = 1; + static const int NSLocalDomainMask = 2; + static const int NSNetworkDomainMask = 4; + static const int NSSystemDomainMask = 8; + static const int NSAllDomainsMask = 65535; +} + +abstract class NSURLRelationship { + static const int NSURLRelationshipContains = 0; + static const int NSURLRelationshipSame = 1; + static const int NSURLRelationshipOther = 2; +} + +bool _ObjCBlock19_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); +} + +final _ObjCBlock19_closureRegistry = {}; +int _ObjCBlock19_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock19_registerClosure(Function fn) { + final id = ++_ObjCBlock19_closureRegistryIndex; + _ObjCBlock19_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +bool _ObjCBlock19_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return _ObjCBlock19_closureRegistry[block.ref.target.address]!(arg0, arg1); +} + +class ObjCBlock19 extends _ObjCBlockBase { + ObjCBlock19._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock19.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock19_fnPtrTrampoline, false) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock19.fromFunction( + HidListenerBindingsSwift lib, + bool Function(ffi.Pointer arg0, ffi.Pointer arg1) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock19_closureTrampoline, false) + .cast(), + _ObjCBlock19_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + bool call(ffi.Pointer arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); + } +} + +abstract class NSFileManagerItemReplacementOptions { + static const int NSFileManagerItemReplacementUsingNewMetadataOnly = 1; + static const int NSFileManagerItemReplacementWithoutDeletingBackupItem = 2; +} + +void _ObjCBlock20_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); +} + +final _ObjCBlock20_closureRegistry = {}; +int _ObjCBlock20_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock20_registerClosure(Function fn) { + final id = ++_ObjCBlock20_closureRegistryIndex; + _ObjCBlock20_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock20_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return _ObjCBlock20_closureRegistry[block.ref.target.address]!(arg0, arg1); +} + +class ObjCBlock20 extends _ObjCBlockBase { + ObjCBlock20._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock20.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock20_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock20.fromFunction( + HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock20_closureTrampoline) + .cast(), + _ObjCBlock20_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); + } +} + +class NSMutableArray extends NSArray { + NSMutableArray._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSMutableArray] that points to the same underlying object as [other]. + static NSMutableArray castFrom(T other) { + return NSMutableArray._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSMutableArray] that wraps the given raw object pointer. + static NSMutableArray castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMutableArray._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSMutableArray]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableArray1); + } + + void addObject_(NSObject anObject) { + return _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, anObject._id); + } + + void insertObject_atIndex_(NSObject anObject, int index) { + return _lib._objc_msgSend_438( + _id, _lib._sel_insertObject_atIndex_1, anObject._id, index); + } + + void removeLastObject() { + return _lib._objc_msgSend_1(_id, _lib._sel_removeLastObject1); + } + + void removeObjectAtIndex_(int index) { + return _lib._objc_msgSend_439(_id, _lib._sel_removeObjectAtIndex_1, index); + } + + void replaceObjectAtIndex_withObject_(int index, NSObject anObject) { + return _lib._objc_msgSend_440( + _id, _lib._sel_replaceObjectAtIndex_withObject_1, index, anObject._id); + } + + @override + NSMutableArray init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + NSMutableArray initWithCapacity_(int numItems) { + final _ret = + _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableArray initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + void addObjectsFromArray_(NSArray? otherArray) { + return _lib._objc_msgSend_441( + _id, _lib._sel_addObjectsFromArray_1, otherArray?._id ?? ffi.nullptr); + } + + void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { + return _lib._objc_msgSend_442( + _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); + } + + void removeAllObjects() { + return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + } + + void removeObject_inRange_(NSObject anObject, _NSRange range) { + return _lib._objc_msgSend_443( + _id, _lib._sel_removeObject_inRange_1, anObject._id, range); + } + + void removeObject_(NSObject anObject) { + return _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, anObject._id); + } + + void removeObjectIdenticalTo_inRange_(NSObject anObject, _NSRange range) { + return _lib._objc_msgSend_443( + _id, _lib._sel_removeObjectIdenticalTo_inRange_1, anObject._id, range); + } + + void removeObjectIdenticalTo_(NSObject anObject) { + return _lib._objc_msgSend_15( + _id, _lib._sel_removeObjectIdenticalTo_1, anObject._id); + } + + void removeObjectsFromIndices_numIndices_( + ffi.Pointer indices, int cnt) { + return _lib._objc_msgSend_444( + _id, _lib._sel_removeObjectsFromIndices_numIndices_1, indices, cnt); + } + + void removeObjectsInArray_(NSArray? otherArray) { + return _lib._objc_msgSend_441( + _id, _lib._sel_removeObjectsInArray_1, otherArray?._id ?? ffi.nullptr); + } + + void removeObjectsInRange_(_NSRange range) { + return _lib._objc_msgSend_445(_id, _lib._sel_removeObjectsInRange_1, range); + } + + void replaceObjectsInRange_withObjectsFromArray_range_( + _NSRange range, NSArray? otherArray, _NSRange otherRange) { + return _lib._objc_msgSend_446( + _id, + _lib._sel_replaceObjectsInRange_withObjectsFromArray_range_1, + range, + otherArray?._id ?? ffi.nullptr, + otherRange); + } + + void replaceObjectsInRange_withObjectsFromArray_( + _NSRange range, NSArray? otherArray) { + return _lib._objc_msgSend_447( + _id, + _lib._sel_replaceObjectsInRange_withObjectsFromArray_1, + range, + otherArray?._id ?? ffi.nullptr); + } + + void setArray_(NSArray? otherArray) { + return _lib._objc_msgSend_441( + _id, _lib._sel_setArray_1, otherArray?._id ?? ffi.nullptr); + } + + void sortUsingFunction_context_( + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>> + compare, + ffi.Pointer context) { + return _lib._objc_msgSend_448( + _id, _lib._sel_sortUsingFunction_context_1, compare, context); + } + + void sortUsingSelector_(ffi.Pointer comparator) { + return _lib._objc_msgSend_7(_id, _lib._sel_sortUsingSelector_1, comparator); + } + + void insertObjects_atIndexes_(NSArray? objects, NSIndexSet? indexes) { + return _lib._objc_msgSend_449(_id, _lib._sel_insertObjects_atIndexes_1, + objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); + } + + void removeObjectsAtIndexes_(NSIndexSet? indexes) { + return _lib._objc_msgSend_450( + _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + } + + void replaceObjectsAtIndexes_withObjects_( + NSIndexSet? indexes, NSArray? objects) { + return _lib._objc_msgSend_451( + _id, + _lib._sel_replaceObjectsAtIndexes_withObjects_1, + indexes?._id ?? ffi.nullptr, + objects?._id ?? ffi.nullptr); + } + + void setObject_atIndexedSubscript_(NSObject obj, int idx) { + return _lib._objc_msgSend_438( + _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); + } + + void sortUsingComparator_(ObjCBlock6 cmptr) { + return _lib._objc_msgSend_452( + _id, _lib._sel_sortUsingComparator_1, cmptr._id); + } + + void sortWithOptions_usingComparator_(int opts, ObjCBlock6 cmptr) { + return _lib._objc_msgSend_453( + _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr._id); + } + + static NSMutableArray arrayWithCapacity_( + HidListenerBindingsSwift _lib, int numItems) { + final _ret = _lib._objc_msgSend_60( + _lib._class_NSMutableArray1, _lib._sel_arrayWithCapacity_1, numItems); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + static NSMutableArray arrayWithContentsOfFile_( + HidListenerBindingsSwift _lib, NSString? path) { + final _ret = _lib._objc_msgSend_454(_lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + static NSMutableArray arrayWithContentsOfURL_( + HidListenerBindingsSwift _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_455(_lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + NSMutableArray initWithContentsOfFile_(NSString? path) { + final _ret = _lib._objc_msgSend_454( + _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + NSMutableArray initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_455( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + void applyDifference_(NSObject? difference) { + return _lib._objc_msgSend_15( + _id, _lib._sel_applyDifference_1, difference?._id ?? ffi.nullptr); + } + + void sortUsingDescriptors_(NSArray? sortDescriptors) { + return _lib._objc_msgSend_441(_id, _lib._sel_sortUsingDescriptors_1, + sortDescriptors?._id ?? ffi.nullptr); + } + + void filterUsingPredicate_(NSPredicate? predicate) { + return _lib._objc_msgSend_456( + _id, _lib._sel_filterUsingPredicate_1, predicate?._id ?? ffi.nullptr); + } + + static NSMutableArray array(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_array1); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + static NSMutableArray arrayWithObject_( + HidListenerBindingsSwift _lib, NSObject anObject) { + final _ret = _lib._objc_msgSend_16( + _lib._class_NSMutableArray1, _lib._sel_arrayWithObject_1, anObject._id); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + static NSMutableArray arrayWithObjects_count_(HidListenerBindingsSwift _lib, + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableArray1, + _lib._sel_arrayWithObjects_count_1, objects, cnt); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + static NSMutableArray arrayWithObjects_( + HidListenerBindingsSwift _lib, NSObject firstObj) { + final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableArray1, + _lib._sel_arrayWithObjects_1, firstObj._id); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + static NSMutableArray arrayWithArray_( + HidListenerBindingsSwift _lib, NSArray? array) { + final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableArray1, + _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray arrayWithContentsOfURL_error_(HidListenerBindingsSwift _lib, + NSURL? url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_119( + _lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSMutableArray new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_new1); + return NSMutableArray._(_ret, _lib, retain: false, release: true); + } + + static NSMutableArray alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_alloc1); + return NSMutableArray._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSMutableArray1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSMutableArray1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSMutableArray1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableArray1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSMutableArray1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSMutableArray1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSMutableArray1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSMutableArray1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableArray1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSMutableOrderedSet extends NSOrderedSet { + NSMutableOrderedSet._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSMutableOrderedSet] that points to the same underlying object as [other]. + static NSMutableOrderedSet castFrom(T other) { + return NSMutableOrderedSet._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSMutableOrderedSet] that wraps the given raw object pointer. + static NSMutableOrderedSet castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMutableOrderedSet._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSMutableOrderedSet]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableOrderedSet1); + } + + void insertObject_atIndex_(NSObject object, int idx) { + return _lib._objc_msgSend_438( + _id, _lib._sel_insertObject_atIndex_1, object._id, idx); + } + + void removeObjectAtIndex_(int idx) { + return _lib._objc_msgSend_439(_id, _lib._sel_removeObjectAtIndex_1, idx); + } + + void replaceObjectAtIndex_withObject_(int idx, NSObject object) { + return _lib._objc_msgSend_440( + _id, _lib._sel_replaceObjectAtIndex_withObject_1, idx, object._id); + } + + @override + NSMutableOrderedSet initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableOrderedSet init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + NSMutableOrderedSet initWithCapacity_(int numItems) { + final _ret = + _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + void addObject_(NSObject object) { + return _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); + } + + void addObjects_count_( + ffi.Pointer> objects, int count) { + return _lib._objc_msgSend_467( + _id, _lib._sel_addObjects_count_1, objects, count); + } + + void addObjectsFromArray_(NSArray? array) { + return _lib._objc_msgSend_441( + _id, _lib._sel_addObjectsFromArray_1, array?._id ?? ffi.nullptr); + } + + void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { + return _lib._objc_msgSend_442( + _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); + } + + void moveObjectsAtIndexes_toIndex_(NSIndexSet? indexes, int idx) { + return _lib._objc_msgSend_468(_id, _lib._sel_moveObjectsAtIndexes_toIndex_1, + indexes?._id ?? ffi.nullptr, idx); + } + + void insertObjects_atIndexes_(NSArray? objects, NSIndexSet? indexes) { + return _lib._objc_msgSend_449(_id, _lib._sel_insertObjects_atIndexes_1, + objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); + } + + void setObject_atIndex_(NSObject obj, int idx) { + return _lib._objc_msgSend_438( + _id, _lib._sel_setObject_atIndex_1, obj._id, idx); + } + + void setObject_atIndexedSubscript_(NSObject obj, int idx) { + return _lib._objc_msgSend_438( + _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); + } + + void replaceObjectsInRange_withObjects_count_( + _NSRange range, ffi.Pointer> objects, int count) { + return _lib._objc_msgSend_469( + _id, + _lib._sel_replaceObjectsInRange_withObjects_count_1, + range, + objects, + count); + } + + void replaceObjectsAtIndexes_withObjects_( + NSIndexSet? indexes, NSArray? objects) { + return _lib._objc_msgSend_451( + _id, + _lib._sel_replaceObjectsAtIndexes_withObjects_1, + indexes?._id ?? ffi.nullptr, + objects?._id ?? ffi.nullptr); + } + + void removeObjectsInRange_(_NSRange range) { + return _lib._objc_msgSend_445(_id, _lib._sel_removeObjectsInRange_1, range); + } + + void removeObjectsAtIndexes_(NSIndexSet? indexes) { + return _lib._objc_msgSend_450( + _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + } + + void removeAllObjects() { + return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + } + + void removeObject_(NSObject object) { + return _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); + } + + void removeObjectsInArray_(NSArray? array) { + return _lib._objc_msgSend_441( + _id, _lib._sel_removeObjectsInArray_1, array?._id ?? ffi.nullptr); + } + + void intersectOrderedSet_(NSOrderedSet? other) { + return _lib._objc_msgSend_470( + _id, _lib._sel_intersectOrderedSet_1, other?._id ?? ffi.nullptr); + } + + void minusOrderedSet_(NSOrderedSet? other) { + return _lib._objc_msgSend_470( + _id, _lib._sel_minusOrderedSet_1, other?._id ?? ffi.nullptr); + } + + void unionOrderedSet_(NSOrderedSet? other) { + return _lib._objc_msgSend_470( + _id, _lib._sel_unionOrderedSet_1, other?._id ?? ffi.nullptr); + } + + void intersectSet_(NSSet? other) { + return _lib._objc_msgSend_471( + _id, _lib._sel_intersectSet_1, other?._id ?? ffi.nullptr); + } + + void minusSet_(NSSet? other) { + return _lib._objc_msgSend_471( + _id, _lib._sel_minusSet_1, other?._id ?? ffi.nullptr); + } + + void unionSet_(NSSet? other) { + return _lib._objc_msgSend_471( + _id, _lib._sel_unionSet_1, other?._id ?? ffi.nullptr); + } + + void sortUsingComparator_(ObjCBlock6 cmptr) { + return _lib._objc_msgSend_452( + _id, _lib._sel_sortUsingComparator_1, cmptr._id); + } + + void sortWithOptions_usingComparator_(int opts, ObjCBlock6 cmptr) { + return _lib._objc_msgSend_453( + _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr._id); + } + + void sortRange_options_usingComparator_( + _NSRange range, int opts, ObjCBlock6 cmptr) { + return _lib._objc_msgSend_472(_id, + _lib._sel_sortRange_options_usingComparator_1, range, opts, cmptr._id); + } + + static NSMutableOrderedSet orderedSetWithCapacity_( + HidListenerBindingsSwift _lib, int numItems) { + final _ret = _lib._objc_msgSend_60(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithCapacity_1, numItems); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + void applyDifference_(NSObject? difference) { + return _lib._objc_msgSend_15( + _id, _lib._sel_applyDifference_1, difference?._id ?? ffi.nullptr); + } + + void sortUsingDescriptors_(NSArray? sortDescriptors) { + return _lib._objc_msgSend_441(_id, _lib._sel_sortUsingDescriptors_1, + sortDescriptors?._id ?? ffi.nullptr); + } + + void filterUsingPredicate_(NSPredicate? p) { + return _lib._objc_msgSend_456( + _id, _lib._sel_filterUsingPredicate_1, p?._id ?? ffi.nullptr); + } + + static NSMutableOrderedSet orderedSet(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableOrderedSet1, _lib._sel_orderedSet1); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + static NSMutableOrderedSet orderedSetWithObject_( + HidListenerBindingsSwift _lib, NSObject object) { + final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithObject_1, object._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + static NSMutableOrderedSet orderedSetWithObjects_count_( + HidListenerBindingsSwift _lib, + ffi.Pointer> objects, + int cnt) { + final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithObjects_count_1, objects, cnt); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + static NSMutableOrderedSet orderedSetWithObjects_( + HidListenerBindingsSwift _lib, NSObject firstObj) { + final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithObjects_1, firstObj._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + static NSMutableOrderedSet orderedSetWithOrderedSet_( + HidListenerBindingsSwift _lib, NSOrderedSet? set) { + final _ret = _lib._objc_msgSend_459(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithOrderedSet_1, set?._id ?? ffi.nullptr); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + static NSMutableOrderedSet orderedSetWithOrderedSet_range_copyItems_( + HidListenerBindingsSwift _lib, + NSOrderedSet? set, + _NSRange range, + bool flag) { + final _ret = _lib._objc_msgSend_460( + _lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithOrderedSet_range_copyItems_1, + set?._id ?? ffi.nullptr, + range, + flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } + + static NSMutableOrderedSet orderedSetWithArray_( + HidListenerBindingsSwift _lib, NSArray? array) { + final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithArray_1, array?._id ?? ffi.nullptr); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + static NSMutableOrderedSet orderedSetWithArray_range_copyItems_( + HidListenerBindingsSwift _lib, + NSArray? array, + _NSRange range, + bool flag) { + final _ret = _lib._objc_msgSend_461( + _lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithArray_range_copyItems_1, + array?._id ?? ffi.nullptr, + range, + flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } + + static NSMutableOrderedSet orderedSetWithSet_( + HidListenerBindingsSwift _lib, NSSet? set) { + final _ret = _lib._objc_msgSend_382(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithSet_1, set?._id ?? ffi.nullptr); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + static NSMutableOrderedSet orderedSetWithSet_copyItems_( + HidListenerBindingsSwift _lib, NSSet? set, bool flag) { + final _ret = _lib._objc_msgSend_383(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } + + static NSMutableOrderedSet new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableOrderedSet1, _lib._sel_new1); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } + + static NSMutableOrderedSet alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableOrderedSet1, _lib._sel_alloc1); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSMutableOrderedSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSMutableOrderedSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSMutableOrderedSet1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableOrderedSet1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSMutableOrderedSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSMutableOrderedSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSMutableOrderedSet1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableOrderedSet1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableOrderedSet1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSOrderedSet extends NSObject { + NSOrderedSet._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSOrderedSet] that points to the same underlying object as [other]. + static NSOrderedSet castFrom(T other) { + return NSOrderedSet._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSOrderedSet] that wraps the given raw object pointer. + static NSOrderedSet castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSOrderedSet._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSOrderedSet]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSOrderedSet1); + } + + int get count { + return _lib._objc_msgSend_10(_id, _lib._sel_count1); + } + + NSObject objectAtIndex_(int idx) { + final _ret = _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndex_1, idx); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + int indexOfObject_(NSObject object) { + return _lib._objc_msgSend_69(_id, _lib._sel_indexOfObject_1, object._id); + } + + @override + NSOrderedSet init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + NSOrderedSet initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + NSOrderedSet initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + void getObjects_range_( + ffi.Pointer> objects, _NSRange range) { + return _lib._objc_msgSend_68( + _id, _lib._sel_getObjects_range_1, objects, range); + } + + NSArray objectsAtIndexes_(NSIndexSet? indexes) { + final _ret = _lib._objc_msgSend_105( + _id, _lib._sel_objectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSObject get firstObject { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_firstObject1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject get lastObject { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_lastObject1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + bool isEqualToOrderedSet_(NSOrderedSet? other) { + return _lib._objc_msgSend_457( + _id, _lib._sel_isEqualToOrderedSet_1, other?._id ?? ffi.nullptr); + } + + bool containsObject_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, object._id); + } + + bool intersectsOrderedSet_(NSOrderedSet? other) { + return _lib._objc_msgSend_457( + _id, _lib._sel_intersectsOrderedSet_1, other?._id ?? ffi.nullptr); + } + + bool intersectsSet_(NSSet? set) { + return _lib._objc_msgSend_374( + _id, _lib._sel_intersectsSet_1, set?._id ?? ffi.nullptr); + } + + bool isSubsetOfOrderedSet_(NSOrderedSet? other) { + return _lib._objc_msgSend_457( + _id, _lib._sel_isSubsetOfOrderedSet_1, other?._id ?? ffi.nullptr); + } + + bool isSubsetOfSet_(NSSet? set) { + return _lib._objc_msgSend_374( + _id, _lib._sel_isSubsetOfSet_1, set?._id ?? ffi.nullptr); + } + + NSObject objectAtIndexedSubscript_(int idx) { + final _ret = + _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndexedSubscript_1, idx); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSEnumerator objectEnumerator() { + final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); + } + + NSEnumerator reverseObjectEnumerator() { + final _ret = _lib._objc_msgSend_72(_id, _lib._sel_reverseObjectEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); + } + + NSOrderedSet? get reversedOrderedSet { + final _ret = _lib._objc_msgSend_458(_id, _lib._sel_reversedOrderedSet1); + return _ret.address == 0 + ? null + : NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + NSArray? get array { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_array1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSSet? get set1 { + final _ret = _lib._objc_msgSend_295(_id, _lib._sel_set1); + return _ret.address == 0 + ? null + : NSSet._(_ret, _lib, retain: true, release: true); + } + + void enumerateObjectsUsingBlock_(ObjCBlock4 block) { + return _lib._objc_msgSend_106( + _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); + } + + void enumerateObjectsWithOptions_usingBlock_(int opts, ObjCBlock4 block) { + return _lib._objc_msgSend_107(_id, + _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); + } + + void enumerateObjectsAtIndexes_options_usingBlock_( + NSIndexSet? s, int opts, ObjCBlock4 block) { + return _lib._objc_msgSend_108( + _id, + _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, + s?._id ?? ffi.nullptr, + opts, + block._id); + } + + int indexOfObjectPassingTest_(ObjCBlock5 predicate) { + return _lib._objc_msgSend_109( + _id, _lib._sel_indexOfObjectPassingTest_1, predicate._id); + } + + int indexOfObjectWithOptions_passingTest_(int opts, ObjCBlock5 predicate) { + return _lib._objc_msgSend_110(_id, + _lib._sel_indexOfObjectWithOptions_passingTest_1, opts, predicate._id); + } + + int indexOfObjectAtIndexes_options_passingTest_( + NSIndexSet? s, int opts, ObjCBlock5 predicate) { + return _lib._objc_msgSend_111( + _id, + _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, + s?._id ?? ffi.nullptr, + opts, + predicate._id); + } + + NSIndexSet indexesOfObjectsPassingTest_(ObjCBlock5 predicate) { + final _ret = _lib._objc_msgSend_112( + _id, _lib._sel_indexesOfObjectsPassingTest_1, predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + NSIndexSet indexesOfObjectsWithOptions_passingTest_( + int opts, ObjCBlock5 predicate) { + final _ret = _lib._objc_msgSend_113( + _id, + _lib._sel_indexesOfObjectsWithOptions_passingTest_1, + opts, + predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_( + NSIndexSet? s, int opts, ObjCBlock5 predicate) { + final _ret = _lib._objc_msgSend_114( + _id, + _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, + s?._id ?? ffi.nullptr, + opts, + predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + int indexOfObject_inSortedRange_options_usingComparator_( + NSObject object, _NSRange range, int opts, ObjCBlock6 cmp) { + return _lib._objc_msgSend_117( + _id, + _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, + object._id, + range, + opts, + cmp._id); + } + + NSArray sortedArrayUsingComparator_(ObjCBlock6 cmptr) { + final _ret = _lib._objc_msgSend_115( + _id, _lib._sel_sortedArrayUsingComparator_1, cmptr._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray sortedArrayWithOptions_usingComparator_(int opts, ObjCBlock6 cmptr) { + final _ret = _lib._objc_msgSend_116(_id, + _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString? get description { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString descriptionWithLocale_(NSObject locale) { + final _ret = _lib._objc_msgSend_65( + _id, _lib._sel_descriptionWithLocale_1, locale._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString descriptionWithLocale_indent_(NSObject locale, int level) { + final _ret = _lib._objc_msgSend_66( + _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSOrderedSet orderedSet(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_orderedSet1); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + static NSOrderedSet orderedSetWithObject_( + HidListenerBindingsSwift _lib, NSObject object) { + final _ret = _lib._objc_msgSend_16(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithObject_1, object._id); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + static NSOrderedSet orderedSetWithObjects_count_( + HidListenerBindingsSwift _lib, + ffi.Pointer> objects, + int cnt) { + final _ret = _lib._objc_msgSend_61(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithObjects_count_1, objects, cnt); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + static NSOrderedSet orderedSetWithObjects_( + HidListenerBindingsSwift _lib, NSObject firstObj) { + final _ret = _lib._objc_msgSend_16(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithObjects_1, firstObj._id); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + static NSOrderedSet orderedSetWithOrderedSet_( + HidListenerBindingsSwift _lib, NSOrderedSet? set) { + final _ret = _lib._objc_msgSend_459(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithOrderedSet_1, set?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + static NSOrderedSet orderedSetWithOrderedSet_range_copyItems_( + HidListenerBindingsSwift _lib, + NSOrderedSet? set, + _NSRange range, + bool flag) { + final _ret = _lib._objc_msgSend_460( + _lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithOrderedSet_range_copyItems_1, + set?._id ?? ffi.nullptr, + range, + flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } + + static NSOrderedSet orderedSetWithArray_( + HidListenerBindingsSwift _lib, NSArray? array) { + final _ret = _lib._objc_msgSend_67(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithArray_1, array?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + static NSOrderedSet orderedSetWithArray_range_copyItems_( + HidListenerBindingsSwift _lib, + NSArray? array, + _NSRange range, + bool flag) { + final _ret = _lib._objc_msgSend_461( + _lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithArray_range_copyItems_1, + array?._id ?? ffi.nullptr, + range, + flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } + + static NSOrderedSet orderedSetWithSet_( + HidListenerBindingsSwift _lib, NSSet? set) { + final _ret = _lib._objc_msgSend_382(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithSet_1, set?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + static NSOrderedSet orderedSetWithSet_copyItems_( + HidListenerBindingsSwift _lib, NSSet? set, bool flag) { + final _ret = _lib._objc_msgSend_383(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } + + NSOrderedSet initWithObject_(NSObject object) { + final _ret = + _lib._objc_msgSend_16(_id, _lib._sel_initWithObject_1, object._id); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + NSOrderedSet initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + NSOrderedSet initWithOrderedSet_(NSOrderedSet? set) { + final _ret = _lib._objc_msgSend_459( + _id, _lib._sel_initWithOrderedSet_1, set?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + NSOrderedSet initWithOrderedSet_copyItems_(NSOrderedSet? set, bool flag) { + final _ret = _lib._objc_msgSend_462( + _id, + _lib._sel_initWithOrderedSet_copyItems_1, + set?._id ?? ffi.nullptr, + flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } + + NSOrderedSet initWithOrderedSet_range_copyItems_( + NSOrderedSet? set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_460( + _id, + _lib._sel_initWithOrderedSet_range_copyItems_1, + set?._id ?? ffi.nullptr, + range, + flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } + + NSOrderedSet initWithArray_(NSArray? array) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + NSOrderedSet initWithArray_copyItems_(NSArray? set, bool flag) { + final _ret = _lib._objc_msgSend_118(_id, + _lib._sel_initWithArray_copyItems_1, set?._id ?? ffi.nullptr, flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } + + NSOrderedSet initWithArray_range_copyItems_( + NSArray? set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_461( + _id, + _lib._sel_initWithArray_range_copyItems_1, + set?._id ?? ffi.nullptr, + range, + flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } + + NSOrderedSet initWithSet_(NSSet? set) { + final _ret = _lib._objc_msgSend_382( + _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + NSOrderedSet initWithSet_copyItems_(NSSet? set, bool flag) { + final _ret = _lib._objc_msgSend_383( + _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } + + NSObject differenceFromOrderedSet_withOptions_usingEquivalenceTest_( + NSOrderedSet? other, int options, ObjCBlock7 block) { + final _ret = _lib._objc_msgSend_463( + _id, + _lib._sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_1, + other?._id ?? ffi.nullptr, + options, + block._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject differenceFromOrderedSet_withOptions_( + NSOrderedSet? other, int options) { + final _ret = _lib._objc_msgSend_464( + _id, + _lib._sel_differenceFromOrderedSet_withOptions_1, + other?._id ?? ffi.nullptr, + options); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject differenceFromOrderedSet_(NSOrderedSet? other) { + final _ret = _lib._objc_msgSend_459( + _id, _lib._sel_differenceFromOrderedSet_1, other?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSOrderedSet orderedSetByApplyingDifference_(NSObject? difference) { + final _ret = _lib._objc_msgSend_465( + _id, + _lib._sel_orderedSetByApplyingDifference_1, + difference?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSObject valueForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + @override + void setValue_forKey_(NSObject value, NSString? key) { + return _lib._objc_msgSend_126( + _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + } + + @override + void addObserver_forKeyPath_options_context_(NSObject? observer, + NSString? keyPath, int options, ffi.Pointer context) { + return _lib._objc_msgSend_130( + _id, + _lib._sel_addObserver_forKeyPath_options_context_1, + observer?._id ?? ffi.nullptr, + keyPath?._id ?? ffi.nullptr, + options, + context); + } + + @override + void removeObserver_forKeyPath_context_( + NSObject? observer, NSString? keyPath, ffi.Pointer context) { + return _lib._objc_msgSend_131( + _id, + _lib._sel_removeObserver_forKeyPath_context_1, + observer?._id ?? ffi.nullptr, + keyPath?._id ?? ffi.nullptr, + context); + } + + @override + void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { + return _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, + observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); + } + + NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { + final _ret = _lib._objc_msgSend_63( + _id, + _lib._sel_sortedArrayUsingDescriptors_1, + sortDescriptors?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSOrderedSet filteredOrderedSetUsingPredicate_(NSPredicate? p) { + final _ret = _lib._objc_msgSend_466(_id, + _lib._sel_filteredOrderedSetUsingPredicate_1, p?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + static NSOrderedSet new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_new1); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } + + static NSOrderedSet alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_alloc1); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSOrderedSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSOrderedSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSOrderedSet1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSOrderedSet1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSOrderedSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSOrderedSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSOrderedSet1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSOrderedSet1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSOrderedSet1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSMutableSet extends NSSet { + NSMutableSet._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSMutableSet] that points to the same underlying object as [other]. + static NSMutableSet castFrom(T other) { + return NSMutableSet._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSMutableSet] that wraps the given raw object pointer. + static NSMutableSet castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMutableSet._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSMutableSet]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSMutableSet1); + } + + void addObject_(NSObject object) { + return _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); + } + + void removeObject_(NSObject object) { + return _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); + } + + @override + NSMutableSet initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSMutableSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableSet init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableSet._(_ret, _lib, retain: true, release: true); + } + + NSMutableSet initWithCapacity_(int numItems) { + final _ret = + _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); + return NSMutableSet._(_ret, _lib, retain: true, release: true); + } + + void addObjectsFromArray_(NSArray? array) { + return _lib._objc_msgSend_441( + _id, _lib._sel_addObjectsFromArray_1, array?._id ?? ffi.nullptr); + } + + void intersectSet_(NSSet? otherSet) { + return _lib._objc_msgSend_471( + _id, _lib._sel_intersectSet_1, otherSet?._id ?? ffi.nullptr); + } + + void minusSet_(NSSet? otherSet) { + return _lib._objc_msgSend_471( + _id, _lib._sel_minusSet_1, otherSet?._id ?? ffi.nullptr); + } + + void removeAllObjects() { + return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + } + + void unionSet_(NSSet? otherSet) { + return _lib._objc_msgSend_471( + _id, _lib._sel_unionSet_1, otherSet?._id ?? ffi.nullptr); + } + + void setSet_(NSSet? otherSet) { + return _lib._objc_msgSend_471( + _id, _lib._sel_setSet_1, otherSet?._id ?? ffi.nullptr); + } + + static NSMutableSet setWithCapacity_( + HidListenerBindingsSwift _lib, int numItems) { + final _ret = _lib._objc_msgSend_60( + _lib._class_NSMutableSet1, _lib._sel_setWithCapacity_1, numItems); + return NSMutableSet._(_ret, _lib, retain: true, release: true); + } + + void filterUsingPredicate_(NSPredicate? predicate) { + return _lib._objc_msgSend_456( + _id, _lib._sel_filterUsingPredicate_1, predicate?._id ?? ffi.nullptr); + } + + static NSMutableSet set1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_set1); + return NSMutableSet._(_ret, _lib, retain: true, release: true); + } + + static NSMutableSet setWithObject_( + HidListenerBindingsSwift _lib, NSObject object) { + final _ret = _lib._objc_msgSend_16( + _lib._class_NSMutableSet1, _lib._sel_setWithObject_1, object._id); + return NSMutableSet._(_ret, _lib, retain: true, release: true); + } + + static NSMutableSet setWithObjects_count_(HidListenerBindingsSwift _lib, + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableSet1, + _lib._sel_setWithObjects_count_1, objects, cnt); + return NSMutableSet._(_ret, _lib, retain: true, release: true); + } + + static NSMutableSet setWithObjects_( + HidListenerBindingsSwift _lib, NSObject firstObj) { + final _ret = _lib._objc_msgSend_16( + _lib._class_NSMutableSet1, _lib._sel_setWithObjects_1, firstObj._id); + return NSMutableSet._(_ret, _lib, retain: true, release: true); + } + + static NSMutableSet setWithSet_(HidListenerBindingsSwift _lib, NSSet? set) { + final _ret = _lib._objc_msgSend_382(_lib._class_NSMutableSet1, + _lib._sel_setWithSet_1, set?._id ?? ffi.nullptr); + return NSMutableSet._(_ret, _lib, retain: true, release: true); + } + + static NSMutableSet setWithArray_( + HidListenerBindingsSwift _lib, NSArray? array) { + final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableSet1, + _lib._sel_setWithArray_1, array?._id ?? ffi.nullptr); + return NSMutableSet._(_ret, _lib, retain: true, release: true); + } + + static NSMutableSet new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_new1); + return NSMutableSet._(_ret, _lib, retain: false, release: true); + } + + static NSMutableSet alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_alloc1); + return NSMutableSet._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSMutableSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSMutableSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableSet1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableSet1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSMutableSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSMutableSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSMutableSet1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSMutableSet1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableSet1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSKeyValueChange { + static const int NSKeyValueChangeSetting = 1; + static const int NSKeyValueChangeInsertion = 2; + static const int NSKeyValueChangeRemoval = 3; + static const int NSKeyValueChangeReplacement = 4; +} + +abstract class NSKeyValueSetMutationKind { + static const int NSKeyValueUnionSetMutation = 1; + static const int NSKeyValueMinusSetMutation = 2; + static const int NSKeyValueIntersectSetMutation = 3; + static const int NSKeyValueSetSetMutation = 4; +} + +class NSKeyedArchiver extends NSCoder { + NSKeyedArchiver._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSKeyedArchiver] that points to the same underlying object as [other]. + static NSKeyedArchiver castFrom(T other) { + return NSKeyedArchiver._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSKeyedArchiver] that wraps the given raw object pointer. + static NSKeyedArchiver castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSKeyedArchiver._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSKeyedArchiver]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSKeyedArchiver1); + } + + NSKeyedArchiver initRequiringSecureCoding_(bool requiresSecureCoding) { + final _ret = _lib._objc_msgSend_481( + _id, _lib._sel_initRequiringSecureCoding_1, requiresSecureCoding); + return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); + } + + static NSData archivedDataWithRootObject_requiringSecureCoding_error_( + HidListenerBindingsSwift _lib, + NSObject object, + bool requiresSecureCoding, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_482( + _lib._class_NSKeyedArchiver1, + _lib._sel_archivedDataWithRootObject_requiringSecureCoding_error_1, + object._id, + requiresSecureCoding, + error); + return NSData._(_ret, _lib, retain: true, release: true); + } + + NSKeyedArchiver init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); + } + + NSKeyedArchiver initForWritingWithMutableData_(NSMutableData? data) { + final _ret = _lib._objc_msgSend_487(_id, + _lib._sel_initForWritingWithMutableData_1, data?._id ?? ffi.nullptr); + return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); + } + + static NSData archivedDataWithRootObject_( + HidListenerBindingsSwift _lib, NSObject rootObject) { + final _ret = _lib._objc_msgSend_488(_lib._class_NSKeyedArchiver1, + _lib._sel_archivedDataWithRootObject_1, rootObject._id); + return NSData._(_ret, _lib, retain: true, release: true); + } + + static bool archiveRootObject_toFile_( + HidListenerBindingsSwift _lib, NSObject rootObject, NSString? path) { + return _lib._objc_msgSend_240( + _lib._class_NSKeyedArchiver1, + _lib._sel_archiveRootObject_toFile_1, + rootObject._id, + path?._id ?? ffi.nullptr); + } + + NSObject? get delegate { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + set delegate(NSObject? value) { + _lib._objc_msgSend_387( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + } + + int get outputFormat { + return _lib._objc_msgSend_489(_id, _lib._sel_outputFormat1); + } + + set outputFormat(int value) { + _lib._objc_msgSend_490(_id, _lib._sel_setOutputFormat_1, value); + } + + NSData? get encodedData { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_encodedData1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + void finishEncoding() { + return _lib._objc_msgSend_1(_id, _lib._sel_finishEncoding1); + } + + static void setClassName_forClass_( + HidListenerBindingsSwift _lib, NSString? codedName, NSObject cls) { + return _lib._objc_msgSend_491( + _lib._class_NSKeyedArchiver1, + _lib._sel_setClassName_forClass_1, + codedName?._id ?? ffi.nullptr, + cls._id); + } + + static NSString classNameForClass_( + HidListenerBindingsSwift _lib, NSObject cls) { + final _ret = _lib._objc_msgSend_65( + _lib._class_NSKeyedArchiver1, _lib._sel_classNameForClass_1, cls._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + @override + void encodeObject_forKey_(NSObject object, NSString? key) { + return _lib._objc_msgSend_126(_id, _lib._sel_encodeObject_forKey_1, + object._id, key?._id ?? ffi.nullptr); + } + + @override + void encodeConditionalObject_forKey_(NSObject object, NSString? key) { + return _lib._objc_msgSend_126( + _id, + _lib._sel_encodeConditionalObject_forKey_1, + object._id, + key?._id ?? ffi.nullptr); + } + + @override + void encodeBool_forKey_(bool value, NSString? key) { + return _lib._objc_msgSend_272( + _id, _lib._sel_encodeBool_forKey_1, value, key?._id ?? ffi.nullptr); + } + + @override + void encodeInt_forKey_(int value, NSString? key) { + return _lib._objc_msgSend_273( + _id, _lib._sel_encodeInt_forKey_1, value, key?._id ?? ffi.nullptr); + } + + @override + void encodeInt32_forKey_(int value, NSString? key) { + return _lib._objc_msgSend_274( + _id, _lib._sel_encodeInt32_forKey_1, value, key?._id ?? ffi.nullptr); + } + + @override + void encodeInt64_forKey_(int value, NSString? key) { + return _lib._objc_msgSend_275( + _id, _lib._sel_encodeInt64_forKey_1, value, key?._id ?? ffi.nullptr); + } + + @override + void encodeFloat_forKey_(double value, NSString? key) { + return _lib._objc_msgSend_276( + _id, _lib._sel_encodeFloat_forKey_1, value, key?._id ?? ffi.nullptr); + } + + @override + void encodeDouble_forKey_(double value, NSString? key) { + return _lib._objc_msgSend_277( + _id, _lib._sel_encodeDouble_forKey_1, value, key?._id ?? ffi.nullptr); + } + + @override + void encodeBytes_length_forKey_( + ffi.Pointer bytes, int length, NSString? key) { + return _lib._objc_msgSend_278(_id, _lib._sel_encodeBytes_length_forKey_1, + bytes, length, key?._id ?? ffi.nullptr); + } + + @override + bool get requiresSecureCoding { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresSecureCoding1); + } + + set requiresSecureCoding(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setRequiresSecureCoding_1, value); + } + + static NSKeyedArchiver new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSKeyedArchiver1, _lib._sel_new1); + return NSKeyedArchiver._(_ret, _lib, retain: false, release: true); + } + + static NSKeyedArchiver alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSKeyedArchiver1, _lib._sel_alloc1); + return NSKeyedArchiver._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSKeyedArchiver1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSKeyedArchiver1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSKeyedArchiver1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSKeyedArchiver1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSKeyedArchiver1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSKeyedArchiver1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSKeyedArchiver1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSKeyedArchiver1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSKeyedArchiver1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSMutableData extends NSData { + NSMutableData._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSMutableData] that points to the same underlying object as [other]. + static NSMutableData castFrom(T other) { + return NSMutableData._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSMutableData] that wraps the given raw object pointer. + static NSMutableData castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMutableData._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSMutableData]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSMutableData1); + } + + ffi.Pointer get mutableBytes { + return _lib._objc_msgSend_19(_id, _lib._sel_mutableBytes1); + } + + @override + int get length { + return _lib._objc_msgSend_10(_id, _lib._sel_length1); + } + + set length(int value) { + _lib._objc_msgSend_483(_id, _lib._sel_setLength_1, value); + } + + void appendBytes_length_(ffi.Pointer bytes, int length) { + return _lib._objc_msgSend_21( + _id, _lib._sel_appendBytes_length_1, bytes, length); + } + + void appendData_(NSData? other) { + return _lib._objc_msgSend_263( + _id, _lib._sel_appendData_1, other?._id ?? ffi.nullptr); + } + + void increaseLengthBy_(int extraLength) { + return _lib._objc_msgSend_439( + _id, _lib._sel_increaseLengthBy_1, extraLength); + } + + void replaceBytesInRange_withBytes_( + _NSRange range, ffi.Pointer bytes) { + return _lib._objc_msgSend_484( + _id, _lib._sel_replaceBytesInRange_withBytes_1, range, bytes); + } + + void resetBytesInRange_(_NSRange range) { + return _lib._objc_msgSend_445(_id, _lib._sel_resetBytesInRange_1, range); + } + + void setData_(NSData? data) { + return _lib._objc_msgSend_263( + _id, _lib._sel_setData_1, data?._id ?? ffi.nullptr); + } + + void replaceBytesInRange_withBytes_length_(_NSRange range, + ffi.Pointer replacementBytes, int replacementLength) { + return _lib._objc_msgSend_485( + _id, + _lib._sel_replaceBytesInRange_withBytes_length_1, + range, + replacementBytes, + replacementLength); + } + + static NSMutableData dataWithCapacity_( + HidListenerBindingsSwift _lib, int aNumItems) { + final _ret = _lib._objc_msgSend_60( + _lib._class_NSMutableData1, _lib._sel_dataWithCapacity_1, aNumItems); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSMutableData dataWithLength_( + HidListenerBindingsSwift _lib, int length) { + final _ret = _lib._objc_msgSend_60( + _lib._class_NSMutableData1, _lib._sel_dataWithLength_1, length); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + NSMutableData initWithCapacity_(int capacity) { + final _ret = + _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, capacity); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + NSMutableData initWithLength_(int length) { + final _ret = _lib._objc_msgSend_60(_id, _lib._sel_initWithLength_1, length); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + bool decompressUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + return _lib._objc_msgSend_486( + _id, _lib._sel_decompressUsingAlgorithm_error_1, algorithm, error); + } + + bool compressUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + return _lib._objc_msgSend_486( + _id, _lib._sel_compressUsingAlgorithm_error_1, algorithm, error); + } + + static NSMutableData data(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_data1); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSMutableData dataWithBytes_length_( + HidListenerBindingsSwift _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_252(_lib._class_NSMutableData1, + _lib._sel_dataWithBytes_length_1, bytes, length); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSMutableData dataWithBytesNoCopy_length_( + HidListenerBindingsSwift _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_252(_lib._class_NSMutableData1, + _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); + return NSMutableData._(_ret, _lib, retain: false, release: true); + } + + static NSMutableData dataWithBytesNoCopy_length_freeWhenDone_( + HidListenerBindingsSwift _lib, + ffi.Pointer bytes, + int length, + bool b) { + final _ret = _lib._objc_msgSend_253(_lib._class_NSMutableData1, + _lib._sel_dataWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); + return NSMutableData._(_ret, _lib, retain: false, release: true); + } + + static NSMutableData dataWithContentsOfFile_options_error_( + HidListenerBindingsSwift _lib, + NSString? path, + int readOptionsMask, + ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_254( + _lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfFile_options_error_1, + path?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSMutableData dataWithContentsOfURL_options_error_( + HidListenerBindingsSwift _lib, + NSURL? url, + int readOptionsMask, + ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_255( + _lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfURL_options_error_1, + url?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSMutableData dataWithContentsOfFile_( + HidListenerBindingsSwift _lib, NSString? path) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSMutableData dataWithContentsOfURL_( + HidListenerBindingsSwift _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSMutableData dataWithData_( + HidListenerBindingsSwift _lib, NSData? data) { + final _ret = _lib._objc_msgSend_257(_lib._class_NSMutableData1, + _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSObject dataWithContentsOfMappedFile_( + HidListenerBindingsSwift _lib, NSString? path) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSMutableData new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_new1); + return NSMutableData._(_ret, _lib, retain: false, release: true); + } + + static NSMutableData alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_alloc1); + return NSMutableData._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSMutableData1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSMutableData1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableData1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableData1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSMutableData1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSMutableData1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSMutableData1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSMutableData1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableData1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSPropertyListFormat { + static const int NSPropertyListOpenStepFormat = 1; + static const int NSPropertyListXMLFormat_v1_0 = 100; + static const int NSPropertyListBinaryFormat_v1_0 = 200; +} + +class NSThread extends NSObject { + NSThread._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSThread] that points to the same underlying object as [other]. + static NSThread castFrom(T other) { + return NSThread._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSThread] that wraps the given raw object pointer. + static NSThread castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSThread._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSThread]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSThread1); + } + + static NSThread? getCurrentThread(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_496(_lib._class_NSThread1, _lib._sel_currentThread1); + return _ret.address == 0 + ? null + : NSThread._(_ret, _lib, retain: true, release: true); + } + + static void detachNewThreadWithBlock_( + HidListenerBindingsSwift _lib, ObjCBlock21 block) { + return _lib._objc_msgSend_497( + _lib._class_NSThread1, _lib._sel_detachNewThreadWithBlock_1, block._id); + } + + static void detachNewThreadSelector_toTarget_withObject_( + HidListenerBindingsSwift _lib, + ffi.Pointer selector, + NSObject target, + NSObject argument) { + return _lib._objc_msgSend_498( + _lib._class_NSThread1, + _lib._sel_detachNewThreadSelector_toTarget_withObject_1, + selector, + target._id, + argument._id); + } + + static bool isMultiThreaded(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSThread1, _lib._sel_isMultiThreaded1); + } + + NSMutableDictionary? get threadDictionary { + final _ret = _lib._objc_msgSend_503(_id, _lib._sel_threadDictionary1); + return _ret.address == 0 + ? null + : NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + static void sleepUntilDate_(HidListenerBindingsSwift _lib, NSDate? date) { + return _lib._objc_msgSend_504(_lib._class_NSThread1, + _lib._sel_sleepUntilDate_1, date?._id ?? ffi.nullptr); + } + + static void sleepForTimeInterval_(HidListenerBindingsSwift _lib, double ti) { + return _lib._objc_msgSend_505( + _lib._class_NSThread1, _lib._sel_sleepForTimeInterval_1, ti); + } + + static void exit(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_1(_lib._class_NSThread1, _lib._sel_exit1); + } + + double get threadPriority { + return _lib._objc_msgSend_155(_id, _lib._sel_threadPriority1); + } + + set threadPriority(double value) { + _lib._objc_msgSend_506(_id, _lib._sel_setThreadPriority_1, value); + } + + int get qualityOfService { + return _lib._objc_msgSend_507(_id, _lib._sel_qualityOfService1); + } + + set qualityOfService(int value) { + _lib._objc_msgSend_508(_id, _lib._sel_setQualityOfService_1, value); + } + + static NSArray? getCallStackReturnAddresses(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSThread1, _lib._sel_callStackReturnAddresses1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray? getCallStackSymbols(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSThread1, _lib._sel_callStackSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString? get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set name(NSString? value) { + _lib._objc_msgSend_509(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + } + + int get stackSize { + return _lib._objc_msgSend_10(_id, _lib._sel_stackSize1); + } + + set stackSize(int value) { + _lib._objc_msgSend_483(_id, _lib._sel_setStackSize_1, value); + } + + bool get isMainThread { + return _lib._objc_msgSend_12(_id, _lib._sel_isMainThread1); + } + + static NSThread? getMainThread(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_496(_lib._class_NSThread1, _lib._sel_mainThread1); + return _ret.address == 0 + ? null + : NSThread._(_ret, _lib, retain: true, release: true); + } + + @override + NSThread init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSThread._(_ret, _lib, retain: true, release: true); + } + + NSThread initWithTarget_selector_object_( + NSObject target, ffi.Pointer selector, NSObject argument) { + final _ret = _lib._objc_msgSend_510( + _id, + _lib._sel_initWithTarget_selector_object_1, + target._id, + selector, + argument._id); + return NSThread._(_ret, _lib, retain: true, release: true); + } + + NSThread initWithBlock_(ObjCBlock21 block) { + final _ret = + _lib._objc_msgSend_511(_id, _lib._sel_initWithBlock_1, block._id); + return NSThread._(_ret, _lib, retain: true, release: true); + } + + bool get executing { + return _lib._objc_msgSend_12(_id, _lib._sel_isExecuting1); + } + + bool get finished { + return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); + } + + bool get cancelled { + return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); + } + + void cancel() { + return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + } + + void start() { + return _lib._objc_msgSend_1(_id, _lib._sel_start1); + } + + void main() { + return _lib._objc_msgSend_1(_id, _lib._sel_main1); + } + + static NSThread new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSThread1, _lib._sel_new1); + return NSThread._(_ret, _lib, retain: false, release: true); + } + + static NSThread alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSThread1, _lib._sel_alloc1); + return NSThread._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSThread1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSThread1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSThread1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSThread1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSThread1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSThread1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSThread1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSThread1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSThread1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +void _ObjCBlock21_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block) { + return block.ref.target + .cast>() + .asFunction()(); +} + +final _ObjCBlock21_closureRegistry = {}; +int _ObjCBlock21_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock21_registerClosure(Function fn) { + final id = ++_ObjCBlock21_closureRegistryIndex; + _ObjCBlock21_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock21_closureTrampoline(ffi.Pointer<_ObjCBlock> block) { + return _ObjCBlock21_closureRegistry[block.ref.target.address]!(); +} + +class ObjCBlock21 extends _ObjCBlockBase { + ObjCBlock21._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock21.fromFunctionPointer(HidListenerBindingsSwift lib, + ffi.Pointer> ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( + _ObjCBlock21_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock21.fromFunction(HidListenerBindingsSwift lib, void Function() fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( + _ObjCBlock21_closureTrampoline) + .cast(), + _ObjCBlock21_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call() { + return _id.ref.invoke + .cast< + ffi + .NativeFunction block)>>() + .asFunction block)>()(_id); + } +} + +class NSMutableDictionary extends NSDictionary { + NSMutableDictionary._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSMutableDictionary] that points to the same underlying object as [other]. + static NSMutableDictionary castFrom(T other) { + return NSMutableDictionary._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSMutableDictionary] that wraps the given raw object pointer. + static NSMutableDictionary castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMutableDictionary._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSMutableDictionary]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableDictionary1); + } + + void removeObjectForKey_(NSObject aKey) { + return _lib._objc_msgSend_15(_id, _lib._sel_removeObjectForKey_1, aKey._id); + } + + void setObject_forKey_(NSObject anObject, NSObject? aKey) { + return _lib._objc_msgSend_499(_id, _lib._sel_setObject_forKey_1, + anObject._id, aKey?._id ?? ffi.nullptr); + } + + @override + NSMutableDictionary init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + NSMutableDictionary initWithCapacity_(int numItems) { + final _ret = + _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableDictionary initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + void addEntriesFromDictionary_(NSDictionary? otherDictionary) { + return _lib._objc_msgSend_476(_id, _lib._sel_addEntriesFromDictionary_1, + otherDictionary?._id ?? ffi.nullptr); + } + + void removeAllObjects() { + return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + } + + void removeObjectsForKeys_(NSArray? keyArray) { + return _lib._objc_msgSend_441( + _id, _lib._sel_removeObjectsForKeys_1, keyArray?._id ?? ffi.nullptr); + } + + void setDictionary_(NSDictionary? otherDictionary) { + return _lib._objc_msgSend_476( + _id, _lib._sel_setDictionary_1, otherDictionary?._id ?? ffi.nullptr); + } + + void setObject_forKeyedSubscript_(NSObject obj, NSObject? key) { + return _lib._objc_msgSend_499(_id, _lib._sel_setObject_forKeyedSubscript_1, + obj._id, key?._id ?? ffi.nullptr); + } + + static NSMutableDictionary dictionaryWithCapacity_( + HidListenerBindingsSwift _lib, int numItems) { + final _ret = _lib._objc_msgSend_60(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithCapacity_1, numItems); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSMutableDictionary dictionaryWithContentsOfFile_( + HidListenerBindingsSwift _lib, NSString? path) { + final _ret = _lib._objc_msgSend_500(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSMutableDictionary dictionaryWithContentsOfURL_( + HidListenerBindingsSwift _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_501(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + NSMutableDictionary initWithContentsOfFile_(NSString? path) { + final _ret = _lib._objc_msgSend_500( + _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + NSMutableDictionary initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_501( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSMutableDictionary dictionaryWithSharedKeySet_( + HidListenerBindingsSwift _lib, NSObject keyset) { + final _ret = _lib._objc_msgSend_502(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithSharedKeySet_1, keyset._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + void setValue_forKey_(NSObject value, NSString? key) { + return _lib._objc_msgSend_126( + _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + } + + static NSMutableDictionary dictionary(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableDictionary1, _lib._sel_dictionary1); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSMutableDictionary dictionaryWithObject_forKey_( + HidListenerBindingsSwift _lib, NSObject object, NSObject? key) { + final _ret = _lib._objc_msgSend_148( + _lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObject_forKey_1, + object._id, + key?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSMutableDictionary dictionaryWithObjects_forKeys_count_( + HidListenerBindingsSwift _lib, + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt) { + final _ret = _lib._objc_msgSend_137(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSMutableDictionary dictionaryWithObjectsAndKeys_( + HidListenerBindingsSwift _lib, NSObject firstObject) { + final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObjectsAndKeys_1, firstObject._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSMutableDictionary dictionaryWithDictionary_( + HidListenerBindingsSwift _lib, NSDictionary? dict) { + final _ret = _lib._objc_msgSend_149(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSMutableDictionary dictionaryWithObjects_forKeys_( + HidListenerBindingsSwift _lib, NSArray? objects, NSArray? keys) { + final _ret = _lib._objc_msgSend_150( + _lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_1, + objects?._id ?? ffi.nullptr, + keys?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSDictionary dictionaryWithContentsOfURL_error_( + HidListenerBindingsSwift _lib, + NSURL? url, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_152( + _lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSObject sharedKeySetForKeys_( + HidListenerBindingsSwift _lib, NSArray? keys) { + final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableDictionary1, + _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSMutableDictionary new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableDictionary1, _lib._sel_new1); + return NSMutableDictionary._(_ret, _lib, retain: false, release: true); + } + + static NSMutableDictionary alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableDictionary1, _lib._sel_alloc1); + return NSMutableDictionary._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSMutableDictionary1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSMutableDictionary1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSMutableDictionary1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableDictionary1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSMutableDictionary1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSMutableDictionary1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSMutableDictionary1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableDictionary1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableDictionary1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSQualityOfService { + static const int NSQualityOfServiceUserInteractive = 33; + static const int NSQualityOfServiceUserInitiated = 25; + static const int NSQualityOfServiceUtility = 17; + static const int NSQualityOfServiceBackground = 9; + static const int NSQualityOfServiceDefault = -1; +} + +class NSArchiver extends NSCoder { + NSArchiver._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSArchiver] that points to the same underlying object as [other]. + static NSArchiver castFrom(T other) { + return NSArchiver._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSArchiver] that wraps the given raw object pointer. + static NSArchiver castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSArchiver._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSArchiver]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSArchiver1); + } + + NSArchiver initForWritingWithMutableData_(NSMutableData? mdata) { + final _ret = _lib._objc_msgSend_487(_id, + _lib._sel_initForWritingWithMutableData_1, mdata?._id ?? ffi.nullptr); + return NSArchiver._(_ret, _lib, retain: true, release: true); + } + + NSMutableData? get archiverData { + final _ret = _lib._objc_msgSend_514(_id, _lib._sel_archiverData1); + return _ret.address == 0 + ? null + : NSMutableData._(_ret, _lib, retain: true, release: true); + } + + @override + void encodeRootObject_(NSObject rootObject) { + return _lib._objc_msgSend_15( + _id, _lib._sel_encodeRootObject_1, rootObject._id); + } + + @override + void encodeConditionalObject_(NSObject object) { + return _lib._objc_msgSend_15( + _id, _lib._sel_encodeConditionalObject_1, object._id); + } + + static NSData archivedDataWithRootObject_( + HidListenerBindingsSwift _lib, NSObject rootObject) { + final _ret = _lib._objc_msgSend_488(_lib._class_NSArchiver1, + _lib._sel_archivedDataWithRootObject_1, rootObject._id); + return NSData._(_ret, _lib, retain: true, release: true); + } + + static bool archiveRootObject_toFile_( + HidListenerBindingsSwift _lib, NSObject rootObject, NSString? path) { + return _lib._objc_msgSend_240( + _lib._class_NSArchiver1, + _lib._sel_archiveRootObject_toFile_1, + rootObject._id, + path?._id ?? ffi.nullptr); + } + + void encodeClassName_intoClassName_( + NSString? trueName, NSString? inArchiveName) { + return _lib._objc_msgSend_515( + _id, + _lib._sel_encodeClassName_intoClassName_1, + trueName?._id ?? ffi.nullptr, + inArchiveName?._id ?? ffi.nullptr); + } + + NSString classNameEncodedForTrueClassName_(NSString? trueName) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_classNameEncodedForTrueClassName_1, + trueName?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + void replaceObject_withObject_(NSObject object, NSObject newObject) { + return _lib._objc_msgSend_499( + _id, _lib._sel_replaceObject_withObject_1, object._id, newObject._id); + } + + static NSArchiver new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSArchiver1, _lib._sel_new1); + return NSArchiver._(_ret, _lib, retain: false, release: true); + } + + static NSArchiver alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSArchiver1, _lib._sel_alloc1); + return NSArchiver._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSArchiver1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSArchiver1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSArchiver1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSArchiver1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSArchiver1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSArchiver1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSArchiver1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSArchiver1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSArchiver1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSPortCoder extends NSCoder { + NSPortCoder._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSPortCoder] that points to the same underlying object as [other]. + static NSPortCoder castFrom(T other) { + return NSPortCoder._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSPortCoder] that wraps the given raw object pointer. + static NSPortCoder castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSPortCoder._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSPortCoder]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSPortCoder1); + } + + bool isBycopy() { + return _lib._objc_msgSend_12(_id, _lib._sel_isBycopy1); + } + + bool isByref() { + return _lib._objc_msgSend_12(_id, _lib._sel_isByref1); + } + + void encodePortObject_(NSPort? aport) { + return _lib._objc_msgSend_552( + _id, _lib._sel_encodePortObject_1, aport?._id ?? ffi.nullptr); + } + + NSPort decodePortObject() { + final _ret = _lib._objc_msgSend_517(_id, _lib._sel_decodePortObject1); + return NSPort._(_ret, _lib, retain: true, release: true); + } + + NSConnection connection() { + final _ret = _lib._objc_msgSend_536(_id, _lib._sel_connection1); + return NSConnection._(_ret, _lib, retain: true, release: true); + } + + static NSObject portCoderWithReceivePort_sendPort_components_( + HidListenerBindingsSwift _lib, + NSPort? rcvPort, + NSPort? sndPort, + NSArray? comps) { + final _ret = _lib._objc_msgSend_553( + _lib._class_NSPortCoder1, + _lib._sel_portCoderWithReceivePort_sendPort_components_1, + rcvPort?._id ?? ffi.nullptr, + sndPort?._id ?? ffi.nullptr, + comps?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject initWithReceivePort_sendPort_components_( + NSPort? rcvPort, NSPort? sndPort, NSArray? comps) { + final _ret = _lib._objc_msgSend_553( + _id, + _lib._sel_initWithReceivePort_sendPort_components_1, + rcvPort?._id ?? ffi.nullptr, + sndPort?._id ?? ffi.nullptr, + comps?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void dispatch() { + return _lib._objc_msgSend_1(_id, _lib._sel_dispatch1); + } + + static NSPortCoder new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSPortCoder1, _lib._sel_new1); + return NSPortCoder._(_ret, _lib, retain: false, release: true); + } + + static NSPortCoder alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSPortCoder1, _lib._sel_alloc1); + return NSPortCoder._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSPortCoder1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSPortCoder1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSPortCoder1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSPortCoder1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSPortCoder1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSPortCoder1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSPortCoder1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSPortCoder1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSPortCoder1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSPort extends NSObject { + NSPort._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSPort] that points to the same underlying object as [other]. + static NSPort castFrom(T other) { + return NSPort._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSPort] that wraps the given raw object pointer. + static NSPort castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSPort._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSPort]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSPort1); + } + + static NSPort port(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_517(_lib._class_NSPort1, _lib._sel_port1); + return NSPort._(_ret, _lib, retain: true, release: true); + } + + void invalidate() { + return _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); + } + + bool get valid { + return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); + } + + void setDelegate_(NSObject? anObject) { + return _lib._objc_msgSend_15( + _id, _lib._sel_setDelegate_1, anObject?._id ?? ffi.nullptr); + } + + NSObject delegate() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void scheduleInRunLoop_forMode_(NSRunLoop? runLoop, NSString mode) { + return _lib._objc_msgSend_533(_id, _lib._sel_scheduleInRunLoop_forMode_1, + runLoop?._id ?? ffi.nullptr, mode._id); + } + + void removeFromRunLoop_forMode_(NSRunLoop? runLoop, NSString mode) { + return _lib._objc_msgSend_533(_id, _lib._sel_removeFromRunLoop_forMode_1, + runLoop?._id ?? ffi.nullptr, mode._id); + } + + int get reservedSpaceLength { + return _lib._objc_msgSend_10(_id, _lib._sel_reservedSpaceLength1); + } + + bool sendBeforeDate_components_from_reserved_( + NSDate? limitDate, + NSMutableArray? components, + NSPort? receivePort, + int headerSpaceReserved) { + return _lib._objc_msgSend_534( + _id, + _lib._sel_sendBeforeDate_components_from_reserved_1, + limitDate?._id ?? ffi.nullptr, + components?._id ?? ffi.nullptr, + receivePort?._id ?? ffi.nullptr, + headerSpaceReserved); + } + + bool sendBeforeDate_msgid_components_from_reserved_( + NSDate? limitDate, + int msgID, + NSMutableArray? components, + NSPort? receivePort, + int headerSpaceReserved) { + return _lib._objc_msgSend_535( + _id, + _lib._sel_sendBeforeDate_msgid_components_from_reserved_1, + limitDate?._id ?? ffi.nullptr, + msgID, + components?._id ?? ffi.nullptr, + receivePort?._id ?? ffi.nullptr, + headerSpaceReserved); + } + + void addConnection_toRunLoop_forMode_( + NSConnection? conn, NSRunLoop? runLoop, NSString mode) { + return _lib._objc_msgSend_551( + _id, + _lib._sel_addConnection_toRunLoop_forMode_1, + conn?._id ?? ffi.nullptr, + runLoop?._id ?? ffi.nullptr, + mode._id); + } + + void removeConnection_fromRunLoop_forMode_( + NSConnection? conn, NSRunLoop? runLoop, NSString mode) { + return _lib._objc_msgSend_551( + _id, + _lib._sel_removeConnection_fromRunLoop_forMode_1, + conn?._id ?? ffi.nullptr, + runLoop?._id ?? ffi.nullptr, + mode._id); + } + + static NSPort new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSPort1, _lib._sel_new1); + return NSPort._(_ret, _lib, retain: false, release: true); + } + + static NSPort alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSPort1, _lib._sel_alloc1); + return NSPort._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSPort1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSPort1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSPort1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSPort1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSPort1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSPort1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSPort1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSPort1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSPort1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSRunLoop extends NSObject { + NSRunLoop._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSRunLoop] that points to the same underlying object as [other]. + static NSRunLoop castFrom(T other) { + return NSRunLoop._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSRunLoop] that wraps the given raw object pointer. + static NSRunLoop castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSRunLoop._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSRunLoop]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSRunLoop1); + } + + static NSRunLoop? getCurrentRunLoop(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_518( + _lib._class_NSRunLoop1, _lib._sel_currentRunLoop1); + return _ret.address == 0 + ? null + : NSRunLoop._(_ret, _lib, retain: true, release: true); + } + + static NSRunLoop? getMainRunLoop(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_518(_lib._class_NSRunLoop1, _lib._sel_mainRunLoop1); + return _ret.address == 0 + ? null + : NSRunLoop._(_ret, _lib, retain: true, release: true); + } + + NSString get currentMode { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currentMode1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + ffi.Pointer<__CFRunLoop> getCFRunLoop() { + return _lib._objc_msgSend_519(_id, _lib._sel_getCFRunLoop1); + } + + void addTimer_forMode_(NSTimer? timer, NSString mode) { + return _lib._objc_msgSend_526( + _id, _lib._sel_addTimer_forMode_1, timer?._id ?? ffi.nullptr, mode._id); + } + + void addPort_forMode_(NSPort? aPort, NSString mode) { + return _lib._objc_msgSend_527( + _id, _lib._sel_addPort_forMode_1, aPort?._id ?? ffi.nullptr, mode._id); + } + + void removePort_forMode_(NSPort? aPort, NSString mode) { + return _lib._objc_msgSend_527(_id, _lib._sel_removePort_forMode_1, + aPort?._id ?? ffi.nullptr, mode._id); + } + + NSDate limitDateForMode_(NSString mode) { + final _ret = + _lib._objc_msgSend_528(_id, _lib._sel_limitDateForMode_1, mode._id); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + void acceptInputForMode_beforeDate_(NSString mode, NSDate? limitDate) { + return _lib._objc_msgSend_529( + _id, + _lib._sel_acceptInputForMode_beforeDate_1, + mode._id, + limitDate?._id ?? ffi.nullptr); + } + + void run() { + return _lib._objc_msgSend_1(_id, _lib._sel_run1); + } + + void runUntilDate_(NSDate? limitDate) { + return _lib._objc_msgSend_504( + _id, _lib._sel_runUntilDate_1, limitDate?._id ?? ffi.nullptr); + } + + bool runMode_beforeDate_(NSString mode, NSDate? limitDate) { + return _lib._objc_msgSend_530(_id, _lib._sel_runMode_beforeDate_1, mode._id, + limitDate?._id ?? ffi.nullptr); + } + + void configureAsServer() { + return _lib._objc_msgSend_1(_id, _lib._sel_configureAsServer1); + } + + void performInModes_block_(NSArray? modes, ObjCBlock21 block) { + return _lib._objc_msgSend_531(_id, _lib._sel_performInModes_block_1, + modes?._id ?? ffi.nullptr, block._id); + } + + void performBlock_(ObjCBlock21 block) { + return _lib._objc_msgSend_497(_id, _lib._sel_performBlock_1, block._id); + } + + void performSelector_target_argument_order_modes_( + ffi.Pointer aSelector, + NSObject target, + NSObject arg, + int order, + NSArray? modes) { + return _lib._objc_msgSend_532( + _id, + _lib._sel_performSelector_target_argument_order_modes_1, + aSelector, + target._id, + arg._id, + order, + modes?._id ?? ffi.nullptr); + } + + void cancelPerformSelector_target_argument_( + ffi.Pointer aSelector, NSObject target, NSObject arg) { + return _lib._objc_msgSend_498( + _id, + _lib._sel_cancelPerformSelector_target_argument_1, + aSelector, + target._id, + arg._id); + } + + void cancelPerformSelectorsWithTarget_(NSObject target) { + return _lib._objc_msgSend_15( + _id, _lib._sel_cancelPerformSelectorsWithTarget_1, target._id); + } + + static NSRunLoop new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSRunLoop1, _lib._sel_new1); + return NSRunLoop._(_ret, _lib, retain: false, release: true); + } + + static NSRunLoop alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSRunLoop1, _lib._sel_alloc1); + return NSRunLoop._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSRunLoop1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSRunLoop1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSRunLoop1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSRunLoop1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSRunLoop1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSRunLoop1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSRunLoop1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSRunLoop1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSRunLoop1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +final class __CFRunLoop extends ffi.Opaque {} + +class NSTimer extends NSObject { + NSTimer._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSTimer] that points to the same underlying object as [other]. + static NSTimer castFrom(T other) { + return NSTimer._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSTimer] that wraps the given raw object pointer. + static NSTimer castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSTimer._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSTimer]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSTimer1); + } + + static NSTimer timerWithTimeInterval_invocation_repeats_( + HidListenerBindingsSwift _lib, + double ti, + NSInvocation? invocation, + bool yesOrNo) { + final _ret = _lib._objc_msgSend_520( + _lib._class_NSTimer1, + _lib._sel_timerWithTimeInterval_invocation_repeats_1, + ti, + invocation?._id ?? ffi.nullptr, + yesOrNo); + return NSTimer._(_ret, _lib, retain: true, release: true); + } + + static NSTimer scheduledTimerWithTimeInterval_invocation_repeats_( + HidListenerBindingsSwift _lib, + double ti, + NSInvocation? invocation, + bool yesOrNo) { + final _ret = _lib._objc_msgSend_520( + _lib._class_NSTimer1, + _lib._sel_scheduledTimerWithTimeInterval_invocation_repeats_1, + ti, + invocation?._id ?? ffi.nullptr, + yesOrNo); + return NSTimer._(_ret, _lib, retain: true, release: true); + } + + static NSTimer timerWithTimeInterval_target_selector_userInfo_repeats_( + HidListenerBindingsSwift _lib, + double ti, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject userInfo, + bool yesOrNo) { + final _ret = _lib._objc_msgSend_521( + _lib._class_NSTimer1, + _lib._sel_timerWithTimeInterval_target_selector_userInfo_repeats_1, + ti, + aTarget._id, + aSelector, + userInfo._id, + yesOrNo); + return NSTimer._(_ret, _lib, retain: true, release: true); + } + + static NSTimer + scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_( + HidListenerBindingsSwift _lib, + double ti, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject userInfo, + bool yesOrNo) { + final _ret = _lib._objc_msgSend_521( + _lib._class_NSTimer1, + _lib._sel_scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_1, + ti, + aTarget._id, + aSelector, + userInfo._id, + yesOrNo); + return NSTimer._(_ret, _lib, retain: true, release: true); + } + + static NSTimer timerWithTimeInterval_repeats_block_( + HidListenerBindingsSwift _lib, + double interval, + bool repeats, + ObjCBlock22 block) { + final _ret = _lib._objc_msgSend_522( + _lib._class_NSTimer1, + _lib._sel_timerWithTimeInterval_repeats_block_1, + interval, + repeats, + block._id); + return NSTimer._(_ret, _lib, retain: true, release: true); + } + + static NSTimer scheduledTimerWithTimeInterval_repeats_block_( + HidListenerBindingsSwift _lib, + double interval, + bool repeats, + ObjCBlock22 block) { + final _ret = _lib._objc_msgSend_522( + _lib._class_NSTimer1, + _lib._sel_scheduledTimerWithTimeInterval_repeats_block_1, + interval, + repeats, + block._id); + return NSTimer._(_ret, _lib, retain: true, release: true); + } + + NSTimer initWithFireDate_interval_repeats_block_( + NSDate? date, double interval, bool repeats, ObjCBlock22 block) { + final _ret = _lib._objc_msgSend_523( + _id, + _lib._sel_initWithFireDate_interval_repeats_block_1, + date?._id ?? ffi.nullptr, + interval, + repeats, + block._id); + return NSTimer._(_ret, _lib, retain: true, release: true); + } + + NSTimer initWithFireDate_interval_target_selector_userInfo_repeats_( + NSDate? date, + double ti, + NSObject t, + ffi.Pointer s, + NSObject ui, + bool rep) { + final _ret = _lib._objc_msgSend_524( + _id, + _lib._sel_initWithFireDate_interval_target_selector_userInfo_repeats_1, + date?._id ?? ffi.nullptr, + ti, + t._id, + s, + ui._id, + rep); + return NSTimer._(_ret, _lib, retain: true, release: true); + } + + void fire() { + return _lib._objc_msgSend_1(_id, _lib._sel_fire1); + } + + NSDate? get fireDate { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_fireDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + set fireDate(NSDate? value) { + _lib._objc_msgSend_525( + _id, _lib._sel_setFireDate_1, value?._id ?? ffi.nullptr); + } + + double get timeInterval { + return _lib._objc_msgSend_155(_id, _lib._sel_timeInterval1); + } + + double get tolerance { + return _lib._objc_msgSend_155(_id, _lib._sel_tolerance1); + } + + set tolerance(double value) { + _lib._objc_msgSend_506(_id, _lib._sel_setTolerance_1, value); + } + + void invalidate() { + return _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); + } + + bool get valid { + return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); + } + + NSObject get userInfo { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_userInfo1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSTimer new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSTimer1, _lib._sel_new1); + return NSTimer._(_ret, _lib, retain: false, release: true); + } + + static NSTimer alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSTimer1, _lib._sel_alloc1); + return NSTimer._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSTimer1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSTimer1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSTimer1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSTimer1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSTimer1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSTimer1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSTimer1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSTimer1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSTimer1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +void _ObjCBlock22_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} + +final _ObjCBlock22_closureRegistry = {}; +int _ObjCBlock22_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock22_registerClosure(Function fn) { + final id = ++_ObjCBlock22_closureRegistryIndex; + _ObjCBlock22_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock22_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return _ObjCBlock22_closureRegistry[block.ref.target.address]!(arg0); +} + +class ObjCBlock22 extends _ObjCBlockBase { + ObjCBlock22._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock22.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock22_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock22.fromFunction(HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock22_closureTrampoline) + .cast(), + _ObjCBlock22_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); + } +} + +class NSConnection extends NSObject { + NSConnection._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSConnection] that points to the same underlying object as [other]. + static NSConnection castFrom(T other) { + return NSConnection._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSConnection] that wraps the given raw object pointer. + static NSConnection castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSConnection._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSConnection]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSConnection1); + } + + NSDictionary? get statistics { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_statistics1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSArray allConnections(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSConnection1, _lib._sel_allConnections1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSConnection defaultConnection(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_536( + _lib._class_NSConnection1, _lib._sel_defaultConnection1); + return NSConnection._(_ret, _lib, retain: true, release: true); + } + + static NSConnection connectionWithRegisteredName_host_( + HidListenerBindingsSwift _lib, NSString? name, NSString? hostName) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSConnection1, + _lib._sel_connectionWithRegisteredName_host_1, + name?._id ?? ffi.nullptr, + hostName?._id ?? ffi.nullptr); + return NSConnection._(_ret, _lib, retain: true, release: true); + } + + static NSConnection connectionWithRegisteredName_host_usingNameServer_( + HidListenerBindingsSwift _lib, + NSString? name, + NSString? hostName, + NSPortNameServer? server) { + final _ret = _lib._objc_msgSend_541( + _lib._class_NSConnection1, + _lib._sel_connectionWithRegisteredName_host_usingNameServer_1, + name?._id ?? ffi.nullptr, + hostName?._id ?? ffi.nullptr, + server?._id ?? ffi.nullptr); + return NSConnection._(_ret, _lib, retain: true, release: true); + } + + static NSDistantObject rootProxyForConnectionWithRegisteredName_host_( + HidListenerBindingsSwift _lib, NSString? name, NSString? hostName) { + final _ret = _lib._objc_msgSend_544( + _lib._class_NSConnection1, + _lib._sel_rootProxyForConnectionWithRegisteredName_host_1, + name?._id ?? ffi.nullptr, + hostName?._id ?? ffi.nullptr); + return NSDistantObject._(_ret, _lib, retain: true, release: true); + } + + static NSDistantObject + rootProxyForConnectionWithRegisteredName_host_usingNameServer_( + HidListenerBindingsSwift _lib, + NSString? name, + NSString? hostName, + NSPortNameServer? server) { + final _ret = _lib._objc_msgSend_545( + _lib._class_NSConnection1, + _lib._sel_rootProxyForConnectionWithRegisteredName_host_usingNameServer_1, + name?._id ?? ffi.nullptr, + hostName?._id ?? ffi.nullptr, + server?._id ?? ffi.nullptr); + return NSDistantObject._(_ret, _lib, retain: true, release: true); + } + + static NSConnection serviceConnectionWithName_rootObject_usingNameServer_( + HidListenerBindingsSwift _lib, + NSString? name, + NSObject root, + NSPortNameServer? server) { + final _ret = _lib._objc_msgSend_546( + _lib._class_NSConnection1, + _lib._sel_serviceConnectionWithName_rootObject_usingNameServer_1, + name?._id ?? ffi.nullptr, + root._id, + server?._id ?? ffi.nullptr); + return NSConnection._(_ret, _lib, retain: true, release: true); + } + + static NSConnection serviceConnectionWithName_rootObject_( + HidListenerBindingsSwift _lib, NSString? name, NSObject root) { + final _ret = _lib._objc_msgSend_163( + _lib._class_NSConnection1, + _lib._sel_serviceConnectionWithName_rootObject_1, + name?._id ?? ffi.nullptr, + root._id); + return NSConnection._(_ret, _lib, retain: true, release: true); + } + + double get requestTimeout { + return _lib._objc_msgSend_155(_id, _lib._sel_requestTimeout1); + } + + set requestTimeout(double value) { + _lib._objc_msgSend_506(_id, _lib._sel_setRequestTimeout_1, value); + } + + double get replyTimeout { + return _lib._objc_msgSend_155(_id, _lib._sel_replyTimeout1); + } + + set replyTimeout(double value) { + _lib._objc_msgSend_506(_id, _lib._sel_setReplyTimeout_1, value); + } + + NSObject get rootObject { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_rootObject1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + set rootObject(NSObject value) { + _lib._objc_msgSend_387(_id, _lib._sel_setRootObject_1, value._id); + } + + NSObject? get delegate { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + set delegate(NSObject? value) { + _lib._objc_msgSend_387( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + } + + bool get independentConversationQueueing { + return _lib._objc_msgSend_12( + _id, _lib._sel_independentConversationQueueing1); + } + + set independentConversationQueueing(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setIndependentConversationQueueing_1, value); + } + + bool get valid { + return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); + } + + NSDistantObject? get rootProxy { + final _ret = _lib._objc_msgSend_547(_id, _lib._sel_rootProxy1); + return _ret.address == 0 + ? null + : NSDistantObject._(_ret, _lib, retain: true, release: true); + } + + void invalidate() { + return _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); + } + + void addRequestMode_(NSString? rmode) { + return _lib._objc_msgSend_192( + _id, _lib._sel_addRequestMode_1, rmode?._id ?? ffi.nullptr); + } + + void removeRequestMode_(NSString? rmode) { + return _lib._objc_msgSend_192( + _id, _lib._sel_removeRequestMode_1, rmode?._id ?? ffi.nullptr); + } + + NSArray? get requestModes { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_requestModes1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + bool registerName_(NSString? name) { + return _lib._objc_msgSend_59( + _id, _lib._sel_registerName_1, name?._id ?? ffi.nullptr); + } + + bool registerName_withNameServer_(NSString? name, NSPortNameServer? server) { + return _lib._objc_msgSend_548(_id, _lib._sel_registerName_withNameServer_1, + name?._id ?? ffi.nullptr, server?._id ?? ffi.nullptr); + } + + static NSConnection connectionWithReceivePort_sendPort_( + HidListenerBindingsSwift _lib, NSPort? receivePort, NSPort? sendPort) { + final _ret = _lib._objc_msgSend_549( + _lib._class_NSConnection1, + _lib._sel_connectionWithReceivePort_sendPort_1, + receivePort?._id ?? ffi.nullptr, + sendPort?._id ?? ffi.nullptr); + return NSConnection._(_ret, _lib, retain: true, release: true); + } + + static NSObject currentConversation(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSConnection1, _lib._sel_currentConversation1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSConnection initWithReceivePort_sendPort_( + NSPort? receivePort, NSPort? sendPort) { + final _ret = _lib._objc_msgSend_549( + _id, + _lib._sel_initWithReceivePort_sendPort_1, + receivePort?._id ?? ffi.nullptr, + sendPort?._id ?? ffi.nullptr); + return NSConnection._(_ret, _lib, retain: true, release: true); + } + + NSPort? get sendPort { + final _ret = _lib._objc_msgSend_517(_id, _lib._sel_sendPort1); + return _ret.address == 0 + ? null + : NSPort._(_ret, _lib, retain: true, release: true); + } + + NSPort? get receivePort { + final _ret = _lib._objc_msgSend_517(_id, _lib._sel_receivePort1); + return _ret.address == 0 + ? null + : NSPort._(_ret, _lib, retain: true, release: true); + } + + void enableMultipleThreads() { + return _lib._objc_msgSend_1(_id, _lib._sel_enableMultipleThreads1); + } + + bool get multipleThreadsEnabled { + return _lib._objc_msgSend_12(_id, _lib._sel_multipleThreadsEnabled1); + } + + void addRunLoop_(NSRunLoop? runloop) { + return _lib._objc_msgSend_550( + _id, _lib._sel_addRunLoop_1, runloop?._id ?? ffi.nullptr); + } + + void removeRunLoop_(NSRunLoop? runloop) { + return _lib._objc_msgSend_550( + _id, _lib._sel_removeRunLoop_1, runloop?._id ?? ffi.nullptr); + } + + void runInNewThread() { + return _lib._objc_msgSend_1(_id, _lib._sel_runInNewThread1); + } + + NSArray? get remoteObjects { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_remoteObjects1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get localObjects { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_localObjects1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + void dispatchWithComponents_(NSArray? components) { + return _lib._objc_msgSend_441(_id, _lib._sel_dispatchWithComponents_1, + components?._id ?? ffi.nullptr); + } + + static NSConnection new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSConnection1, _lib._sel_new1); + return NSConnection._(_ret, _lib, retain: false, release: true); + } + + static NSConnection alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSConnection1, _lib._sel_alloc1); + return NSConnection._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSConnection1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSConnection1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSConnection1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSConnection1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSConnection1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSConnection1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSConnection1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSConnection1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSConnection1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSPortNameServer extends NSObject { + NSPortNameServer._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSPortNameServer] that points to the same underlying object as [other]. + static NSPortNameServer castFrom(T other) { + return NSPortNameServer._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSPortNameServer] that wraps the given raw object pointer. + static NSPortNameServer castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSPortNameServer._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSPortNameServer]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSPortNameServer1); + } + + static NSPortNameServer systemDefaultPortNameServer( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_537( + _lib._class_NSPortNameServer1, _lib._sel_systemDefaultPortNameServer1); + return NSPortNameServer._(_ret, _lib, retain: true, release: true); + } + + NSPort portForName_(NSString? name) { + final _ret = _lib._objc_msgSend_538( + _id, _lib._sel_portForName_1, name?._id ?? ffi.nullptr); + return NSPort._(_ret, _lib, retain: true, release: true); + } + + NSPort portForName_host_(NSString? name, NSString? host) { + final _ret = _lib._objc_msgSend_539(_id, _lib._sel_portForName_host_1, + name?._id ?? ffi.nullptr, host?._id ?? ffi.nullptr); + return NSPort._(_ret, _lib, retain: true, release: true); + } + + bool registerPort_name_(NSPort? port, NSString? name) { + return _lib._objc_msgSend_540(_id, _lib._sel_registerPort_name_1, + port?._id ?? ffi.nullptr, name?._id ?? ffi.nullptr); + } + + bool removePortForName_(NSString? name) { + return _lib._objc_msgSend_59( + _id, _lib._sel_removePortForName_1, name?._id ?? ffi.nullptr); + } + + static NSPortNameServer new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSPortNameServer1, _lib._sel_new1); + return NSPortNameServer._(_ret, _lib, retain: false, release: true); + } + + static NSPortNameServer alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSPortNameServer1, _lib._sel_alloc1); + return NSPortNameServer._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSPortNameServer1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSPortNameServer1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSPortNameServer1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSPortNameServer1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSPortNameServer1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSPortNameServer1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSPortNameServer1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSPortNameServer1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSPortNameServer1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSDistantObject extends NSProxy { + NSDistantObject._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSDistantObject] that points to the same underlying object as [other]. + static NSDistantObject castFrom(T other) { + return NSDistantObject._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSDistantObject] that wraps the given raw object pointer. + static NSDistantObject castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSDistantObject._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSDistantObject]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSDistantObject1); + } + + static NSObject proxyWithTarget_connection_(HidListenerBindingsSwift _lib, + NSObject target, NSConnection? connection) { + final _ret = _lib._objc_msgSend_542( + _lib._class_NSDistantObject1, + _lib._sel_proxyWithTarget_connection_1, + target._id, + connection?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSDistantObject initWithTarget_connection_( + NSObject target, NSConnection? connection) { + final _ret = _lib._objc_msgSend_542( + _id, + _lib._sel_initWithTarget_connection_1, + target._id, + connection?._id ?? ffi.nullptr); + return NSDistantObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject proxyWithLocal_connection_(HidListenerBindingsSwift _lib, + NSObject target, NSConnection? connection) { + final _ret = _lib._objc_msgSend_542( + _lib._class_NSDistantObject1, + _lib._sel_proxyWithLocal_connection_1, + target._id, + connection?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSDistantObject initWithLocal_connection_( + NSObject target, NSConnection? connection) { + final _ret = _lib._objc_msgSend_542( + _id, + _lib._sel_initWithLocal_connection_1, + target._id, + connection?._id ?? ffi.nullptr); + return NSDistantObject._(_ret, _lib, retain: true, release: true); + } + + NSDistantObject initWithCoder_(NSCoder? inCoder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); + return NSDistantObject._(_ret, _lib, retain: true, release: true); + } + + void setProtocolForProxy_(Protocol? proto) { + return _lib._objc_msgSend_543( + _id, _lib._sel_setProtocolForProxy_1, proto?._id ?? ffi.nullptr); + } + + NSConnection? get connectionForProxy { + final _ret = _lib._objc_msgSend_536(_id, _lib._sel_connectionForProxy1); + return _ret.address == 0 + ? null + : NSConnection._(_ret, _lib, retain: true, release: true); + } + + static NSObject alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDistantObject1, _lib._sel_alloc1); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + static bool respondsToSelector_( + HidListenerBindingsSwift _lib, ffi.Pointer aSelector) { + return _lib._objc_msgSend_4(_lib._class_NSDistantObject1, + _lib._sel_respondsToSelector_1, aSelector); + } +} + +class NSProxy extends _ObjCWrapper { + NSProxy._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSProxy] that points to the same underlying object as [other]. + static NSProxy castFrom(T other) { + return NSProxy._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSProxy] that wraps the given raw object pointer. + static NSProxy castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSProxy._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSProxy]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProxy1); + } + + static NSObject alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSProxy1, _lib._sel_alloc1); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + static NSObject allocWithZone_( + HidListenerBindingsSwift _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSProxy1, _lib._sel_allocWithZone_1, zone); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + static NSObject class1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSProxy1, _lib._sel_class1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void forwardInvocation_(NSInvocation? invocation) { + return _lib._objc_msgSend_392( + _id, _lib._sel_forwardInvocation_1, invocation?._id ?? ffi.nullptr); + } + + NSMethodSignature methodSignatureForSelector_(ffi.Pointer sel) { + final _ret = _lib._objc_msgSend_393( + _id, _lib._sel_methodSignatureForSelector_1, sel); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); + } + + void dealloc() { + return _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); + } + + void finalize() { + return _lib._objc_msgSend_1(_id, _lib._sel_finalize1); + } + + NSString? get description { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get debugDescription { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_debugDescription1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + static bool respondsToSelector_( + HidListenerBindingsSwift _lib, ffi.Pointer aSelector) { + return _lib._objc_msgSend_4( + _lib._class_NSProxy1, _lib._sel_respondsToSelector_1, aSelector); + } + + bool allowsWeakReference() { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsWeakReference1); + } + + bool retainWeakReference() { + return _lib._objc_msgSend_12(_id, _lib._sel_retainWeakReference1); + } +} + +class NSClassDescription extends NSObject { + NSClassDescription._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSClassDescription] that points to the same underlying object as [other]. + static NSClassDescription castFrom(T other) { + return NSClassDescription._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSClassDescription] that wraps the given raw object pointer. + static NSClassDescription castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSClassDescription._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSClassDescription]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSClassDescription1); + } + + static void registerClassDescription_forClass_(HidListenerBindingsSwift _lib, + NSClassDescription? description, NSObject aClass) { + return _lib._objc_msgSend_555( + _lib._class_NSClassDescription1, + _lib._sel_registerClassDescription_forClass_1, + description?._id ?? ffi.nullptr, + aClass._id); + } + + static void invalidateClassDescriptionCache(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_1(_lib._class_NSClassDescription1, + _lib._sel_invalidateClassDescriptionCache1); + } + + static NSClassDescription classDescriptionForClass_( + HidListenerBindingsSwift _lib, NSObject aClass) { + final _ret = _lib._objc_msgSend_556(_lib._class_NSClassDescription1, + _lib._sel_classDescriptionForClass_1, aClass._id); + return NSClassDescription._(_ret, _lib, retain: true, release: true); + } + + @override + NSArray? get attributeKeys { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attributeKeys1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + @override + NSArray? get toOneRelationshipKeys { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toOneRelationshipKeys1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + @override + NSArray? get toManyRelationshipKeys { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toManyRelationshipKeys1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + @override + NSString inverseForRelationshipKey_(NSString? relationshipKey) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_inverseForRelationshipKey_1, + relationshipKey?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSClassDescription new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSClassDescription1, _lib._sel_new1); + return NSClassDescription._(_ret, _lib, retain: false, release: true); + } + + static NSClassDescription alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSClassDescription1, _lib._sel_alloc1); + return NSClassDescription._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSClassDescription1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSClassDescription1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSClassDescription1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSClassDescription1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSClassDescription1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSClassDescription1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSClassDescription1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSClassDescription1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSClassDescription1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSScriptObjectSpecifier extends NSObject { + NSScriptObjectSpecifier._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSScriptObjectSpecifier] that points to the same underlying object as [other]. + static NSScriptObjectSpecifier castFrom(T other) { + return NSScriptObjectSpecifier._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSScriptObjectSpecifier] that wraps the given raw object pointer. + static NSScriptObjectSpecifier castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSScriptObjectSpecifier._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSScriptObjectSpecifier]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSScriptObjectSpecifier1); + } + + static NSScriptObjectSpecifier objectSpecifierWithDescriptor_( + HidListenerBindingsSwift _lib, NSAppleEventDescriptor? descriptor) { + final _ret = _lib._objc_msgSend_580( + _lib._class_NSScriptObjectSpecifier1, + _lib._sel_objectSpecifierWithDescriptor_1, + descriptor?._id ?? ffi.nullptr); + return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + } + + NSScriptObjectSpecifier initWithContainerSpecifier_key_( + NSScriptObjectSpecifier? container, NSString? property) { + final _ret = _lib._objc_msgSend_581( + _id, + _lib._sel_initWithContainerSpecifier_key_1, + container?._id ?? ffi.nullptr, + property?._id ?? ffi.nullptr); + return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + } + + NSScriptObjectSpecifier + initWithContainerClassDescription_containerSpecifier_key_( + NSScriptClassDescription? classDesc, + NSScriptObjectSpecifier? container, + NSString? property) { + final _ret = _lib._objc_msgSend_598( + _id, + _lib._sel_initWithContainerClassDescription_containerSpecifier_key_1, + classDesc?._id ?? ffi.nullptr, + container?._id ?? ffi.nullptr, + property?._id ?? ffi.nullptr); + return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + } + + NSScriptObjectSpecifier initWithCoder_(NSCoder? inCoder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); + return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + } + + NSScriptObjectSpecifier? get childSpecifier { + final _ret = _lib._objc_msgSend_588(_id, _lib._sel_childSpecifier1); + return _ret.address == 0 + ? null + : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + } + + set childSpecifier(NSScriptObjectSpecifier? value) { + _lib._objc_msgSend_589( + _id, _lib._sel_setChildSpecifier_1, value?._id ?? ffi.nullptr); + } + + NSScriptObjectSpecifier? get containerSpecifier { + final _ret = _lib._objc_msgSend_588(_id, _lib._sel_containerSpecifier1); + return _ret.address == 0 + ? null + : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + } + + set containerSpecifier(NSScriptObjectSpecifier? value) { + _lib._objc_msgSend_589( + _id, _lib._sel_setContainerSpecifier_1, value?._id ?? ffi.nullptr); + } + + bool get containerIsObjectBeingTested { + return _lib._objc_msgSend_12(_id, _lib._sel_containerIsObjectBeingTested1); + } + + set containerIsObjectBeingTested(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setContainerIsObjectBeingTested_1, value); + } + + bool get containerIsRangeContainerObject { + return _lib._objc_msgSend_12( + _id, _lib._sel_containerIsRangeContainerObject1); + } + + set containerIsRangeContainerObject(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setContainerIsRangeContainerObject_1, value); + } + + NSString? get key { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_key1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set key(NSString? value) { + _lib._objc_msgSend_509(_id, _lib._sel_setKey_1, value?._id ?? ffi.nullptr); + } + + NSScriptClassDescription? get containerClassDescription { + final _ret = + _lib._objc_msgSend_584(_id, _lib._sel_containerClassDescription1); + return _ret.address == 0 + ? null + : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); + } + + set containerClassDescription(NSScriptClassDescription? value) { + _lib._objc_msgSend_599(_id, _lib._sel_setContainerClassDescription_1, + value?._id ?? ffi.nullptr); + } + + NSScriptClassDescription? get keyClassDescription { + final _ret = _lib._objc_msgSend_584(_id, _lib._sel_keyClassDescription1); + return _ret.address == 0 + ? null + : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); + } + + ffi.Pointer indicesOfObjectsByEvaluatingWithContainer_count_( + NSObject container, ffi.Pointer count) { + return _lib._objc_msgSend_600( + _id, + _lib._sel_indicesOfObjectsByEvaluatingWithContainer_count_1, + container._id, + count); + } + + NSObject objectsByEvaluatingWithContainers_(NSObject containers) { + final _ret = _lib._objc_msgSend_16( + _id, _lib._sel_objectsByEvaluatingWithContainers_1, containers._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject get objectsByEvaluatingSpecifier { + final _ret = + _lib._objc_msgSend_2(_id, _lib._sel_objectsByEvaluatingSpecifier1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + int get evaluationErrorNumber { + return _lib._objc_msgSend_78(_id, _lib._sel_evaluationErrorNumber1); + } + + set evaluationErrorNumber(int value) { + _lib._objc_msgSend_590(_id, _lib._sel_setEvaluationErrorNumber_1, value); + } + + NSScriptObjectSpecifier? get evaluationErrorSpecifier { + final _ret = + _lib._objc_msgSend_588(_id, _lib._sel_evaluationErrorSpecifier1); + return _ret.address == 0 + ? null + : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + } + + NSAppleEventDescriptor? get descriptor { + final _ret = _lib._objc_msgSend_558(_id, _lib._sel_descriptor1); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSScriptObjectSpecifier new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSScriptObjectSpecifier1, _lib._sel_new1); + return NSScriptObjectSpecifier._(_ret, _lib, retain: false, release: true); + } + + static NSScriptObjectSpecifier alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSScriptObjectSpecifier1, _lib._sel_alloc1); + return NSScriptObjectSpecifier._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSScriptObjectSpecifier1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSScriptObjectSpecifier1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSScriptObjectSpecifier1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSScriptObjectSpecifier1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSScriptObjectSpecifier1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSScriptObjectSpecifier1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSScriptObjectSpecifier1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptObjectSpecifier1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSScriptObjectSpecifier1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSAppleEventDescriptor extends NSObject { + NSAppleEventDescriptor._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSAppleEventDescriptor] that points to the same underlying object as [other]. + static NSAppleEventDescriptor castFrom(T other) { + return NSAppleEventDescriptor._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSAppleEventDescriptor] that wraps the given raw object pointer. + static NSAppleEventDescriptor castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSAppleEventDescriptor._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSAppleEventDescriptor]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSAppleEventDescriptor1); + } + + static NSAppleEventDescriptor nullDescriptor(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_558( + _lib._class_NSAppleEventDescriptor1, _lib._sel_nullDescriptor1); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithDescriptorType_bytes_length_( + HidListenerBindingsSwift _lib, + int descriptorType, + ffi.Pointer bytes, + int byteCount) { + final _ret = _lib._objc_msgSend_559( + _lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithDescriptorType_bytes_length_1, + descriptorType, + bytes, + byteCount); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithDescriptorType_data_( + HidListenerBindingsSwift _lib, int descriptorType, NSData? data) { + final _ret = _lib._objc_msgSend_560( + _lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithDescriptorType_data_1, + descriptorType, + data?._id ?? ffi.nullptr); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithBoolean_( + HidListenerBindingsSwift _lib, int boolean) { + final _ret = _lib._objc_msgSend_561(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithBoolean_1, boolean); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithEnumCode_( + HidListenerBindingsSwift _lib, int enumerator) { + final _ret = _lib._objc_msgSend_562(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithEnumCode_1, enumerator); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithInt32_( + HidListenerBindingsSwift _lib, int signedInt) { + final _ret = _lib._objc_msgSend_563(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithInt32_1, signedInt); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithDouble_( + HidListenerBindingsSwift _lib, double doubleValue) { + final _ret = _lib._objc_msgSend_564(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithDouble_1, doubleValue); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithTypeCode_( + HidListenerBindingsSwift _lib, int typeCode) { + final _ret = _lib._objc_msgSend_562(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithTypeCode_1, typeCode); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithString_( + HidListenerBindingsSwift _lib, NSString? string) { + final _ret = _lib._objc_msgSend_565(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithString_1, string?._id ?? ffi.nullptr); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithDate_( + HidListenerBindingsSwift _lib, NSDate? date) { + final _ret = _lib._objc_msgSend_566(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithDate_1, date?._id ?? ffi.nullptr); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithFileURL_( + HidListenerBindingsSwift _lib, NSURL? fileURL) { + final _ret = _lib._objc_msgSend_567(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithFileURL_1, fileURL?._id ?? ffi.nullptr); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor + appleEventWithEventClass_eventID_targetDescriptor_returnID_transactionID_( + HidListenerBindingsSwift _lib, + int eventClass, + int eventID, + NSAppleEventDescriptor? targetDescriptor, + int returnID, + int transactionID) { + final _ret = _lib._objc_msgSend_568( + _lib._class_NSAppleEventDescriptor1, + _lib._sel_appleEventWithEventClass_eventID_targetDescriptor_returnID_transactionID_1, + eventClass, + eventID, + targetDescriptor?._id ?? ffi.nullptr, + returnID, + transactionID); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor listDescriptor(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_558( + _lib._class_NSAppleEventDescriptor1, _lib._sel_listDescriptor1); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor recordDescriptor( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_558( + _lib._class_NSAppleEventDescriptor1, _lib._sel_recordDescriptor1); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor currentProcessDescriptor( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_558(_lib._class_NSAppleEventDescriptor1, + _lib._sel_currentProcessDescriptor1); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithProcessIdentifier_( + HidListenerBindingsSwift _lib, int processIdentifier) { + final _ret = _lib._objc_msgSend_563(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithProcessIdentifier_1, processIdentifier); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithBundleIdentifier_( + HidListenerBindingsSwift _lib, NSString? bundleIdentifier) { + final _ret = _lib._objc_msgSend_565( + _lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithBundleIdentifier_1, + bundleIdentifier?._id ?? ffi.nullptr); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor descriptorWithApplicationURL_( + HidListenerBindingsSwift _lib, NSURL? applicationURL) { + final _ret = _lib._objc_msgSend_567( + _lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithApplicationURL_1, + applicationURL?._id ?? ffi.nullptr); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + NSAppleEventDescriptor initWithAEDescNoCopy_(ffi.Pointer aeDesc) { + final _ret = + _lib._objc_msgSend_569(_id, _lib._sel_initWithAEDescNoCopy_1, aeDesc); + return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); + } + + NSAppleEventDescriptor initWithDescriptorType_bytes_length_( + int descriptorType, ffi.Pointer bytes, int byteCount) { + final _ret = _lib._objc_msgSend_570( + _id, + _lib._sel_initWithDescriptorType_bytes_length_1, + descriptorType, + bytes, + byteCount); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + NSAppleEventDescriptor initWithDescriptorType_data_( + int descriptorType, NSData? data) { + final _ret = _lib._objc_msgSend_571( + _id, + _lib._sel_initWithDescriptorType_data_1, + descriptorType, + data?._id ?? ffi.nullptr); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + NSAppleEventDescriptor + initWithEventClass_eventID_targetDescriptor_returnID_transactionID_( + int eventClass, + int eventID, + NSAppleEventDescriptor? targetDescriptor, + int returnID, + int transactionID) { + final _ret = _lib._objc_msgSend_572( + _id, + _lib._sel_initWithEventClass_eventID_targetDescriptor_returnID_transactionID_1, + eventClass, + eventID, + targetDescriptor?._id ?? ffi.nullptr, + returnID, + transactionID); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + NSAppleEventDescriptor initListDescriptor() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_initListDescriptor1); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + NSAppleEventDescriptor initRecordDescriptor() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_initRecordDescriptor1); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + ffi.Pointer get aeDesc { + return _lib._objc_msgSend_573(_id, _lib._sel_aeDesc1); + } + + int get descriptorType { + return _lib._objc_msgSend_197(_id, _lib._sel_descriptorType1); + } + + NSData? get data { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + int get booleanValue { + return _lib._objc_msgSend_216(_id, _lib._sel_booleanValue1); + } + + int get enumCodeValue { + return _lib._objc_msgSend_197(_id, _lib._sel_enumCodeValue1); + } + + int get int32Value { + return _lib._objc_msgSend_219(_id, _lib._sel_int32Value1); + } + + double get doubleValue { + return _lib._objc_msgSend_155(_id, _lib._sel_doubleValue1); + } + + int get typeCodeValue { + return _lib._objc_msgSend_197(_id, _lib._sel_typeCodeValue1); + } + + NSString? get stringValue { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_stringValue1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSDate? get dateValue { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_dateValue1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + NSURL? get fileURLValue { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_fileURLValue1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + int get eventClass { + return _lib._objc_msgSend_197(_id, _lib._sel_eventClass1); + } + + int get eventID { + return _lib._objc_msgSend_197(_id, _lib._sel_eventID1); + } + + int get returnID { + return _lib._objc_msgSend_217(_id, _lib._sel_returnID1); + } + + int get transactionID { + return _lib._objc_msgSend_219(_id, _lib._sel_transactionID1); + } + + void setParamDescriptor_forKeyword_( + NSAppleEventDescriptor? descriptor, int keyword) { + return _lib._objc_msgSend_574( + _id, + _lib._sel_setParamDescriptor_forKeyword_1, + descriptor?._id ?? ffi.nullptr, + keyword); + } + + NSAppleEventDescriptor paramDescriptorForKeyword_(int keyword) { + final _ret = _lib._objc_msgSend_562( + _id, _lib._sel_paramDescriptorForKeyword_1, keyword); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + void removeParamDescriptorWithKeyword_(int keyword) { + return _lib._objc_msgSend_575( + _id, _lib._sel_removeParamDescriptorWithKeyword_1, keyword); + } + + void setAttributeDescriptor_forKeyword_( + NSAppleEventDescriptor? descriptor, int keyword) { + return _lib._objc_msgSend_574( + _id, + _lib._sel_setAttributeDescriptor_forKeyword_1, + descriptor?._id ?? ffi.nullptr, + keyword); + } + + NSAppleEventDescriptor attributeDescriptorForKeyword_(int keyword) { + final _ret = _lib._objc_msgSend_562( + _id, _lib._sel_attributeDescriptorForKeyword_1, keyword); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + NSAppleEventDescriptor sendEventWithOptions_timeout_error_(int sendOptions, + double timeoutInSeconds, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_576( + _id, + _lib._sel_sendEventWithOptions_timeout_error_1, + sendOptions, + timeoutInSeconds, + error); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + bool get isRecordDescriptor { + return _lib._objc_msgSend_12(_id, _lib._sel_isRecordDescriptor1); + } + + int get numberOfItems { + return _lib._objc_msgSend_78(_id, _lib._sel_numberOfItems1); + } + + void insertDescriptor_atIndex_( + NSAppleEventDescriptor? descriptor, int index) { + return _lib._objc_msgSend_577(_id, _lib._sel_insertDescriptor_atIndex_1, + descriptor?._id ?? ffi.nullptr, index); + } + + NSAppleEventDescriptor descriptorAtIndex_(int index) { + final _ret = + _lib._objc_msgSend_578(_id, _lib._sel_descriptorAtIndex_1, index); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + void removeDescriptorAtIndex_(int index) { + return _lib._objc_msgSend_394( + _id, _lib._sel_removeDescriptorAtIndex_1, index); + } + + void setDescriptor_forKeyword_( + NSAppleEventDescriptor? descriptor, int keyword) { + return _lib._objc_msgSend_574(_id, _lib._sel_setDescriptor_forKeyword_1, + descriptor?._id ?? ffi.nullptr, keyword); + } + + NSAppleEventDescriptor descriptorForKeyword_(int keyword) { + final _ret = + _lib._objc_msgSend_562(_id, _lib._sel_descriptorForKeyword_1, keyword); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + void removeDescriptorWithKeyword_(int keyword) { + return _lib._objc_msgSend_575( + _id, _lib._sel_removeDescriptorWithKeyword_1, keyword); + } + + int keywordForDescriptorAtIndex_(int index) { + return _lib._objc_msgSend_579( + _id, _lib._sel_keywordForDescriptorAtIndex_1, index); + } + + NSAppleEventDescriptor coerceToDescriptorType_(int descriptorType) { + final _ret = _lib._objc_msgSend_562( + _id, _lib._sel_coerceToDescriptorType_1, descriptorType); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + static NSAppleEventDescriptor new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSAppleEventDescriptor1, _lib._sel_new1); + return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); + } + + static NSAppleEventDescriptor alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSAppleEventDescriptor1, _lib._sel_alloc1); + return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSAppleEventDescriptor1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSAppleEventDescriptor1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSAppleEventDescriptor1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSAppleEventDescriptor1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSAppleEventDescriptor1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSAppleEventDescriptor1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSAppleEventDescriptor1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSAppleEventDescriptor1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSAppleEventDescriptor1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +@ffi.Packed(2) +final class AEDesc extends ffi.Struct { + @ffi.UnsignedInt() + external int descriptorType; + + external ffi.Pointer> dataHandle; +} + +final class OpaqueAEDataStorageType extends ffi.Opaque {} + +abstract class NSAppleEventSendOptions { + static const int NSAppleEventSendNoReply = 1; + static const int NSAppleEventSendQueueReply = 2; + static const int NSAppleEventSendWaitForReply = 3; + static const int NSAppleEventSendNeverInteract = 16; + static const int NSAppleEventSendCanInteract = 32; + static const int NSAppleEventSendAlwaysInteract = 48; + static const int NSAppleEventSendCanSwitchLayer = 64; + static const int NSAppleEventSendDontRecord = 4096; + static const int NSAppleEventSendDontExecute = 8192; + static const int NSAppleEventSendDontAnnotate = 65536; + static const int NSAppleEventSendDefaultOptions = 35; +} + +class NSScriptClassDescription extends NSClassDescription { + NSScriptClassDescription._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSScriptClassDescription] that points to the same underlying object as [other]. + static NSScriptClassDescription castFrom(T other) { + return NSScriptClassDescription._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSScriptClassDescription] that wraps the given raw object pointer. + static NSScriptClassDescription castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSScriptClassDescription._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSScriptClassDescription]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSScriptClassDescription1); + } + + static NSScriptClassDescription classDescriptionForClass_( + HidListenerBindingsSwift _lib, NSObject aClass) { + final _ret = _lib._objc_msgSend_582(_lib._class_NSScriptClassDescription1, + _lib._sel_classDescriptionForClass_1, aClass._id); + return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); + } + + NSScriptClassDescription initWithSuiteName_className_dictionary_( + NSString? suiteName, + NSString? className, + NSDictionary? classDeclaration) { + final _ret = _lib._objc_msgSend_583( + _id, + _lib._sel_initWithSuiteName_className_dictionary_1, + suiteName?._id ?? ffi.nullptr, + className?._id ?? ffi.nullptr, + classDeclaration?._id ?? ffi.nullptr); + return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); + } + + NSString? get suiteName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suiteName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get className { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_className1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get implementationClassName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_implementationClassName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSScriptClassDescription? get superclassDescription { + final _ret = _lib._objc_msgSend_584(_id, _lib._sel_superclassDescription1); + return _ret.address == 0 + ? null + : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); + } + + int get appleEventCode { + return _lib._objc_msgSend_197(_id, _lib._sel_appleEventCode1); + } + + bool matchesAppleEventCode_(int appleEventCode) { + return _lib._objc_msgSend_179( + _id, _lib._sel_matchesAppleEventCode_1, appleEventCode); + } + + bool supportsCommand_(NSScriptCommandDescription? commandDescription) { + return _lib._objc_msgSend_594(_id, _lib._sel_supportsCommand_1, + commandDescription?._id ?? ffi.nullptr); + } + + ffi.Pointer selectorForCommand_( + NSScriptCommandDescription? commandDescription) { + return _lib._objc_msgSend_595(_id, _lib._sel_selectorForCommand_1, + commandDescription?._id ?? ffi.nullptr); + } + + NSString typeForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_64( + _id, _lib._sel_typeForKey_1, key?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSScriptClassDescription classDescriptionForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_596( + _id, _lib._sel_classDescriptionForKey_1, key?._id ?? ffi.nullptr); + return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); + } + + int appleEventCodeForKey_(NSString? key) { + return _lib._objc_msgSend_585( + _id, _lib._sel_appleEventCodeForKey_1, key?._id ?? ffi.nullptr); + } + + NSString keyWithAppleEventCode_(int appleEventCode) { + final _ret = _lib._objc_msgSend_597( + _id, _lib._sel_keyWithAppleEventCode_1, appleEventCode); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get defaultSubcontainerAttributeKey { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_defaultSubcontainerAttributeKey1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + bool isLocationRequiredToCreateForKey_(NSString? toManyRelationshipKey) { + return _lib._objc_msgSend_59( + _id, + _lib._sel_isLocationRequiredToCreateForKey_1, + toManyRelationshipKey?._id ?? ffi.nullptr); + } + + bool hasPropertyForKey_(NSString? key) { + return _lib._objc_msgSend_59( + _id, _lib._sel_hasPropertyForKey_1, key?._id ?? ffi.nullptr); + } + + bool hasOrderedToManyRelationshipForKey_(NSString? key) { + return _lib._objc_msgSend_59( + _id, + _lib._sel_hasOrderedToManyRelationshipForKey_1, + key?._id ?? ffi.nullptr); + } + + bool hasReadablePropertyForKey_(NSString? key) { + return _lib._objc_msgSend_59( + _id, _lib._sel_hasReadablePropertyForKey_1, key?._id ?? ffi.nullptr); + } + + bool hasWritablePropertyForKey_(NSString? key) { + return _lib._objc_msgSend_59( + _id, _lib._sel_hasWritablePropertyForKey_1, key?._id ?? ffi.nullptr); + } + + bool isReadOnlyKey_(NSString? key) { + return _lib._objc_msgSend_59( + _id, _lib._sel_isReadOnlyKey_1, key?._id ?? ffi.nullptr); + } + + static void registerClassDescription_forClass_(HidListenerBindingsSwift _lib, + NSClassDescription? description, NSObject aClass) { + return _lib._objc_msgSend_555( + _lib._class_NSScriptClassDescription1, + _lib._sel_registerClassDescription_forClass_1, + description?._id ?? ffi.nullptr, + aClass._id); + } + + static void invalidateClassDescriptionCache(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_1(_lib._class_NSScriptClassDescription1, + _lib._sel_invalidateClassDescriptionCache1); + } + + static NSScriptClassDescription new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSScriptClassDescription1, _lib._sel_new1); + return NSScriptClassDescription._(_ret, _lib, retain: false, release: true); + } + + static NSScriptClassDescription alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSScriptClassDescription1, _lib._sel_alloc1); + return NSScriptClassDescription._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSScriptClassDescription1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSScriptClassDescription1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSScriptClassDescription1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSScriptClassDescription1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSScriptClassDescription1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSScriptClassDescription1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSScriptClassDescription1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptClassDescription1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSScriptClassDescription1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSScriptCommandDescription extends NSObject { + NSScriptCommandDescription._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSScriptCommandDescription] that points to the same underlying object as [other]. + static NSScriptCommandDescription castFrom(T other) { + return NSScriptCommandDescription._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSScriptCommandDescription] that wraps the given raw object pointer. + static NSScriptCommandDescription castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSScriptCommandDescription._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSScriptCommandDescription]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSScriptCommandDescription1); + } + + @override + NSObject init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSScriptCommandDescription initWithSuiteName_commandName_dictionary_( + NSString? suiteName, + NSString? commandName, + NSDictionary? commandDeclaration) { + final _ret = _lib._objc_msgSend_583( + _id, + _lib._sel_initWithSuiteName_commandName_dictionary_1, + suiteName?._id ?? ffi.nullptr, + commandName?._id ?? ffi.nullptr, + commandDeclaration?._id ?? ffi.nullptr); + return NSScriptCommandDescription._(_ret, _lib, + retain: true, release: true); + } + + NSScriptCommandDescription initWithCoder_(NSCoder? inCoder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); + return NSScriptCommandDescription._(_ret, _lib, + retain: true, release: true); + } + + NSString? get suiteName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suiteName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get commandName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_commandName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + int get appleEventClassCode { + return _lib._objc_msgSend_197(_id, _lib._sel_appleEventClassCode1); + } + + int get appleEventCode { + return _lib._objc_msgSend_197(_id, _lib._sel_appleEventCode1); + } + + NSString? get commandClassName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_commandClassName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get returnType { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_returnType1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + int get appleEventCodeForReturnType { + return _lib._objc_msgSend_197(_id, _lib._sel_appleEventCodeForReturnType1); + } + + NSArray? get argumentNames { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_argumentNames1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString typeForArgumentWithName_(NSString? argumentName) { + final _ret = _lib._objc_msgSend_64(_id, _lib._sel_typeForArgumentWithName_1, + argumentName?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + int appleEventCodeForArgumentWithName_(NSString? argumentName) { + return _lib._objc_msgSend_585( + _id, + _lib._sel_appleEventCodeForArgumentWithName_1, + argumentName?._id ?? ffi.nullptr); + } + + bool isOptionalArgumentWithName_(NSString? argumentName) { + return _lib._objc_msgSend_59(_id, _lib._sel_isOptionalArgumentWithName_1, + argumentName?._id ?? ffi.nullptr); + } + + NSScriptCommand createCommandInstance() { + final _ret = _lib._objc_msgSend_592(_id, _lib._sel_createCommandInstance1); + return NSScriptCommand._(_ret, _lib, retain: true, release: true); + } + + NSScriptCommand createCommandInstanceWithZone_(ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_593( + _id, _lib._sel_createCommandInstanceWithZone_1, zone); + return NSScriptCommand._(_ret, _lib, retain: true, release: true); + } + + static NSScriptCommandDescription new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSScriptCommandDescription1, _lib._sel_new1); + return NSScriptCommandDescription._(_ret, _lib, + retain: false, release: true); + } + + static NSScriptCommandDescription alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSScriptCommandDescription1, _lib._sel_alloc1); + return NSScriptCommandDescription._(_ret, _lib, + retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSScriptCommandDescription1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSScriptCommandDescription1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSScriptCommandDescription1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSScriptCommandDescription1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSScriptCommandDescription1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSScriptCommandDescription1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSScriptCommandDescription1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptCommandDescription1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSScriptCommandDescription1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSScriptCommand extends NSObject { + NSScriptCommand._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSScriptCommand] that points to the same underlying object as [other]. + static NSScriptCommand castFrom(T other) { + return NSScriptCommand._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSScriptCommand] that wraps the given raw object pointer. + static NSScriptCommand castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSScriptCommand._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSScriptCommand]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSScriptCommand1); + } + + NSScriptCommand initWithCommandDescription_( + NSScriptCommandDescription? commandDef) { + final _ret = _lib._objc_msgSend_586(_id, + _lib._sel_initWithCommandDescription_1, commandDef?._id ?? ffi.nullptr); + return NSScriptCommand._(_ret, _lib, retain: true, release: true); + } + + NSScriptCommand initWithCoder_(NSCoder? inCoder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); + return NSScriptCommand._(_ret, _lib, retain: true, release: true); + } + + NSScriptCommandDescription? get commandDescription { + final _ret = _lib._objc_msgSend_587(_id, _lib._sel_commandDescription1); + return _ret.address == 0 + ? null + : NSScriptCommandDescription._(_ret, _lib, retain: true, release: true); + } + + NSObject get directParameter { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_directParameter1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + set directParameter(NSObject value) { + _lib._objc_msgSend_387(_id, _lib._sel_setDirectParameter_1, value._id); + } + + NSScriptObjectSpecifier? get receiversSpecifier { + final _ret = _lib._objc_msgSend_588(_id, _lib._sel_receiversSpecifier1); + return _ret.address == 0 + ? null + : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + } + + set receiversSpecifier(NSScriptObjectSpecifier? value) { + _lib._objc_msgSend_589( + _id, _lib._sel_setReceiversSpecifier_1, value?._id ?? ffi.nullptr); + } + + NSObject get evaluatedReceivers { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_evaluatedReceivers1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSDictionary? get arguments { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_arguments1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set arguments(NSDictionary? value) { + _lib._objc_msgSend_171( + _id, _lib._sel_setArguments_1, value?._id ?? ffi.nullptr); + } + + NSDictionary? get evaluatedArguments { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_evaluatedArguments1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + bool get wellFormed { + return _lib._objc_msgSend_12(_id, _lib._sel_isWellFormed1); + } + + NSObject performDefaultImplementation() { + final _ret = + _lib._objc_msgSend_2(_id, _lib._sel_performDefaultImplementation1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject executeCommand() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_executeCommand1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + int get scriptErrorNumber { + return _lib._objc_msgSend_78(_id, _lib._sel_scriptErrorNumber1); + } + + set scriptErrorNumber(int value) { + _lib._objc_msgSend_590(_id, _lib._sel_setScriptErrorNumber_1, value); + } + + NSAppleEventDescriptor? get scriptErrorOffendingObjectDescriptor { + final _ret = _lib._objc_msgSend_558( + _id, _lib._sel_scriptErrorOffendingObjectDescriptor1); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + set scriptErrorOffendingObjectDescriptor(NSAppleEventDescriptor? value) { + _lib._objc_msgSend_591( + _id, + _lib._sel_setScriptErrorOffendingObjectDescriptor_1, + value?._id ?? ffi.nullptr); + } + + NSAppleEventDescriptor? get scriptErrorExpectedTypeDescriptor { + final _ret = _lib._objc_msgSend_558( + _id, _lib._sel_scriptErrorExpectedTypeDescriptor1); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + set scriptErrorExpectedTypeDescriptor(NSAppleEventDescriptor? value) { + _lib._objc_msgSend_591( + _id, + _lib._sel_setScriptErrorExpectedTypeDescriptor_1, + value?._id ?? ffi.nullptr); + } + + NSString? get scriptErrorString { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_scriptErrorString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set scriptErrorString(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setScriptErrorString_1, value?._id ?? ffi.nullptr); + } + + static NSScriptCommand currentCommand(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_592( + _lib._class_NSScriptCommand1, _lib._sel_currentCommand1); + return NSScriptCommand._(_ret, _lib, retain: true, release: true); + } + + NSAppleEventDescriptor? get appleEvent { + final _ret = _lib._objc_msgSend_558(_id, _lib._sel_appleEvent1); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + } + + void suspendExecution() { + return _lib._objc_msgSend_1(_id, _lib._sel_suspendExecution1); + } + + void resumeExecutionWithResult_(NSObject result) { + return _lib._objc_msgSend_15( + _id, _lib._sel_resumeExecutionWithResult_1, result._id); + } + + static NSScriptCommand new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSScriptCommand1, _lib._sel_new1); + return NSScriptCommand._(_ret, _lib, retain: false, release: true); + } + + static NSScriptCommand alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSScriptCommand1, _lib._sel_alloc1); + return NSScriptCommand._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSScriptCommand1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSScriptCommand1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSScriptCommand1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSScriptCommand1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSScriptCommand1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSScriptCommand1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSScriptCommand1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptCommand1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSScriptCommand1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSItemProvider extends NSObject { + NSItemProvider._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSItemProvider] that points to the same underlying object as [other]. + static NSItemProvider castFrom(T other) { + return NSItemProvider._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSItemProvider] that wraps the given raw object pointer. + static NSItemProvider castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSItemProvider._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSItemProvider]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSItemProvider1); + } + + @override + NSItemProvider init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSItemProvider._(_ret, _lib, retain: true, release: true); + } + + void registerDataRepresentationForTypeIdentifier_visibility_loadHandler_( + NSString? typeIdentifier, int visibility, ObjCBlock23 loadHandler) { + return _lib._objc_msgSend_623( + _id, + _lib._sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + visibility, + loadHandler._id); + } + + void + registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_( + NSString? typeIdentifier, + int fileOptions, + int visibility, + ObjCBlock26 loadHandler) { + return _lib._objc_msgSend_624( + _id, + _lib._sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + fileOptions, + visibility, + loadHandler._id); + } + + NSArray? get registeredTypeIdentifiers { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_registeredTypeIdentifiers1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray registeredTypeIdentifiersWithFileOptions_(int fileOptions) { + final _ret = _lib._objc_msgSend_625( + _id, _lib._sel_registeredTypeIdentifiersWithFileOptions_1, fileOptions); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + bool hasItemConformingToTypeIdentifier_(NSString? typeIdentifier) { + return _lib._objc_msgSend_59( + _id, + _lib._sel_hasItemConformingToTypeIdentifier_1, + typeIdentifier?._id ?? ffi.nullptr); + } + + bool hasRepresentationConformingToTypeIdentifier_fileOptions_( + NSString? typeIdentifier, int fileOptions) { + return _lib._objc_msgSend_626( + _id, + _lib._sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1, + typeIdentifier?._id ?? ffi.nullptr, + fileOptions); + } + + NSProgress loadDataRepresentationForTypeIdentifier_completionHandler_( + NSString? typeIdentifier, ObjCBlock25 completionHandler) { + final _ret = _lib._objc_msgSend_627( + _id, + _lib._sel_loadDataRepresentationForTypeIdentifier_completionHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + completionHandler._id); + return NSProgress._(_ret, _lib, retain: true, release: true); + } + + NSProgress loadFileRepresentationForTypeIdentifier_completionHandler_( + NSString? typeIdentifier, ObjCBlock28 completionHandler) { + final _ret = _lib._objc_msgSend_628( + _id, + _lib._sel_loadFileRepresentationForTypeIdentifier_completionHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + completionHandler._id); + return NSProgress._(_ret, _lib, retain: true, release: true); + } + + NSProgress loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_( + NSString? typeIdentifier, ObjCBlock27 completionHandler) { + final _ret = _lib._objc_msgSend_629( + _id, + _lib._sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + completionHandler._id); + return NSProgress._(_ret, _lib, retain: true, release: true); + } + + NSString? get suggestedName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suggestedName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set suggestedName(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setSuggestedName_1, value?._id ?? ffi.nullptr); + } + + NSItemProvider initWithObject_(NSObject? object) { + final _ret = _lib._objc_msgSend_16( + _id, _lib._sel_initWithObject_1, object?._id ?? ffi.nullptr); + return NSItemProvider._(_ret, _lib, retain: true, release: true); + } + + void registerObject_visibility_(NSObject? object, int visibility) { + return _lib._objc_msgSend_630(_id, _lib._sel_registerObject_visibility_1, + object?._id ?? ffi.nullptr, visibility); + } + + void registerObjectOfClass_visibility_loadHandler_( + NSObject? aClass, int visibility, ObjCBlock29 loadHandler) { + return _lib._objc_msgSend_631( + _id, + _lib._sel_registerObjectOfClass_visibility_loadHandler_1, + aClass?._id ?? ffi.nullptr, + visibility, + loadHandler._id); + } + + bool canLoadObjectOfClass_(NSObject? aClass) { + return _lib._objc_msgSend_0( + _id, _lib._sel_canLoadObjectOfClass_1, aClass?._id ?? ffi.nullptr); + } + + NSProgress loadObjectOfClass_completionHandler_( + NSObject? aClass, ObjCBlock30 completionHandler) { + final _ret = _lib._objc_msgSend_632( + _id, + _lib._sel_loadObjectOfClass_completionHandler_1, + aClass?._id ?? ffi.nullptr, + completionHandler._id); + return NSProgress._(_ret, _lib, retain: true, release: true); + } + + NSItemProvider initWithItem_typeIdentifier_( + NSObject? item, NSString? typeIdentifier) { + final _ret = _lib._objc_msgSend_287( + _id, + _lib._sel_initWithItem_typeIdentifier_1, + item?._id ?? ffi.nullptr, + typeIdentifier?._id ?? ffi.nullptr); + return NSItemProvider._(_ret, _lib, retain: true, release: true); + } + + NSItemProvider initWithContentsOfURL_(NSURL? fileURL) { + final _ret = _lib._objc_msgSend_241( + _id, _lib._sel_initWithContentsOfURL_1, fileURL?._id ?? ffi.nullptr); + return NSItemProvider._(_ret, _lib, retain: true, release: true); + } + + void registerItemForTypeIdentifier_loadHandler_( + NSString? typeIdentifier, ObjCBlock31 loadHandler) { + return _lib._objc_msgSend_633( + _id, + _lib._sel_registerItemForTypeIdentifier_loadHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + loadHandler._id); + } + + void loadItemForTypeIdentifier_options_completionHandler_( + NSString? typeIdentifier, + NSDictionary? options, + ObjCBlock30 completionHandler) { + return _lib._objc_msgSend_634( + _id, + _lib._sel_loadItemForTypeIdentifier_options_completionHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr, + completionHandler._id); + } + + ObjCBlock31 get previewImageHandler { + final _ret = _lib._objc_msgSend_635(_id, _lib._sel_previewImageHandler1); + return ObjCBlock31._(_ret, _lib); + } + + set previewImageHandler(ObjCBlock31 value) { + _lib._objc_msgSend_636(_id, _lib._sel_setPreviewImageHandler_1, value._id); + } + + void loadPreviewImageWithOptions_completionHandler_( + NSDictionary? options, ObjCBlock30 completionHandler) { + return _lib._objc_msgSend_637( + _id, + _lib._sel_loadPreviewImageWithOptions_completionHandler_1, + options?._id ?? ffi.nullptr, + completionHandler._id); + } + + static NSItemProvider new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSItemProvider1, _lib._sel_new1); + return NSItemProvider._(_ret, _lib, retain: false, release: true); + } + + static NSItemProvider alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSItemProvider1, _lib._sel_alloc1); + return NSItemProvider._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSItemProvider1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSItemProvider1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSItemProvider1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSItemProvider1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSItemProvider1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSItemProvider1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSItemProvider1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSItemProvider1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSItemProvider1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSItemProviderRepresentationVisibility { + static const int NSItemProviderRepresentationVisibilityAll = 0; + static const int NSItemProviderRepresentationVisibilityTeam = 1; + static const int NSItemProviderRepresentationVisibilityGroup = 2; + static const int NSItemProviderRepresentationVisibilityOwnProcess = 3; +} + +ffi.Pointer _ObjCBlock23_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> arg0)>()(arg0); +} + +final _ObjCBlock23_closureRegistry = {}; +int _ObjCBlock23_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock23_registerClosure(Function fn) { + final id = ++_ObjCBlock23_closureRegistryIndex; + _ObjCBlock23_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +ffi.Pointer _ObjCBlock23_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { + return _ObjCBlock23_closureRegistry[block.ref.target.address]!(arg0); +} + +class ObjCBlock23 extends _ObjCBlockBase { + ObjCBlock23._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock23.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0)>( + _ObjCBlock23_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock23.fromFunction(HidListenerBindingsSwift lib, + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0)>( + _ObjCBlock23_closureTrampoline) + .cast(), + _ObjCBlock23_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0)>()(_id, arg0); + } +} + +class NSProgress extends NSObject { + NSProgress._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSProgress] that points to the same underlying object as [other]. + static NSProgress castFrom(T other) { + return NSProgress._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSProgress] that wraps the given raw object pointer. + static NSProgress castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSProgress._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSProgress]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProgress1); + } + + static NSProgress currentProgress(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_609( + _lib._class_NSProgress1, _lib._sel_currentProgress1); + return NSProgress._(_ret, _lib, retain: true, release: true); + } + + static NSProgress progressWithTotalUnitCount_( + HidListenerBindingsSwift _lib, int unitCount) { + final _ret = _lib._objc_msgSend_610(_lib._class_NSProgress1, + _lib._sel_progressWithTotalUnitCount_1, unitCount); + return NSProgress._(_ret, _lib, retain: true, release: true); + } + + static NSProgress discreteProgressWithTotalUnitCount_( + HidListenerBindingsSwift _lib, int unitCount) { + final _ret = _lib._objc_msgSend_610(_lib._class_NSProgress1, + _lib._sel_discreteProgressWithTotalUnitCount_1, unitCount); + return NSProgress._(_ret, _lib, retain: true, release: true); + } + + static NSProgress progressWithTotalUnitCount_parent_pendingUnitCount_( + HidListenerBindingsSwift _lib, + int unitCount, + NSProgress? parent, + int portionOfParentTotalUnitCount) { + final _ret = _lib._objc_msgSend_611( + _lib._class_NSProgress1, + _lib._sel_progressWithTotalUnitCount_parent_pendingUnitCount_1, + unitCount, + parent?._id ?? ffi.nullptr, + portionOfParentTotalUnitCount); + return NSProgress._(_ret, _lib, retain: true, release: true); + } + + NSProgress initWithParent_userInfo_( + NSProgress? parentProgressOrNil, NSObject? userInfoOrNil) { + final _ret = _lib._objc_msgSend_612( + _id, + _lib._sel_initWithParent_userInfo_1, + parentProgressOrNil?._id ?? ffi.nullptr, + userInfoOrNil?._id ?? ffi.nullptr); + return NSProgress._(_ret, _lib, retain: true, release: true); + } + + void becomeCurrentWithPendingUnitCount_(int unitCount) { + return _lib._objc_msgSend_613( + _id, _lib._sel_becomeCurrentWithPendingUnitCount_1, unitCount); + } + + void performAsCurrentWithPendingUnitCount_usingBlock_( + int unitCount, ObjCBlock21 work) { + return _lib._objc_msgSend_614( + _id, + _lib._sel_performAsCurrentWithPendingUnitCount_usingBlock_1, + unitCount, + work._id); + } + + void resignCurrent() { + return _lib._objc_msgSend_1(_id, _lib._sel_resignCurrent1); + } + + void addChild_withPendingUnitCount_(NSProgress? child, int inUnitCount) { + return _lib._objc_msgSend_615( + _id, + _lib._sel_addChild_withPendingUnitCount_1, + child?._id ?? ffi.nullptr, + inUnitCount); + } + + int get totalUnitCount { + return _lib._objc_msgSend_616(_id, _lib._sel_totalUnitCount1); + } + + set totalUnitCount(int value) { + _lib._objc_msgSend_617(_id, _lib._sel_setTotalUnitCount_1, value); + } + + int get completedUnitCount { + return _lib._objc_msgSend_616(_id, _lib._sel_completedUnitCount1); + } + + set completedUnitCount(int value) { + _lib._objc_msgSend_617(_id, _lib._sel_setCompletedUnitCount_1, value); + } + + NSString? get localizedDescription { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localizedDescription1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set localizedDescription(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setLocalizedDescription_1, value?._id ?? ffi.nullptr); + } + + NSString? get localizedAdditionalDescription { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_localizedAdditionalDescription1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set localizedAdditionalDescription(NSString? value) { + _lib._objc_msgSend_509(_id, _lib._sel_setLocalizedAdditionalDescription_1, + value?._id ?? ffi.nullptr); + } + + bool get cancellable { + return _lib._objc_msgSend_12(_id, _lib._sel_isCancellable1); + } + + set cancellable(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setCancellable_1, value); + } + + bool get pausable { + return _lib._objc_msgSend_12(_id, _lib._sel_isPausable1); + } + + set pausable(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setPausable_1, value); + } + + bool get cancelled { + return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); + } + + bool get paused { + return _lib._objc_msgSend_12(_id, _lib._sel_isPaused1); + } + + ObjCBlock21 get cancellationHandler { + final _ret = _lib._objc_msgSend_618(_id, _lib._sel_cancellationHandler1); + return ObjCBlock21._(_ret, _lib); + } + + set cancellationHandler(ObjCBlock21 value) { + _lib._objc_msgSend_619(_id, _lib._sel_setCancellationHandler_1, value._id); + } + + ObjCBlock21 get pausingHandler { + final _ret = _lib._objc_msgSend_618(_id, _lib._sel_pausingHandler1); + return ObjCBlock21._(_ret, _lib); + } + + set pausingHandler(ObjCBlock21 value) { + _lib._objc_msgSend_619(_id, _lib._sel_setPausingHandler_1, value._id); + } + + ObjCBlock21 get resumingHandler { + final _ret = _lib._objc_msgSend_618(_id, _lib._sel_resumingHandler1); + return ObjCBlock21._(_ret, _lib); + } + + set resumingHandler(ObjCBlock21 value) { + _lib._objc_msgSend_619(_id, _lib._sel_setResumingHandler_1, value._id); + } + + void setUserInfoObject_forKey_(NSObject objectOrNil, NSString key) { + return _lib._objc_msgSend_126( + _id, _lib._sel_setUserInfoObject_forKey_1, objectOrNil._id, key._id); + } + + bool get indeterminate { + return _lib._objc_msgSend_12(_id, _lib._sel_isIndeterminate1); + } + + double get fractionCompleted { + return _lib._objc_msgSend_155(_id, _lib._sel_fractionCompleted1); + } + + bool get finished { + return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); + } + + void cancel() { + return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + } + + void pause() { + return _lib._objc_msgSend_1(_id, _lib._sel_pause1); + } + + void resume() { + return _lib._objc_msgSend_1(_id, _lib._sel_resume1); + } + + NSObject? get userInfo { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_userInfo1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + NSString get kind { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_kind1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + set kind(NSString value) { + _lib._objc_msgSend_509(_id, _lib._sel_setKind_1, value._id); + } + + NSNumber? get estimatedTimeRemaining { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_estimatedTimeRemaining1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set estimatedTimeRemaining(NSNumber? value) { + _lib._objc_msgSend_620( + _id, _lib._sel_setEstimatedTimeRemaining_1, value?._id ?? ffi.nullptr); + } + + NSNumber? get throughput { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_throughput1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set throughput(NSNumber? value) { + _lib._objc_msgSend_620( + _id, _lib._sel_setThroughput_1, value?._id ?? ffi.nullptr); + } + + NSString get fileOperationKind { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fileOperationKind1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + set fileOperationKind(NSString value) { + _lib._objc_msgSend_509(_id, _lib._sel_setFileOperationKind_1, value._id); + } + + NSURL? get fileURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_fileURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + set fileURL(NSURL? value) { + _lib._objc_msgSend_621( + _id, _lib._sel_setFileURL_1, value?._id ?? ffi.nullptr); + } + + NSNumber? get fileTotalCount { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_fileTotalCount1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set fileTotalCount(NSNumber? value) { + _lib._objc_msgSend_620( + _id, _lib._sel_setFileTotalCount_1, value?._id ?? ffi.nullptr); + } + + NSNumber? get fileCompletedCount { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_fileCompletedCount1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set fileCompletedCount(NSNumber? value) { + _lib._objc_msgSend_620( + _id, _lib._sel_setFileCompletedCount_1, value?._id ?? ffi.nullptr); + } + + void publish() { + return _lib._objc_msgSend_1(_id, _lib._sel_publish1); + } + + void unpublish() { + return _lib._objc_msgSend_1(_id, _lib._sel_unpublish1); + } + + static NSObject addSubscriberForFileURL_withPublishingHandler_( + HidListenerBindingsSwift _lib, + NSURL? url, + ObjCBlock24 publishingHandler) { + final _ret = _lib._objc_msgSend_622( + _lib._class_NSProgress1, + _lib._sel_addSubscriberForFileURL_withPublishingHandler_1, + url?._id ?? ffi.nullptr, + publishingHandler._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static void removeSubscriber_( + HidListenerBindingsSwift _lib, NSObject subscriber) { + return _lib._objc_msgSend_15( + _lib._class_NSProgress1, _lib._sel_removeSubscriber_1, subscriber._id); + } + + bool get old { + return _lib._objc_msgSend_12(_id, _lib._sel_isOld1); + } + + static NSProgress new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_new1); + return NSProgress._(_ret, _lib, retain: false, release: true); + } + + static NSProgress alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_alloc1); + return NSProgress._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSProgress1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSProgress1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSProgress1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSProgress1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSProgress1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSProgress1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSProgress1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSProgress1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSProgress1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +ffi.Pointer<_ObjCBlock> _ObjCBlock24_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function(ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer arg0)>()(arg0); +} + +final _ObjCBlock24_closureRegistry = {}; +int _ObjCBlock24_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock24_registerClosure(Function fn) { + final id = ++_ObjCBlock24_closureRegistryIndex; + _ObjCBlock24_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +ffi.Pointer<_ObjCBlock> _ObjCBlock24_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return _ObjCBlock24_closureRegistry[block.ref.target.address]!(arg0); +} + +class ObjCBlock24 extends _ObjCBlockBase { + ObjCBlock24._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock24.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock24_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock24.fromFunction(HidListenerBindingsSwift lib, + ffi.Pointer<_ObjCBlock> Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock24_closureTrampoline) + .cast(), + _ObjCBlock24_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + ffi.Pointer<_ObjCBlock> call(ffi.Pointer arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer<_ObjCBlock> Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); + } +} + +void _ObjCBlock25_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); +} + +final _ObjCBlock25_closureRegistry = {}; +int _ObjCBlock25_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock25_registerClosure(Function fn) { + final id = ++_ObjCBlock25_closureRegistryIndex; + _ObjCBlock25_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock25_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return _ObjCBlock25_closureRegistry[block.ref.target.address]!(arg0, arg1); +} + +class ObjCBlock25 extends _ObjCBlockBase { + ObjCBlock25._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock25.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock25_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock25.fromFunction( + HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock25_closureTrampoline) + .cast(), + _ObjCBlock25_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); + } +} + +abstract class NSItemProviderFileOptions { + static const int NSItemProviderFileOptionOpenInPlace = 1; +} + +ffi.Pointer _ObjCBlock26_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> arg0)>()(arg0); +} + +final _ObjCBlock26_closureRegistry = {}; +int _ObjCBlock26_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock26_registerClosure(Function fn) { + final id = ++_ObjCBlock26_closureRegistryIndex; + _ObjCBlock26_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +ffi.Pointer _ObjCBlock26_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { + return _ObjCBlock26_closureRegistry[block.ref.target.address]!(arg0); +} + +class ObjCBlock26 extends _ObjCBlockBase { + ObjCBlock26._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock26.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0)>( + _ObjCBlock26_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock26.fromFunction(HidListenerBindingsSwift lib, + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0)>( + _ObjCBlock26_closureTrampoline) + .cast(), + _ObjCBlock26_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0)>()(_id, arg0); + } +} + +void _ObjCBlock27_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer arg0, bool arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} + +final _ObjCBlock27_closureRegistry = {}; +int _ObjCBlock27_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock27_registerClosure(Function fn) { + final id = ++_ObjCBlock27_closureRegistryIndex; + _ObjCBlock27_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock27_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { + return _ObjCBlock27_closureRegistry[block.ref.target.address]!( + arg0, arg1, arg2); +} + +class ObjCBlock27 extends _ObjCBlockBase { + ObjCBlock27._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock27.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2)>( + _ObjCBlock27_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock27.fromFunction( + HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0, bool arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2)>( + _ObjCBlock27_closureTrampoline) + .cast(), + _ObjCBlock27_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call( + ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } +} + +void _ObjCBlock28_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); +} + +final _ObjCBlock28_closureRegistry = {}; +int _ObjCBlock28_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock28_registerClosure(Function fn) { + final id = ++_ObjCBlock28_closureRegistryIndex; + _ObjCBlock28_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock28_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return _ObjCBlock28_closureRegistry[block.ref.target.address]!(arg0, arg1); +} + +class ObjCBlock28 extends _ObjCBlockBase { + ObjCBlock28._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock28.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock28_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock28.fromFunction( + HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock28_closureTrampoline) + .cast(), + _ObjCBlock28_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); + } +} + +ffi.Pointer _ObjCBlock29_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> arg0)>()(arg0); +} + +final _ObjCBlock29_closureRegistry = {}; +int _ObjCBlock29_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock29_registerClosure(Function fn) { + final id = ++_ObjCBlock29_closureRegistryIndex; + _ObjCBlock29_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +ffi.Pointer _ObjCBlock29_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { + return _ObjCBlock29_closureRegistry[block.ref.target.address]!(arg0); +} + +class ObjCBlock29 extends _ObjCBlockBase { + ObjCBlock29._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock29.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0)>( + _ObjCBlock29_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock29.fromFunction(HidListenerBindingsSwift lib, + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0)>( + _ObjCBlock29_closureTrampoline) + .cast(), + _ObjCBlock29_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0)>>() + .asFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0)>()(_id, arg0); + } +} + +void _ObjCBlock30_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); +} + +final _ObjCBlock30_closureRegistry = {}; +int _ObjCBlock30_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock30_registerClosure(Function fn) { + final id = ++_ObjCBlock30_closureRegistryIndex; + _ObjCBlock30_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock30_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return _ObjCBlock30_closureRegistry[block.ref.target.address]!(arg0, arg1); +} + +class ObjCBlock30 extends _ObjCBlockBase { + ObjCBlock30._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock30.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock30_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock30.fromFunction( + HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock30_closureTrampoline) + .cast(), + _ObjCBlock30_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); + } +} + +void _ObjCBlock31_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} + +final _ObjCBlock31_closureRegistry = {}; +int _ObjCBlock31_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock31_registerClosure(Function fn) { + final id = ++_ObjCBlock31_closureRegistryIndex; + _ObjCBlock31_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock31_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return _ObjCBlock31_closureRegistry[block.ref.target.address]!( + arg0, arg1, arg2); +} + +class ObjCBlock31 extends _ObjCBlockBase { + ObjCBlock31._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock31.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock31_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock31.fromFunction( + HidListenerBindingsSwift lib, + void Function(ffi.Pointer<_ObjCBlock> arg0, ffi.Pointer arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock31_closureTrampoline) + .cast(), + _ObjCBlock31_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer<_ObjCBlock> arg0, ffi.Pointer arg1, + ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } +} + +class NSMutableString extends NSString { + NSMutableString._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSMutableString] that points to the same underlying object as [other]. + static NSMutableString castFrom(T other) { + return NSMutableString._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSMutableString] that wraps the given raw object pointer. + static NSMutableString castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMutableString._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSMutableString]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableString1); + } + + void replaceCharactersInRange_withString_(_NSRange range, NSString? aString) { + return _lib._objc_msgSend_638( + _id, + _lib._sel_replaceCharactersInRange_withString_1, + range, + aString?._id ?? ffi.nullptr); + } + + void insertString_atIndex_(NSString? aString, int loc) { + return _lib._objc_msgSend_639(_id, _lib._sel_insertString_atIndex_1, + aString?._id ?? ffi.nullptr, loc); + } + + void deleteCharactersInRange_(_NSRange range) { + return _lib._objc_msgSend_445( + _id, _lib._sel_deleteCharactersInRange_1, range); + } + + void appendString_(NSString? aString) { + return _lib._objc_msgSend_192( + _id, _lib._sel_appendString_1, aString?._id ?? ffi.nullptr); + } + + void appendFormat_(NSString? format) { + return _lib._objc_msgSend_192( + _id, _lib._sel_appendFormat_1, format?._id ?? ffi.nullptr); + } + + void setString_(NSString? aString) { + return _lib._objc_msgSend_192( + _id, _lib._sel_setString_1, aString?._id ?? ffi.nullptr); + } + + int replaceOccurrencesOfString_withString_options_range_(NSString? target, + NSString? replacement, int options, _NSRange searchRange) { + return _lib._objc_msgSend_640( + _id, + _lib._sel_replaceOccurrencesOfString_withString_options_range_1, + target?._id ?? ffi.nullptr, + replacement?._id ?? ffi.nullptr, + options, + searchRange); + } + + bool applyTransform_reverse_range_updatedRange_(NSString transform, + bool reverse, _NSRange range, ffi.Pointer<_NSRange> resultingRange) { + return _lib._objc_msgSend_641( + _id, + _lib._sel_applyTransform_reverse_range_updatedRange_1, + transform._id, + reverse, + range, + resultingRange); + } + + NSMutableString initWithCapacity_(int capacity) { + final _ret = + _lib._objc_msgSend_642(_id, _lib._sel_initWithCapacity_1, capacity); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithCapacity_( + HidListenerBindingsSwift _lib, int capacity) { + final _ret = _lib._objc_msgSend_642( + _lib._class_NSMutableString1, _lib._sel_stringWithCapacity_1, capacity); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static ffi.Pointer getAvailableStringEncodings( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_333( + _lib._class_NSMutableString1, _lib._sel_availableStringEncodings1); + } + + static NSString localizedNameOfStringEncoding_( + HidListenerBindingsSwift _lib, int encoding) { + final _ret = _lib._objc_msgSend_308(_lib._class_NSMutableString1, + _lib._sel_localizedNameOfStringEncoding_1, encoding); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static int getDefaultCStringEncoding(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_10( + _lib._class_NSMutableString1, _lib._sel_defaultCStringEncoding1); + } + + static NSMutableString string(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_string1); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithString_( + HidListenerBindingsSwift _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, + _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithCharacters_length_( + HidListenerBindingsSwift _lib, + ffi.Pointer characters, + int length) { + final _ret = _lib._objc_msgSend_346(_lib._class_NSMutableString1, + _lib._sel_stringWithCharacters_length_1, characters, length); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithUTF8String_(HidListenerBindingsSwift _lib, + ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_347(_lib._class_NSMutableString1, + _lib._sel_stringWithUTF8String_1, nullTerminatedCString); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithFormat_( + HidListenerBindingsSwift _lib, NSString? format) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, + _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString localizedStringWithFormat_( + HidListenerBindingsSwift _lib, NSString? format) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, + _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithValidatedFormat_validFormatSpecifiers_error_( + HidListenerBindingsSwift _lib, + NSString? format, + NSString? validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_350( + _lib._class_NSMutableString1, + _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString + localizedStringWithValidatedFormat_validFormatSpecifiers_error_( + HidListenerBindingsSwift _lib, + NSString? format, + NSString? validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_350( + _lib._class_NSMutableString1, + _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithCString_encoding_( + HidListenerBindingsSwift _lib, ffi.Pointer cString, int enc) { + final _ret = _lib._objc_msgSend_358(_lib._class_NSMutableString1, + _lib._sel_stringWithCString_encoding_1, cString, enc); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithContentsOfURL_encoding_error_( + HidListenerBindingsSwift _lib, + NSURL? url, + int enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_359( + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfURL_encoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithContentsOfFile_encoding_error_( + HidListenerBindingsSwift _lib, + NSString? path, + int enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_360( + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfFile_encoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithContentsOfURL_usedEncoding_error_( + HidListenerBindingsSwift _lib, + NSURL? url, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_361( + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithContentsOfFile_usedEncoding_error_( + HidListenerBindingsSwift _lib, + NSString? path, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_362( + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static int + stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( + HidListenerBindingsSwift _lib, + NSData? data, + NSDictionary? opts, + ffi.Pointer> string, + ffi.Pointer usedLossyConversion) { + return _lib._objc_msgSend_363( + _lib._class_NSMutableString1, + _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, + data?._id ?? ffi.nullptr, + opts?._id ?? ffi.nullptr, + string, + usedLossyConversion); + } + + static NSObject stringWithContentsOfFile_( + HidListenerBindingsSwift _lib, NSString? path) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject stringWithContentsOfURL_( + HidListenerBindingsSwift _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject stringWithCString_length_( + HidListenerBindingsSwift _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_358(_lib._class_NSMutableString1, + _lib._sel_stringWithCString_length_1, bytes, length); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject stringWithCString_( + HidListenerBindingsSwift _lib, ffi.Pointer bytes) { + final _ret = _lib._objc_msgSend_347( + _lib._class_NSMutableString1, _lib._sel_stringWithCString_1, bytes); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSString pathWithComponents_( + HidListenerBindingsSwift _lib, NSArray? components) { + final _ret = _lib._objc_msgSend_369(_lib._class_NSMutableString1, + _lib._sel_pathWithComponents_1, components?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_new1); + return NSMutableString._(_ret, _lib, retain: false, release: true); + } + + static NSMutableString alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_alloc1); + return NSMutableString._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSMutableString1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSMutableString1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSMutableString1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableString1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSMutableString1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSMutableString1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSMutableString1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableString1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableString1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSNotification extends NSObject { + NSNotification._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSNotification] that points to the same underlying object as [other]. + static NSNotification castFrom(T other) { + return NSNotification._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSNotification] that wraps the given raw object pointer. + static NSNotification castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSNotification._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSNotification]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSNotification1); + } + + NSString get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSObject get object { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_object1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSDictionary? get userInfo { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_userInfo1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSNotification initWithName_object_userInfo_( + NSString name, NSObject object, NSDictionary? userInfo) { + final _ret = _lib._objc_msgSend_643( + _id, + _lib._sel_initWithName_object_userInfo_1, + name._id, + object._id, + userInfo?._id ?? ffi.nullptr); + return NSNotification._(_ret, _lib, retain: true, release: true); + } + + NSNotification initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSNotification._(_ret, _lib, retain: true, release: true); + } + + static NSNotification notificationWithName_object_( + HidListenerBindingsSwift _lib, NSString aName, NSObject anObject) { + final _ret = _lib._objc_msgSend_163(_lib._class_NSNotification1, + _lib._sel_notificationWithName_object_1, aName._id, anObject._id); + return NSNotification._(_ret, _lib, retain: true, release: true); + } + + static NSNotification notificationWithName_object_userInfo_( + HidListenerBindingsSwift _lib, + NSString aName, + NSObject anObject, + NSDictionary? aUserInfo) { + final _ret = _lib._objc_msgSend_643( + _lib._class_NSNotification1, + _lib._sel_notificationWithName_object_userInfo_1, + aName._id, + anObject._id, + aUserInfo?._id ?? ffi.nullptr); + return NSNotification._(_ret, _lib, retain: true, release: true); + } + + @override + NSNotification init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSNotification._(_ret, _lib, retain: true, release: true); + } + + static NSNotification new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_new1); + return NSNotification._(_ret, _lib, retain: false, release: true); + } + + static NSNotification alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_alloc1); + return NSNotification._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSNotification1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSNotification1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSNotification1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSNotification1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSNotification1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSNotification1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSNotification1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSNotification1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSNotification1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSBundle extends NSObject { + NSBundle._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSBundle] that points to the same underlying object as [other]. + static NSBundle castFrom(T other) { + return NSBundle._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSBundle] that wraps the given raw object pointer. + static NSBundle castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSBundle._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSBundle]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSBundle1); + } + + static NSBundle? getMainBundle(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_644(_lib._class_NSBundle1, _lib._sel_mainBundle1); + return _ret.address == 0 + ? null + : NSBundle._(_ret, _lib, retain: true, release: true); + } + + static NSBundle bundleWithPath_( + HidListenerBindingsSwift _lib, NSString? path) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSBundle1, + _lib._sel_bundleWithPath_1, path?._id ?? ffi.nullptr); + return NSBundle._(_ret, _lib, retain: true, release: true); + } + + NSBundle initWithPath_(NSString? path) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithPath_1, path?._id ?? ffi.nullptr); + return NSBundle._(_ret, _lib, retain: true, release: true); + } + + static NSBundle bundleWithURL_(HidListenerBindingsSwift _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSBundle1, + _lib._sel_bundleWithURL_1, url?._id ?? ffi.nullptr); + return NSBundle._(_ret, _lib, retain: true, release: true); + } + + NSBundle initWithURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_241( + _id, _lib._sel_initWithURL_1, url?._id ?? ffi.nullptr); + return NSBundle._(_ret, _lib, retain: true, release: true); + } + + static NSBundle bundleForClass_( + HidListenerBindingsSwift _lib, NSObject aClass) { + final _ret = _lib._objc_msgSend_645( + _lib._class_NSBundle1, _lib._sel_bundleForClass_1, aClass._id); + return NSBundle._(_ret, _lib, retain: true, release: true); + } + + static NSBundle bundleWithIdentifier_( + HidListenerBindingsSwift _lib, NSString? identifier) { + final _ret = _lib._objc_msgSend_646(_lib._class_NSBundle1, + _lib._sel_bundleWithIdentifier_1, identifier?._id ?? ffi.nullptr); + return NSBundle._(_ret, _lib, retain: true, release: true); + } + + static NSArray? getAllBundles(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_79(_lib._class_NSBundle1, _lib._sel_allBundles1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray? getAllFrameworks(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_79(_lib._class_NSBundle1, _lib._sel_allFrameworks1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + bool load() { + return _lib._objc_msgSend_12(_id, _lib._sel_load1); + } + + bool get loaded { + return _lib._objc_msgSend_12(_id, _lib._sel_isLoaded1); + } + + bool unload() { + return _lib._objc_msgSend_12(_id, _lib._sel_unload1); + } + + bool preflightAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_225( + _id, _lib._sel_preflightAndReturnError_1, error); + } + + bool loadAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_225(_id, _lib._sel_loadAndReturnError_1, error); + } + + NSURL? get bundleURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_bundleURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get resourceURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_resourceURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get executableURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_executableURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL URLForAuxiliaryExecutable_(NSString? executableName) { + final _ret = _lib._objc_msgSend_34( + _id, + _lib._sel_URLForAuxiliaryExecutable_1, + executableName?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get privateFrameworksURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_privateFrameworksURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get sharedFrameworksURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_sharedFrameworksURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get sharedSupportURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_sharedSupportURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get builtInPlugInsURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_builtInPlugInsURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get appStoreReceiptURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_appStoreReceiptURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSString? get bundlePath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_bundlePath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get resourcePath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_resourcePath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get executablePath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_executablePath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString pathForAuxiliaryExecutable_(NSString? executableName) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_pathForAuxiliaryExecutable_1, + executableName?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get privateFrameworksPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_privateFrameworksPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get sharedFrameworksPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sharedFrameworksPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get sharedSupportPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sharedSupportPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get builtInPlugInsPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_builtInPlugInsPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + static NSURL URLForResource_withExtension_subdirectory_inBundleWithURL_( + HidListenerBindingsSwift _lib, + NSString? name, + NSString? ext, + NSString? subpath, + NSURL? bundleURL) { + final _ret = _lib._objc_msgSend_647( + _lib._class_NSBundle1, + _lib._sel_URLForResource_withExtension_subdirectory_inBundleWithURL_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + bundleURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + static NSArray URLsForResourcesWithExtension_subdirectory_inBundleWithURL_( + HidListenerBindingsSwift _lib, + NSString? ext, + NSString? subpath, + NSURL? bundleURL) { + final _ret = _lib._objc_msgSend_648( + _lib._class_NSBundle1, + _lib._sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_1, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + bundleURL?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSURL URLForResource_withExtension_(NSString? name, NSString? ext) { + final _ret = _lib._objc_msgSend_649( + _id, + _lib._sel_URLForResource_withExtension_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL URLForResource_withExtension_subdirectory_( + NSString? name, NSString? ext, NSString? subpath) { + final _ret = _lib._objc_msgSend_650( + _id, + _lib._sel_URLForResource_withExtension_subdirectory_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL URLForResource_withExtension_subdirectory_localization_(NSString? name, + NSString? ext, NSString? subpath, NSString? localizationName) { + final _ret = _lib._objc_msgSend_651( + _id, + _lib._sel_URLForResource_withExtension_subdirectory_localization_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + localizationName?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSArray URLsForResourcesWithExtension_subdirectory_( + NSString? ext, NSString? subpath) { + final _ret = _lib._objc_msgSend_652( + _id, + _lib._sel_URLsForResourcesWithExtension_subdirectory_1, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray URLsForResourcesWithExtension_subdirectory_localization_( + NSString? ext, NSString? subpath, NSString? localizationName) { + final _ret = _lib._objc_msgSend_653( + _id, + _lib._sel_URLsForResourcesWithExtension_subdirectory_localization_1, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + localizationName?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSString pathForResource_ofType_inDirectory_( + HidListenerBindingsSwift _lib, + NSString? name, + NSString? ext, + NSString? bundlePath) { + final _ret = _lib._objc_msgSend_654( + _lib._class_NSBundle1, + _lib._sel_pathForResource_ofType_inDirectory_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr, + bundlePath?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSArray pathsForResourcesOfType_inDirectory_( + HidListenerBindingsSwift _lib, NSString? ext, NSString? bundlePath) { + final _ret = _lib._objc_msgSend_652( + _lib._class_NSBundle1, + _lib._sel_pathsForResourcesOfType_inDirectory_1, + ext?._id ?? ffi.nullptr, + bundlePath?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString pathForResource_ofType_(NSString? name, NSString? ext) { + final _ret = _lib._objc_msgSend_339(_id, _lib._sel_pathForResource_ofType_1, + name?._id ?? ffi.nullptr, ext?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString pathForResource_ofType_inDirectory_forLocalization_(NSString? name, + NSString? ext, NSString? subpath, NSString? localizationName) { + final _ret = _lib._objc_msgSend_655( + _id, + _lib._sel_pathForResource_ofType_inDirectory_forLocalization_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + localizationName?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray pathsForResourcesOfType_inDirectory_forLocalization_( + NSString? ext, NSString? subpath, NSString? localizationName) { + final _ret = _lib._objc_msgSend_653( + _id, + _lib._sel_pathsForResourcesOfType_inDirectory_forLocalization_1, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + localizationName?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString localizedStringForKey_value_table_( + NSString? key, NSString? value, NSString? tableName) { + final _ret = _lib._objc_msgSend_654( + _id, + _lib._sel_localizedStringForKey_value_table_1, + key?._id ?? ffi.nullptr, + value?._id ?? ffi.nullptr, + tableName?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString localizedAttributedStringForKey_value_table_( + NSString? key, NSString? value, NSString? tableName) { + final _ret = _lib._objc_msgSend_676( + _id, + _lib._sel_localizedAttributedStringForKey_value_table_1, + key?._id ?? ffi.nullptr, + value?._id ?? ffi.nullptr, + tableName?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSString? get bundleIdentifier { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_bundleIdentifier1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSDictionary? get infoDictionary { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_infoDictionary1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSDictionary? get localizedInfoDictionary { + final _ret = + _lib._objc_msgSend_170(_id, _lib._sel_localizedInfoDictionary1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSObject objectForInfoDictionaryKey_(NSString? key) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_objectForInfoDictionaryKey_1, key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject classNamed_(NSString? className) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_classNamed_1, className?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject get principalClass { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_principalClass1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSArray? get preferredLocalizations { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_preferredLocalizations1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get localizations { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_localizations1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString? get developmentLocalization { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_developmentLocalization1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + static NSArray preferredLocalizationsFromArray_( + HidListenerBindingsSwift _lib, NSArray? localizationsArray) { + final _ret = _lib._objc_msgSend_63( + _lib._class_NSBundle1, + _lib._sel_preferredLocalizationsFromArray_1, + localizationsArray?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray preferredLocalizationsFromArray_forPreferences_( + HidListenerBindingsSwift _lib, + NSArray? localizationsArray, + NSArray? preferencesArray) { + final _ret = _lib._objc_msgSend_677( + _lib._class_NSBundle1, + _lib._sel_preferredLocalizationsFromArray_forPreferences_1, + localizationsArray?._id ?? ffi.nullptr, + preferencesArray?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get executableArchitectures { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_executableArchitectures1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + void setPreservationPriority_forTags_(double priority, NSSet? tags) { + return _lib._objc_msgSend_678( + _id, + _lib._sel_setPreservationPriority_forTags_1, + priority, + tags?._id ?? ffi.nullptr); + } + + double preservationPriorityForTag_(NSString? tag) { + return _lib._objc_msgSend_284( + _id, _lib._sel_preservationPriorityForTag_1, tag?._id ?? ffi.nullptr); + } + + static NSBundle new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSBundle1, _lib._sel_new1); + return NSBundle._(_ret, _lib, retain: false, release: true); + } + + static NSBundle alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSBundle1, _lib._sel_alloc1); + return NSBundle._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSBundle1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSBundle1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSBundle1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSBundle1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSBundle1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSBundle1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSBundle1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSBundle1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSBundle1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSAttributedString extends NSObject { + NSAttributedString._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSAttributedString] that points to the same underlying object as [other]. + static NSAttributedString castFrom(T other) { + return NSAttributedString._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSAttributedString] that wraps the given raw object pointer. + static NSAttributedString castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSAttributedString._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSAttributedString]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSAttributedString1); + } + + NSString? get string { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_string1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSDictionary attributesAtIndex_effectiveRange_( + int location, ffi.Pointer<_NSRange> range) { + final _ret = _lib._objc_msgSend_656( + _id, _lib._sel_attributesAtIndex_effectiveRange_1, location, range); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + int get length { + return _lib._objc_msgSend_10(_id, _lib._sel_length1); + } + + NSObject attribute_atIndex_effectiveRange_( + NSString attrName, int location, ffi.Pointer<_NSRange> range) { + final _ret = _lib._objc_msgSend_657( + _id, + _lib._sel_attribute_atIndex_effectiveRange_1, + attrName._id, + location, + range); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString attributedSubstringFromRange_(_NSRange range) { + final _ret = _lib._objc_msgSend_658( + _id, _lib._sel_attributedSubstringFromRange_1, range); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSDictionary attributesAtIndex_longestEffectiveRange_inRange_( + int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit) { + final _ret = _lib._objc_msgSend_659( + _id, + _lib._sel_attributesAtIndex_longestEffectiveRange_inRange_1, + location, + range, + rangeLimit); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSObject attribute_atIndex_longestEffectiveRange_inRange_(NSString attrName, + int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit) { + final _ret = _lib._objc_msgSend_660( + _id, + _lib._sel_attribute_atIndex_longestEffectiveRange_inRange_1, + attrName._id, + location, + range, + rangeLimit); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + bool isEqualToAttributedString_(NSAttributedString? other) { + return _lib._objc_msgSend_661( + _id, _lib._sel_isEqualToAttributedString_1, other?._id ?? ffi.nullptr); + } + + NSAttributedString initWithString_(NSString? str) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithString_1, str?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString initWithString_attributes_( + NSString? str, NSDictionary? attrs) { + final _ret = _lib._objc_msgSend_371( + _id, + _lib._sel_initWithString_attributes_1, + str?._id ?? ffi.nullptr, + attrs?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString initWithAttributedString_(NSAttributedString? attrStr) { + final _ret = _lib._objc_msgSend_662( + _id, _lib._sel_initWithAttributedString_1, attrStr?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + void enumerateAttributesInRange_options_usingBlock_( + _NSRange enumerationRange, int opts, ObjCBlock32 block) { + return _lib._objc_msgSend_663( + _id, + _lib._sel_enumerateAttributesInRange_options_usingBlock_1, + enumerationRange, + opts, + block._id); + } + + void enumerateAttribute_inRange_options_usingBlock_(NSString attrName, + _NSRange enumerationRange, int opts, ObjCBlock33 block) { + return _lib._objc_msgSend_664( + _id, + _lib._sel_enumerateAttribute_inRange_options_usingBlock_1, + attrName._id, + enumerationRange, + opts, + block._id); + } + + NSAttributedString initWithContentsOfMarkdownFileAtURL_options_baseURL_error_( + NSURL? markdownFile, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_669( + _id, + _lib._sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1, + markdownFile?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, + error); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString initWithMarkdown_options_baseURL_error_( + NSData? markdown, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_670( + _id, + _lib._sel_initWithMarkdown_options_baseURL_error_1, + markdown?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, + error); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString initWithMarkdownString_options_baseURL_error_( + NSString? markdownString, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_671( + _id, + _lib._sel_initWithMarkdownString_options_baseURL_error_1, + markdownString?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, + error); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString initWithFormat_options_locale_( + NSAttributedString? format, int options, NSLocale? locale) { + final _ret = _lib._objc_msgSend_672( + _id, + _lib._sel_initWithFormat_options_locale_1, + format?._id ?? ffi.nullptr, + options, + locale?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString initWithFormat_options_locale_arguments_( + NSAttributedString? format, + int options, + NSLocale? locale, + ffi.Pointer<__va_list_tag> arguments) { + final _ret = _lib._objc_msgSend_673( + _id, + _lib._sel_initWithFormat_options_locale_arguments_1, + format?._id ?? ffi.nullptr, + options, + locale?._id ?? ffi.nullptr, + arguments); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSAttributedString localizedAttributedStringWithFormat_( + HidListenerBindingsSwift _lib, NSAttributedString? format) { + final _ret = _lib._objc_msgSend_662( + _lib._class_NSAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_1, + format?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSAttributedString localizedAttributedStringWithFormat_options_( + HidListenerBindingsSwift _lib, NSAttributedString? format, int options) { + final _ret = _lib._objc_msgSend_674( + _lib._class_NSAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_options_1, + format?._id ?? ffi.nullptr, + options); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString attributedStringByInflectingString() { + final _ret = _lib._objc_msgSend_675( + _id, _lib._sel_attributedStringByInflectingString1); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSAttributedString new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSAttributedString1, _lib._sel_new1); + return NSAttributedString._(_ret, _lib, retain: false, release: true); + } + + static NSAttributedString alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSAttributedString1, _lib._sel_alloc1); + return NSAttributedString._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSAttributedString1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSAttributedString1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSAttributedString1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSAttributedString1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSAttributedString1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSAttributedString1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSAttributedString1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSAttributedString1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSAttributedString1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSAttributedStringEnumerationOptions { + static const int NSAttributedStringEnumerationReverse = 2; + static const int + NSAttributedStringEnumerationLongestEffectiveRangeNotRequired = 1048576; +} + +void _ObjCBlock32_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} + +final _ObjCBlock32_closureRegistry = {}; +int _ObjCBlock32_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock32_registerClosure(Function fn) { + final id = ++_ObjCBlock32_closureRegistryIndex; + _ObjCBlock32_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock32_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { + return _ObjCBlock32_closureRegistry[block.ref.target.address]!( + arg0, arg1, arg2); +} + +class ObjCBlock32 extends _ObjCBlockBase { + ObjCBlock32._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock32.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>( + _ObjCBlock32_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock32.fromFunction( + HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>( + _ObjCBlock32_closureTrampoline) + .cast(), + _ObjCBlock32_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call( + ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } +} + +void _ObjCBlock33_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} + +final _ObjCBlock33_closureRegistry = {}; +int _ObjCBlock33_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock33_registerClosure(Function fn) { + final id = ++_ObjCBlock33_closureRegistryIndex; + _ObjCBlock33_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock33_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { + return _ObjCBlock33_closureRegistry[block.ref.target.address]!( + arg0, arg1, arg2); +} + +class ObjCBlock33 extends _ObjCBlockBase { + ObjCBlock33._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock33.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>( + _ObjCBlock33_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock33.fromFunction( + HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>( + _ObjCBlock33_closureTrampoline) + .cast(), + _ObjCBlock33_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call( + ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } +} + +class NSAttributedStringMarkdownParsingOptions extends NSObject { + NSAttributedStringMarkdownParsingOptions._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSAttributedStringMarkdownParsingOptions] that points to the same underlying object as [other]. + static NSAttributedStringMarkdownParsingOptions + castFrom(T other) { + return NSAttributedStringMarkdownParsingOptions._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSAttributedStringMarkdownParsingOptions] that wraps the given raw object pointer. + static NSAttributedStringMarkdownParsingOptions castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSAttributedStringMarkdownParsingOptions._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSAttributedStringMarkdownParsingOptions]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSAttributedStringMarkdownParsingOptions1); + } + + @override + NSAttributedStringMarkdownParsingOptions init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, + retain: true, release: true); + } + + bool get allowsExtendedAttributes { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsExtendedAttributes1); + } + + set allowsExtendedAttributes(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setAllowsExtendedAttributes_1, value); + } + + int get interpretedSyntax { + return _lib._objc_msgSend_665(_id, _lib._sel_interpretedSyntax1); + } + + set interpretedSyntax(int value) { + _lib._objc_msgSend_666(_id, _lib._sel_setInterpretedSyntax_1, value); + } + + int get failurePolicy { + return _lib._objc_msgSend_667(_id, _lib._sel_failurePolicy1); + } + + set failurePolicy(int value) { + _lib._objc_msgSend_668(_id, _lib._sel_setFailurePolicy_1, value); + } + + NSString? get languageCode { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_languageCode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set languageCode(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setLanguageCode_1, value?._id ?? ffi.nullptr); + } + + bool get appliesSourcePositionAttributes { + return _lib._objc_msgSend_12( + _id, _lib._sel_appliesSourcePositionAttributes1); + } + + set appliesSourcePositionAttributes(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setAppliesSourcePositionAttributes_1, value); + } + + static NSAttributedStringMarkdownParsingOptions new1( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_new1); + return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, + retain: false, release: true); + } + + static NSAttributedStringMarkdownParsingOptions alloc( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_alloc1); + return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, + retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, + aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSAttributedStringMarkdownInterpretedSyntax { + static const int NSAttributedStringMarkdownInterpretedSyntaxFull = 0; + static const int NSAttributedStringMarkdownInterpretedSyntaxInlineOnly = 1; + static const int + NSAttributedStringMarkdownInterpretedSyntaxInlineOnlyPreservingWhitespace = + 2; +} + +abstract class NSAttributedStringMarkdownParsingFailurePolicy { + static const int NSAttributedStringMarkdownParsingFailureReturnError = 0; + static const int + NSAttributedStringMarkdownParsingFailureReturnPartiallyParsedIfPossible = + 1; +} + +abstract class NSAttributedStringFormattingOptions { + static const int + NSAttributedStringFormattingInsertArgumentAttributesWithoutMerging = 1; + static const int NSAttributedStringFormattingApplyReplacementIndexAttribute = + 2; +} + +class NSMutableAttributedString extends NSAttributedString { + NSMutableAttributedString._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSMutableAttributedString] that points to the same underlying object as [other]. + static NSMutableAttributedString castFrom(T other) { + return NSMutableAttributedString._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSMutableAttributedString] that wraps the given raw object pointer. + static NSMutableAttributedString castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMutableAttributedString._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSMutableAttributedString]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableAttributedString1); + } + + void replaceCharactersInRange_withString_(_NSRange range, NSString? str) { + return _lib._objc_msgSend_638( + _id, + _lib._sel_replaceCharactersInRange_withString_1, + range, + str?._id ?? ffi.nullptr); + } + + void setAttributes_range_(NSDictionary? attrs, _NSRange range) { + return _lib._objc_msgSend_679( + _id, _lib._sel_setAttributes_range_1, attrs?._id ?? ffi.nullptr, range); + } + + NSMutableString? get mutableString { + final _ret = _lib._objc_msgSend_680(_id, _lib._sel_mutableString1); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + void addAttribute_value_range_( + NSString name, NSObject value, _NSRange range) { + return _lib._objc_msgSend_681( + _id, _lib._sel_addAttribute_value_range_1, name._id, value._id, range); + } + + void addAttributes_range_(NSDictionary? attrs, _NSRange range) { + return _lib._objc_msgSend_679( + _id, _lib._sel_addAttributes_range_1, attrs?._id ?? ffi.nullptr, range); + } + + void removeAttribute_range_(NSString name, _NSRange range) { + return _lib._objc_msgSend_682( + _id, _lib._sel_removeAttribute_range_1, name._id, range); + } + + void replaceCharactersInRange_withAttributedString_( + _NSRange range, NSAttributedString? attrString) { + return _lib._objc_msgSend_683( + _id, + _lib._sel_replaceCharactersInRange_withAttributedString_1, + range, + attrString?._id ?? ffi.nullptr); + } + + void insertAttributedString_atIndex_( + NSAttributedString? attrString, int loc) { + return _lib._objc_msgSend_684( + _id, + _lib._sel_insertAttributedString_atIndex_1, + attrString?._id ?? ffi.nullptr, + loc); + } + + void appendAttributedString_(NSAttributedString? attrString) { + return _lib._objc_msgSend_685(_id, _lib._sel_appendAttributedString_1, + attrString?._id ?? ffi.nullptr); + } + + void deleteCharactersInRange_(_NSRange range) { + return _lib._objc_msgSend_445( + _id, _lib._sel_deleteCharactersInRange_1, range); + } + + void setAttributedString_(NSAttributedString? attrString) { + return _lib._objc_msgSend_685( + _id, _lib._sel_setAttributedString_1, attrString?._id ?? ffi.nullptr); + } + + void beginEditing() { + return _lib._objc_msgSend_1(_id, _lib._sel_beginEditing1); + } + + void endEditing() { + return _lib._objc_msgSend_1(_id, _lib._sel_endEditing1); + } + + void appendLocalizedFormat_(NSAttributedString? format) { + return _lib._objc_msgSend_685( + _id, _lib._sel_appendLocalizedFormat_1, format?._id ?? ffi.nullptr); + } + + static NSMutableAttributedString localizedAttributedStringWithFormat_( + HidListenerBindingsSwift _lib, NSAttributedString? format) { + final _ret = _lib._objc_msgSend_662( + _lib._class_NSMutableAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_1, + format?._id ?? ffi.nullptr); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableAttributedString localizedAttributedStringWithFormat_options_( + HidListenerBindingsSwift _lib, NSAttributedString? format, int options) { + final _ret = _lib._objc_msgSend_674( + _lib._class_NSMutableAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_options_1, + format?._id ?? ffi.nullptr, + options); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableAttributedString new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableAttributedString1, _lib._sel_new1); + return NSMutableAttributedString._(_ret, _lib, + retain: false, release: true); + } + + static NSMutableAttributedString alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableAttributedString1, _lib._sel_alloc1); + return NSMutableAttributedString._(_ret, _lib, + retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSMutableAttributedString1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSMutableAttributedString1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSMutableAttributedString1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableAttributedString1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSMutableAttributedString1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSMutableAttributedString1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSMutableAttributedString1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableAttributedString1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableAttributedString1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSDateFormatter extends NSFormatter { + NSDateFormatter._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSDateFormatter] that points to the same underlying object as [other]. + static NSDateFormatter castFrom(T other) { + return NSDateFormatter._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSDateFormatter] that wraps the given raw object pointer. + static NSDateFormatter castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSDateFormatter._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSDateFormatter]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSDateFormatter1); + } + + int get formattingContext { + return _lib._objc_msgSend_690(_id, _lib._sel_formattingContext1); + } + + set formattingContext(int value) { + _lib._objc_msgSend_691(_id, _lib._sel_setFormattingContext_1, value); + } + + bool getObjectValue_forString_range_error_( + ffi.Pointer> obj, + NSString? string, + ffi.Pointer<_NSRange> rangep, + ffi.Pointer> error) { + return _lib._objc_msgSend_692( + _id, + _lib._sel_getObjectValue_forString_range_error_1, + obj, + string?._id ?? ffi.nullptr, + rangep, + error); + } + + NSString stringFromDate_(NSDate? date) { + final _ret = _lib._objc_msgSend_167( + _id, _lib._sel_stringFromDate_1, date?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSDate dateFromString_(NSString? string) { + final _ret = _lib._objc_msgSend_528( + _id, _lib._sel_dateFromString_1, string?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSString localizedStringFromDate_dateStyle_timeStyle_( + HidListenerBindingsSwift _lib, NSDate? date, int dstyle, int tstyle) { + final _ret = _lib._objc_msgSend_693( + _lib._class_NSDateFormatter1, + _lib._sel_localizedStringFromDate_dateStyle_timeStyle_1, + date?._id ?? ffi.nullptr, + dstyle, + tstyle); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString dateFormatFromTemplate_options_locale_( + HidListenerBindingsSwift _lib, + NSString? tmplate, + int opts, + NSLocale? locale) { + final _ret = _lib._objc_msgSend_694( + _lib._class_NSDateFormatter1, + _lib._sel_dateFormatFromTemplate_options_locale_1, + tmplate?._id ?? ffi.nullptr, + opts, + locale?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static int getDefaultFormatterBehavior(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_695( + _lib._class_NSDateFormatter1, _lib._sel_defaultFormatterBehavior1); + } + + static void setDefaultFormatterBehavior( + HidListenerBindingsSwift _lib, int value) { + _lib._objc_msgSend_696(_lib._class_NSDateFormatter1, + _lib._sel_setDefaultFormatterBehavior_1, value); + } + + void setLocalizedDateFormatFromTemplate_(NSString? dateFormatTemplate) { + return _lib._objc_msgSend_192( + _id, + _lib._sel_setLocalizedDateFormatFromTemplate_1, + dateFormatTemplate?._id ?? ffi.nullptr); + } + + NSString? get dateFormat { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_dateFormat1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set dateFormat(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setDateFormat_1, value?._id ?? ffi.nullptr); + } + + int get dateStyle { + return _lib._objc_msgSend_697(_id, _lib._sel_dateStyle1); + } + + set dateStyle(int value) { + _lib._objc_msgSend_698(_id, _lib._sel_setDateStyle_1, value); + } + + int get timeStyle { + return _lib._objc_msgSend_697(_id, _lib._sel_timeStyle1); + } + + set timeStyle(int value) { + _lib._objc_msgSend_698(_id, _lib._sel_setTimeStyle_1, value); + } + + NSLocale? get locale { + final _ret = _lib._objc_msgSend_182(_id, _lib._sel_locale1); + return _ret.address == 0 + ? null + : NSLocale._(_ret, _lib, retain: true, release: true); + } + + set locale(NSLocale? value) { + _lib._objc_msgSend_699( + _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); + } + + bool get generatesCalendarDates { + return _lib._objc_msgSend_12(_id, _lib._sel_generatesCalendarDates1); + } + + set generatesCalendarDates(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setGeneratesCalendarDates_1, value); + } + + int get formatterBehavior { + return _lib._objc_msgSend_695(_id, _lib._sel_formatterBehavior1); + } + + set formatterBehavior(int value) { + _lib._objc_msgSend_696(_id, _lib._sel_setFormatterBehavior_1, value); + } + + NSTimeZone? get timeZone { + final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + set timeZone(NSTimeZone? value) { + _lib._objc_msgSend_169( + _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); + } + + NSCalendar? get calendar { + final _ret = _lib._objc_msgSend_700(_id, _lib._sel_calendar1); + return _ret.address == 0 + ? null + : NSCalendar._(_ret, _lib, retain: true, release: true); + } + + set calendar(NSCalendar? value) { + _lib._objc_msgSend_706( + _id, _lib._sel_setCalendar_1, value?._id ?? ffi.nullptr); + } + + bool get lenient { + return _lib._objc_msgSend_12(_id, _lib._sel_isLenient1); + } + + set lenient(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setLenient_1, value); + } + + NSDate? get twoDigitStartDate { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_twoDigitStartDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + set twoDigitStartDate(NSDate? value) { + _lib._objc_msgSend_525( + _id, _lib._sel_setTwoDigitStartDate_1, value?._id ?? ffi.nullptr); + } + + NSDate? get defaultDate { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_defaultDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + set defaultDate(NSDate? value) { + _lib._objc_msgSend_525( + _id, _lib._sel_setDefaultDate_1, value?._id ?? ffi.nullptr); + } + + NSArray? get eraSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_eraSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set eraSymbols(NSArray? value) { + _lib._objc_msgSend_731( + _id, _lib._sel_setEraSymbols_1, value?._id ?? ffi.nullptr); + } + + NSArray? get monthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_monthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set monthSymbols(NSArray? value) { + _lib._objc_msgSend_731( + _id, _lib._sel_setMonthSymbols_1, value?._id ?? ffi.nullptr); + } + + NSArray? get shortMonthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set shortMonthSymbols(NSArray? value) { + _lib._objc_msgSend_731( + _id, _lib._sel_setShortMonthSymbols_1, value?._id ?? ffi.nullptr); + } + + NSArray? get weekdaySymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_weekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set weekdaySymbols(NSArray? value) { + _lib._objc_msgSend_731( + _id, _lib._sel_setWeekdaySymbols_1, value?._id ?? ffi.nullptr); + } + + NSArray? get shortWeekdaySymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set shortWeekdaySymbols(NSArray? value) { + _lib._objc_msgSend_731( + _id, _lib._sel_setShortWeekdaySymbols_1, value?._id ?? ffi.nullptr); + } + + NSString? get AMSymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_AMSymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set AMSymbol(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setAMSymbol_1, value?._id ?? ffi.nullptr); + } + + NSString? get PMSymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_PMSymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set PMSymbol(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setPMSymbol_1, value?._id ?? ffi.nullptr); + } + + NSArray? get longEraSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_longEraSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set longEraSymbols(NSArray? value) { + _lib._objc_msgSend_731( + _id, _lib._sel_setLongEraSymbols_1, value?._id ?? ffi.nullptr); + } + + NSArray? get veryShortMonthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set veryShortMonthSymbols(NSArray? value) { + _lib._objc_msgSend_731( + _id, _lib._sel_setVeryShortMonthSymbols_1, value?._id ?? ffi.nullptr); + } + + NSArray? get standaloneMonthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_standaloneMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set standaloneMonthSymbols(NSArray? value) { + _lib._objc_msgSend_731( + _id, _lib._sel_setStandaloneMonthSymbols_1, value?._id ?? ffi.nullptr); + } + + NSArray? get shortStandaloneMonthSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set shortStandaloneMonthSymbols(NSArray? value) { + _lib._objc_msgSend_731(_id, _lib._sel_setShortStandaloneMonthSymbols_1, + value?._id ?? ffi.nullptr); + } + + NSArray? get veryShortStandaloneMonthSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_veryShortStandaloneMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set veryShortStandaloneMonthSymbols(NSArray? value) { + _lib._objc_msgSend_731(_id, _lib._sel_setVeryShortStandaloneMonthSymbols_1, + value?._id ?? ffi.nullptr); + } + + NSArray? get veryShortWeekdaySymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set veryShortWeekdaySymbols(NSArray? value) { + _lib._objc_msgSend_731( + _id, _lib._sel_setVeryShortWeekdaySymbols_1, value?._id ?? ffi.nullptr); + } + + NSArray? get standaloneWeekdaySymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_standaloneWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set standaloneWeekdaySymbols(NSArray? value) { + _lib._objc_msgSend_731(_id, _lib._sel_setStandaloneWeekdaySymbols_1, + value?._id ?? ffi.nullptr); + } + + NSArray? get shortStandaloneWeekdaySymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set shortStandaloneWeekdaySymbols(NSArray? value) { + _lib._objc_msgSend_731(_id, _lib._sel_setShortStandaloneWeekdaySymbols_1, + value?._id ?? ffi.nullptr); + } + + NSArray? get veryShortStandaloneWeekdaySymbols { + final _ret = _lib._objc_msgSend_79( + _id, _lib._sel_veryShortStandaloneWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set veryShortStandaloneWeekdaySymbols(NSArray? value) { + _lib._objc_msgSend_731( + _id, + _lib._sel_setVeryShortStandaloneWeekdaySymbols_1, + value?._id ?? ffi.nullptr); + } + + NSArray? get quarterSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_quarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set quarterSymbols(NSArray? value) { + _lib._objc_msgSend_731( + _id, _lib._sel_setQuarterSymbols_1, value?._id ?? ffi.nullptr); + } + + NSArray? get shortQuarterSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortQuarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set shortQuarterSymbols(NSArray? value) { + _lib._objc_msgSend_731( + _id, _lib._sel_setShortQuarterSymbols_1, value?._id ?? ffi.nullptr); + } + + NSArray? get standaloneQuarterSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_standaloneQuarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set standaloneQuarterSymbols(NSArray? value) { + _lib._objc_msgSend_731(_id, _lib._sel_setStandaloneQuarterSymbols_1, + value?._id ?? ffi.nullptr); + } + + NSArray? get shortStandaloneQuarterSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneQuarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set shortStandaloneQuarterSymbols(NSArray? value) { + _lib._objc_msgSend_731(_id, _lib._sel_setShortStandaloneQuarterSymbols_1, + value?._id ?? ffi.nullptr); + } + + NSDate? get gregorianStartDate { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_gregorianStartDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + set gregorianStartDate(NSDate? value) { + _lib._objc_msgSend_525( + _id, _lib._sel_setGregorianStartDate_1, value?._id ?? ffi.nullptr); + } + + bool get doesRelativeDateFormatting { + return _lib._objc_msgSend_12(_id, _lib._sel_doesRelativeDateFormatting1); + } + + set doesRelativeDateFormatting(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setDoesRelativeDateFormatting_1, value); + } + + NSObject initWithDateFormat_allowNaturalLanguage_( + NSString? format, bool flag) { + final _ret = _lib._objc_msgSend_29( + _id, + _lib._sel_initWithDateFormat_allowNaturalLanguage_1, + format?._id ?? ffi.nullptr, + flag); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + bool allowsNaturalLanguage() { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsNaturalLanguage1); + } + + static NSDateFormatter new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDateFormatter1, _lib._sel_new1); + return NSDateFormatter._(_ret, _lib, retain: false, release: true); + } + + static NSDateFormatter alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDateFormatter1, _lib._sel_alloc1); + return NSDateFormatter._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSDateFormatter1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSDateFormatter1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSDateFormatter1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSDateFormatter1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSDateFormatter1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSDateFormatter1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSDateFormatter1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSDateFormatter1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSDateFormatter1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSFormatter extends NSObject { + NSFormatter._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSFormatter] that points to the same underlying object as [other]. + static NSFormatter castFrom(T other) { + return NSFormatter._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSFormatter] that wraps the given raw object pointer. + static NSFormatter castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSFormatter._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSFormatter]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFormatter1); + } + + NSString stringForObjectValue_(NSObject obj) { + final _ret = + _lib._objc_msgSend_65(_id, _lib._sel_stringForObjectValue_1, obj._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString attributedStringForObjectValue_withDefaultAttributes_( + NSObject obj, NSDictionary? attrs) { + final _ret = _lib._objc_msgSend_686( + _id, + _lib._sel_attributedStringForObjectValue_withDefaultAttributes_1, + obj._id, + attrs?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSString editingStringForObjectValue_(NSObject obj) { + final _ret = _lib._objc_msgSend_65( + _id, _lib._sel_editingStringForObjectValue_1, obj._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + bool getObjectValue_forString_errorDescription_( + ffi.Pointer> obj, + NSString? string, + ffi.Pointer> error) { + return _lib._objc_msgSend_687( + _id, + _lib._sel_getObjectValue_forString_errorDescription_1, + obj, + string?._id ?? ffi.nullptr, + error); + } + + bool isPartialStringValid_newEditingString_errorDescription_( + NSString? partialString, + ffi.Pointer> newString, + ffi.Pointer> error) { + return _lib._objc_msgSend_688( + _id, + _lib._sel_isPartialStringValid_newEditingString_errorDescription_1, + partialString?._id ?? ffi.nullptr, + newString, + error); + } + + bool + isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_( + ffi.Pointer> partialStringPtr, + ffi.Pointer<_NSRange> proposedSelRangePtr, + NSString? origString, + _NSRange origSelRange, + ffi.Pointer> error) { + return _lib._objc_msgSend_689( + _id, + _lib._sel_isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_1, + partialStringPtr, + proposedSelRangePtr, + origString?._id ?? ffi.nullptr, + origSelRange, + error); + } + + static NSFormatter new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSFormatter1, _lib._sel_new1); + return NSFormatter._(_ret, _lib, retain: false, release: true); + } + + static NSFormatter alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSFormatter1, _lib._sel_alloc1); + return NSFormatter._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSFormatter1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSFormatter1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSFormatter1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSFormatter1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSFormatter1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSFormatter1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSFormatter1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSFormatter1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSFormatter1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSFormattingContext { + static const int NSFormattingContextUnknown = 0; + static const int NSFormattingContextDynamic = 1; + static const int NSFormattingContextStandalone = 2; + static const int NSFormattingContextListItem = 3; + static const int NSFormattingContextBeginningOfSentence = 4; + static const int NSFormattingContextMiddleOfSentence = 5; +} + +abstract class NSDateFormatterStyle { + static const int NSDateFormatterNoStyle = 0; + static const int NSDateFormatterShortStyle = 1; + static const int NSDateFormatterMediumStyle = 2; + static const int NSDateFormatterLongStyle = 3; + static const int NSDateFormatterFullStyle = 4; +} + +abstract class NSDateFormatterBehavior { + static const int NSDateFormatterBehaviorDefault = 0; + static const int NSDateFormatterBehavior10_0 = 1000; + static const int NSDateFormatterBehavior10_4 = 1040; +} + +class NSCalendar extends NSObject { + NSCalendar._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSCalendar] that points to the same underlying object as [other]. + static NSCalendar castFrom(T other) { + return NSCalendar._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSCalendar] that wraps the given raw object pointer. + static NSCalendar castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSCalendar._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSCalendar]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSCalendar1); + } + + static NSCalendar? getCurrentCalendar(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_700( + _lib._class_NSCalendar1, _lib._sel_currentCalendar1); + return _ret.address == 0 + ? null + : NSCalendar._(_ret, _lib, retain: true, release: true); + } + + static NSCalendar? getAutoupdatingCurrentCalendar( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_700( + _lib._class_NSCalendar1, _lib._sel_autoupdatingCurrentCalendar1); + return _ret.address == 0 + ? null + : NSCalendar._(_ret, _lib, retain: true, release: true); + } + + static NSCalendar calendarWithIdentifier_( + HidListenerBindingsSwift _lib, NSString calendarIdentifierConstant) { + final _ret = _lib._objc_msgSend_701(_lib._class_NSCalendar1, + _lib._sel_calendarWithIdentifier_1, calendarIdentifierConstant._id); + return NSCalendar._(_ret, _lib, retain: true, release: true); + } + + @override + NSCalendar init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSCalendar._(_ret, _lib, retain: true, release: true); + } + + NSObject initWithCalendarIdentifier_(NSString ident) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithCalendarIdentifier_1, ident._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSString get calendarIdentifier { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_calendarIdentifier1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSLocale? get locale { + final _ret = _lib._objc_msgSend_182(_id, _lib._sel_locale1); + return _ret.address == 0 + ? null + : NSLocale._(_ret, _lib, retain: true, release: true); + } + + set locale(NSLocale? value) { + _lib._objc_msgSend_699( + _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); + } + + NSTimeZone? get timeZone { + final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + set timeZone(NSTimeZone? value) { + _lib._objc_msgSend_169( + _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); + } + + int get firstWeekday { + return _lib._objc_msgSend_10(_id, _lib._sel_firstWeekday1); + } + + set firstWeekday(int value) { + _lib._objc_msgSend_483(_id, _lib._sel_setFirstWeekday_1, value); + } + + int get minimumDaysInFirstWeek { + return _lib._objc_msgSend_10(_id, _lib._sel_minimumDaysInFirstWeek1); + } + + set minimumDaysInFirstWeek(int value) { + _lib._objc_msgSend_483(_id, _lib._sel_setMinimumDaysInFirstWeek_1, value); + } + + NSArray? get eraSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_eraSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get longEraSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_longEraSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get monthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_monthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get shortMonthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get veryShortMonthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get standaloneMonthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_standaloneMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get shortStandaloneMonthSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get veryShortStandaloneMonthSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_veryShortStandaloneMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get weekdaySymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_weekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get shortWeekdaySymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get veryShortWeekdaySymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get standaloneWeekdaySymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_standaloneWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get shortStandaloneWeekdaySymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get veryShortStandaloneWeekdaySymbols { + final _ret = _lib._objc_msgSend_79( + _id, _lib._sel_veryShortStandaloneWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get quarterSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_quarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get shortQuarterSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortQuarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get standaloneQuarterSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_standaloneQuarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get shortStandaloneQuarterSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneQuarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString? get AMSymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_AMSymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get PMSymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_PMSymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + _NSRange minimumRangeOfUnit_(int unit) { + return _lib._objc_msgSend_702(_id, _lib._sel_minimumRangeOfUnit_1, unit); + } + + _NSRange maximumRangeOfUnit_(int unit) { + return _lib._objc_msgSend_702(_id, _lib._sel_maximumRangeOfUnit_1, unit); + } + + _NSRange rangeOfUnit_inUnit_forDate_(int smaller, int larger, NSDate? date) { + return _lib._objc_msgSend_703(_id, _lib._sel_rangeOfUnit_inUnit_forDate_1, + smaller, larger, date?._id ?? ffi.nullptr); + } + + int ordinalityOfUnit_inUnit_forDate_(int smaller, int larger, NSDate? date) { + return _lib._objc_msgSend_704( + _id, + _lib._sel_ordinalityOfUnit_inUnit_forDate_1, + smaller, + larger, + date?._id ?? ffi.nullptr); + } + + bool rangeOfUnit_startDate_interval_forDate_( + int unit, + ffi.Pointer> datep, + ffi.Pointer tip, + NSDate? date) { + return _lib._objc_msgSend_705( + _id, + _lib._sel_rangeOfUnit_startDate_interval_forDate_1, + unit, + datep, + tip, + date?._id ?? ffi.nullptr); + } + + NSDate dateFromComponents_(NSDateComponents? comps) { + final _ret = _lib._objc_msgSend_710( + _id, _lib._sel_dateFromComponents_1, comps?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDateComponents components_fromDate_(int unitFlags, NSDate? date) { + final _ret = _lib._objc_msgSend_711(_id, _lib._sel_components_fromDate_1, + unitFlags, date?._id ?? ffi.nullptr); + return NSDateComponents._(_ret, _lib, retain: true, release: true); + } + + NSDate dateByAddingComponents_toDate_options_( + NSDateComponents? comps, NSDate? date, int opts) { + final _ret = _lib._objc_msgSend_712( + _id, + _lib._sel_dateByAddingComponents_toDate_options_1, + comps?._id ?? ffi.nullptr, + date?._id ?? ffi.nullptr, + opts); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDateComponents components_fromDate_toDate_options_( + int unitFlags, NSDate? startingDate, NSDate? resultDate, int opts) { + final _ret = _lib._objc_msgSend_713( + _id, + _lib._sel_components_fromDate_toDate_options_1, + unitFlags, + startingDate?._id ?? ffi.nullptr, + resultDate?._id ?? ffi.nullptr, + opts); + return NSDateComponents._(_ret, _lib, retain: true, release: true); + } + + void getEra_year_month_day_fromDate_( + ffi.Pointer eraValuePointer, + ffi.Pointer yearValuePointer, + ffi.Pointer monthValuePointer, + ffi.Pointer dayValuePointer, + NSDate? date) { + return _lib._objc_msgSend_714( + _id, + _lib._sel_getEra_year_month_day_fromDate_1, + eraValuePointer, + yearValuePointer, + monthValuePointer, + dayValuePointer, + date?._id ?? ffi.nullptr); + } + + void getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_( + ffi.Pointer eraValuePointer, + ffi.Pointer yearValuePointer, + ffi.Pointer weekValuePointer, + ffi.Pointer weekdayValuePointer, + NSDate? date) { + return _lib._objc_msgSend_714( + _id, + _lib._sel_getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_1, + eraValuePointer, + yearValuePointer, + weekValuePointer, + weekdayValuePointer, + date?._id ?? ffi.nullptr); + } + + void getHour_minute_second_nanosecond_fromDate_( + ffi.Pointer hourValuePointer, + ffi.Pointer minuteValuePointer, + ffi.Pointer secondValuePointer, + ffi.Pointer nanosecondValuePointer, + NSDate? date) { + return _lib._objc_msgSend_714( + _id, + _lib._sel_getHour_minute_second_nanosecond_fromDate_1, + hourValuePointer, + minuteValuePointer, + secondValuePointer, + nanosecondValuePointer, + date?._id ?? ffi.nullptr); + } + + int component_fromDate_(int unit, NSDate? date) { + return _lib._objc_msgSend_715( + _id, _lib._sel_component_fromDate_1, unit, date?._id ?? ffi.nullptr); + } + + NSDate dateWithEra_year_month_day_hour_minute_second_nanosecond_( + int eraValue, + int yearValue, + int monthValue, + int dayValue, + int hourValue, + int minuteValue, + int secondValue, + int nanosecondValue) { + final _ret = _lib._objc_msgSend_716( + _id, + _lib._sel_dateWithEra_year_month_day_hour_minute_second_nanosecond_1, + eraValue, + yearValue, + monthValue, + dayValue, + hourValue, + minuteValue, + secondValue, + nanosecondValue); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate + dateWithEra_yearForWeekOfYear_weekOfYear_weekday_hour_minute_second_nanosecond_( + int eraValue, + int yearValue, + int weekValue, + int weekdayValue, + int hourValue, + int minuteValue, + int secondValue, + int nanosecondValue) { + final _ret = _lib._objc_msgSend_716( + _id, + _lib._sel_dateWithEra_yearForWeekOfYear_weekOfYear_weekday_hour_minute_second_nanosecond_1, + eraValue, + yearValue, + weekValue, + weekdayValue, + hourValue, + minuteValue, + secondValue, + nanosecondValue); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate startOfDayForDate_(NSDate? date) { + final _ret = _lib._objc_msgSend_158( + _id, _lib._sel_startOfDayForDate_1, date?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDateComponents componentsInTimeZone_fromDate_( + NSTimeZone? timezone, NSDate? date) { + final _ret = _lib._objc_msgSend_717( + _id, + _lib._sel_componentsInTimeZone_fromDate_1, + timezone?._id ?? ffi.nullptr, + date?._id ?? ffi.nullptr); + return NSDateComponents._(_ret, _lib, retain: true, release: true); + } + + int compareDate_toDate_toUnitGranularity_( + NSDate? date1, NSDate? date2, int unit) { + return _lib._objc_msgSend_718( + _id, + _lib._sel_compareDate_toDate_toUnitGranularity_1, + date1?._id ?? ffi.nullptr, + date2?._id ?? ffi.nullptr, + unit); + } + + bool isDate_equalToDate_toUnitGranularity_( + NSDate? date1, NSDate? date2, int unit) { + return _lib._objc_msgSend_719( + _id, + _lib._sel_isDate_equalToDate_toUnitGranularity_1, + date1?._id ?? ffi.nullptr, + date2?._id ?? ffi.nullptr, + unit); + } + + bool isDate_inSameDayAsDate_(NSDate? date1, NSDate? date2) { + return _lib._objc_msgSend_720(_id, _lib._sel_isDate_inSameDayAsDate_1, + date1?._id ?? ffi.nullptr, date2?._id ?? ffi.nullptr); + } + + bool isDateInToday_(NSDate? date) { + return _lib._objc_msgSend_160( + _id, _lib._sel_isDateInToday_1, date?._id ?? ffi.nullptr); + } + + bool isDateInYesterday_(NSDate? date) { + return _lib._objc_msgSend_160( + _id, _lib._sel_isDateInYesterday_1, date?._id ?? ffi.nullptr); + } + + bool isDateInTomorrow_(NSDate? date) { + return _lib._objc_msgSend_160( + _id, _lib._sel_isDateInTomorrow_1, date?._id ?? ffi.nullptr); + } + + bool isDateInWeekend_(NSDate? date) { + return _lib._objc_msgSend_160( + _id, _lib._sel_isDateInWeekend_1, date?._id ?? ffi.nullptr); + } + + bool rangeOfWeekendStartDate_interval_containingDate_( + ffi.Pointer> datep, + ffi.Pointer tip, + NSDate? date) { + return _lib._objc_msgSend_721( + _id, + _lib._sel_rangeOfWeekendStartDate_interval_containingDate_1, + datep, + tip, + date?._id ?? ffi.nullptr); + } + + bool nextWeekendStartDate_interval_options_afterDate_( + ffi.Pointer> datep, + ffi.Pointer tip, + int options, + NSDate? date) { + return _lib._objc_msgSend_722( + _id, + _lib._sel_nextWeekendStartDate_interval_options_afterDate_1, + datep, + tip, + options, + date?._id ?? ffi.nullptr); + } + + NSDateComponents components_fromDateComponents_toDateComponents_options_( + int unitFlags, + NSDateComponents? startingDateComp, + NSDateComponents? resultDateComp, + int options) { + final _ret = _lib._objc_msgSend_723( + _id, + _lib._sel_components_fromDateComponents_toDateComponents_options_1, + unitFlags, + startingDateComp?._id ?? ffi.nullptr, + resultDateComp?._id ?? ffi.nullptr, + options); + return NSDateComponents._(_ret, _lib, retain: true, release: true); + } + + NSDate dateByAddingUnit_value_toDate_options_( + int unit, int value, NSDate? date, int options) { + final _ret = _lib._objc_msgSend_724( + _id, + _lib._sel_dateByAddingUnit_value_toDate_options_1, + unit, + value, + date?._id ?? ffi.nullptr, + options); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + void enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_( + NSDate? start, NSDateComponents? comps, int opts, ObjCBlock34 block) { + return _lib._objc_msgSend_725( + _id, + _lib._sel_enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_1, + start?._id ?? ffi.nullptr, + comps?._id ?? ffi.nullptr, + opts, + block._id); + } + + NSDate nextDateAfterDate_matchingComponents_options_( + NSDate? date, NSDateComponents? comps, int options) { + final _ret = _lib._objc_msgSend_726( + _id, + _lib._sel_nextDateAfterDate_matchingComponents_options_1, + date?._id ?? ffi.nullptr, + comps?._id ?? ffi.nullptr, + options); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate nextDateAfterDate_matchingUnit_value_options_( + NSDate? date, int unit, int value, int options) { + final _ret = _lib._objc_msgSend_727( + _id, + _lib._sel_nextDateAfterDate_matchingUnit_value_options_1, + date?._id ?? ffi.nullptr, + unit, + value, + options); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate nextDateAfterDate_matchingHour_minute_second_options_(NSDate? date, + int hourValue, int minuteValue, int secondValue, int options) { + final _ret = _lib._objc_msgSend_728( + _id, + _lib._sel_nextDateAfterDate_matchingHour_minute_second_options_1, + date?._id ?? ffi.nullptr, + hourValue, + minuteValue, + secondValue, + options); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate dateBySettingUnit_value_ofDate_options_( + int unit, int v, NSDate? date, int opts) { + final _ret = _lib._objc_msgSend_724( + _id, + _lib._sel_dateBySettingUnit_value_ofDate_options_1, + unit, + v, + date?._id ?? ffi.nullptr, + opts); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate dateBySettingHour_minute_second_ofDate_options_( + int h, int m, int s, NSDate? date, int opts) { + final _ret = _lib._objc_msgSend_729( + _id, + _lib._sel_dateBySettingHour_minute_second_ofDate_options_1, + h, + m, + s, + date?._id ?? ffi.nullptr, + opts); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + bool date_matchesComponents_(NSDate? date, NSDateComponents? components) { + return _lib._objc_msgSend_730(_id, _lib._sel_date_matchesComponents_1, + date?._id ?? ffi.nullptr, components?._id ?? ffi.nullptr); + } + + static NSCalendar new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSCalendar1, _lib._sel_new1); + return NSCalendar._(_ret, _lib, retain: false, release: true); + } + + static NSCalendar alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSCalendar1, _lib._sel_alloc1); + return NSCalendar._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSCalendar1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSCalendar1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSCalendar1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSCalendar1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSCalendar1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSCalendar1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSCalendar1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSCalendar1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSCalendar1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSCalendarUnit { + static const int NSCalendarUnitEra = 2; + static const int NSCalendarUnitYear = 4; + static const int NSCalendarUnitMonth = 8; + static const int NSCalendarUnitDay = 16; + static const int NSCalendarUnitHour = 32; + static const int NSCalendarUnitMinute = 64; + static const int NSCalendarUnitSecond = 128; + static const int NSCalendarUnitWeekday = 512; + static const int NSCalendarUnitWeekdayOrdinal = 1024; + static const int NSCalendarUnitQuarter = 2048; + static const int NSCalendarUnitWeekOfMonth = 4096; + static const int NSCalendarUnitWeekOfYear = 8192; + static const int NSCalendarUnitYearForWeekOfYear = 16384; + static const int NSCalendarUnitNanosecond = 32768; + static const int NSCalendarUnitCalendar = 1048576; + static const int NSCalendarUnitTimeZone = 2097152; + static const int NSEraCalendarUnit = 2; + static const int NSYearCalendarUnit = 4; + static const int NSMonthCalendarUnit = 8; + static const int NSDayCalendarUnit = 16; + static const int NSHourCalendarUnit = 32; + static const int NSMinuteCalendarUnit = 64; + static const int NSSecondCalendarUnit = 128; + static const int NSWeekCalendarUnit = 256; + static const int NSWeekdayCalendarUnit = 512; + static const int NSWeekdayOrdinalCalendarUnit = 1024; + static const int NSQuarterCalendarUnit = 2048; + static const int NSWeekOfMonthCalendarUnit = 4096; + static const int NSWeekOfYearCalendarUnit = 8192; + static const int NSYearForWeekOfYearCalendarUnit = 16384; + static const int NSCalendarCalendarUnit = 1048576; + static const int NSTimeZoneCalendarUnit = 2097152; +} + +class NSDateComponents extends NSObject { + NSDateComponents._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSDateComponents] that points to the same underlying object as [other]. + static NSDateComponents castFrom(T other) { + return NSDateComponents._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSDateComponents] that wraps the given raw object pointer. + static NSDateComponents castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSDateComponents._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSDateComponents]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSDateComponents1); + } + + NSCalendar? get calendar { + final _ret = _lib._objc_msgSend_700(_id, _lib._sel_calendar1); + return _ret.address == 0 + ? null + : NSCalendar._(_ret, _lib, retain: true, release: true); + } + + set calendar(NSCalendar? value) { + _lib._objc_msgSend_706( + _id, _lib._sel_setCalendar_1, value?._id ?? ffi.nullptr); + } + + NSTimeZone? get timeZone { + final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + set timeZone(NSTimeZone? value) { + _lib._objc_msgSend_169( + _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); + } + + int get era { + return _lib._objc_msgSend_78(_id, _lib._sel_era1); + } + + set era(int value) { + _lib._objc_msgSend_590(_id, _lib._sel_setEra_1, value); + } + + int get year { + return _lib._objc_msgSend_78(_id, _lib._sel_year1); + } + + set year(int value) { + _lib._objc_msgSend_590(_id, _lib._sel_setYear_1, value); + } + + int get month { + return _lib._objc_msgSend_78(_id, _lib._sel_month1); + } + + set month(int value) { + _lib._objc_msgSend_590(_id, _lib._sel_setMonth_1, value); + } + + int get day { + return _lib._objc_msgSend_78(_id, _lib._sel_day1); + } + + set day(int value) { + _lib._objc_msgSend_590(_id, _lib._sel_setDay_1, value); + } + + int get hour { + return _lib._objc_msgSend_78(_id, _lib._sel_hour1); + } + + set hour(int value) { + _lib._objc_msgSend_590(_id, _lib._sel_setHour_1, value); + } + + int get minute { + return _lib._objc_msgSend_78(_id, _lib._sel_minute1); + } + + set minute(int value) { + _lib._objc_msgSend_590(_id, _lib._sel_setMinute_1, value); + } + + int get second { + return _lib._objc_msgSend_78(_id, _lib._sel_second1); + } + + set second(int value) { + _lib._objc_msgSend_590(_id, _lib._sel_setSecond_1, value); + } + + int get nanosecond { + return _lib._objc_msgSend_78(_id, _lib._sel_nanosecond1); + } + + set nanosecond(int value) { + _lib._objc_msgSend_590(_id, _lib._sel_setNanosecond_1, value); + } + + int get weekday { + return _lib._objc_msgSend_78(_id, _lib._sel_weekday1); + } + + set weekday(int value) { + _lib._objc_msgSend_590(_id, _lib._sel_setWeekday_1, value); + } + + int get weekdayOrdinal { + return _lib._objc_msgSend_78(_id, _lib._sel_weekdayOrdinal1); + } + + set weekdayOrdinal(int value) { + _lib._objc_msgSend_590(_id, _lib._sel_setWeekdayOrdinal_1, value); + } + + int get quarter { + return _lib._objc_msgSend_78(_id, _lib._sel_quarter1); + } + + set quarter(int value) { + _lib._objc_msgSend_590(_id, _lib._sel_setQuarter_1, value); + } + + int get weekOfMonth { + return _lib._objc_msgSend_78(_id, _lib._sel_weekOfMonth1); + } + + set weekOfMonth(int value) { + _lib._objc_msgSend_590(_id, _lib._sel_setWeekOfMonth_1, value); + } + + int get weekOfYear { + return _lib._objc_msgSend_78(_id, _lib._sel_weekOfYear1); + } + + set weekOfYear(int value) { + _lib._objc_msgSend_590(_id, _lib._sel_setWeekOfYear_1, value); + } + + int get yearForWeekOfYear { + return _lib._objc_msgSend_78(_id, _lib._sel_yearForWeekOfYear1); + } + + set yearForWeekOfYear(int value) { + _lib._objc_msgSend_590(_id, _lib._sel_setYearForWeekOfYear_1, value); + } + + bool get leapMonth { + return _lib._objc_msgSend_12(_id, _lib._sel_isLeapMonth1); + } + + set leapMonth(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setLeapMonth_1, value); + } + + NSDate? get date { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_date1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + int week() { + return _lib._objc_msgSend_78(_id, _lib._sel_week1); + } + + void setWeek_(int v) { + return _lib._objc_msgSend_394(_id, _lib._sel_setWeek_1, v); + } + + void setValue_forComponent_(int value, int unit) { + return _lib._objc_msgSend_707( + _id, _lib._sel_setValue_forComponent_1, value, unit); + } + + int valueForComponent_(int unit) { + return _lib._objc_msgSend_708(_id, _lib._sel_valueForComponent_1, unit); + } + + bool get validDate { + return _lib._objc_msgSend_12(_id, _lib._sel_isValidDate1); + } + + bool isValidDateInCalendar_(NSCalendar? calendar) { + return _lib._objc_msgSend_709( + _id, _lib._sel_isValidDateInCalendar_1, calendar?._id ?? ffi.nullptr); + } + + static NSDateComponents new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDateComponents1, _lib._sel_new1); + return NSDateComponents._(_ret, _lib, retain: false, release: true); + } + + static NSDateComponents alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDateComponents1, _lib._sel_alloc1); + return NSDateComponents._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSDateComponents1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSDateComponents1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSDateComponents1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSDateComponents1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSDateComponents1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSDateComponents1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSDateComponents1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSDateComponents1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSDateComponents1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSCalendarOptions { + static const int NSCalendarWrapComponents = 1; + static const int NSCalendarMatchStrictly = 2; + static const int NSCalendarSearchBackwards = 4; + static const int NSCalendarMatchPreviousTimePreservingSmallerUnits = 256; + static const int NSCalendarMatchNextTimePreservingSmallerUnits = 512; + static const int NSCalendarMatchNextTime = 1024; + static const int NSCalendarMatchFirst = 4096; + static const int NSCalendarMatchLast = 8192; +} + +void _ObjCBlock34_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer arg0, bool arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} + +final _ObjCBlock34_closureRegistry = {}; +int _ObjCBlock34_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock34_registerClosure(Function fn) { + final id = ++_ObjCBlock34_closureRegistryIndex; + _ObjCBlock34_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock34_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { + return _ObjCBlock34_closureRegistry[block.ref.target.address]!( + arg0, arg1, arg2); +} + +class ObjCBlock34 extends _ObjCBlockBase { + ObjCBlock34._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock34.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2)>( + _ObjCBlock34_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock34.fromFunction( + HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0, bool arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2)>( + _ObjCBlock34_closureTrampoline) + .cast(), + _ObjCBlock34_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call( + ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } +} + +class NSNumberFormatter extends NSFormatter { + NSNumberFormatter._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSNumberFormatter] that points to the same underlying object as [other]. + static NSNumberFormatter castFrom(T other) { + return NSNumberFormatter._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSNumberFormatter] that wraps the given raw object pointer. + static NSNumberFormatter castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSNumberFormatter._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSNumberFormatter]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSNumberFormatter1); + } + + int get formattingContext { + return _lib._objc_msgSend_690(_id, _lib._sel_formattingContext1); + } + + set formattingContext(int value) { + _lib._objc_msgSend_691(_id, _lib._sel_setFormattingContext_1, value); + } + + bool getObjectValue_forString_range_error_( + ffi.Pointer> obj, + NSString? string, + ffi.Pointer<_NSRange> rangep, + ffi.Pointer> error) { + return _lib._objc_msgSend_692( + _id, + _lib._sel_getObjectValue_forString_range_error_1, + obj, + string?._id ?? ffi.nullptr, + rangep, + error); + } + + NSString stringFromNumber_(NSNumber? number) { + final _ret = _lib._objc_msgSend_732( + _id, _lib._sel_stringFromNumber_1, number?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSNumber numberFromString_(NSString? string) { + final _ret = _lib._objc_msgSend_733( + _id, _lib._sel_numberFromString_1, string?._id ?? ffi.nullptr); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSString localizedStringFromNumber_numberStyle_( + HidListenerBindingsSwift _lib, NSNumber? num, int nstyle) { + final _ret = _lib._objc_msgSend_734( + _lib._class_NSNumberFormatter1, + _lib._sel_localizedStringFromNumber_numberStyle_1, + num?._id ?? ffi.nullptr, + nstyle); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static int defaultFormatterBehavior(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_735( + _lib._class_NSNumberFormatter1, _lib._sel_defaultFormatterBehavior1); + } + + static void setDefaultFormatterBehavior_( + HidListenerBindingsSwift _lib, int behavior) { + return _lib._objc_msgSend_736(_lib._class_NSNumberFormatter1, + _lib._sel_setDefaultFormatterBehavior_1, behavior); + } + + int get numberStyle { + return _lib._objc_msgSend_737(_id, _lib._sel_numberStyle1); + } + + set numberStyle(int value) { + _lib._objc_msgSend_738(_id, _lib._sel_setNumberStyle_1, value); + } + + NSLocale? get locale { + final _ret = _lib._objc_msgSend_182(_id, _lib._sel_locale1); + return _ret.address == 0 + ? null + : NSLocale._(_ret, _lib, retain: true, release: true); + } + + set locale(NSLocale? value) { + _lib._objc_msgSend_699( + _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); + } + + bool get generatesDecimalNumbers { + return _lib._objc_msgSend_12(_id, _lib._sel_generatesDecimalNumbers1); + } + + set generatesDecimalNumbers(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setGeneratesDecimalNumbers_1, value); + } + + int get formatterBehavior { + return _lib._objc_msgSend_735(_id, _lib._sel_formatterBehavior1); + } + + set formatterBehavior(int value) { + _lib._objc_msgSend_739(_id, _lib._sel_setFormatterBehavior_1, value); + } + + NSString? get negativeFormat { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativeFormat1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set negativeFormat(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setNegativeFormat_1, value?._id ?? ffi.nullptr); + } + + NSDictionary? get textAttributesForNegativeValues { + final _ret = + _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForNegativeValues1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set textAttributesForNegativeValues(NSDictionary? value) { + _lib._objc_msgSend_171(_id, _lib._sel_setTextAttributesForNegativeValues_1, + value?._id ?? ffi.nullptr); + } + + NSString? get positiveFormat { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positiveFormat1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set positiveFormat(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setPositiveFormat_1, value?._id ?? ffi.nullptr); + } + + NSDictionary? get textAttributesForPositiveValues { + final _ret = + _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForPositiveValues1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set textAttributesForPositiveValues(NSDictionary? value) { + _lib._objc_msgSend_171(_id, _lib._sel_setTextAttributesForPositiveValues_1, + value?._id ?? ffi.nullptr); + } + + bool get allowsFloats { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsFloats1); + } + + set allowsFloats(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setAllowsFloats_1, value); + } + + NSString? get decimalSeparator { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_decimalSeparator1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set decimalSeparator(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setDecimalSeparator_1, value?._id ?? ffi.nullptr); + } + + bool get alwaysShowsDecimalSeparator { + return _lib._objc_msgSend_12(_id, _lib._sel_alwaysShowsDecimalSeparator1); + } + + set alwaysShowsDecimalSeparator(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setAlwaysShowsDecimalSeparator_1, value); + } + + NSString? get currencyDecimalSeparator { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_currencyDecimalSeparator1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set currencyDecimalSeparator(NSString? value) { + _lib._objc_msgSend_509(_id, _lib._sel_setCurrencyDecimalSeparator_1, + value?._id ?? ffi.nullptr); + } + + bool get usesGroupingSeparator { + return _lib._objc_msgSend_12(_id, _lib._sel_usesGroupingSeparator1); + } + + set usesGroupingSeparator(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setUsesGroupingSeparator_1, value); + } + + NSString? get groupingSeparator { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_groupingSeparator1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set groupingSeparator(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setGroupingSeparator_1, value?._id ?? ffi.nullptr); + } + + NSString? get zeroSymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_zeroSymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set zeroSymbol(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setZeroSymbol_1, value?._id ?? ffi.nullptr); + } + + NSDictionary? get textAttributesForZero { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForZero1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set textAttributesForZero(NSDictionary? value) { + _lib._objc_msgSend_171( + _id, _lib._sel_setTextAttributesForZero_1, value?._id ?? ffi.nullptr); + } + + NSString? get nilSymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_nilSymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set nilSymbol(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setNilSymbol_1, value?._id ?? ffi.nullptr); + } + + NSDictionary? get textAttributesForNil { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForNil1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set textAttributesForNil(NSDictionary? value) { + _lib._objc_msgSend_171( + _id, _lib._sel_setTextAttributesForNil_1, value?._id ?? ffi.nullptr); + } + + NSString? get notANumberSymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_notANumberSymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set notANumberSymbol(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setNotANumberSymbol_1, value?._id ?? ffi.nullptr); + } + + NSDictionary? get textAttributesForNotANumber { + final _ret = + _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForNotANumber1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set textAttributesForNotANumber(NSDictionary? value) { + _lib._objc_msgSend_171(_id, _lib._sel_setTextAttributesForNotANumber_1, + value?._id ?? ffi.nullptr); + } + + NSString? get positiveInfinitySymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positiveInfinitySymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set positiveInfinitySymbol(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setPositiveInfinitySymbol_1, value?._id ?? ffi.nullptr); + } + + NSDictionary? get textAttributesForPositiveInfinity { + final _ret = _lib._objc_msgSend_170( + _id, _lib._sel_textAttributesForPositiveInfinity1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set textAttributesForPositiveInfinity(NSDictionary? value) { + _lib._objc_msgSend_171( + _id, + _lib._sel_setTextAttributesForPositiveInfinity_1, + value?._id ?? ffi.nullptr); + } + + NSString? get negativeInfinitySymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativeInfinitySymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set negativeInfinitySymbol(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setNegativeInfinitySymbol_1, value?._id ?? ffi.nullptr); + } + + NSDictionary? get textAttributesForNegativeInfinity { + final _ret = _lib._objc_msgSend_170( + _id, _lib._sel_textAttributesForNegativeInfinity1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set textAttributesForNegativeInfinity(NSDictionary? value) { + _lib._objc_msgSend_171( + _id, + _lib._sel_setTextAttributesForNegativeInfinity_1, + value?._id ?? ffi.nullptr); + } + + NSString? get positivePrefix { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positivePrefix1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set positivePrefix(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setPositivePrefix_1, value?._id ?? ffi.nullptr); + } + + NSString? get positiveSuffix { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positiveSuffix1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set positiveSuffix(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setPositiveSuffix_1, value?._id ?? ffi.nullptr); + } + + NSString? get negativePrefix { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativePrefix1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set negativePrefix(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setNegativePrefix_1, value?._id ?? ffi.nullptr); + } + + NSString? get negativeSuffix { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativeSuffix1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set negativeSuffix(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setNegativeSuffix_1, value?._id ?? ffi.nullptr); + } + + NSString? get currencyCode { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencyCode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set currencyCode(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setCurrencyCode_1, value?._id ?? ffi.nullptr); + } + + NSString? get currencySymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencySymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set currencySymbol(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setCurrencySymbol_1, value?._id ?? ffi.nullptr); + } + + NSString? get internationalCurrencySymbol { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_internationalCurrencySymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set internationalCurrencySymbol(NSString? value) { + _lib._objc_msgSend_509(_id, _lib._sel_setInternationalCurrencySymbol_1, + value?._id ?? ffi.nullptr); + } + + NSString? get percentSymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_percentSymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set percentSymbol(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setPercentSymbol_1, value?._id ?? ffi.nullptr); + } + + NSString? get perMillSymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_perMillSymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set perMillSymbol(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setPerMillSymbol_1, value?._id ?? ffi.nullptr); + } + + NSString? get minusSign { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_minusSign1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set minusSign(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setMinusSign_1, value?._id ?? ffi.nullptr); + } + + NSString? get plusSign { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_plusSign1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set plusSign(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setPlusSign_1, value?._id ?? ffi.nullptr); + } + + NSString? get exponentSymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_exponentSymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set exponentSymbol(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setExponentSymbol_1, value?._id ?? ffi.nullptr); + } + + int get groupingSize { + return _lib._objc_msgSend_10(_id, _lib._sel_groupingSize1); + } + + set groupingSize(int value) { + _lib._objc_msgSend_483(_id, _lib._sel_setGroupingSize_1, value); + } + + int get secondaryGroupingSize { + return _lib._objc_msgSend_10(_id, _lib._sel_secondaryGroupingSize1); + } + + set secondaryGroupingSize(int value) { + _lib._objc_msgSend_483(_id, _lib._sel_setSecondaryGroupingSize_1, value); + } + + NSNumber? get multiplier { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_multiplier1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set multiplier(NSNumber? value) { + _lib._objc_msgSend_620( + _id, _lib._sel_setMultiplier_1, value?._id ?? ffi.nullptr); + } + + int get formatWidth { + return _lib._objc_msgSend_10(_id, _lib._sel_formatWidth1); + } + + set formatWidth(int value) { + _lib._objc_msgSend_483(_id, _lib._sel_setFormatWidth_1, value); + } + + NSString? get paddingCharacter { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_paddingCharacter1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set paddingCharacter(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setPaddingCharacter_1, value?._id ?? ffi.nullptr); + } + + int get paddingPosition { + return _lib._objc_msgSend_740(_id, _lib._sel_paddingPosition1); + } + + set paddingPosition(int value) { + _lib._objc_msgSend_741(_id, _lib._sel_setPaddingPosition_1, value); + } + + int get roundingMode { + return _lib._objc_msgSend_742(_id, _lib._sel_roundingMode1); + } + + set roundingMode(int value) { + _lib._objc_msgSend_743(_id, _lib._sel_setRoundingMode_1, value); + } + + NSNumber? get roundingIncrement { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_roundingIncrement1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set roundingIncrement(NSNumber? value) { + _lib._objc_msgSend_620( + _id, _lib._sel_setRoundingIncrement_1, value?._id ?? ffi.nullptr); + } + + int get minimumIntegerDigits { + return _lib._objc_msgSend_10(_id, _lib._sel_minimumIntegerDigits1); + } + + set minimumIntegerDigits(int value) { + _lib._objc_msgSend_483(_id, _lib._sel_setMinimumIntegerDigits_1, value); + } + + int get maximumIntegerDigits { + return _lib._objc_msgSend_10(_id, _lib._sel_maximumIntegerDigits1); + } + + set maximumIntegerDigits(int value) { + _lib._objc_msgSend_483(_id, _lib._sel_setMaximumIntegerDigits_1, value); + } + + int get minimumFractionDigits { + return _lib._objc_msgSend_10(_id, _lib._sel_minimumFractionDigits1); + } + + set minimumFractionDigits(int value) { + _lib._objc_msgSend_483(_id, _lib._sel_setMinimumFractionDigits_1, value); + } + + int get maximumFractionDigits { + return _lib._objc_msgSend_10(_id, _lib._sel_maximumFractionDigits1); + } + + set maximumFractionDigits(int value) { + _lib._objc_msgSend_483(_id, _lib._sel_setMaximumFractionDigits_1, value); + } + + NSNumber? get minimum { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_minimum1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set minimum(NSNumber? value) { + _lib._objc_msgSend_620( + _id, _lib._sel_setMinimum_1, value?._id ?? ffi.nullptr); + } + + NSNumber? get maximum { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_maximum1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set maximum(NSNumber? value) { + _lib._objc_msgSend_620( + _id, _lib._sel_setMaximum_1, value?._id ?? ffi.nullptr); + } + + NSString? get currencyGroupingSeparator { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_currencyGroupingSeparator1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set currencyGroupingSeparator(NSString? value) { + _lib._objc_msgSend_509(_id, _lib._sel_setCurrencyGroupingSeparator_1, + value?._id ?? ffi.nullptr); + } + + bool get lenient { + return _lib._objc_msgSend_12(_id, _lib._sel_isLenient1); + } + + set lenient(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setLenient_1, value); + } + + bool get usesSignificantDigits { + return _lib._objc_msgSend_12(_id, _lib._sel_usesSignificantDigits1); + } + + set usesSignificantDigits(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setUsesSignificantDigits_1, value); + } + + int get minimumSignificantDigits { + return _lib._objc_msgSend_10(_id, _lib._sel_minimumSignificantDigits1); + } + + set minimumSignificantDigits(int value) { + _lib._objc_msgSend_483(_id, _lib._sel_setMinimumSignificantDigits_1, value); + } + + int get maximumSignificantDigits { + return _lib._objc_msgSend_10(_id, _lib._sel_maximumSignificantDigits1); + } + + set maximumSignificantDigits(int value) { + _lib._objc_msgSend_483(_id, _lib._sel_setMaximumSignificantDigits_1, value); + } + + bool get partialStringValidationEnabled { + return _lib._objc_msgSend_12( + _id, _lib._sel_isPartialStringValidationEnabled1); + } + + set partialStringValidationEnabled(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setPartialStringValidationEnabled_1, value); + } + + bool get hasThousandSeparators { + return _lib._objc_msgSend_12(_id, _lib._sel_hasThousandSeparators1); + } + + set hasThousandSeparators(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setHasThousandSeparators_1, value); + } + + NSString? get thousandSeparator { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_thousandSeparator1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set thousandSeparator(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setThousandSeparator_1, value?._id ?? ffi.nullptr); + } + + bool get localizesFormat { + return _lib._objc_msgSend_12(_id, _lib._sel_localizesFormat1); + } + + set localizesFormat(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setLocalizesFormat_1, value); + } + + NSString? get format { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_format1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set format(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setFormat_1, value?._id ?? ffi.nullptr); + } + + NSAttributedString? get attributedStringForZero { + final _ret = + _lib._objc_msgSend_675(_id, _lib._sel_attributedStringForZero1); + return _ret.address == 0 + ? null + : NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + set attributedStringForZero(NSAttributedString? value) { + _lib._objc_msgSend_744( + _id, _lib._sel_setAttributedStringForZero_1, value?._id ?? ffi.nullptr); + } + + NSAttributedString? get attributedStringForNil { + final _ret = _lib._objc_msgSend_675(_id, _lib._sel_attributedStringForNil1); + return _ret.address == 0 + ? null + : NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + set attributedStringForNil(NSAttributedString? value) { + _lib._objc_msgSend_744( + _id, _lib._sel_setAttributedStringForNil_1, value?._id ?? ffi.nullptr); + } + + NSAttributedString? get attributedStringForNotANumber { + final _ret = + _lib._objc_msgSend_675(_id, _lib._sel_attributedStringForNotANumber1); + return _ret.address == 0 + ? null + : NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + set attributedStringForNotANumber(NSAttributedString? value) { + _lib._objc_msgSend_744(_id, _lib._sel_setAttributedStringForNotANumber_1, + value?._id ?? ffi.nullptr); + } + + NSDecimalNumberHandler? get roundingBehavior { + final _ret = _lib._objc_msgSend_745(_id, _lib._sel_roundingBehavior1); + return _ret.address == 0 + ? null + : NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); + } + + set roundingBehavior(NSDecimalNumberHandler? value) { + _lib._objc_msgSend_747( + _id, _lib._sel_setRoundingBehavior_1, value?._id ?? ffi.nullptr); + } + + static NSNumberFormatter new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSNumberFormatter1, _lib._sel_new1); + return NSNumberFormatter._(_ret, _lib, retain: false, release: true); + } + + static NSNumberFormatter alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSNumberFormatter1, _lib._sel_alloc1); + return NSNumberFormatter._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSNumberFormatter1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSNumberFormatter1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSNumberFormatter1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSNumberFormatter1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSNumberFormatter1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSNumberFormatter1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSNumberFormatter1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSNumberFormatter1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSNumberFormatter1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSNumberFormatterStyle { + static const int NSNumberFormatterNoStyle = 0; + static const int NSNumberFormatterDecimalStyle = 1; + static const int NSNumberFormatterCurrencyStyle = 2; + static const int NSNumberFormatterPercentStyle = 3; + static const int NSNumberFormatterScientificStyle = 4; + static const int NSNumberFormatterSpellOutStyle = 5; + static const int NSNumberFormatterOrdinalStyle = 6; + static const int NSNumberFormatterCurrencyISOCodeStyle = 8; + static const int NSNumberFormatterCurrencyPluralStyle = 9; + static const int NSNumberFormatterCurrencyAccountingStyle = 10; +} + +abstract class NSNumberFormatterBehavior { + static const int NSNumberFormatterBehaviorDefault = 0; + static const int NSNumberFormatterBehavior10_0 = 1000; + static const int NSNumberFormatterBehavior10_4 = 1040; +} + +abstract class NSNumberFormatterPadPosition { + static const int NSNumberFormatterPadBeforePrefix = 0; + static const int NSNumberFormatterPadAfterPrefix = 1; + static const int NSNumberFormatterPadBeforeSuffix = 2; + static const int NSNumberFormatterPadAfterSuffix = 3; +} + +abstract class NSNumberFormatterRoundingMode { + static const int NSNumberFormatterRoundCeiling = 0; + static const int NSNumberFormatterRoundFloor = 1; + static const int NSNumberFormatterRoundDown = 2; + static const int NSNumberFormatterRoundUp = 3; + static const int NSNumberFormatterRoundHalfEven = 4; + static const int NSNumberFormatterRoundHalfDown = 5; + static const int NSNumberFormatterRoundHalfUp = 6; +} + +class NSDecimalNumberHandler extends NSObject { + NSDecimalNumberHandler._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSDecimalNumberHandler] that points to the same underlying object as [other]. + static NSDecimalNumberHandler castFrom(T other) { + return NSDecimalNumberHandler._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSDecimalNumberHandler] that wraps the given raw object pointer. + static NSDecimalNumberHandler castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSDecimalNumberHandler._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSDecimalNumberHandler]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSDecimalNumberHandler1); + } + + static NSDecimalNumberHandler? getDefaultDecimalNumberHandler( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_745(_lib._class_NSDecimalNumberHandler1, + _lib._sel_defaultDecimalNumberHandler1); + return _ret.address == 0 + ? null + : NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); + } + + NSDecimalNumberHandler + initWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_( + int roundingMode, + int scale, + bool exact, + bool overflow, + bool underflow, + bool divideByZero) { + final _ret = _lib._objc_msgSend_746( + _id, + _lib._sel_initWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1, + roundingMode, + scale, + exact, + overflow, + underflow, + divideByZero); + return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); + } + + static NSDecimalNumberHandler + decimalNumberHandlerWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_( + HidListenerBindingsSwift _lib, + int roundingMode, + int scale, + bool exact, + bool overflow, + bool underflow, + bool divideByZero) { + final _ret = _lib._objc_msgSend_746( + _lib._class_NSDecimalNumberHandler1, + _lib._sel_decimalNumberHandlerWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1, + roundingMode, + scale, + exact, + overflow, + underflow, + divideByZero); + return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); + } + + static NSDecimalNumberHandler new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSDecimalNumberHandler1, _lib._sel_new1); + return NSDecimalNumberHandler._(_ret, _lib, retain: false, release: true); + } + + static NSDecimalNumberHandler alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSDecimalNumberHandler1, _lib._sel_alloc1); + return NSDecimalNumberHandler._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSDecimalNumberHandler1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSDecimalNumberHandler1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSDecimalNumberHandler1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSDecimalNumberHandler1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSDecimalNumberHandler1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSDecimalNumberHandler1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSDecimalNumberHandler1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSDecimalNumberHandler1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSDecimalNumberHandler1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSRoundingMode { + static const int NSRoundPlain = 0; + static const int NSRoundDown = 1; + static const int NSRoundUp = 2; + static const int NSRoundBankers = 3; +} + +class NSScanner extends NSObject { + NSScanner._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSScanner] that points to the same underlying object as [other]. + static NSScanner castFrom(T other) { + return NSScanner._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSScanner] that wraps the given raw object pointer. + static NSScanner castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSScanner._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSScanner]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSScanner1); + } + + NSString? get string { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_string1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + int get scanLocation { + return _lib._objc_msgSend_10(_id, _lib._sel_scanLocation1); + } + + set scanLocation(int value) { + _lib._objc_msgSend_483(_id, _lib._sel_setScanLocation_1, value); + } + + NSCharacterSet? get charactersToBeSkipped { + final _ret = _lib._objc_msgSend_174(_id, _lib._sel_charactersToBeSkipped1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); + } + + set charactersToBeSkipped(NSCharacterSet? value) { + _lib._objc_msgSend_748( + _id, _lib._sel_setCharactersToBeSkipped_1, value?._id ?? ffi.nullptr); + } + + bool get caseSensitive { + return _lib._objc_msgSend_12(_id, _lib._sel_caseSensitive1); + } + + set caseSensitive(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setCaseSensitive_1, value); + } + + NSObject get locale { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_locale1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + set locale(NSObject value) { + _lib._objc_msgSend_387(_id, _lib._sel_setLocale_1, value._id); + } + + NSScanner initWithString_(NSString? string) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithString_1, string?._id ?? ffi.nullptr); + return NSScanner._(_ret, _lib, retain: true, release: true); + } + + bool scanInt_(ffi.Pointer result) { + return _lib._objc_msgSend_749(_id, _lib._sel_scanInt_1, result); + } + + bool scanInteger_(ffi.Pointer result) { + return _lib._objc_msgSend_750(_id, _lib._sel_scanInteger_1, result); + } + + bool scanLongLong_(ffi.Pointer result) { + return _lib._objc_msgSend_751(_id, _lib._sel_scanLongLong_1, result); + } + + bool scanUnsignedLongLong_(ffi.Pointer result) { + return _lib._objc_msgSend_752( + _id, _lib._sel_scanUnsignedLongLong_1, result); + } + + bool scanFloat_(ffi.Pointer result) { + return _lib._objc_msgSend_753(_id, _lib._sel_scanFloat_1, result); + } + + bool scanDouble_(ffi.Pointer result) { + return _lib._objc_msgSend_754(_id, _lib._sel_scanDouble_1, result); + } + + bool scanHexInt_(ffi.Pointer result) { + return _lib._objc_msgSend_755(_id, _lib._sel_scanHexInt_1, result); + } + + bool scanHexLongLong_(ffi.Pointer result) { + return _lib._objc_msgSend_752(_id, _lib._sel_scanHexLongLong_1, result); + } + + bool scanHexFloat_(ffi.Pointer result) { + return _lib._objc_msgSend_753(_id, _lib._sel_scanHexFloat_1, result); + } + + bool scanHexDouble_(ffi.Pointer result) { + return _lib._objc_msgSend_754(_id, _lib._sel_scanHexDouble_1, result); + } + + bool scanString_intoString_( + NSString? string, ffi.Pointer> result) { + return _lib._objc_msgSend_756(_id, _lib._sel_scanString_intoString_1, + string?._id ?? ffi.nullptr, result); + } + + bool scanCharactersFromSet_intoString_( + NSCharacterSet? set, ffi.Pointer> result) { + return _lib._objc_msgSend_757( + _id, + _lib._sel_scanCharactersFromSet_intoString_1, + set?._id ?? ffi.nullptr, + result); + } + + bool scanUpToString_intoString_( + NSString? string, ffi.Pointer> result) { + return _lib._objc_msgSend_756(_id, _lib._sel_scanUpToString_intoString_1, + string?._id ?? ffi.nullptr, result); + } + + bool scanUpToCharactersFromSet_intoString_( + NSCharacterSet? set, ffi.Pointer> result) { + return _lib._objc_msgSend_757( + _id, + _lib._sel_scanUpToCharactersFromSet_intoString_1, + set?._id ?? ffi.nullptr, + result); + } + + bool get atEnd { + return _lib._objc_msgSend_12(_id, _lib._sel_isAtEnd1); + } + + static NSScanner scannerWithString_( + HidListenerBindingsSwift _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSScanner1, + _lib._sel_scannerWithString_1, string?._id ?? ffi.nullptr); + return NSScanner._(_ret, _lib, retain: true, release: true); + } + + static NSObject localizedScannerWithString_( + HidListenerBindingsSwift _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSScanner1, + _lib._sel_localizedScannerWithString_1, string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + bool scanDecimal_(ffi.Pointer dcm) { + return _lib._objc_msgSend_758(_id, _lib._sel_scanDecimal_1, dcm); + } + + static NSScanner new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSScanner1, _lib._sel_new1); + return NSScanner._(_ret, _lib, retain: false, release: true); + } + + static NSScanner alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSScanner1, _lib._sel_alloc1); + return NSScanner._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSScanner1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSScanner1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSScanner1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSScanner1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSScanner1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSScanner1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSScanner1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSScanner1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSScanner1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +final class NSDecimal extends ffi.Opaque {} + +class NSException extends NSObject { + NSException._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSException] that points to the same underlying object as [other]. + static NSException castFrom(T other) { + return NSException._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSException] that wraps the given raw object pointer. + static NSException castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSException._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSException]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSException1); + } + + static NSException exceptionWithName_reason_userInfo_( + HidListenerBindingsSwift _lib, + NSString name, + NSString? reason, + NSDictionary? userInfo) { + final _ret = _lib._objc_msgSend_759( + _lib._class_NSException1, + _lib._sel_exceptionWithName_reason_userInfo_1, + name._id, + reason?._id ?? ffi.nullptr, + userInfo?._id ?? ffi.nullptr); + return NSException._(_ret, _lib, retain: true, release: true); + } + + NSException initWithName_reason_userInfo_( + NSString aName, NSString? aReason, NSDictionary? aUserInfo) { + final _ret = _lib._objc_msgSend_583( + _id, + _lib._sel_initWithName_reason_userInfo_1, + aName._id, + aReason?._id ?? ffi.nullptr, + aUserInfo?._id ?? ffi.nullptr); + return NSException._(_ret, _lib, retain: true, release: true); + } + + NSString get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get reason { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_reason1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSDictionary? get userInfo { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_userInfo1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSArray? get callStackReturnAddresses { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_callStackReturnAddresses1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get callStackSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_callStackSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + void raise() { + return _lib._objc_msgSend_1(_id, _lib._sel_raise1); + } + + static void raise_format_( + HidListenerBindingsSwift _lib, NSString name, NSString? format) { + return _lib._objc_msgSend_515(_lib._class_NSException1, + _lib._sel_raise_format_1, name._id, format?._id ?? ffi.nullptr); + } + + static void raise_format_arguments_(HidListenerBindingsSwift _lib, + NSString name, NSString? format, ffi.Pointer<__va_list_tag> argList) { + return _lib._objc_msgSend_760( + _lib._class_NSException1, + _lib._sel_raise_format_arguments_1, + name._id, + format?._id ?? ffi.nullptr, + argList); + } + + static NSException new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_new1); + return NSException._(_ret, _lib, retain: false, release: true); + } + + static NSException alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_alloc1); + return NSException._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSException1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSException1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSException1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSException1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSException1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSException1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSException1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSException1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSException1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSFileHandle extends NSObject { + NSFileHandle._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSFileHandle] that points to the same underlying object as [other]. + static NSFileHandle castFrom(T other) { + return NSFileHandle._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSFileHandle] that wraps the given raw object pointer. + static NSFileHandle castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSFileHandle._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSFileHandle]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileHandle1); + } + + NSData? get availableData { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_availableData1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + NSFileHandle initWithFileDescriptor_closeOnDealloc_(int fd, bool closeopt) { + final _ret = _lib._objc_msgSend_761( + _id, _lib._sel_initWithFileDescriptor_closeOnDealloc_1, fd, closeopt); + return NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + NSFileHandle initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + NSData readDataToEndOfFileAndReturnError_( + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_762( + _id, _lib._sel_readDataToEndOfFileAndReturnError_1, error); + return NSData._(_ret, _lib, retain: true, release: true); + } + + NSData readDataUpToLength_error_( + int length, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_763( + _id, _lib._sel_readDataUpToLength_error_1, length, error); + return NSData._(_ret, _lib, retain: true, release: true); + } + + bool writeData_error_( + NSData? data, ffi.Pointer> error) { + return _lib._objc_msgSend_764( + _id, _lib._sel_writeData_error_1, data?._id ?? ffi.nullptr, error); + } + + bool getOffset_error_(ffi.Pointer offsetInFile, + ffi.Pointer> error) { + return _lib._objc_msgSend_765( + _id, _lib._sel_getOffset_error_1, offsetInFile, error); + } + + bool seekToEndReturningOffset_error_( + ffi.Pointer offsetInFile, + ffi.Pointer> error) { + return _lib._objc_msgSend_765( + _id, _lib._sel_seekToEndReturningOffset_error_1, offsetInFile, error); + } + + bool seekToOffset_error_( + int offset, ffi.Pointer> error) { + return _lib._objc_msgSend_766( + _id, _lib._sel_seekToOffset_error_1, offset, error); + } + + bool truncateAtOffset_error_( + int offset, ffi.Pointer> error) { + return _lib._objc_msgSend_766( + _id, _lib._sel_truncateAtOffset_error_1, offset, error); + } + + bool synchronizeAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_225( + _id, _lib._sel_synchronizeAndReturnError_1, error); + } + + bool closeAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_225(_id, _lib._sel_closeAndReturnError_1, error); + } + + static NSFileHandle? getFileHandleWithStandardInput( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_767( + _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardInput1); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + static NSFileHandle? getFileHandleWithStandardOutput( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_767( + _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardOutput1); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + static NSFileHandle? getFileHandleWithStandardError( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_767( + _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardError1); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + static NSFileHandle? getFileHandleWithNullDevice( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_767( + _lib._class_NSFileHandle1, _lib._sel_fileHandleWithNullDevice1); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + static NSFileHandle fileHandleForReadingAtPath_( + HidListenerBindingsSwift _lib, NSString? path) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForReadingAtPath_1, path?._id ?? ffi.nullptr); + return NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + static NSFileHandle fileHandleForWritingAtPath_( + HidListenerBindingsSwift _lib, NSString? path) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForWritingAtPath_1, path?._id ?? ffi.nullptr); + return NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + static NSFileHandle fileHandleForUpdatingAtPath_( + HidListenerBindingsSwift _lib, NSString? path) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForUpdatingAtPath_1, path?._id ?? ffi.nullptr); + return NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + static NSFileHandle fileHandleForReadingFromURL_error_( + HidListenerBindingsSwift _lib, + NSURL? url, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_768( + _lib._class_NSFileHandle1, + _lib._sel_fileHandleForReadingFromURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + static NSFileHandle fileHandleForWritingToURL_error_( + HidListenerBindingsSwift _lib, + NSURL? url, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_768( + _lib._class_NSFileHandle1, + _lib._sel_fileHandleForWritingToURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + static NSFileHandle fileHandleForUpdatingURL_error_( + HidListenerBindingsSwift _lib, + NSURL? url, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_768( + _lib._class_NSFileHandle1, + _lib._sel_fileHandleForUpdatingURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + void readInBackgroundAndNotifyForModes_(NSArray? modes) { + return _lib._objc_msgSend_441( + _id, + _lib._sel_readInBackgroundAndNotifyForModes_1, + modes?._id ?? ffi.nullptr); + } + + void readInBackgroundAndNotify() { + return _lib._objc_msgSend_1(_id, _lib._sel_readInBackgroundAndNotify1); + } + + void readToEndOfFileInBackgroundAndNotifyForModes_(NSArray? modes) { + return _lib._objc_msgSend_441( + _id, + _lib._sel_readToEndOfFileInBackgroundAndNotifyForModes_1, + modes?._id ?? ffi.nullptr); + } + + void readToEndOfFileInBackgroundAndNotify() { + return _lib._objc_msgSend_1( + _id, _lib._sel_readToEndOfFileInBackgroundAndNotify1); + } + + void acceptConnectionInBackgroundAndNotifyForModes_(NSArray? modes) { + return _lib._objc_msgSend_441( + _id, + _lib._sel_acceptConnectionInBackgroundAndNotifyForModes_1, + modes?._id ?? ffi.nullptr); + } + + void acceptConnectionInBackgroundAndNotify() { + return _lib._objc_msgSend_1( + _id, _lib._sel_acceptConnectionInBackgroundAndNotify1); + } + + void waitForDataInBackgroundAndNotifyForModes_(NSArray? modes) { + return _lib._objc_msgSend_441( + _id, + _lib._sel_waitForDataInBackgroundAndNotifyForModes_1, + modes?._id ?? ffi.nullptr); + } + + void waitForDataInBackgroundAndNotify() { + return _lib._objc_msgSend_1( + _id, _lib._sel_waitForDataInBackgroundAndNotify1); + } + + ObjCBlock35 get readabilityHandler { + final _ret = _lib._objc_msgSend_769(_id, _lib._sel_readabilityHandler1); + return ObjCBlock35._(_ret, _lib); + } + + set readabilityHandler(ObjCBlock35 value) { + _lib._objc_msgSend_770(_id, _lib._sel_setReadabilityHandler_1, value._id); + } + + ObjCBlock35 get writeabilityHandler { + final _ret = _lib._objc_msgSend_769(_id, _lib._sel_writeabilityHandler1); + return ObjCBlock35._(_ret, _lib); + } + + set writeabilityHandler(ObjCBlock35 value) { + _lib._objc_msgSend_770(_id, _lib._sel_setWriteabilityHandler_1, value._id); + } + + NSFileHandle initWithFileDescriptor_(int fd) { + final _ret = + _lib._objc_msgSend_771(_id, _lib._sel_initWithFileDescriptor_1, fd); + return NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + int get fileDescriptor { + return _lib._objc_msgSend_219(_id, _lib._sel_fileDescriptor1); + } + + NSData readDataToEndOfFile() { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_readDataToEndOfFile1); + return NSData._(_ret, _lib, retain: true, release: true); + } + + NSData readDataOfLength_(int length) { + final _ret = + _lib._objc_msgSend_330(_id, _lib._sel_readDataOfLength_1, length); + return NSData._(_ret, _lib, retain: true, release: true); + } + + void writeData_(NSData? data) { + return _lib._objc_msgSend_263( + _id, _lib._sel_writeData_1, data?._id ?? ffi.nullptr); + } + + int get offsetInFile { + return _lib._objc_msgSend_154(_id, _lib._sel_offsetInFile1); + } + + int seekToEndOfFile() { + return _lib._objc_msgSend_154(_id, _lib._sel_seekToEndOfFile1); + } + + void seekToFileOffset_(int offset) { + return _lib._objc_msgSend_772(_id, _lib._sel_seekToFileOffset_1, offset); + } + + void truncateFileAtOffset_(int offset) { + return _lib._objc_msgSend_772( + _id, _lib._sel_truncateFileAtOffset_1, offset); + } + + void synchronizeFile() { + return _lib._objc_msgSend_1(_id, _lib._sel_synchronizeFile1); + } + + void closeFile() { + return _lib._objc_msgSend_1(_id, _lib._sel_closeFile1); + } + + static NSFileHandle new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSFileHandle1, _lib._sel_new1); + return NSFileHandle._(_ret, _lib, retain: false, release: true); + } + + static NSFileHandle alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSFileHandle1, _lib._sel_alloc1); + return NSFileHandle._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSFileHandle1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSFileHandle1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSFileHandle1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSFileHandle1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSFileHandle1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSFileHandle1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSFileHandle1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSFileHandle1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSFileHandle1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +void _ObjCBlock35_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} + +final _ObjCBlock35_closureRegistry = {}; +int _ObjCBlock35_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock35_registerClosure(Function fn) { + final id = ++_ObjCBlock35_closureRegistryIndex; + _ObjCBlock35_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock35_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return _ObjCBlock35_closureRegistry[block.ref.target.address]!(arg0); +} + +class ObjCBlock35 extends _ObjCBlockBase { + ObjCBlock35._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock35.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock35_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock35.fromFunction(HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock35_closureTrampoline) + .cast(), + _ObjCBlock35_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); + } +} + +class NSHTTPCookieStorage extends NSObject { + NSHTTPCookieStorage._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSHTTPCookieStorage] that points to the same underlying object as [other]. + static NSHTTPCookieStorage castFrom(T other) { + return NSHTTPCookieStorage._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSHTTPCookieStorage] that wraps the given raw object pointer. + static NSHTTPCookieStorage castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSHTTPCookieStorage._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSHTTPCookieStorage]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSHTTPCookieStorage1); + } + + static NSHTTPCookieStorage? getSharedHTTPCookieStorage( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_773( + _lib._class_NSHTTPCookieStorage1, _lib._sel_sharedHTTPCookieStorage1); + return _ret.address == 0 + ? null + : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); + } + + static NSHTTPCookieStorage sharedCookieStorageForGroupContainerIdentifier_( + HidListenerBindingsSwift _lib, NSString? identifier) { + final _ret = _lib._objc_msgSend_774( + _lib._class_NSHTTPCookieStorage1, + _lib._sel_sharedCookieStorageForGroupContainerIdentifier_1, + identifier?._id ?? ffi.nullptr); + return NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); + } + + NSArray? get cookies { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_cookies1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + void setCookie_(NSHTTPCookie? cookie) { + return _lib._objc_msgSend_777( + _id, _lib._sel_setCookie_1, cookie?._id ?? ffi.nullptr); + } + + void deleteCookie_(NSHTTPCookie? cookie) { + return _lib._objc_msgSend_777( + _id, _lib._sel_deleteCookie_1, cookie?._id ?? ffi.nullptr); + } + + void removeCookiesSinceDate_(NSDate? date) { + return _lib._objc_msgSend_504( + _id, _lib._sel_removeCookiesSinceDate_1, date?._id ?? ffi.nullptr); + } + + NSArray cookiesForURL_(NSURL? URL) { + final _ret = _lib._objc_msgSend_124( + _id, _lib._sel_cookiesForURL_1, URL?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + void setCookies_forURL_mainDocumentURL_( + NSArray? cookies, NSURL? URL, NSURL? mainDocumentURL) { + return _lib._objc_msgSend_778( + _id, + _lib._sel_setCookies_forURL_mainDocumentURL_1, + cookies?._id ?? ffi.nullptr, + URL?._id ?? ffi.nullptr, + mainDocumentURL?._id ?? ffi.nullptr); + } + + int get cookieAcceptPolicy { + return _lib._objc_msgSend_779(_id, _lib._sel_cookieAcceptPolicy1); + } + + set cookieAcceptPolicy(int value) { + _lib._objc_msgSend_780(_id, _lib._sel_setCookieAcceptPolicy_1, value); + } + + NSArray sortedCookiesUsingDescriptors_(NSArray? sortOrder) { + final _ret = _lib._objc_msgSend_63( + _id, + _lib._sel_sortedCookiesUsingDescriptors_1, + sortOrder?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + void storeCookies_forTask_(NSArray? cookies, NSURLSessionTask? task) { + return _lib._objc_msgSend_800(_id, _lib._sel_storeCookies_forTask_1, + cookies?._id ?? ffi.nullptr, task?._id ?? ffi.nullptr); + } + + void getCookiesForTask_completionHandler_( + NSURLSessionTask? task, ObjCBlock36 completionHandler) { + return _lib._objc_msgSend_801( + _id, + _lib._sel_getCookiesForTask_completionHandler_1, + task?._id ?? ffi.nullptr, + completionHandler._id); + } + + static NSHTTPCookieStorage new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSHTTPCookieStorage1, _lib._sel_new1); + return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); + } + + static NSHTTPCookieStorage alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSHTTPCookieStorage1, _lib._sel_alloc1); + return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSHTTPCookieStorage1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSHTTPCookieStorage1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSHTTPCookieStorage1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSHTTPCookieStorage1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSHTTPCookieStorage1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSHTTPCookieStorage1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSHTTPCookieStorage1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSHTTPCookieStorage1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSHTTPCookieStorage1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSHTTPCookie extends NSObject { + NSHTTPCookie._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSHTTPCookie] that points to the same underlying object as [other]. + static NSHTTPCookie castFrom(T other) { + return NSHTTPCookie._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSHTTPCookie] that wraps the given raw object pointer. + static NSHTTPCookie castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSHTTPCookie._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSHTTPCookie]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSHTTPCookie1); + } + + NSHTTPCookie initWithProperties_(NSDictionary? properties) { + final _ret = _lib._objc_msgSend_149( + _id, _lib._sel_initWithProperties_1, properties?._id ?? ffi.nullptr); + return NSHTTPCookie._(_ret, _lib, retain: true, release: true); + } + + static NSHTTPCookie cookieWithProperties_( + HidListenerBindingsSwift _lib, NSDictionary? properties) { + final _ret = _lib._objc_msgSend_775(_lib._class_NSHTTPCookie1, + _lib._sel_cookieWithProperties_1, properties?._id ?? ffi.nullptr); + return NSHTTPCookie._(_ret, _lib, retain: true, release: true); + } + + static NSDictionary requestHeaderFieldsWithCookies_( + HidListenerBindingsSwift _lib, NSArray? cookies) { + final _ret = _lib._objc_msgSend_475( + _lib._class_NSHTTPCookie1, + _lib._sel_requestHeaderFieldsWithCookies_1, + cookies?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSArray cookiesWithResponseHeaderFields_forURL_( + HidListenerBindingsSwift _lib, NSDictionary? headerFields, NSURL? URL) { + final _ret = _lib._objc_msgSend_776( + _lib._class_NSHTTPCookie1, + _lib._sel_cookiesWithResponseHeaderFields_forURL_1, + headerFields?._id ?? ffi.nullptr, + URL?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSDictionary? get properties { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_properties1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + int get version { + return _lib._objc_msgSend_10(_id, _lib._sel_version1); + } + + NSString? get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get value { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_value1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSDate? get expiresDate { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_expiresDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + bool get sessionOnly { + return _lib._objc_msgSend_12(_id, _lib._sel_isSessionOnly1); + } + + NSString? get domain { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_domain1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get path { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_path1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + bool get secure { + return _lib._objc_msgSend_12(_id, _lib._sel_isSecure1); + } + + bool get HTTPOnly { + return _lib._objc_msgSend_12(_id, _lib._sel_isHTTPOnly1); + } + + NSString? get comment { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_comment1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSURL? get commentURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_commentURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSArray? get portList { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_portList1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString get sameSitePolicy { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sameSitePolicy1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSHTTPCookie new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSHTTPCookie1, _lib._sel_new1); + return NSHTTPCookie._(_ret, _lib, retain: false, release: true); + } + + static NSHTTPCookie alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSHTTPCookie1, _lib._sel_alloc1); + return NSHTTPCookie._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSHTTPCookie1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSHTTPCookie1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSHTTPCookie1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSHTTPCookie1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSHTTPCookie1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSHTTPCookie1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSHTTPCookie1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSHTTPCookie1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSHTTPCookie1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSHTTPCookieAcceptPolicy { + static const int NSHTTPCookieAcceptPolicyAlways = 0; + static const int NSHTTPCookieAcceptPolicyNever = 1; + static const int NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain = 2; +} + +class NSURLSessionTask extends NSObject { + NSURLSessionTask._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLSessionTask] that points to the same underlying object as [other]. + static NSURLSessionTask castFrom(T other) { + return NSURLSessionTask._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSURLSessionTask] that wraps the given raw object pointer. + static NSURLSessionTask castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLSessionTask._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSURLSessionTask]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLSessionTask1); + } + + int get taskIdentifier { + return _lib._objc_msgSend_10(_id, _lib._sel_taskIdentifier1); + } + + NSURLRequest? get originalRequest { + final _ret = _lib._objc_msgSend_795(_id, _lib._sel_originalRequest1); + return _ret.address == 0 + ? null + : NSURLRequest._(_ret, _lib, retain: true, release: true); + } + + NSURLRequest? get currentRequest { + final _ret = _lib._objc_msgSend_795(_id, _lib._sel_currentRequest1); + return _ret.address == 0 + ? null + : NSURLRequest._(_ret, _lib, retain: true, release: true); + } + + NSURLResponse? get response { + final _ret = _lib._objc_msgSend_797(_id, _lib._sel_response1); + return _ret.address == 0 + ? null + : NSURLResponse._(_ret, _lib, retain: true, release: true); + } + + NSObject? get delegate { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + set delegate(NSObject? value) { + _lib._objc_msgSend_387( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + } + + NSProgress? get progress { + final _ret = _lib._objc_msgSend_609(_id, _lib._sel_progress1); + return _ret.address == 0 + ? null + : NSProgress._(_ret, _lib, retain: true, release: true); + } + + NSDate? get earliestBeginDate { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_earliestBeginDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + set earliestBeginDate(NSDate? value) { + _lib._objc_msgSend_525( + _id, _lib._sel_setEarliestBeginDate_1, value?._id ?? ffi.nullptr); + } + + int get countOfBytesClientExpectsToSend { + return _lib._objc_msgSend_616( + _id, _lib._sel_countOfBytesClientExpectsToSend1); + } + + set countOfBytesClientExpectsToSend(int value) { + _lib._objc_msgSend_617( + _id, _lib._sel_setCountOfBytesClientExpectsToSend_1, value); + } + + int get countOfBytesClientExpectsToReceive { + return _lib._objc_msgSend_616( + _id, _lib._sel_countOfBytesClientExpectsToReceive1); + } + + set countOfBytesClientExpectsToReceive(int value) { + _lib._objc_msgSend_617( + _id, _lib._sel_setCountOfBytesClientExpectsToReceive_1, value); + } + + int get countOfBytesSent { + return _lib._objc_msgSend_616(_id, _lib._sel_countOfBytesSent1); + } + + int get countOfBytesReceived { + return _lib._objc_msgSend_616(_id, _lib._sel_countOfBytesReceived1); + } + + int get countOfBytesExpectedToSend { + return _lib._objc_msgSend_616(_id, _lib._sel_countOfBytesExpectedToSend1); + } + + int get countOfBytesExpectedToReceive { + return _lib._objc_msgSend_616( + _id, _lib._sel_countOfBytesExpectedToReceive1); + } + + NSString? get taskDescription { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_taskDescription1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set taskDescription(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setTaskDescription_1, value?._id ?? ffi.nullptr); + } + + void cancel() { + return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + } + + int get state { + return _lib._objc_msgSend_798(_id, _lib._sel_state1); + } + + NSError? get error { + final _ret = _lib._objc_msgSend_298(_id, _lib._sel_error1); + return _ret.address == 0 + ? null + : NSError._(_ret, _lib, retain: true, release: true); + } + + void suspend() { + return _lib._objc_msgSend_1(_id, _lib._sel_suspend1); + } + + void resume() { + return _lib._objc_msgSend_1(_id, _lib._sel_resume1); + } + + double get priority { + return _lib._objc_msgSend_221(_id, _lib._sel_priority1); + } + + set priority(double value) { + _lib._objc_msgSend_799(_id, _lib._sel_setPriority_1, value); + } + + bool get prefersIncrementalDelivery { + return _lib._objc_msgSend_12(_id, _lib._sel_prefersIncrementalDelivery1); + } + + set prefersIncrementalDelivery(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setPrefersIncrementalDelivery_1, value); + } + + @override + NSURLSessionTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionTask._(_ret, _lib, retain: true, release: true); + } + + static NSURLSessionTask new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLSessionTask1, _lib._sel_new1); + return NSURLSessionTask._(_ret, _lib, retain: false, release: true); + } + + static NSURLSessionTask alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLSessionTask1, _lib._sel_alloc1); + return NSURLSessionTask._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSURLSessionTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSURLSessionTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSURLSessionTask1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLSessionTask1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLSessionTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLSessionTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSURLSessionTask1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionTask1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionTask1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSURLRequest extends NSObject { + NSURLRequest._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLRequest] that points to the same underlying object as [other]. + static NSURLRequest castFrom(T other) { + return NSURLRequest._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSURLRequest] that wraps the given raw object pointer. + static NSURLRequest castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLRequest._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSURLRequest]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLRequest1); + } + + static NSURLRequest requestWithURL_( + HidListenerBindingsSwift _lib, NSURL? URL) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSURLRequest1, + _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); + return NSURLRequest._(_ret, _lib, retain: true, release: true); + } + + static bool getSupportsSecureCoding(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLRequest1, _lib._sel_supportsSecureCoding1); + } + + static NSURLRequest requestWithURL_cachePolicy_timeoutInterval_( + HidListenerBindingsSwift _lib, + NSURL? URL, + int cachePolicy, + double timeoutInterval) { + final _ret = _lib._objc_msgSend_781( + _lib._class_NSURLRequest1, + _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, + URL?._id ?? ffi.nullptr, + cachePolicy, + timeoutInterval); + return NSURLRequest._(_ret, _lib, retain: true, release: true); + } + + NSURLRequest initWithURL_(NSURL? URL) { + final _ret = _lib._objc_msgSend_241( + _id, _lib._sel_initWithURL_1, URL?._id ?? ffi.nullptr); + return NSURLRequest._(_ret, _lib, retain: true, release: true); + } + + NSURLRequest initWithURL_cachePolicy_timeoutInterval_( + NSURL? URL, int cachePolicy, double timeoutInterval) { + final _ret = _lib._objc_msgSend_781( + _id, + _lib._sel_initWithURL_cachePolicy_timeoutInterval_1, + URL?._id ?? ffi.nullptr, + cachePolicy, + timeoutInterval); + return NSURLRequest._(_ret, _lib, retain: true, release: true); + } + + NSURL? get URL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + int get cachePolicy { + return _lib._objc_msgSend_782(_id, _lib._sel_cachePolicy1); + } + + double get timeoutInterval { + return _lib._objc_msgSend_155(_id, _lib._sel_timeoutInterval1); + } + + NSURL? get mainDocumentURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_mainDocumentURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + int get networkServiceType { + return _lib._objc_msgSend_783(_id, _lib._sel_networkServiceType1); + } + + bool get allowsCellularAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); + } + + bool get allowsExpensiveNetworkAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); + } + + bool get allowsConstrainedNetworkAccess { + return _lib._objc_msgSend_12( + _id, _lib._sel_allowsConstrainedNetworkAccess1); + } + + bool get assumesHTTP3Capable { + return _lib._objc_msgSend_12(_id, _lib._sel_assumesHTTP3Capable1); + } + + int get attribution { + return _lib._objc_msgSend_784(_id, _lib._sel_attribution1); + } + + bool get requiresDNSSECValidation { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); + } + + NSString? get HTTPMethod { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_HTTPMethod1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSDictionary? get allHTTPHeaderFields { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_allHTTPHeaderFields1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSString valueForHTTPHeaderField_(NSString? field) { + final _ret = _lib._objc_msgSend_64( + _id, _lib._sel_valueForHTTPHeaderField_1, field?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSData? get HTTPBody { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_HTTPBody1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + NSInputStream? get HTTPBodyStream { + final _ret = _lib._objc_msgSend_794(_id, _lib._sel_HTTPBodyStream1); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); + } + + bool get HTTPShouldHandleCookies { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldHandleCookies1); + } + + bool get HTTPShouldUsePipelining { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); + } + + static NSURLRequest new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_new1); + return NSURLRequest._(_ret, _lib, retain: false, release: true); + } + + static NSURLRequest alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_alloc1); + return NSURLRequest._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSURLRequest1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSURLRequest1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLRequest1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLRequest1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLRequest1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLRequest1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSURLRequest1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSURLRequest1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLRequest1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSURLRequestCachePolicy { + static const int NSURLRequestUseProtocolCachePolicy = 0; + static const int NSURLRequestReloadIgnoringLocalCacheData = 1; + static const int NSURLRequestReloadIgnoringLocalAndRemoteCacheData = 4; + static const int NSURLRequestReloadIgnoringCacheData = 1; + static const int NSURLRequestReturnCacheDataElseLoad = 2; + static const int NSURLRequestReturnCacheDataDontLoad = 3; + static const int NSURLRequestReloadRevalidatingCacheData = 5; +} + +abstract class NSURLRequestNetworkServiceType { + static const int NSURLNetworkServiceTypeDefault = 0; + static const int NSURLNetworkServiceTypeVoIP = 1; + static const int NSURLNetworkServiceTypeVideo = 2; + static const int NSURLNetworkServiceTypeBackground = 3; + static const int NSURLNetworkServiceTypeVoice = 4; + static const int NSURLNetworkServiceTypeResponsiveData = 6; + static const int NSURLNetworkServiceTypeAVStreaming = 8; + static const int NSURLNetworkServiceTypeResponsiveAV = 9; + static const int NSURLNetworkServiceTypeCallSignaling = 11; +} + +abstract class NSURLRequestAttribution { + static const int NSURLRequestAttributionDeveloper = 0; + static const int NSURLRequestAttributionUser = 1; +} + +class NSInputStream extends NSStream { + NSInputStream._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSInputStream] that points to the same underlying object as [other]. + static NSInputStream castFrom(T other) { + return NSInputStream._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSInputStream] that wraps the given raw object pointer. + static NSInputStream castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSInputStream._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSInputStream]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSInputStream1); + } + + int read_maxLength_(ffi.Pointer buffer, int len) { + return _lib._objc_msgSend_786(_id, _lib._sel_read_maxLength_1, buffer, len); + } + + bool getBuffer_length_(ffi.Pointer> buffer, + ffi.Pointer len) { + return _lib._objc_msgSend_793( + _id, _lib._sel_getBuffer_length_1, buffer, len); + } + + bool get hasBytesAvailable { + return _lib._objc_msgSend_12(_id, _lib._sel_hasBytesAvailable1); + } + + NSInputStream initWithData_(NSData? data) { + final _ret = _lib._objc_msgSend_257( + _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + return NSInputStream._(_ret, _lib, retain: true, release: true); + } + + NSInputStream initWithURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_241( + _id, _lib._sel_initWithURL_1, url?._id ?? ffi.nullptr); + return NSInputStream._(_ret, _lib, retain: true, release: true); + } + + NSInputStream initWithFileAtPath_(NSString? path) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithFileAtPath_1, path?._id ?? ffi.nullptr); + return NSInputStream._(_ret, _lib, retain: true, release: true); + } + + static NSInputStream inputStreamWithData_( + HidListenerBindingsSwift _lib, NSData? data) { + final _ret = _lib._objc_msgSend_257(_lib._class_NSInputStream1, + _lib._sel_inputStreamWithData_1, data?._id ?? ffi.nullptr); + return NSInputStream._(_ret, _lib, retain: true, release: true); + } + + static NSInputStream inputStreamWithFileAtPath_( + HidListenerBindingsSwift _lib, NSString? path) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSInputStream1, + _lib._sel_inputStreamWithFileAtPath_1, path?._id ?? ffi.nullptr); + return NSInputStream._(_ret, _lib, retain: true, release: true); + } + + static NSInputStream inputStreamWithURL_( + HidListenerBindingsSwift _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSInputStream1, + _lib._sel_inputStreamWithURL_1, url?._id ?? ffi.nullptr); + return NSInputStream._(_ret, _lib, retain: true, release: true); + } + + static void getStreamsToHostWithName_port_inputStream_outputStream_( + HidListenerBindingsSwift _lib, + NSString? hostname, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + return _lib._objc_msgSend_788( + _lib._class_NSInputStream1, + _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, + hostname?._id ?? ffi.nullptr, + port, + inputStream, + outputStream); + } + + static void getStreamsToHost_port_inputStream_outputStream_( + HidListenerBindingsSwift _lib, + NSHost? host, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + return _lib._objc_msgSend_791( + _lib._class_NSInputStream1, + _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, + host?._id ?? ffi.nullptr, + port, + inputStream, + outputStream); + } + + static void getBoundStreamsWithBufferSize_inputStream_outputStream_( + HidListenerBindingsSwift _lib, + int bufferSize, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + return _lib._objc_msgSend_792( + _lib._class_NSInputStream1, + _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, + bufferSize, + inputStream, + outputStream); + } + + static NSInputStream new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSInputStream1, _lib._sel_new1); + return NSInputStream._(_ret, _lib, retain: false, release: true); + } + + static NSInputStream alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSInputStream1, _lib._sel_alloc1); + return NSInputStream._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSInputStream1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSInputStream1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSInputStream1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSInputStream1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSInputStream1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSInputStream1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSInputStream1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSInputStream1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSInputStream1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSStream extends NSObject { + NSStream._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSStream] that points to the same underlying object as [other]. + static NSStream castFrom(T other) { + return NSStream._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSStream] that wraps the given raw object pointer. + static NSStream castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSStream._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSStream]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSStream1); + } + + void open() { + return _lib._objc_msgSend_1(_id, _lib._sel_open1); + } + + void close() { + return _lib._objc_msgSend_1(_id, _lib._sel_close1); + } + + NSObject? get delegate { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + set delegate(NSObject? value) { + _lib._objc_msgSend_387( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + } + + NSObject propertyForKey_(NSString key) { + final _ret = + _lib._objc_msgSend_30(_id, _lib._sel_propertyForKey_1, key._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + bool setProperty_forKey_(NSObject property, NSString key) { + return _lib._objc_msgSend_240( + _id, _lib._sel_setProperty_forKey_1, property._id, key._id); + } + + void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { + return _lib._objc_msgSend_533(_id, _lib._sel_scheduleInRunLoop_forMode_1, + aRunLoop?._id ?? ffi.nullptr, mode._id); + } + + void removeFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { + return _lib._objc_msgSend_533(_id, _lib._sel_removeFromRunLoop_forMode_1, + aRunLoop?._id ?? ffi.nullptr, mode._id); + } + + int get streamStatus { + return _lib._objc_msgSend_785(_id, _lib._sel_streamStatus1); + } + + NSError? get streamError { + final _ret = _lib._objc_msgSend_298(_id, _lib._sel_streamError1); + return _ret.address == 0 + ? null + : NSError._(_ret, _lib, retain: true, release: true); + } + + static void getStreamsToHostWithName_port_inputStream_outputStream_( + HidListenerBindingsSwift _lib, + NSString? hostname, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + return _lib._objc_msgSend_788( + _lib._class_NSStream1, + _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, + hostname?._id ?? ffi.nullptr, + port, + inputStream, + outputStream); + } + + static void getStreamsToHost_port_inputStream_outputStream_( + HidListenerBindingsSwift _lib, + NSHost? host, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + return _lib._objc_msgSend_791( + _lib._class_NSStream1, + _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, + host?._id ?? ffi.nullptr, + port, + inputStream, + outputStream); + } + + static void getBoundStreamsWithBufferSize_inputStream_outputStream_( + HidListenerBindingsSwift _lib, + int bufferSize, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + return _lib._objc_msgSend_792( + _lib._class_NSStream1, + _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, + bufferSize, + inputStream, + outputStream); + } + + static NSStream new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSStream1, _lib._sel_new1); + return NSStream._(_ret, _lib, retain: false, release: true); + } + + static NSStream alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSStream1, _lib._sel_alloc1); + return NSStream._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSStream1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSStream1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSStream1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSStream1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSStream1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSStream1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSStream1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSStream1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSStream1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSStreamStatus { + static const int NSStreamStatusNotOpen = 0; + static const int NSStreamStatusOpening = 1; + static const int NSStreamStatusOpen = 2; + static const int NSStreamStatusReading = 3; + static const int NSStreamStatusWriting = 4; + static const int NSStreamStatusAtEnd = 5; + static const int NSStreamStatusClosed = 6; + static const int NSStreamStatusError = 7; +} + +class NSOutputStream extends NSStream { + NSOutputStream._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSOutputStream] that points to the same underlying object as [other]. + static NSOutputStream castFrom(T other) { + return NSOutputStream._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSOutputStream] that wraps the given raw object pointer. + static NSOutputStream castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSOutputStream._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSOutputStream]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSOutputStream1); + } + + int write_maxLength_(ffi.Pointer buffer, int len) { + return _lib._objc_msgSend_786( + _id, _lib._sel_write_maxLength_1, buffer, len); + } + + bool get hasSpaceAvailable { + return _lib._objc_msgSend_12(_id, _lib._sel_hasSpaceAvailable1); + } + + NSOutputStream initToMemory() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_initToMemory1); + return NSOutputStream._(_ret, _lib, retain: true, release: true); + } + + NSOutputStream initToBuffer_capacity_( + ffi.Pointer buffer, int capacity) { + final _ret = _lib._objc_msgSend_787( + _id, _lib._sel_initToBuffer_capacity_1, buffer, capacity); + return NSOutputStream._(_ret, _lib, retain: true, release: true); + } + + NSOutputStream initWithURL_append_(NSURL? url, bool shouldAppend) { + final _ret = _lib._objc_msgSend_246(_id, _lib._sel_initWithURL_append_1, + url?._id ?? ffi.nullptr, shouldAppend); + return NSOutputStream._(_ret, _lib, retain: true, release: true); + } + + NSOutputStream initToFileAtPath_append_(NSString? path, bool shouldAppend) { + final _ret = _lib._objc_msgSend_29(_id, _lib._sel_initToFileAtPath_append_1, + path?._id ?? ffi.nullptr, shouldAppend); + return NSOutputStream._(_ret, _lib, retain: true, release: true); + } + + static NSOutputStream outputStreamToMemory(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSOutputStream1, _lib._sel_outputStreamToMemory1); + return NSOutputStream._(_ret, _lib, retain: true, release: true); + } + + static NSOutputStream outputStreamToBuffer_capacity_( + HidListenerBindingsSwift _lib, + ffi.Pointer buffer, + int capacity) { + final _ret = _lib._objc_msgSend_787(_lib._class_NSOutputStream1, + _lib._sel_outputStreamToBuffer_capacity_1, buffer, capacity); + return NSOutputStream._(_ret, _lib, retain: true, release: true); + } + + static NSOutputStream outputStreamToFileAtPath_append_( + HidListenerBindingsSwift _lib, NSString? path, bool shouldAppend) { + final _ret = _lib._objc_msgSend_29( + _lib._class_NSOutputStream1, + _lib._sel_outputStreamToFileAtPath_append_1, + path?._id ?? ffi.nullptr, + shouldAppend); + return NSOutputStream._(_ret, _lib, retain: true, release: true); + } + + static NSOutputStream outputStreamWithURL_append_( + HidListenerBindingsSwift _lib, NSURL? url, bool shouldAppend) { + final _ret = _lib._objc_msgSend_246( + _lib._class_NSOutputStream1, + _lib._sel_outputStreamWithURL_append_1, + url?._id ?? ffi.nullptr, + shouldAppend); + return NSOutputStream._(_ret, _lib, retain: true, release: true); + } + + static void getStreamsToHostWithName_port_inputStream_outputStream_( + HidListenerBindingsSwift _lib, + NSString? hostname, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + return _lib._objc_msgSend_788( + _lib._class_NSOutputStream1, + _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, + hostname?._id ?? ffi.nullptr, + port, + inputStream, + outputStream); + } + + static void getStreamsToHost_port_inputStream_outputStream_( + HidListenerBindingsSwift _lib, + NSHost? host, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + return _lib._objc_msgSend_791( + _lib._class_NSOutputStream1, + _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, + host?._id ?? ffi.nullptr, + port, + inputStream, + outputStream); + } + + static void getBoundStreamsWithBufferSize_inputStream_outputStream_( + HidListenerBindingsSwift _lib, + int bufferSize, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + return _lib._objc_msgSend_792( + _lib._class_NSOutputStream1, + _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, + bufferSize, + inputStream, + outputStream); + } + + static NSOutputStream new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOutputStream1, _lib._sel_new1); + return NSOutputStream._(_ret, _lib, retain: false, release: true); + } + + static NSOutputStream alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOutputStream1, _lib._sel_alloc1); + return NSOutputStream._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSOutputStream1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSOutputStream1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSOutputStream1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSOutputStream1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSOutputStream1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSOutputStream1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSOutputStream1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSOutputStream1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSOutputStream1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSHost extends NSObject { + NSHost._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSHost] that points to the same underlying object as [other]. + static NSHost castFrom(T other) { + return NSHost._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSHost] that wraps the given raw object pointer. + static NSHost castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSHost._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSHost]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSHost1); + } + + static NSHost currentHost(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSHost1, _lib._sel_currentHost1); + return NSHost._(_ret, _lib, retain: true, release: true); + } + + static NSHost hostWithName_(HidListenerBindingsSwift _lib, NSString? name) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSHost1, + _lib._sel_hostWithName_1, name?._id ?? ffi.nullptr); + return NSHost._(_ret, _lib, retain: true, release: true); + } + + static NSHost hostWithAddress_( + HidListenerBindingsSwift _lib, NSString? address) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSHost1, + _lib._sel_hostWithAddress_1, address?._id ?? ffi.nullptr); + return NSHost._(_ret, _lib, retain: true, release: true); + } + + bool isEqualToHost_(NSHost? aHost) { + return _lib._objc_msgSend_789( + _id, _lib._sel_isEqualToHost_1, aHost?._id ?? ffi.nullptr); + } + + NSString? get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray? get names { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_names1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString? get address { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_address1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray? get addresses { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_addresses1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString? get localizedName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localizedName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + static void setHostCacheEnabled_(HidListenerBindingsSwift _lib, bool flag) { + return _lib._objc_msgSend_790( + _lib._class_NSHost1, _lib._sel_setHostCacheEnabled_1, flag); + } + + static bool isHostCacheEnabled(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSHost1, _lib._sel_isHostCacheEnabled1); + } + + static void flushHostCache(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_1(_lib._class_NSHost1, _lib._sel_flushHostCache1); + } + + static NSHost new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSHost1, _lib._sel_new1); + return NSHost._(_ret, _lib, retain: false, release: true); + } + + static NSHost alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSHost1, _lib._sel_alloc1); + return NSHost._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSHost1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSHost1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSHost1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSHost1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSHost1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSHost1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSHost1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSHost1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSHost1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSURLResponse extends NSObject { + NSURLResponse._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLResponse] that points to the same underlying object as [other]. + static NSURLResponse castFrom(T other) { + return NSURLResponse._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSURLResponse] that wraps the given raw object pointer. + static NSURLResponse castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLResponse._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSURLResponse]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLResponse1); + } + + NSURLResponse initWithURL_MIMEType_expectedContentLength_textEncodingName_( + NSURL? URL, NSString? MIMEType, int length, NSString? name) { + final _ret = _lib._objc_msgSend_796( + _id, + _lib._sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1, + URL?._id ?? ffi.nullptr, + MIMEType?._id ?? ffi.nullptr, + length, + name?._id ?? ffi.nullptr); + return NSURLResponse._(_ret, _lib, retain: true, release: true); + } + + NSURL? get URL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSString? get MIMEType { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_MIMEType1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + int get expectedContentLength { + return _lib._objc_msgSend_220(_id, _lib._sel_expectedContentLength1); + } + + NSString? get textEncodingName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_textEncodingName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get suggestedFilename { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suggestedFilename1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + static NSURLResponse new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_new1); + return NSURLResponse._(_ret, _lib, retain: false, release: true); + } + + static NSURLResponse alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_alloc1); + return NSURLResponse._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSURLResponse1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSURLResponse1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLResponse1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLResponse1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLResponse1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLResponse1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSURLResponse1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSURLResponse1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLResponse1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSURLSessionTaskState { + static const int NSURLSessionTaskStateRunning = 0; + static const int NSURLSessionTaskStateSuspended = 1; + static const int NSURLSessionTaskStateCanceling = 2; + static const int NSURLSessionTaskStateCompleted = 3; +} + +void _ObjCBlock36_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} + +final _ObjCBlock36_closureRegistry = {}; +int _ObjCBlock36_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock36_registerClosure(Function fn) { + final id = ++_ObjCBlock36_closureRegistryIndex; + _ObjCBlock36_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock36_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return _ObjCBlock36_closureRegistry[block.ref.target.address]!(arg0); +} + +class ObjCBlock36 extends _ObjCBlockBase { + ObjCBlock36._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock36.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock36_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock36.fromFunction(HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock36_closureTrampoline) + .cast(), + _ObjCBlock36_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); + } +} + +class NSIndexPath extends NSObject { + NSIndexPath._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSIndexPath] that points to the same underlying object as [other]. + static NSIndexPath castFrom(T other) { + return NSIndexPath._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSIndexPath] that wraps the given raw object pointer. + static NSIndexPath castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSIndexPath._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSIndexPath]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSIndexPath1); + } + + static NSIndexPath indexPathWithIndex_( + HidListenerBindingsSwift _lib, int index) { + final _ret = _lib._objc_msgSend_60( + _lib._class_NSIndexPath1, _lib._sel_indexPathWithIndex_1, index); + return NSIndexPath._(_ret, _lib, retain: true, release: true); + } + + static NSIndexPath indexPathWithIndexes_length_(HidListenerBindingsSwift _lib, + ffi.Pointer indexes, int length) { + final _ret = _lib._objc_msgSend_802(_lib._class_NSIndexPath1, + _lib._sel_indexPathWithIndexes_length_1, indexes, length); + return NSIndexPath._(_ret, _lib, retain: true, release: true); + } + + NSIndexPath initWithIndexes_length_( + ffi.Pointer indexes, int length) { + final _ret = _lib._objc_msgSend_802( + _id, _lib._sel_initWithIndexes_length_1, indexes, length); + return NSIndexPath._(_ret, _lib, retain: true, release: true); + } + + NSIndexPath initWithIndex_(int index) { + final _ret = _lib._objc_msgSend_60(_id, _lib._sel_initWithIndex_1, index); + return NSIndexPath._(_ret, _lib, retain: true, release: true); + } + + NSIndexPath indexPathByAddingIndex_(int index) { + final _ret = + _lib._objc_msgSend_803(_id, _lib._sel_indexPathByAddingIndex_1, index); + return NSIndexPath._(_ret, _lib, retain: true, release: true); + } + + NSIndexPath indexPathByRemovingLastIndex() { + final _ret = + _lib._objc_msgSend_804(_id, _lib._sel_indexPathByRemovingLastIndex1); + return NSIndexPath._(_ret, _lib, retain: true, release: true); + } + + int indexAtPosition_(int position) { + return _lib._objc_msgSend_88(_id, _lib._sel_indexAtPosition_1, position); + } + + int get length { + return _lib._objc_msgSend_10(_id, _lib._sel_length1); + } + + void getIndexes_range_( + ffi.Pointer indexes, _NSRange positionRange) { + return _lib._objc_msgSend_805( + _id, _lib._sel_getIndexes_range_1, indexes, positionRange); + } + + int compare_(NSIndexPath? otherObject) { + return _lib._objc_msgSend_806( + _id, _lib._sel_compare_1, otherObject?._id ?? ffi.nullptr); + } + + void getIndexes_(ffi.Pointer indexes) { + return _lib._objc_msgSend_807(_id, _lib._sel_getIndexes_1, indexes); + } + + static NSIndexPath new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexPath1, _lib._sel_new1); + return NSIndexPath._(_ret, _lib, retain: false, release: true); + } + + static NSIndexPath alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSIndexPath1, _lib._sel_alloc1); + return NSIndexPath._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSIndexPath1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSIndexPath1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSIndexPath1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSIndexPath1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSIndexPath1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSIndexPath1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSIndexPath1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSIndexPath1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSIndexPath1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSInflectionRule extends NSObject { + NSInflectionRule._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSInflectionRule] that points to the same underlying object as [other]. + static NSInflectionRule castFrom(T other) { + return NSInflectionRule._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSInflectionRule] that wraps the given raw object pointer. + static NSInflectionRule castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSInflectionRule._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSInflectionRule]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSInflectionRule1); + } + + @override + NSObject init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSInflectionRule? getAutomaticRule(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_808( + _lib._class_NSInflectionRule1, _lib._sel_automaticRule1); + return _ret.address == 0 + ? null + : NSInflectionRule._(_ret, _lib, retain: true, release: true); + } + + static bool canInflectLanguage_( + HidListenerBindingsSwift _lib, NSString? language) { + return _lib._objc_msgSend_59(_lib._class_NSInflectionRule1, + _lib._sel_canInflectLanguage_1, language?._id ?? ffi.nullptr); + } + + static bool getCanInflectPreferredLocalization( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSInflectionRule1, + _lib._sel_canInflectPreferredLocalization1); + } + + static NSInflectionRule new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSInflectionRule1, _lib._sel_new1); + return NSInflectionRule._(_ret, _lib, retain: false, release: true); + } + + static NSInflectionRule alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSInflectionRule1, _lib._sel_alloc1); + return NSInflectionRule._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSInflectionRule1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSInflectionRule1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSInflectionRule1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSInflectionRule1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSInflectionRule1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSInflectionRule1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSInflectionRule1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSInflectionRule1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSInflectionRule1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSMorphology extends NSObject { + NSMorphology._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSMorphology] that points to the same underlying object as [other]. + static NSMorphology castFrom(T other) { + return NSMorphology._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSMorphology] that wraps the given raw object pointer. + static NSMorphology castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMorphology._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSMorphology]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSMorphology1); + } + + int get grammaticalGender { + return _lib._objc_msgSend_809(_id, _lib._sel_grammaticalGender1); + } + + set grammaticalGender(int value) { + _lib._objc_msgSend_810(_id, _lib._sel_setGrammaticalGender_1, value); + } + + int get partOfSpeech { + return _lib._objc_msgSend_811(_id, _lib._sel_partOfSpeech1); + } + + set partOfSpeech(int value) { + _lib._objc_msgSend_812(_id, _lib._sel_setPartOfSpeech_1, value); + } + + int get number { + return _lib._objc_msgSend_813(_id, _lib._sel_number1); + } + + set number(int value) { + _lib._objc_msgSend_814(_id, _lib._sel_setNumber_1, value); + } + + NSMorphologyCustomPronoun customPronounForLanguage_(NSString? language) { + final _ret = _lib._objc_msgSend_815(_id, + _lib._sel_customPronounForLanguage_1, language?._id ?? ffi.nullptr); + return NSMorphologyCustomPronoun._(_ret, _lib, retain: true, release: true); + } + + bool setCustomPronoun_forLanguage_error_(NSMorphologyCustomPronoun? features, + NSString? language, ffi.Pointer> error) { + return _lib._objc_msgSend_816( + _id, + _lib._sel_setCustomPronoun_forLanguage_error_1, + features?._id ?? ffi.nullptr, + language?._id ?? ffi.nullptr, + error); + } + + bool get unspecified { + return _lib._objc_msgSend_12(_id, _lib._sel_isUnspecified1); + } + + static NSMorphology? getUserMorphology(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_817( + _lib._class_NSMorphology1, _lib._sel_userMorphology1); + return _ret.address == 0 + ? null + : NSMorphology._(_ret, _lib, retain: true, release: true); + } + + static NSMorphology new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMorphology1, _lib._sel_new1); + return NSMorphology._(_ret, _lib, retain: false, release: true); + } + + static NSMorphology alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMorphology1, _lib._sel_alloc1); + return NSMorphology._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSMorphology1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSMorphology1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMorphology1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMorphology1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSMorphology1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSMorphology1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSMorphology1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSMorphology1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMorphology1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSGrammaticalGender { + static const int NSGrammaticalGenderNotSet = 0; + static const int NSGrammaticalGenderFeminine = 1; + static const int NSGrammaticalGenderMasculine = 2; + static const int NSGrammaticalGenderNeuter = 3; +} + +abstract class NSGrammaticalPartOfSpeech { + static const int NSGrammaticalPartOfSpeechNotSet = 0; + static const int NSGrammaticalPartOfSpeechDeterminer = 1; + static const int NSGrammaticalPartOfSpeechPronoun = 2; + static const int NSGrammaticalPartOfSpeechLetter = 3; + static const int NSGrammaticalPartOfSpeechAdverb = 4; + static const int NSGrammaticalPartOfSpeechParticle = 5; + static const int NSGrammaticalPartOfSpeechAdjective = 6; + static const int NSGrammaticalPartOfSpeechAdposition = 7; + static const int NSGrammaticalPartOfSpeechVerb = 8; + static const int NSGrammaticalPartOfSpeechNoun = 9; + static const int NSGrammaticalPartOfSpeechConjunction = 10; + static const int NSGrammaticalPartOfSpeechNumeral = 11; + static const int NSGrammaticalPartOfSpeechInterjection = 12; + static const int NSGrammaticalPartOfSpeechPreposition = 13; + static const int NSGrammaticalPartOfSpeechAbbreviation = 14; +} + +abstract class NSGrammaticalNumber { + static const int NSGrammaticalNumberNotSet = 0; + static const int NSGrammaticalNumberSingular = 1; + static const int NSGrammaticalNumberZero = 2; + static const int NSGrammaticalNumberPlural = 3; + static const int NSGrammaticalNumberPluralTwo = 4; + static const int NSGrammaticalNumberPluralFew = 5; + static const int NSGrammaticalNumberPluralMany = 6; +} + +class NSMorphologyCustomPronoun extends NSObject { + NSMorphologyCustomPronoun._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSMorphologyCustomPronoun] that points to the same underlying object as [other]. + static NSMorphologyCustomPronoun castFrom(T other) { + return NSMorphologyCustomPronoun._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSMorphologyCustomPronoun] that wraps the given raw object pointer. + static NSMorphologyCustomPronoun castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMorphologyCustomPronoun._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSMorphologyCustomPronoun]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMorphologyCustomPronoun1); + } + + static bool isSupportedForLanguage_( + HidListenerBindingsSwift _lib, NSString? language) { + return _lib._objc_msgSend_59(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_isSupportedForLanguage_1, language?._id ?? ffi.nullptr); + } + + static NSArray requiredKeysForLanguage_( + HidListenerBindingsSwift _lib, NSString? language) { + final _ret = _lib._objc_msgSend_123(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_requiredKeysForLanguage_1, language?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString? get subjectForm { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_subjectForm1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set subjectForm(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setSubjectForm_1, value?._id ?? ffi.nullptr); + } + + NSString? get objectForm { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_objectForm1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set objectForm(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setObjectForm_1, value?._id ?? ffi.nullptr); + } + + NSString? get possessiveForm { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_possessiveForm1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set possessiveForm(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setPossessiveForm_1, value?._id ?? ffi.nullptr); + } + + NSString? get possessiveAdjectiveForm { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_possessiveAdjectiveForm1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set possessiveAdjectiveForm(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setPossessiveAdjectiveForm_1, value?._id ?? ffi.nullptr); + } + + NSString? get reflexiveForm { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_reflexiveForm1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set reflexiveForm(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setReflexiveForm_1, value?._id ?? ffi.nullptr); + } + + static NSMorphologyCustomPronoun new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMorphologyCustomPronoun1, _lib._sel_new1); + return NSMorphologyCustomPronoun._(_ret, _lib, + retain: false, release: true); + } + + static NSMorphologyCustomPronoun alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMorphologyCustomPronoun1, _lib._sel_alloc1); + return NSMorphologyCustomPronoun._(_ret, _lib, + retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSMorphologyCustomPronoun1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMorphologyCustomPronoun1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSMorphologyCustomPronoun1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSMorphologyCustomPronoun1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSMorphologyCustomPronoun1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSOperationQueue extends NSObject { + NSOperationQueue._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSOperationQueue] that points to the same underlying object as [other]. + static NSOperationQueue castFrom(T other) { + return NSOperationQueue._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSOperationQueue] that wraps the given raw object pointer. + static NSOperationQueue castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSOperationQueue._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSOperationQueue]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSOperationQueue1); + } + + NSProgress? get progress { + final _ret = _lib._objc_msgSend_609(_id, _lib._sel_progress1); + return _ret.address == 0 + ? null + : NSProgress._(_ret, _lib, retain: true, release: true); + } + + void addOperation_(NSOperation? op) { + return _lib._objc_msgSend_818( + _id, _lib._sel_addOperation_1, op?._id ?? ffi.nullptr); + } + + void addOperations_waitUntilFinished_(NSArray? ops, bool wait) { + return _lib._objc_msgSend_821( + _id, + _lib._sel_addOperations_waitUntilFinished_1, + ops?._id ?? ffi.nullptr, + wait); + } + + void addOperationWithBlock_(ObjCBlock21 block) { + return _lib._objc_msgSend_497( + _id, _lib._sel_addOperationWithBlock_1, block._id); + } + + void addBarrierBlock_(ObjCBlock21 barrier) { + return _lib._objc_msgSend_497( + _id, _lib._sel_addBarrierBlock_1, barrier._id); + } + + int get maxConcurrentOperationCount { + return _lib._objc_msgSend_78(_id, _lib._sel_maxConcurrentOperationCount1); + } + + set maxConcurrentOperationCount(int value) { + _lib._objc_msgSend_590( + _id, _lib._sel_setMaxConcurrentOperationCount_1, value); + } + + bool get suspended { + return _lib._objc_msgSend_12(_id, _lib._sel_isSuspended1); + } + + set suspended(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setSuspended_1, value); + } + + NSString? get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set name(NSString? value) { + _lib._objc_msgSend_509(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + } + + int get qualityOfService { + return _lib._objc_msgSend_507(_id, _lib._sel_qualityOfService1); + } + + set qualityOfService(int value) { + _lib._objc_msgSend_508(_id, _lib._sel_setQualityOfService_1, value); + } + + NSObject get underlyingQueue { + final _ret = _lib._objc_msgSend_822(_id, _lib._sel_underlyingQueue1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + set underlyingQueue(NSObject value) { + _lib._objc_msgSend_823(_id, _lib._sel_setUnderlyingQueue_1, value._id); + } + + void cancelAllOperations() { + return _lib._objc_msgSend_1(_id, _lib._sel_cancelAllOperations1); + } + + void waitUntilAllOperationsAreFinished() { + return _lib._objc_msgSend_1( + _id, _lib._sel_waitUntilAllOperationsAreFinished1); + } + + static NSOperationQueue? getCurrentQueue(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_824( + _lib._class_NSOperationQueue1, _lib._sel_currentQueue1); + return _ret.address == 0 + ? null + : NSOperationQueue._(_ret, _lib, retain: true, release: true); + } + + static NSOperationQueue? getMainQueue(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_824( + _lib._class_NSOperationQueue1, _lib._sel_mainQueue1); + return _ret.address == 0 + ? null + : NSOperationQueue._(_ret, _lib, retain: true, release: true); + } + + NSArray? get operations { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_operations1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + int get operationCount { + return _lib._objc_msgSend_10(_id, _lib._sel_operationCount1); + } + + static NSOperationQueue new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_new1); + return NSOperationQueue._(_ret, _lib, retain: false, release: true); + } + + static NSOperationQueue alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_alloc1); + return NSOperationQueue._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSOperationQueue1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSOperationQueue1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSOperationQueue1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSOperationQueue1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSOperationQueue1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSOperationQueue1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSOperationQueue1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSOperationQueue1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSOperationQueue1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSOperation extends NSObject { + NSOperation._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSOperation] that points to the same underlying object as [other]. + static NSOperation castFrom(T other) { + return NSOperation._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSOperation] that wraps the given raw object pointer. + static NSOperation castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSOperation._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSOperation]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSOperation1); + } + + void start() { + return _lib._objc_msgSend_1(_id, _lib._sel_start1); + } + + void main() { + return _lib._objc_msgSend_1(_id, _lib._sel_main1); + } + + bool get cancelled { + return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); + } + + void cancel() { + return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + } + + bool get executing { + return _lib._objc_msgSend_12(_id, _lib._sel_isExecuting1); + } + + bool get finished { + return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); + } + + bool get concurrent { + return _lib._objc_msgSend_12(_id, _lib._sel_isConcurrent1); + } + + bool get asynchronous { + return _lib._objc_msgSend_12(_id, _lib._sel_isAsynchronous1); + } + + bool get ready { + return _lib._objc_msgSend_12(_id, _lib._sel_isReady1); + } + + void addDependency_(NSOperation? op) { + return _lib._objc_msgSend_818( + _id, _lib._sel_addDependency_1, op?._id ?? ffi.nullptr); + } + + void removeDependency_(NSOperation? op) { + return _lib._objc_msgSend_818( + _id, _lib._sel_removeDependency_1, op?._id ?? ffi.nullptr); + } + + NSArray? get dependencies { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_dependencies1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + int get queuePriority { + return _lib._objc_msgSend_819(_id, _lib._sel_queuePriority1); + } + + set queuePriority(int value) { + _lib._objc_msgSend_820(_id, _lib._sel_setQueuePriority_1, value); + } + + ObjCBlock21 get completionBlock { + final _ret = _lib._objc_msgSend_618(_id, _lib._sel_completionBlock1); + return ObjCBlock21._(_ret, _lib); + } + + set completionBlock(ObjCBlock21 value) { + _lib._objc_msgSend_619(_id, _lib._sel_setCompletionBlock_1, value._id); + } + + void waitUntilFinished() { + return _lib._objc_msgSend_1(_id, _lib._sel_waitUntilFinished1); + } + + double get threadPriority { + return _lib._objc_msgSend_155(_id, _lib._sel_threadPriority1); + } + + set threadPriority(double value) { + _lib._objc_msgSend_506(_id, _lib._sel_setThreadPriority_1, value); + } + + int get qualityOfService { + return _lib._objc_msgSend_507(_id, _lib._sel_qualityOfService1); + } + + set qualityOfService(int value) { + _lib._objc_msgSend_508(_id, _lib._sel_setQualityOfService_1, value); + } + + NSString? get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set name(NSString? value) { + _lib._objc_msgSend_509(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + } + + static NSOperation new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_new1); + return NSOperation._(_ret, _lib, retain: false, release: true); + } + + static NSOperation alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_alloc1); + return NSOperation._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSOperation1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSOperation1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSOperation1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSOperation1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSOperation1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSOperation1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSOperation1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSOperation1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSOperation1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSOperationQueuePriority { + static const int NSOperationQueuePriorityVeryLow = -8; + static const int NSOperationQueuePriorityLow = -4; + static const int NSOperationQueuePriorityNormal = 0; + static const int NSOperationQueuePriorityHigh = 4; + static const int NSOperationQueuePriorityVeryHigh = 8; +} + +class NSPointerArray extends NSObject { + NSPointerArray._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSPointerArray] that points to the same underlying object as [other]. + static NSPointerArray castFrom(T other) { + return NSPointerArray._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSPointerArray] that wraps the given raw object pointer. + static NSPointerArray castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSPointerArray._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSPointerArray]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSPointerArray1); + } + + NSPointerArray initWithOptions_(int options) { + final _ret = + _lib._objc_msgSend_825(_id, _lib._sel_initWithOptions_1, options); + return NSPointerArray._(_ret, _lib, retain: true, release: true); + } + + NSPointerArray initWithPointerFunctions_(NSPointerFunctions? functions) { + final _ret = _lib._objc_msgSend_839(_id, + _lib._sel_initWithPointerFunctions_1, functions?._id ?? ffi.nullptr); + return NSPointerArray._(_ret, _lib, retain: true, release: true); + } + + static NSPointerArray pointerArrayWithOptions_( + HidListenerBindingsSwift _lib, int options) { + final _ret = _lib._objc_msgSend_840(_lib._class_NSPointerArray1, + _lib._sel_pointerArrayWithOptions_1, options); + return NSPointerArray._(_ret, _lib, retain: true, release: true); + } + + static NSPointerArray pointerArrayWithPointerFunctions_( + HidListenerBindingsSwift _lib, NSPointerFunctions? functions) { + final _ret = _lib._objc_msgSend_841( + _lib._class_NSPointerArray1, + _lib._sel_pointerArrayWithPointerFunctions_1, + functions?._id ?? ffi.nullptr); + return NSPointerArray._(_ret, _lib, retain: true, release: true); + } + + NSPointerFunctions? get pointerFunctions { + final _ret = _lib._objc_msgSend_842(_id, _lib._sel_pointerFunctions1); + return _ret.address == 0 + ? null + : NSPointerFunctions._(_ret, _lib, retain: true, release: true); + } + + ffi.Pointer pointerAtIndex_(int index) { + return _lib._objc_msgSend_843(_id, _lib._sel_pointerAtIndex_1, index); + } + + void addPointer_(ffi.Pointer pointer) { + return _lib._objc_msgSend_47(_id, _lib._sel_addPointer_1, pointer); + } + + void removePointerAtIndex_(int index) { + return _lib._objc_msgSend_439(_id, _lib._sel_removePointerAtIndex_1, index); + } + + void insertPointer_atIndex_(ffi.Pointer item, int index) { + return _lib._objc_msgSend_21( + _id, _lib._sel_insertPointer_atIndex_1, item, index); + } + + void replacePointerAtIndex_withPointer_( + int index, ffi.Pointer item) { + return _lib._objc_msgSend_844( + _id, _lib._sel_replacePointerAtIndex_withPointer_1, index, item); + } + + void compact() { + return _lib._objc_msgSend_1(_id, _lib._sel_compact1); + } + + int get count { + return _lib._objc_msgSend_10(_id, _lib._sel_count1); + } + + set count(int value) { + _lib._objc_msgSend_483(_id, _lib._sel_setCount_1, value); + } + + static NSObject pointerArrayWithStrongObjects(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSPointerArray1, _lib._sel_pointerArrayWithStrongObjects1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject pointerArrayWithWeakObjects(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSPointerArray1, _lib._sel_pointerArrayWithWeakObjects1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSPointerArray strongObjectsPointerArray( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_845( + _lib._class_NSPointerArray1, _lib._sel_strongObjectsPointerArray1); + return NSPointerArray._(_ret, _lib, retain: true, release: true); + } + + static NSPointerArray weakObjectsPointerArray(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_845( + _lib._class_NSPointerArray1, _lib._sel_weakObjectsPointerArray1); + return NSPointerArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get allObjects { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allObjects1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSPointerArray new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSPointerArray1, _lib._sel_new1); + return NSPointerArray._(_ret, _lib, retain: false, release: true); + } + + static NSPointerArray alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSPointerArray1, _lib._sel_alloc1); + return NSPointerArray._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSPointerArray1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSPointerArray1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSPointerArray1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSPointerArray1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSPointerArray1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSPointerArray1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSPointerArray1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSPointerArray1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSPointerArray1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSPointerFunctionsOptions { + static const int NSPointerFunctionsStrongMemory = 0; + static const int NSPointerFunctionsZeroingWeakMemory = 1; + static const int NSPointerFunctionsOpaqueMemory = 2; + static const int NSPointerFunctionsMallocMemory = 3; + static const int NSPointerFunctionsMachVirtualMemory = 4; + static const int NSPointerFunctionsWeakMemory = 5; + static const int NSPointerFunctionsObjectPersonality = 0; + static const int NSPointerFunctionsOpaquePersonality = 256; + static const int NSPointerFunctionsObjectPointerPersonality = 512; + static const int NSPointerFunctionsCStringPersonality = 768; + static const int NSPointerFunctionsStructPersonality = 1024; + static const int NSPointerFunctionsIntegerPersonality = 1280; + static const int NSPointerFunctionsCopyIn = 65536; +} + +class NSPointerFunctions extends NSObject { + NSPointerFunctions._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSPointerFunctions] that points to the same underlying object as [other]. + static NSPointerFunctions castFrom(T other) { + return NSPointerFunctions._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSPointerFunctions] that wraps the given raw object pointer. + static NSPointerFunctions castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSPointerFunctions._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSPointerFunctions]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSPointerFunctions1); + } + + NSPointerFunctions initWithOptions_(int options) { + final _ret = + _lib._objc_msgSend_825(_id, _lib._sel_initWithOptions_1, options); + return NSPointerFunctions._(_ret, _lib, retain: true, release: true); + } + + static NSPointerFunctions pointerFunctionsWithOptions_( + HidListenerBindingsSwift _lib, int options) { + final _ret = _lib._objc_msgSend_826(_lib._class_NSPointerFunctions1, + _lib._sel_pointerFunctionsWithOptions_1, options); + return NSPointerFunctions._(_ret, _lib, retain: true, release: true); + } + + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + get hashFunction { + return _lib._objc_msgSend_827(_id, _lib._sel_hashFunction1); + } + + set hashFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + value) { + _lib._objc_msgSend_828(_id, _lib._sel_setHashFunction_1, value); + } + + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + get isEqualFunction { + return _lib._objc_msgSend_829(_id, _lib._sel_isEqualFunction1); + } + + set isEqualFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + value) { + _lib._objc_msgSend_830(_id, _lib._sel_setIsEqualFunction_1, value); + } + + ffi.Pointer< + ffi.NativeFunction)>> + get sizeFunction { + return _lib._objc_msgSend_831(_id, _lib._sel_sizeFunction1); + } + + set sizeFunction( + ffi.Pointer< + ffi + .NativeFunction)>> + value) { + _lib._objc_msgSend_832(_id, _lib._sel_setSizeFunction_1, value); + } + + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>> + get descriptionFunction { + return _lib._objc_msgSend_833(_id, _lib._sel_descriptionFunction1); + } + + set descriptionFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>> + value) { + _lib._objc_msgSend_834(_id, _lib._sel_setDescriptionFunction_1, value); + } + + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + get relinquishFunction { + return _lib._objc_msgSend_835(_id, _lib._sel_relinquishFunction1); + } + + set relinquishFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + value) { + _lib._objc_msgSend_836(_id, _lib._sel_setRelinquishFunction_1, value); + } + + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>, + ffi.Bool)>> get acquireFunction { + return _lib._objc_msgSend_837(_id, _lib._sel_acquireFunction1); + } + + set acquireFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>, + ffi.Bool)>> + value) { + _lib._objc_msgSend_838(_id, _lib._sel_setAcquireFunction_1, value); + } + + bool get usesStrongWriteBarrier { + return _lib._objc_msgSend_12(_id, _lib._sel_usesStrongWriteBarrier1); + } + + set usesStrongWriteBarrier(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setUsesStrongWriteBarrier_1, value); + } + + bool get usesWeakReadAndWriteBarriers { + return _lib._objc_msgSend_12(_id, _lib._sel_usesWeakReadAndWriteBarriers1); + } + + set usesWeakReadAndWriteBarriers(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setUsesWeakReadAndWriteBarriers_1, value); + } + + static NSPointerFunctions new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSPointerFunctions1, _lib._sel_new1); + return NSPointerFunctions._(_ret, _lib, retain: false, release: true); + } + + static NSPointerFunctions alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSPointerFunctions1, _lib._sel_alloc1); + return NSPointerFunctions._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSPointerFunctions1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSPointerFunctions1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSPointerFunctions1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSPointerFunctions1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSPointerFunctions1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSPointerFunctions1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSPointerFunctions1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSPointerFunctions1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSPointerFunctions1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSProcessInfo extends NSObject { + NSProcessInfo._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSProcessInfo] that points to the same underlying object as [other]. + static NSProcessInfo castFrom(T other) { + return NSProcessInfo._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSProcessInfo] that wraps the given raw object pointer. + static NSProcessInfo castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSProcessInfo._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSProcessInfo]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProcessInfo1); + } + + static NSProcessInfo? getProcessInfo(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_846( + _lib._class_NSProcessInfo1, _lib._sel_processInfo1); + return _ret.address == 0 + ? null + : NSProcessInfo._(_ret, _lib, retain: true, release: true); + } + + NSDictionary? get environment { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_environment1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSArray? get arguments { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_arguments1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString? get hostName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_hostName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get processName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_processName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set processName(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setProcessName_1, value?._id ?? ffi.nullptr); + } + + int get processIdentifier { + return _lib._objc_msgSend_219(_id, _lib._sel_processIdentifier1); + } + + NSString? get globallyUniqueString { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_globallyUniqueString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + int operatingSystem() { + return _lib._objc_msgSend_10(_id, _lib._sel_operatingSystem1); + } + + NSString operatingSystemName() { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_operatingSystemName1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get operatingSystemVersionString { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_operatingSystemVersionString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSOperatingSystemVersion get operatingSystemVersion { + return _lib._objc_msgSend_847(_id, _lib._sel_operatingSystemVersion1); + } + + int get processorCount { + return _lib._objc_msgSend_10(_id, _lib._sel_processorCount1); + } + + int get activeProcessorCount { + return _lib._objc_msgSend_10(_id, _lib._sel_activeProcessorCount1); + } + + int get physicalMemory { + return _lib._objc_msgSend_154(_id, _lib._sel_physicalMemory1); + } + + bool isOperatingSystemAtLeastVersion_(NSOperatingSystemVersion version) { + return _lib._objc_msgSend_848( + _id, _lib._sel_isOperatingSystemAtLeastVersion_1, version); + } + + double get systemUptime { + return _lib._objc_msgSend_155(_id, _lib._sel_systemUptime1); + } + + void disableSuddenTermination() { + return _lib._objc_msgSend_1(_id, _lib._sel_disableSuddenTermination1); + } + + void enableSuddenTermination() { + return _lib._objc_msgSend_1(_id, _lib._sel_enableSuddenTermination1); + } + + void disableAutomaticTermination_(NSString? reason) { + return _lib._objc_msgSend_192(_id, _lib._sel_disableAutomaticTermination_1, + reason?._id ?? ffi.nullptr); + } + + void enableAutomaticTermination_(NSString? reason) { + return _lib._objc_msgSend_192(_id, _lib._sel_enableAutomaticTermination_1, + reason?._id ?? ffi.nullptr); + } + + bool get automaticTerminationSupportEnabled { + return _lib._objc_msgSend_12( + _id, _lib._sel_automaticTerminationSupportEnabled1); + } + + set automaticTerminationSupportEnabled(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setAutomaticTerminationSupportEnabled_1, value); + } + + NSObject beginActivityWithOptions_reason_(int options, NSString? reason) { + final _ret = _lib._objc_msgSend_849( + _id, + _lib._sel_beginActivityWithOptions_reason_1, + options, + reason?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void endActivity_(NSObject? activity) { + return _lib._objc_msgSend_15( + _id, _lib._sel_endActivity_1, activity?._id ?? ffi.nullptr); + } + + void performActivityWithOptions_reason_usingBlock_( + int options, NSString? reason, ObjCBlock21 block) { + return _lib._objc_msgSend_850( + _id, + _lib._sel_performActivityWithOptions_reason_usingBlock_1, + options, + reason?._id ?? ffi.nullptr, + block._id); + } + + void performExpiringActivityWithReason_usingBlock_( + NSString? reason, ObjCBlock37 block) { + return _lib._objc_msgSend_851( + _id, + _lib._sel_performExpiringActivityWithReason_usingBlock_1, + reason?._id ?? ffi.nullptr, + block._id); + } + + NSString? get userName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_userName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get fullUserName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fullUserName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + int get thermalState { + return _lib._objc_msgSend_852(_id, _lib._sel_thermalState1); + } + + bool get lowPowerModeEnabled { + return _lib._objc_msgSend_12(_id, _lib._sel_isLowPowerModeEnabled1); + } + + bool get macCatalystApp { + return _lib._objc_msgSend_12(_id, _lib._sel_isMacCatalystApp1); + } + + bool get iOSAppOnMac { + return _lib._objc_msgSend_12(_id, _lib._sel_isiOSAppOnMac1); + } + + static NSProcessInfo new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSProcessInfo1, _lib._sel_new1); + return NSProcessInfo._(_ret, _lib, retain: false, release: true); + } + + static NSProcessInfo alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSProcessInfo1, _lib._sel_alloc1); + return NSProcessInfo._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSProcessInfo1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSProcessInfo1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSProcessInfo1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSProcessInfo1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSProcessInfo1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSProcessInfo1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSProcessInfo1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSProcessInfo1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSProcessInfo1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +final class NSOperatingSystemVersion extends ffi.Struct { + @ffi.Long() + external int majorVersion; + + @ffi.Long() + external int minorVersion; + + @ffi.Long() + external int patchVersion; +} + +abstract class NSActivityOptions { + static const int NSActivityIdleDisplaySleepDisabled = 1099511627776; + static const int NSActivityIdleSystemSleepDisabled = 1048576; + static const int NSActivitySuddenTerminationDisabled = 16384; + static const int NSActivityAutomaticTerminationDisabled = 32768; + static const int NSActivityAnimationTrackingEnabled = 35184372088832; + static const int NSActivityTrackingEnabled = 70368744177664; + static const int NSActivityUserInitiated = 16777215; + static const int NSActivityUserInitiatedAllowingIdleSystemSleep = 15728639; + static const int NSActivityBackground = 255; + static const int NSActivityLatencyCritical = 1095216660480; + static const int NSActivityUserInteractive = 1095233437695; +} + +void _ObjCBlock37_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, bool arg0) { + return block.ref.target + .cast>() + .asFunction()(arg0); +} + +final _ObjCBlock37_closureRegistry = {}; +int _ObjCBlock37_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock37_registerClosure(Function fn) { + final id = ++_ObjCBlock37_closureRegistryIndex; + _ObjCBlock37_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock37_closureTrampoline(ffi.Pointer<_ObjCBlock> block, bool arg0) { + return _ObjCBlock37_closureRegistry[block.ref.target.address]!(arg0); +} + +class ObjCBlock37 extends _ObjCBlockBase { + ObjCBlock37._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock37.fromFunctionPointer(HidListenerBindingsSwift lib, + ffi.Pointer> ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Bool arg0)>(_ObjCBlock37_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock37.fromFunction( + HidListenerBindingsSwift lib, void Function(bool arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Bool arg0)>(_ObjCBlock37_closureTrampoline) + .cast(), + _ObjCBlock37_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(bool arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, bool arg0)>()(_id, arg0); + } +} + +abstract class NSProcessInfoThermalState { + static const int NSProcessInfoThermalStateNominal = 0; + static const int NSProcessInfoThermalStateFair = 1; + static const int NSProcessInfoThermalStateSerious = 2; + static const int NSProcessInfoThermalStateCritical = 3; +} + +class NSTextCheckingResult extends NSObject { + NSTextCheckingResult._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSTextCheckingResult] that points to the same underlying object as [other]. + static NSTextCheckingResult castFrom(T other) { + return NSTextCheckingResult._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSTextCheckingResult] that wraps the given raw object pointer. + static NSTextCheckingResult castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSTextCheckingResult._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSTextCheckingResult]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSTextCheckingResult1); + } + + int get resultType { + return _lib._objc_msgSend_853(_id, _lib._sel_resultType1); + } + + _NSRange get range { + return _lib._objc_msgSend_49(_id, _lib._sel_range1); + } + + NSOrthography? get orthography { + final _ret = _lib._objc_msgSend_854(_id, _lib._sel_orthography1); + return _ret.address == 0 + ? null + : NSOrthography._(_ret, _lib, retain: true, release: true); + } + + NSArray? get grammarDetails { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_grammarDetails1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSDate? get date { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_date1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + NSTimeZone? get timeZone { + final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + double get duration { + return _lib._objc_msgSend_155(_id, _lib._sel_duration1); + } + + NSDictionary? get components { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_components1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSURL? get URL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSString? get replacementString { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_replacementString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray? get alternativeStrings { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_alternativeStrings1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSRegularExpression? get regularExpression { + final _ret = _lib._objc_msgSend_866(_id, _lib._sel_regularExpression1); + return _ret.address == 0 + ? null + : NSRegularExpression._(_ret, _lib, retain: true, release: true); + } + + NSString? get phoneNumber { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_phoneNumber1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + int get numberOfRanges { + return _lib._objc_msgSend_10(_id, _lib._sel_numberOfRanges1); + } + + _NSRange rangeAtIndex_(int idx) { + return _lib._objc_msgSend_323(_id, _lib._sel_rangeAtIndex_1, idx); + } + + _NSRange rangeWithName_(NSString? name) { + return _lib._objc_msgSend_316( + _id, _lib._sel_rangeWithName_1, name?._id ?? ffi.nullptr); + } + + NSTextCheckingResult resultByAdjustingRangesWithOffset_(int offset) { + final _ret = _lib._objc_msgSend_867( + _id, _lib._sel_resultByAdjustingRangesWithOffset_1, offset); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + NSDictionary? get addressComponents { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_addressComponents1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult orthographyCheckingResultWithRange_orthography_( + HidListenerBindingsSwift _lib, + _NSRange range, + NSOrthography? orthography) { + final _ret = _lib._objc_msgSend_868( + _lib._class_NSTextCheckingResult1, + _lib._sel_orthographyCheckingResultWithRange_orthography_1, + range, + orthography?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult spellCheckingResultWithRange_( + HidListenerBindingsSwift _lib, _NSRange range) { + final _ret = _lib._objc_msgSend_869(_lib._class_NSTextCheckingResult1, + _lib._sel_spellCheckingResultWithRange_1, range); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult grammarCheckingResultWithRange_details_( + HidListenerBindingsSwift _lib, _NSRange range, NSArray? details) { + final _ret = _lib._objc_msgSend_870( + _lib._class_NSTextCheckingResult1, + _lib._sel_grammarCheckingResultWithRange_details_1, + range, + details?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult dateCheckingResultWithRange_date_( + HidListenerBindingsSwift _lib, _NSRange range, NSDate? date) { + final _ret = _lib._objc_msgSend_871( + _lib._class_NSTextCheckingResult1, + _lib._sel_dateCheckingResultWithRange_date_1, + range, + date?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult + dateCheckingResultWithRange_date_timeZone_duration_( + HidListenerBindingsSwift _lib, + _NSRange range, + NSDate? date, + NSTimeZone? timeZone, + double duration) { + final _ret = _lib._objc_msgSend_872( + _lib._class_NSTextCheckingResult1, + _lib._sel_dateCheckingResultWithRange_date_timeZone_duration_1, + range, + date?._id ?? ffi.nullptr, + timeZone?._id ?? ffi.nullptr, + duration); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult addressCheckingResultWithRange_components_( + HidListenerBindingsSwift _lib, _NSRange range, NSDictionary? components) { + final _ret = _lib._objc_msgSend_873( + _lib._class_NSTextCheckingResult1, + _lib._sel_addressCheckingResultWithRange_components_1, + range, + components?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult linkCheckingResultWithRange_URL_( + HidListenerBindingsSwift _lib, _NSRange range, NSURL? url) { + final _ret = _lib._objc_msgSend_874( + _lib._class_NSTextCheckingResult1, + _lib._sel_linkCheckingResultWithRange_URL_1, + range, + url?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult quoteCheckingResultWithRange_replacementString_( + HidListenerBindingsSwift _lib, + _NSRange range, + NSString? replacementString) { + final _ret = _lib._objc_msgSend_875( + _lib._class_NSTextCheckingResult1, + _lib._sel_quoteCheckingResultWithRange_replacementString_1, + range, + replacementString?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult dashCheckingResultWithRange_replacementString_( + HidListenerBindingsSwift _lib, + _NSRange range, + NSString? replacementString) { + final _ret = _lib._objc_msgSend_875( + _lib._class_NSTextCheckingResult1, + _lib._sel_dashCheckingResultWithRange_replacementString_1, + range, + replacementString?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult + replacementCheckingResultWithRange_replacementString_( + HidListenerBindingsSwift _lib, + _NSRange range, + NSString? replacementString) { + final _ret = _lib._objc_msgSend_875( + _lib._class_NSTextCheckingResult1, + _lib._sel_replacementCheckingResultWithRange_replacementString_1, + range, + replacementString?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult + correctionCheckingResultWithRange_replacementString_( + HidListenerBindingsSwift _lib, + _NSRange range, + NSString? replacementString) { + final _ret = _lib._objc_msgSend_875( + _lib._class_NSTextCheckingResult1, + _lib._sel_correctionCheckingResultWithRange_replacementString_1, + range, + replacementString?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult + correctionCheckingResultWithRange_replacementString_alternativeStrings_( + HidListenerBindingsSwift _lib, + _NSRange range, + NSString? replacementString, + NSArray? alternativeStrings) { + final _ret = _lib._objc_msgSend_876( + _lib._class_NSTextCheckingResult1, + _lib._sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_1, + range, + replacementString?._id ?? ffi.nullptr, + alternativeStrings?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult + regularExpressionCheckingResultWithRanges_count_regularExpression_( + HidListenerBindingsSwift _lib, + ffi.Pointer<_NSRange> ranges, + int count, + NSRegularExpression? regularExpression) { + final _ret = _lib._objc_msgSend_877( + _lib._class_NSTextCheckingResult1, + _lib._sel_regularExpressionCheckingResultWithRanges_count_regularExpression_1, + ranges, + count, + regularExpression?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult phoneNumberCheckingResultWithRange_phoneNumber_( + HidListenerBindingsSwift _lib, _NSRange range, NSString? phoneNumber) { + final _ret = _lib._objc_msgSend_875( + _lib._class_NSTextCheckingResult1, + _lib._sel_phoneNumberCheckingResultWithRange_phoneNumber_1, + range, + phoneNumber?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult + transitInformationCheckingResultWithRange_components_( + HidListenerBindingsSwift _lib, + _NSRange range, + NSDictionary? components) { + final _ret = _lib._objc_msgSend_873( + _lib._class_NSTextCheckingResult1, + _lib._sel_transitInformationCheckingResultWithRange_components_1, + range, + components?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSTextCheckingResult1, _lib._sel_new1); + return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); + } + + static NSTextCheckingResult alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSTextCheckingResult1, _lib._sel_alloc1); + return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSTextCheckingResult1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSTextCheckingResult1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSTextCheckingResult1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSTextCheckingResult1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSTextCheckingResult1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSTextCheckingResult1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSTextCheckingResult1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSTextCheckingResult1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSTextCheckingResult1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSTextCheckingType { + static const int NSTextCheckingTypeOrthography = 1; + static const int NSTextCheckingTypeSpelling = 2; + static const int NSTextCheckingTypeGrammar = 4; + static const int NSTextCheckingTypeDate = 8; + static const int NSTextCheckingTypeAddress = 16; + static const int NSTextCheckingTypeLink = 32; + static const int NSTextCheckingTypeQuote = 64; + static const int NSTextCheckingTypeDash = 128; + static const int NSTextCheckingTypeReplacement = 256; + static const int NSTextCheckingTypeCorrection = 512; + static const int NSTextCheckingTypeRegularExpression = 1024; + static const int NSTextCheckingTypePhoneNumber = 2048; + static const int NSTextCheckingTypeTransitInformation = 4096; +} + +class NSRegularExpression extends NSObject { + NSRegularExpression._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSRegularExpression] that points to the same underlying object as [other]. + static NSRegularExpression castFrom(T other) { + return NSRegularExpression._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSRegularExpression] that wraps the given raw object pointer. + static NSRegularExpression castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSRegularExpression._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSRegularExpression]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSRegularExpression1); + } + + static NSRegularExpression regularExpressionWithPattern_options_error_( + HidListenerBindingsSwift _lib, + NSString? pattern, + int options, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_855( + _lib._class_NSRegularExpression1, + _lib._sel_regularExpressionWithPattern_options_error_1, + pattern?._id ?? ffi.nullptr, + options, + error); + return NSRegularExpression._(_ret, _lib, retain: true, release: true); + } + + NSRegularExpression initWithPattern_options_error_(NSString? pattern, + int options, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_856( + _id, + _lib._sel_initWithPattern_options_error_1, + pattern?._id ?? ffi.nullptr, + options, + error); + return NSRegularExpression._(_ret, _lib, retain: true, release: true); + } + + NSString? get pattern { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_pattern1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + int get options { + return _lib._objc_msgSend_857(_id, _lib._sel_options1); + } + + int get numberOfCaptureGroups { + return _lib._objc_msgSend_10(_id, _lib._sel_numberOfCaptureGroups1); + } + + static NSString escapedPatternForString_( + HidListenerBindingsSwift _lib, NSString? string) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSRegularExpression1, + _lib._sel_escapedPatternForString_1, string?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + void enumerateMatchesInString_options_range_usingBlock_( + NSString? string, int options, _NSRange range, ObjCBlock38 block) { + return _lib._objc_msgSend_858( + _id, + _lib._sel_enumerateMatchesInString_options_range_usingBlock_1, + string?._id ?? ffi.nullptr, + options, + range, + block._id); + } + + NSArray matchesInString_options_range_( + NSString? string, int options, _NSRange range) { + final _ret = _lib._objc_msgSend_859( + _id, + _lib._sel_matchesInString_options_range_1, + string?._id ?? ffi.nullptr, + options, + range); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + int numberOfMatchesInString_options_range_( + NSString? string, int options, _NSRange range) { + return _lib._objc_msgSend_860( + _id, + _lib._sel_numberOfMatchesInString_options_range_1, + string?._id ?? ffi.nullptr, + options, + range); + } + + NSTextCheckingResult firstMatchInString_options_range_( + NSString? string, int options, _NSRange range) { + final _ret = _lib._objc_msgSend_861( + _id, + _lib._sel_firstMatchInString_options_range_1, + string?._id ?? ffi.nullptr, + options, + range); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + _NSRange rangeOfFirstMatchInString_options_range_( + NSString? string, int options, _NSRange range) { + return _lib._objc_msgSend_862( + _id, + _lib._sel_rangeOfFirstMatchInString_options_range_1, + string?._id ?? ffi.nullptr, + options, + range); + } + + NSString stringByReplacingMatchesInString_options_range_withTemplate_( + NSString? string, int options, _NSRange range, NSString? templ) { + final _ret = _lib._objc_msgSend_863( + _id, + _lib._sel_stringByReplacingMatchesInString_options_range_withTemplate_1, + string?._id ?? ffi.nullptr, + options, + range, + templ?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + int replaceMatchesInString_options_range_withTemplate_( + NSMutableString? string, int options, _NSRange range, NSString? templ) { + return _lib._objc_msgSend_864( + _id, + _lib._sel_replaceMatchesInString_options_range_withTemplate_1, + string?._id ?? ffi.nullptr, + options, + range, + templ?._id ?? ffi.nullptr); + } + + NSString replacementStringForResult_inString_offset_template_( + NSTextCheckingResult? result, + NSString? string, + int offset, + NSString? templ) { + final _ret = _lib._objc_msgSend_865( + _id, + _lib._sel_replacementStringForResult_inString_offset_template_1, + result?._id ?? ffi.nullptr, + string?._id ?? ffi.nullptr, + offset, + templ?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString escapedTemplateForString_( + HidListenerBindingsSwift _lib, NSString? string) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSRegularExpression1, + _lib._sel_escapedTemplateForString_1, string?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSRegularExpression new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSRegularExpression1, _lib._sel_new1); + return NSRegularExpression._(_ret, _lib, retain: false, release: true); + } + + static NSRegularExpression alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSRegularExpression1, _lib._sel_alloc1); + return NSRegularExpression._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSRegularExpression1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSRegularExpression1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSRegularExpression1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSRegularExpression1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSRegularExpression1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSRegularExpression1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSRegularExpression1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSRegularExpression1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSRegularExpression1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSRegularExpressionOptions { + static const int NSRegularExpressionCaseInsensitive = 1; + static const int NSRegularExpressionAllowCommentsAndWhitespace = 2; + static const int NSRegularExpressionIgnoreMetacharacters = 4; + static const int NSRegularExpressionDotMatchesLineSeparators = 8; + static const int NSRegularExpressionAnchorsMatchLines = 16; + static const int NSRegularExpressionUseUnixLineSeparators = 32; + static const int NSRegularExpressionUseUnicodeWordBoundaries = 64; +} + +abstract class NSMatchingOptions { + static const int NSMatchingReportProgress = 1; + static const int NSMatchingReportCompletion = 2; + static const int NSMatchingAnchored = 4; + static const int NSMatchingWithTransparentBounds = 8; + static const int NSMatchingWithoutAnchoringBounds = 16; +} + +void _ObjCBlock38_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Int32 arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer arg0, int arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} + +final _ObjCBlock38_closureRegistry = {}; +int _ObjCBlock38_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock38_registerClosure(Function fn) { + final id = ++_ObjCBlock38_closureRegistryIndex; + _ObjCBlock38_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock38_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + return _ObjCBlock38_closureRegistry[block.ref.target.address]!( + arg0, arg1, arg2); +} + +class ObjCBlock38 extends _ObjCBlockBase { + ObjCBlock38._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock38.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Int32 arg1, ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Int32 arg1, + ffi.Pointer arg2)>( + _ObjCBlock38_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock38.fromFunction( + HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0, int arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Int32 arg1, + ffi.Pointer arg2)>( + _ObjCBlock38_closureTrampoline) + .cast(), + _ObjCBlock38_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call( + ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Int32 arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } +} + +abstract class NSMatchingFlags { + static const int NSMatchingProgress = 1; + static const int NSMatchingCompleted = 2; + static const int NSMatchingHitEnd = 4; + static const int NSMatchingRequiredEnd = 8; + static const int NSMatchingInternalError = 16; +} + +class NSURLCache extends NSObject { + NSURLCache._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLCache] that points to the same underlying object as [other]. + static NSURLCache castFrom(T other) { + return NSURLCache._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSURLCache] that wraps the given raw object pointer. + static NSURLCache castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLCache._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSURLCache]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLCache1); + } + + static NSURLCache? getSharedURLCache(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_878( + _lib._class_NSURLCache1, _lib._sel_sharedURLCache1); + return _ret.address == 0 + ? null + : NSURLCache._(_ret, _lib, retain: true, release: true); + } + + static void setSharedURLCache( + HidListenerBindingsSwift _lib, NSURLCache? value) { + _lib._objc_msgSend_879(_lib._class_NSURLCache1, + _lib._sel_setSharedURLCache_1, value?._id ?? ffi.nullptr); + } + + NSURLCache initWithMemoryCapacity_diskCapacity_diskPath_( + int memoryCapacity, int diskCapacity, NSString? path) { + final _ret = _lib._objc_msgSend_880( + _id, + _lib._sel_initWithMemoryCapacity_diskCapacity_diskPath_1, + memoryCapacity, + diskCapacity, + path?._id ?? ffi.nullptr); + return NSURLCache._(_ret, _lib, retain: true, release: true); + } + + NSURLCache initWithMemoryCapacity_diskCapacity_directoryURL_( + int memoryCapacity, int diskCapacity, NSURL? directoryURL) { + final _ret = _lib._objc_msgSend_881( + _id, + _lib._sel_initWithMemoryCapacity_diskCapacity_directoryURL_1, + memoryCapacity, + diskCapacity, + directoryURL?._id ?? ffi.nullptr); + return NSURLCache._(_ret, _lib, retain: true, release: true); + } + + NSCachedURLResponse cachedResponseForRequest_(NSURLRequest? request) { + final _ret = _lib._objc_msgSend_885( + _id, _lib._sel_cachedResponseForRequest_1, request?._id ?? ffi.nullptr); + return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); + } + + void storeCachedResponse_forRequest_( + NSCachedURLResponse? cachedResponse, NSURLRequest? request) { + return _lib._objc_msgSend_886( + _id, + _lib._sel_storeCachedResponse_forRequest_1, + cachedResponse?._id ?? ffi.nullptr, + request?._id ?? ffi.nullptr); + } + + void removeCachedResponseForRequest_(NSURLRequest? request) { + return _lib._objc_msgSend_887( + _id, + _lib._sel_removeCachedResponseForRequest_1, + request?._id ?? ffi.nullptr); + } + + void removeAllCachedResponses() { + return _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResponses1); + } + + void removeCachedResponsesSinceDate_(NSDate? date) { + return _lib._objc_msgSend_504(_id, + _lib._sel_removeCachedResponsesSinceDate_1, date?._id ?? ffi.nullptr); + } + + int get memoryCapacity { + return _lib._objc_msgSend_10(_id, _lib._sel_memoryCapacity1); + } + + set memoryCapacity(int value) { + _lib._objc_msgSend_483(_id, _lib._sel_setMemoryCapacity_1, value); + } + + int get diskCapacity { + return _lib._objc_msgSend_10(_id, _lib._sel_diskCapacity1); + } + + set diskCapacity(int value) { + _lib._objc_msgSend_483(_id, _lib._sel_setDiskCapacity_1, value); + } + + int get currentMemoryUsage { + return _lib._objc_msgSend_10(_id, _lib._sel_currentMemoryUsage1); + } + + int get currentDiskUsage { + return _lib._objc_msgSend_10(_id, _lib._sel_currentDiskUsage1); + } + + void storeCachedResponse_forDataTask_( + NSCachedURLResponse? cachedResponse, NSURLSessionDataTask? dataTask) { + return _lib._objc_msgSend_888( + _id, + _lib._sel_storeCachedResponse_forDataTask_1, + cachedResponse?._id ?? ffi.nullptr, + dataTask?._id ?? ffi.nullptr); + } + + void getCachedResponseForDataTask_completionHandler_( + NSURLSessionDataTask? dataTask, ObjCBlock39 completionHandler) { + return _lib._objc_msgSend_889( + _id, + _lib._sel_getCachedResponseForDataTask_completionHandler_1, + dataTask?._id ?? ffi.nullptr, + completionHandler._id); + } + + void removeCachedResponseForDataTask_(NSURLSessionDataTask? dataTask) { + return _lib._objc_msgSend_890( + _id, + _lib._sel_removeCachedResponseForDataTask_1, + dataTask?._id ?? ffi.nullptr); + } + + static NSURLCache new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCache1, _lib._sel_new1); + return NSURLCache._(_ret, _lib, retain: false, release: true); + } + + static NSURLCache alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLCache1, _lib._sel_alloc1); + return NSURLCache._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSURLCache1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSURLCache1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLCache1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLCache1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLCache1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLCache1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSURLCache1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSURLCache1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLCache1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSCachedURLResponse extends NSObject { + NSCachedURLResponse._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSCachedURLResponse] that points to the same underlying object as [other]. + static NSCachedURLResponse castFrom(T other) { + return NSCachedURLResponse._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSCachedURLResponse] that wraps the given raw object pointer. + static NSCachedURLResponse castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSCachedURLResponse._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSCachedURLResponse]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSCachedURLResponse1); + } + + NSCachedURLResponse initWithResponse_data_( + NSURLResponse? response, NSData? data) { + final _ret = _lib._objc_msgSend_882(_id, _lib._sel_initWithResponse_data_1, + response?._id ?? ffi.nullptr, data?._id ?? ffi.nullptr); + return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); + } + + NSCachedURLResponse initWithResponse_data_userInfo_storagePolicy_( + NSURLResponse? response, + NSData? data, + NSDictionary? userInfo, + int storagePolicy) { + final _ret = _lib._objc_msgSend_883( + _id, + _lib._sel_initWithResponse_data_userInfo_storagePolicy_1, + response?._id ?? ffi.nullptr, + data?._id ?? ffi.nullptr, + userInfo?._id ?? ffi.nullptr, + storagePolicy); + return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); + } + + NSURLResponse? get response { + final _ret = _lib._objc_msgSend_797(_id, _lib._sel_response1); + return _ret.address == 0 + ? null + : NSURLResponse._(_ret, _lib, retain: true, release: true); + } + + NSData? get data { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + NSDictionary? get userInfo { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_userInfo1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + int get storagePolicy { + return _lib._objc_msgSend_884(_id, _lib._sel_storagePolicy1); + } + + static NSCachedURLResponse new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSCachedURLResponse1, _lib._sel_new1); + return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); + } + + static NSCachedURLResponse alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSCachedURLResponse1, _lib._sel_alloc1); + return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSCachedURLResponse1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSCachedURLResponse1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSCachedURLResponse1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSCachedURLResponse1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSCachedURLResponse1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSCachedURLResponse1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSCachedURLResponse1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSCachedURLResponse1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSCachedURLResponse1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSURLCacheStoragePolicy { + static const int NSURLCacheStorageAllowed = 0; + static const int NSURLCacheStorageAllowedInMemoryOnly = 1; + static const int NSURLCacheStorageNotAllowed = 2; +} + +class NSURLSessionDataTask extends NSURLSessionTask { + NSURLSessionDataTask._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLSessionDataTask] that points to the same underlying object as [other]. + static NSURLSessionDataTask castFrom(T other) { + return NSURLSessionDataTask._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSURLSessionDataTask] that wraps the given raw object pointer. + static NSURLSessionDataTask castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLSessionDataTask._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSURLSessionDataTask]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLSessionDataTask1); + } + + @override + NSURLSessionDataTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + } + + static NSURLSessionDataTask new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLSessionDataTask1, _lib._sel_new1); + return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); + } + + static NSURLSessionDataTask alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionDataTask1, _lib._sel_alloc1); + return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSURLSessionDataTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSURLSessionDataTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSURLSessionDataTask1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLSessionDataTask1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLSessionDataTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLSessionDataTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSURLSessionDataTask1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionDataTask1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionDataTask1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +void _ObjCBlock39_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} + +final _ObjCBlock39_closureRegistry = {}; +int _ObjCBlock39_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock39_registerClosure(Function fn) { + final id = ++_ObjCBlock39_closureRegistryIndex; + _ObjCBlock39_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock39_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return _ObjCBlock39_closureRegistry[block.ref.target.address]!(arg0); +} + +class ObjCBlock39 extends _ObjCBlockBase { + ObjCBlock39._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock39.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock39_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock39.fromFunction(HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock39_closureTrampoline) + .cast(), + _ObjCBlock39_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); + } +} + +class NSURLConnection extends NSObject { + NSURLConnection._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLConnection] that points to the same underlying object as [other]. + static NSURLConnection castFrom(T other) { + return NSURLConnection._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSURLConnection] that wraps the given raw object pointer. + static NSURLConnection castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLConnection._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSURLConnection]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLConnection1); + } + + NSURLConnection initWithRequest_delegate_startImmediately_( + NSURLRequest? request, NSObject delegate, bool startImmediately) { + final _ret = _lib._objc_msgSend_891( + _id, + _lib._sel_initWithRequest_delegate_startImmediately_1, + request?._id ?? ffi.nullptr, + delegate._id, + startImmediately); + return NSURLConnection._(_ret, _lib, retain: true, release: true); + } + + NSURLConnection initWithRequest_delegate_( + NSURLRequest? request, NSObject delegate) { + final _ret = _lib._objc_msgSend_892( + _id, + _lib._sel_initWithRequest_delegate_1, + request?._id ?? ffi.nullptr, + delegate._id); + return NSURLConnection._(_ret, _lib, retain: true, release: true); + } + + static NSURLConnection connectionWithRequest_delegate_( + HidListenerBindingsSwift _lib, NSURLRequest? request, NSObject delegate) { + final _ret = _lib._objc_msgSend_893( + _lib._class_NSURLConnection1, + _lib._sel_connectionWithRequest_delegate_1, + request?._id ?? ffi.nullptr, + delegate._id); + return NSURLConnection._(_ret, _lib, retain: true, release: true); + } + + NSURLRequest? get originalRequest { + final _ret = _lib._objc_msgSend_795(_id, _lib._sel_originalRequest1); + return _ret.address == 0 + ? null + : NSURLRequest._(_ret, _lib, retain: true, release: true); + } + + NSURLRequest? get currentRequest { + final _ret = _lib._objc_msgSend_795(_id, _lib._sel_currentRequest1); + return _ret.address == 0 + ? null + : NSURLRequest._(_ret, _lib, retain: true, release: true); + } + + void start() { + return _lib._objc_msgSend_1(_id, _lib._sel_start1); + } + + void cancel() { + return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + } + + void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { + return _lib._objc_msgSend_533(_id, _lib._sel_scheduleInRunLoop_forMode_1, + aRunLoop?._id ?? ffi.nullptr, mode._id); + } + + void unscheduleFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { + return _lib._objc_msgSend_533( + _id, + _lib._sel_unscheduleFromRunLoop_forMode_1, + aRunLoop?._id ?? ffi.nullptr, + mode._id); + } + + void setDelegateQueue_(NSOperationQueue? queue) { + return _lib._objc_msgSend_894( + _id, _lib._sel_setDelegateQueue_1, queue?._id ?? ffi.nullptr); + } + + static bool canHandleRequest_( + HidListenerBindingsSwift _lib, NSURLRequest? request) { + return _lib._objc_msgSend_895(_lib._class_NSURLConnection1, + _lib._sel_canHandleRequest_1, request?._id ?? ffi.nullptr); + } + + static NSData sendSynchronousRequest_returningResponse_error_( + HidListenerBindingsSwift _lib, + NSURLRequest? request, + ffi.Pointer> response, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_896( + _lib._class_NSURLConnection1, + _lib._sel_sendSynchronousRequest_returningResponse_error_1, + request?._id ?? ffi.nullptr, + response, + error); + return NSData._(_ret, _lib, retain: true, release: true); + } + + static void sendAsynchronousRequest_queue_completionHandler_( + HidListenerBindingsSwift _lib, + NSURLRequest? request, + NSOperationQueue? queue, + ObjCBlock40 handler) { + return _lib._objc_msgSend_897( + _lib._class_NSURLConnection1, + _lib._sel_sendAsynchronousRequest_queue_completionHandler_1, + request?._id ?? ffi.nullptr, + queue?._id ?? ffi.nullptr, + handler._id); + } + + static NSURLConnection new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLConnection1, _lib._sel_new1); + return NSURLConnection._(_ret, _lib, retain: false, release: true); + } + + static NSURLConnection alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLConnection1, _lib._sel_alloc1); + return NSURLConnection._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSURLConnection1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSURLConnection1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSURLConnection1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLConnection1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLConnection1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLConnection1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSURLConnection1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLConnection1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLConnection1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +void _ObjCBlock40_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} + +final _ObjCBlock40_closureRegistry = {}; +int _ObjCBlock40_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock40_registerClosure(Function fn) { + final id = ++_ObjCBlock40_closureRegistryIndex; + _ObjCBlock40_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock40_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return _ObjCBlock40_closureRegistry[block.ref.target.address]!( + arg0, arg1, arg2); +} + +class ObjCBlock40 extends _ObjCBlockBase { + ObjCBlock40._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock40.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock40_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock40.fromFunction( + HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock40_closureTrampoline) + .cast(), + _ObjCBlock40_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } +} + +class NSURLCredential extends NSObject { + NSURLCredential._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLCredential] that points to the same underlying object as [other]. + static NSURLCredential castFrom(T other) { + return NSURLCredential._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSURLCredential] that wraps the given raw object pointer. + static NSURLCredential castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLCredential._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSURLCredential]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLCredential1); + } + + int get persistence { + return _lib._objc_msgSend_898(_id, _lib._sel_persistence1); + } + + NSURLCredential initWithUser_password_persistence_( + NSString? user, NSString? password, int persistence) { + final _ret = _lib._objc_msgSend_899( + _id, + _lib._sel_initWithUser_password_persistence_1, + user?._id ?? ffi.nullptr, + password?._id ?? ffi.nullptr, + persistence); + return NSURLCredential._(_ret, _lib, retain: true, release: true); + } + + static NSURLCredential credentialWithUser_password_persistence_( + HidListenerBindingsSwift _lib, + NSString? user, + NSString? password, + int persistence) { + final _ret = _lib._objc_msgSend_900( + _lib._class_NSURLCredential1, + _lib._sel_credentialWithUser_password_persistence_1, + user?._id ?? ffi.nullptr, + password?._id ?? ffi.nullptr, + persistence); + return NSURLCredential._(_ret, _lib, retain: true, release: true); + } + + NSString? get user { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_user1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get password { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_password1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + bool get hasPassword { + return _lib._objc_msgSend_12(_id, _lib._sel_hasPassword1); + } + + NSURLCredential initWithIdentity_certificates_persistence_( + ffi.Pointer<__SecIdentity> identity, + NSArray? certArray, + int persistence) { + final _ret = _lib._objc_msgSend_901( + _id, + _lib._sel_initWithIdentity_certificates_persistence_1, + identity, + certArray?._id ?? ffi.nullptr, + persistence); + return NSURLCredential._(_ret, _lib, retain: true, release: true); + } + + static NSURLCredential credentialWithIdentity_certificates_persistence_( + HidListenerBindingsSwift _lib, + ffi.Pointer<__SecIdentity> identity, + NSArray? certArray, + int persistence) { + final _ret = _lib._objc_msgSend_902( + _lib._class_NSURLCredential1, + _lib._sel_credentialWithIdentity_certificates_persistence_1, + identity, + certArray?._id ?? ffi.nullptr, + persistence); + return NSURLCredential._(_ret, _lib, retain: true, release: true); + } + + ffi.Pointer<__SecIdentity> get identity { + return _lib._objc_msgSend_903(_id, _lib._sel_identity1); + } + + NSArray? get certificates { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_certificates1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSURLCredential initWithTrust_(ffi.Pointer<__SecTrust> trust) { + final _ret = _lib._objc_msgSend_904(_id, _lib._sel_initWithTrust_1, trust); + return NSURLCredential._(_ret, _lib, retain: true, release: true); + } + + static NSURLCredential credentialForTrust_( + HidListenerBindingsSwift _lib, ffi.Pointer<__SecTrust> trust) { + final _ret = _lib._objc_msgSend_905( + _lib._class_NSURLCredential1, _lib._sel_credentialForTrust_1, trust); + return NSURLCredential._(_ret, _lib, retain: true, release: true); + } + + static NSURLCredential new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLCredential1, _lib._sel_new1); + return NSURLCredential._(_ret, _lib, retain: false, release: true); + } + + static NSURLCredential alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLCredential1, _lib._sel_alloc1); + return NSURLCredential._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSURLCredential1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSURLCredential1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSURLCredential1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLCredential1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLCredential1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLCredential1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSURLCredential1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLCredential1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLCredential1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSURLCredentialPersistence { + static const int NSURLCredentialPersistenceNone = 0; + static const int NSURLCredentialPersistenceForSession = 1; + static const int NSURLCredentialPersistencePermanent = 2; + static const int NSURLCredentialPersistenceSynchronizable = 3; +} + +final class __SecIdentity extends ffi.Opaque {} + +final class __SecTrust extends ffi.Opaque {} + +class NSURLProtectionSpace extends NSObject { + NSURLProtectionSpace._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLProtectionSpace] that points to the same underlying object as [other]. + static NSURLProtectionSpace castFrom(T other) { + return NSURLProtectionSpace._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSURLProtectionSpace] that wraps the given raw object pointer. + static NSURLProtectionSpace castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLProtectionSpace._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSURLProtectionSpace]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLProtectionSpace1); + } + + NSURLProtectionSpace initWithHost_port_protocol_realm_authenticationMethod_( + NSString? host, + int port, + NSString? protocol, + NSString? realm, + NSString? authenticationMethod) { + final _ret = _lib._objc_msgSend_906( + _id, + _lib._sel_initWithHost_port_protocol_realm_authenticationMethod_1, + host?._id ?? ffi.nullptr, + port, + protocol?._id ?? ffi.nullptr, + realm?._id ?? ffi.nullptr, + authenticationMethod?._id ?? ffi.nullptr); + return NSURLProtectionSpace._(_ret, _lib, retain: true, release: true); + } + + NSURLProtectionSpace initWithProxyHost_port_type_realm_authenticationMethod_( + NSString? host, + int port, + NSString? type, + NSString? realm, + NSString? authenticationMethod) { + final _ret = _lib._objc_msgSend_906( + _id, + _lib._sel_initWithProxyHost_port_type_realm_authenticationMethod_1, + host?._id ?? ffi.nullptr, + port, + type?._id ?? ffi.nullptr, + realm?._id ?? ffi.nullptr, + authenticationMethod?._id ?? ffi.nullptr); + return NSURLProtectionSpace._(_ret, _lib, retain: true, release: true); + } + + NSString? get realm { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_realm1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + bool get receivesCredentialSecurely { + return _lib._objc_msgSend_12(_id, _lib._sel_receivesCredentialSecurely1); + } + + bool get isProxy { + return _lib._objc_msgSend_12(_id, _lib._sel_isProxy1); + } + + NSString? get host { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_host1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + int get port { + return _lib._objc_msgSend_78(_id, _lib._sel_port1); + } + + NSString? get proxyType { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_proxyType1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get protocol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_protocol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get authenticationMethod { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_authenticationMethod1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray? get distinguishedNames { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_distinguishedNames1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + ffi.Pointer<__SecTrust> get serverTrust { + return _lib._objc_msgSend_907(_id, _lib._sel_serverTrust1); + } + + static NSURLProtectionSpace new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLProtectionSpace1, _lib._sel_new1); + return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); + } + + static NSURLProtectionSpace alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLProtectionSpace1, _lib._sel_alloc1); + return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSURLProtectionSpace1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSURLProtectionSpace1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSURLProtectionSpace1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLProtectionSpace1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLProtectionSpace1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLProtectionSpace1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSURLProtectionSpace1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLProtectionSpace1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLProtectionSpace1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSURLCredentialStorage extends NSObject { + NSURLCredentialStorage._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLCredentialStorage] that points to the same underlying object as [other]. + static NSURLCredentialStorage castFrom(T other) { + return NSURLCredentialStorage._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSURLCredentialStorage] that wraps the given raw object pointer. + static NSURLCredentialStorage castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLCredentialStorage._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSURLCredentialStorage]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLCredentialStorage1); + } + + static NSURLCredentialStorage? getSharedCredentialStorage( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_908(_lib._class_NSURLCredentialStorage1, + _lib._sel_sharedCredentialStorage1); + return _ret.address == 0 + ? null + : NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); + } + + NSDictionary credentialsForProtectionSpace_(NSURLProtectionSpace? space) { + final _ret = _lib._objc_msgSend_909(_id, + _lib._sel_credentialsForProtectionSpace_1, space?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSDictionary? get allCredentials { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_allCredentials1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + void setCredential_forProtectionSpace_( + NSURLCredential? credential, NSURLProtectionSpace? space) { + return _lib._objc_msgSend_910( + _id, + _lib._sel_setCredential_forProtectionSpace_1, + credential?._id ?? ffi.nullptr, + space?._id ?? ffi.nullptr); + } + + void removeCredential_forProtectionSpace_( + NSURLCredential? credential, NSURLProtectionSpace? space) { + return _lib._objc_msgSend_910( + _id, + _lib._sel_removeCredential_forProtectionSpace_1, + credential?._id ?? ffi.nullptr, + space?._id ?? ffi.nullptr); + } + + void removeCredential_forProtectionSpace_options_(NSURLCredential? credential, + NSURLProtectionSpace? space, NSDictionary? options) { + return _lib._objc_msgSend_911( + _id, + _lib._sel_removeCredential_forProtectionSpace_options_1, + credential?._id ?? ffi.nullptr, + space?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr); + } + + NSURLCredential defaultCredentialForProtectionSpace_( + NSURLProtectionSpace? space) { + final _ret = _lib._objc_msgSend_912( + _id, + _lib._sel_defaultCredentialForProtectionSpace_1, + space?._id ?? ffi.nullptr); + return NSURLCredential._(_ret, _lib, retain: true, release: true); + } + + void setDefaultCredential_forProtectionSpace_( + NSURLCredential? credential, NSURLProtectionSpace? space) { + return _lib._objc_msgSend_910( + _id, + _lib._sel_setDefaultCredential_forProtectionSpace_1, + credential?._id ?? ffi.nullptr, + space?._id ?? ffi.nullptr); + } + + void getCredentialsForProtectionSpace_task_completionHandler_( + NSURLProtectionSpace? protectionSpace, + NSURLSessionTask? task, + ObjCBlock41 completionHandler) { + return _lib._objc_msgSend_913( + _id, + _lib._sel_getCredentialsForProtectionSpace_task_completionHandler_1, + protectionSpace?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr, + completionHandler._id); + } + + void setCredential_forProtectionSpace_task_(NSURLCredential? credential, + NSURLProtectionSpace? protectionSpace, NSURLSessionTask? task) { + return _lib._objc_msgSend_914( + _id, + _lib._sel_setCredential_forProtectionSpace_task_1, + credential?._id ?? ffi.nullptr, + protectionSpace?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr); + } + + void removeCredential_forProtectionSpace_options_task_( + NSURLCredential? credential, + NSURLProtectionSpace? protectionSpace, + NSDictionary? options, + NSURLSessionTask? task) { + return _lib._objc_msgSend_915( + _id, + _lib._sel_removeCredential_forProtectionSpace_options_task_1, + credential?._id ?? ffi.nullptr, + protectionSpace?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr); + } + + void getDefaultCredentialForProtectionSpace_task_completionHandler_( + NSURLProtectionSpace? space, + NSURLSessionTask? task, + ObjCBlock42 completionHandler) { + return _lib._objc_msgSend_916( + _id, + _lib._sel_getDefaultCredentialForProtectionSpace_task_completionHandler_1, + space?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr, + completionHandler._id); + } + + void setDefaultCredential_forProtectionSpace_task_( + NSURLCredential? credential, + NSURLProtectionSpace? protectionSpace, + NSURLSessionTask? task) { + return _lib._objc_msgSend_914( + _id, + _lib._sel_setDefaultCredential_forProtectionSpace_task_1, + credential?._id ?? ffi.nullptr, + protectionSpace?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr); + } + + static NSURLCredentialStorage new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLCredentialStorage1, _lib._sel_new1); + return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); + } + + static NSURLCredentialStorage alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLCredentialStorage1, _lib._sel_alloc1); + return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSURLCredentialStorage1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSURLCredentialStorage1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSURLCredentialStorage1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLCredentialStorage1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLCredentialStorage1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLCredentialStorage1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSURLCredentialStorage1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLCredentialStorage1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCredentialStorage1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +void _ObjCBlock41_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} + +final _ObjCBlock41_closureRegistry = {}; +int _ObjCBlock41_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock41_registerClosure(Function fn) { + final id = ++_ObjCBlock41_closureRegistryIndex; + _ObjCBlock41_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock41_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return _ObjCBlock41_closureRegistry[block.ref.target.address]!(arg0); +} + +class ObjCBlock41 extends _ObjCBlockBase { + ObjCBlock41._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock41.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock41_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock41.fromFunction(HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock41_closureTrampoline) + .cast(), + _ObjCBlock41_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); + } +} + +void _ObjCBlock42_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} + +final _ObjCBlock42_closureRegistry = {}; +int _ObjCBlock42_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock42_registerClosure(Function fn) { + final id = ++_ObjCBlock42_closureRegistryIndex; + _ObjCBlock42_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock42_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return _ObjCBlock42_closureRegistry[block.ref.target.address]!(arg0); +} + +class ObjCBlock42 extends _ObjCBlockBase { + ObjCBlock42._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock42.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock42_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock42.fromFunction(HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock42_closureTrampoline) + .cast(), + _ObjCBlock42_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); + } +} + +class NSURLProtocol extends NSObject { + NSURLProtocol._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLProtocol] that points to the same underlying object as [other]. + static NSURLProtocol castFrom(T other) { + return NSURLProtocol._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSURLProtocol] that wraps the given raw object pointer. + static NSURLProtocol castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLProtocol._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSURLProtocol]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLProtocol1); + } + + NSURLProtocol initWithRequest_cachedResponse_client_(NSURLRequest? request, + NSCachedURLResponse? cachedResponse, NSObject? client) { + final _ret = _lib._objc_msgSend_917( + _id, + _lib._sel_initWithRequest_cachedResponse_client_1, + request?._id ?? ffi.nullptr, + cachedResponse?._id ?? ffi.nullptr, + client?._id ?? ffi.nullptr); + return NSURLProtocol._(_ret, _lib, retain: true, release: true); + } + + NSObject? get client { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_client1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + NSURLRequest? get request { + final _ret = _lib._objc_msgSend_795(_id, _lib._sel_request1); + return _ret.address == 0 + ? null + : NSURLRequest._(_ret, _lib, retain: true, release: true); + } + + NSCachedURLResponse? get cachedResponse { + final _ret = _lib._objc_msgSend_918(_id, _lib._sel_cachedResponse1); + return _ret.address == 0 + ? null + : NSCachedURLResponse._(_ret, _lib, retain: true, release: true); + } + + static bool canInitWithRequest_( + HidListenerBindingsSwift _lib, NSURLRequest? request) { + return _lib._objc_msgSend_895(_lib._class_NSURLProtocol1, + _lib._sel_canInitWithRequest_1, request?._id ?? ffi.nullptr); + } + + static NSURLRequest canonicalRequestForRequest_( + HidListenerBindingsSwift _lib, NSURLRequest? request) { + final _ret = _lib._objc_msgSend_919(_lib._class_NSURLProtocol1, + _lib._sel_canonicalRequestForRequest_1, request?._id ?? ffi.nullptr); + return NSURLRequest._(_ret, _lib, retain: true, release: true); + } + + static bool requestIsCacheEquivalent_toRequest_( + HidListenerBindingsSwift _lib, NSURLRequest? a, NSURLRequest? b) { + return _lib._objc_msgSend_920( + _lib._class_NSURLProtocol1, + _lib._sel_requestIsCacheEquivalent_toRequest_1, + a?._id ?? ffi.nullptr, + b?._id ?? ffi.nullptr); + } + + void startLoading() { + return _lib._objc_msgSend_1(_id, _lib._sel_startLoading1); + } + + void stopLoading() { + return _lib._objc_msgSend_1(_id, _lib._sel_stopLoading1); + } + + static NSObject propertyForKey_inRequest_( + HidListenerBindingsSwift _lib, NSString? key, NSURLRequest? request) { + final _ret = _lib._objc_msgSend_921( + _lib._class_NSURLProtocol1, + _lib._sel_propertyForKey_inRequest_1, + key?._id ?? ffi.nullptr, + request?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static void setProperty_forKey_inRequest_(HidListenerBindingsSwift _lib, + NSObject value, NSString? key, NSMutableURLRequest? request) { + return _lib._objc_msgSend_927( + _lib._class_NSURLProtocol1, + _lib._sel_setProperty_forKey_inRequest_1, + value._id, + key?._id ?? ffi.nullptr, + request?._id ?? ffi.nullptr); + } + + static void removePropertyForKey_inRequest_(HidListenerBindingsSwift _lib, + NSString? key, NSMutableURLRequest? request) { + return _lib._objc_msgSend_928( + _lib._class_NSURLProtocol1, + _lib._sel_removePropertyForKey_inRequest_1, + key?._id ?? ffi.nullptr, + request?._id ?? ffi.nullptr); + } + + static bool registerClass_( + HidListenerBindingsSwift _lib, NSObject protocolClass) { + return _lib._objc_msgSend_0(_lib._class_NSURLProtocol1, + _lib._sel_registerClass_1, protocolClass._id); + } + + static void unregisterClass_( + HidListenerBindingsSwift _lib, NSObject protocolClass) { + return _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, + _lib._sel_unregisterClass_1, protocolClass._id); + } + + static bool canInitWithTask_( + HidListenerBindingsSwift _lib, NSURLSessionTask? task) { + return _lib._objc_msgSend_929(_lib._class_NSURLProtocol1, + _lib._sel_canInitWithTask_1, task?._id ?? ffi.nullptr); + } + + NSURLProtocol initWithTask_cachedResponse_client_(NSURLSessionTask? task, + NSCachedURLResponse? cachedResponse, NSObject? client) { + final _ret = _lib._objc_msgSend_930( + _id, + _lib._sel_initWithTask_cachedResponse_client_1, + task?._id ?? ffi.nullptr, + cachedResponse?._id ?? ffi.nullptr, + client?._id ?? ffi.nullptr); + return NSURLProtocol._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionTask? get task { + final _ret = _lib._objc_msgSend_931(_id, _lib._sel_task1); + return _ret.address == 0 + ? null + : NSURLSessionTask._(_ret, _lib, retain: true, release: true); + } + + static NSURLProtocol new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLProtocol1, _lib._sel_new1); + return NSURLProtocol._(_ret, _lib, retain: false, release: true); + } + + static NSURLProtocol alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLProtocol1, _lib._sel_alloc1); + return NSURLProtocol._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSURLProtocol1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLProtocol1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLProtocol1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLProtocol1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLProtocol1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSURLProtocol1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSURLProtocol1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLProtocol1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSMutableURLRequest extends NSURLRequest { + NSMutableURLRequest._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSMutableURLRequest] that points to the same underlying object as [other]. + static NSMutableURLRequest castFrom(T other) { + return NSMutableURLRequest._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSMutableURLRequest] that wraps the given raw object pointer. + static NSMutableURLRequest castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMutableURLRequest._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSMutableURLRequest]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableURLRequest1); + } + + @override + NSURL? get URL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + set URL(NSURL? value) { + _lib._objc_msgSend_621(_id, _lib._sel_setURL_1, value?._id ?? ffi.nullptr); + } + + @override + int get cachePolicy { + return _lib._objc_msgSend_782(_id, _lib._sel_cachePolicy1); + } + + set cachePolicy(int value) { + _lib._objc_msgSend_922(_id, _lib._sel_setCachePolicy_1, value); + } + + @override + double get timeoutInterval { + return _lib._objc_msgSend_155(_id, _lib._sel_timeoutInterval1); + } + + set timeoutInterval(double value) { + _lib._objc_msgSend_506(_id, _lib._sel_setTimeoutInterval_1, value); + } + + @override + NSURL? get mainDocumentURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_mainDocumentURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + set mainDocumentURL(NSURL? value) { + _lib._objc_msgSend_621( + _id, _lib._sel_setMainDocumentURL_1, value?._id ?? ffi.nullptr); + } + + @override + int get networkServiceType { + return _lib._objc_msgSend_783(_id, _lib._sel_networkServiceType1); + } + + set networkServiceType(int value) { + _lib._objc_msgSend_923(_id, _lib._sel_setNetworkServiceType_1, value); + } + + @override + bool get allowsCellularAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); + } + + set allowsCellularAccess(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setAllowsCellularAccess_1, value); + } + + @override + bool get allowsExpensiveNetworkAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); + } + + set allowsExpensiveNetworkAccess(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); + } + + @override + bool get allowsConstrainedNetworkAccess { + return _lib._objc_msgSend_12( + _id, _lib._sel_allowsConstrainedNetworkAccess1); + } + + set allowsConstrainedNetworkAccess(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); + } + + @override + bool get assumesHTTP3Capable { + return _lib._objc_msgSend_12(_id, _lib._sel_assumesHTTP3Capable1); + } + + set assumesHTTP3Capable(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setAssumesHTTP3Capable_1, value); + } + + @override + int get attribution { + return _lib._objc_msgSend_784(_id, _lib._sel_attribution1); + } + + set attribution(int value) { + _lib._objc_msgSend_924(_id, _lib._sel_setAttribution_1, value); + } + + @override + bool get requiresDNSSECValidation { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); + } + + set requiresDNSSECValidation(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setRequiresDNSSECValidation_1, value); + } + + @override + NSString? get HTTPMethod { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_HTTPMethod1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set HTTPMethod(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setHTTPMethod_1, value?._id ?? ffi.nullptr); + } + + @override + NSDictionary? get allHTTPHeaderFields { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_allHTTPHeaderFields1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set allHTTPHeaderFields(NSDictionary? value) { + _lib._objc_msgSend_171( + _id, _lib._sel_setAllHTTPHeaderFields_1, value?._id ?? ffi.nullptr); + } + + void setValue_forHTTPHeaderField_(NSString? value, NSString? field) { + return _lib._objc_msgSend_515(_id, _lib._sel_setValue_forHTTPHeaderField_1, + value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); + } + + void addValue_forHTTPHeaderField_(NSString? value, NSString? field) { + return _lib._objc_msgSend_515(_id, _lib._sel_addValue_forHTTPHeaderField_1, + value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); + } + + @override + NSData? get HTTPBody { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_HTTPBody1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + set HTTPBody(NSData? value) { + _lib._objc_msgSend_925( + _id, _lib._sel_setHTTPBody_1, value?._id ?? ffi.nullptr); + } + + @override + NSInputStream? get HTTPBodyStream { + final _ret = _lib._objc_msgSend_794(_id, _lib._sel_HTTPBodyStream1); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); + } + + set HTTPBodyStream(NSInputStream? value) { + _lib._objc_msgSend_926( + _id, _lib._sel_setHTTPBodyStream_1, value?._id ?? ffi.nullptr); + } + + @override + bool get HTTPShouldHandleCookies { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldHandleCookies1); + } + + set HTTPShouldHandleCookies(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setHTTPShouldHandleCookies_1, value); + } + + @override + bool get HTTPShouldUsePipelining { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); + } + + set HTTPShouldUsePipelining(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setHTTPShouldUsePipelining_1, value); + } + + static NSMutableURLRequest requestWithURL_( + HidListenerBindingsSwift _lib, NSURL? URL) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSMutableURLRequest1, + _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + } + + static bool getSupportsSecureCoding(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableURLRequest1, _lib._sel_supportsSecureCoding1); + } + + static NSMutableURLRequest requestWithURL_cachePolicy_timeoutInterval_( + HidListenerBindingsSwift _lib, + NSURL? URL, + int cachePolicy, + double timeoutInterval) { + final _ret = _lib._objc_msgSend_781( + _lib._class_NSMutableURLRequest1, + _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, + URL?._id ?? ffi.nullptr, + cachePolicy, + timeoutInterval); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + } + + static NSMutableURLRequest new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableURLRequest1, _lib._sel_new1); + return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); + } + + static NSMutableURLRequest alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableURLRequest1, _lib._sel_alloc1); + return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSMutableURLRequest1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSMutableURLRequest1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSMutableURLRequest1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableURLRequest1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSMutableURLRequest1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSMutableURLRequest1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSMutableURLRequest1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableURLRequest1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableURLRequest1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSXMLParser extends NSObject { + NSXMLParser._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSXMLParser] that points to the same underlying object as [other]. + static NSXMLParser castFrom(T other) { + return NSXMLParser._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSXMLParser] that wraps the given raw object pointer. + static NSXMLParser castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSXMLParser._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSXMLParser]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLParser1); + } + + NSXMLParser initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_241( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSXMLParser._(_ret, _lib, retain: true, release: true); + } + + NSXMLParser initWithData_(NSData? data) { + final _ret = _lib._objc_msgSend_257( + _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + return NSXMLParser._(_ret, _lib, retain: true, release: true); + } + + NSXMLParser initWithStream_(NSInputStream? stream) { + final _ret = _lib._objc_msgSend_932( + _id, _lib._sel_initWithStream_1, stream?._id ?? ffi.nullptr); + return NSXMLParser._(_ret, _lib, retain: true, release: true); + } + + NSObject? get delegate { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + set delegate(NSObject? value) { + _lib._objc_msgSend_387( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + } + + bool get shouldProcessNamespaces { + return _lib._objc_msgSend_12(_id, _lib._sel_shouldProcessNamespaces1); + } + + set shouldProcessNamespaces(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setShouldProcessNamespaces_1, value); + } + + bool get shouldReportNamespacePrefixes { + return _lib._objc_msgSend_12(_id, _lib._sel_shouldReportNamespacePrefixes1); + } + + set shouldReportNamespacePrefixes(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setShouldReportNamespacePrefixes_1, value); + } + + int get externalEntityResolvingPolicy { + return _lib._objc_msgSend_933( + _id, _lib._sel_externalEntityResolvingPolicy1); + } + + set externalEntityResolvingPolicy(int value) { + _lib._objc_msgSend_934( + _id, _lib._sel_setExternalEntityResolvingPolicy_1, value); + } + + NSSet? get allowedExternalEntityURLs { + final _ret = + _lib._objc_msgSend_295(_id, _lib._sel_allowedExternalEntityURLs1); + return _ret.address == 0 + ? null + : NSSet._(_ret, _lib, retain: true, release: true); + } + + set allowedExternalEntityURLs(NSSet? value) { + _lib._objc_msgSend_935(_id, _lib._sel_setAllowedExternalEntityURLs_1, + value?._id ?? ffi.nullptr); + } + + bool parse() { + return _lib._objc_msgSend_12(_id, _lib._sel_parse1); + } + + void abortParsing() { + return _lib._objc_msgSend_1(_id, _lib._sel_abortParsing1); + } + + NSError? get parserError { + final _ret = _lib._objc_msgSend_298(_id, _lib._sel_parserError1); + return _ret.address == 0 + ? null + : NSError._(_ret, _lib, retain: true, release: true); + } + + bool get shouldResolveExternalEntities { + return _lib._objc_msgSend_12(_id, _lib._sel_shouldResolveExternalEntities1); + } + + set shouldResolveExternalEntities(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setShouldResolveExternalEntities_1, value); + } + + NSString? get publicID { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_publicID1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get systemID { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_systemID1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + int get lineNumber { + return _lib._objc_msgSend_78(_id, _lib._sel_lineNumber1); + } + + int get columnNumber { + return _lib._objc_msgSend_78(_id, _lib._sel_columnNumber1); + } + + static NSXMLParser new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLParser1, _lib._sel_new1); + return NSXMLParser._(_ret, _lib, retain: false, release: true); + } + + static NSXMLParser alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLParser1, _lib._sel_alloc1); + return NSXMLParser._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSXMLParser1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSXMLParser1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSXMLParser1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSXMLParser1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSXMLParser1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSXMLParser1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSXMLParser1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSXMLParser1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSXMLParser1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSXMLParserExternalEntityResolvingPolicy { + static const int NSXMLParserResolveExternalEntitiesNever = 0; + static const int NSXMLParserResolveExternalEntitiesNoNetwork = 1; + static const int NSXMLParserResolveExternalEntitiesSameOriginOnly = 2; + static const int NSXMLParserResolveExternalEntitiesAlways = 3; +} + +class NSFileWrapper extends NSObject { + NSFileWrapper._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSFileWrapper] that points to the same underlying object as [other]. + static NSFileWrapper castFrom(T other) { + return NSFileWrapper._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSFileWrapper] that wraps the given raw object pointer. + static NSFileWrapper castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSFileWrapper._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSFileWrapper]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileWrapper1); + } + + NSFileWrapper initWithURL_options_error_( + NSURL? url, int options, ffi.Pointer> outError) { + final _ret = _lib._objc_msgSend_936( + _id, + _lib._sel_initWithURL_options_error_1, + url?._id ?? ffi.nullptr, + options, + outError); + return NSFileWrapper._(_ret, _lib, retain: true, release: true); + } + + NSFileWrapper initDirectoryWithFileWrappers_( + NSDictionary? childrenByPreferredName) { + final _ret = _lib._objc_msgSend_149( + _id, + _lib._sel_initDirectoryWithFileWrappers_1, + childrenByPreferredName?._id ?? ffi.nullptr); + return NSFileWrapper._(_ret, _lib, retain: true, release: true); + } + + NSFileWrapper initRegularFileWithContents_(NSData? contents) { + final _ret = _lib._objc_msgSend_257(_id, + _lib._sel_initRegularFileWithContents_1, contents?._id ?? ffi.nullptr); + return NSFileWrapper._(_ret, _lib, retain: true, release: true); + } + + NSFileWrapper initSymbolicLinkWithDestinationURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_241( + _id, + _lib._sel_initSymbolicLinkWithDestinationURL_1, + url?._id ?? ffi.nullptr); + return NSFileWrapper._(_ret, _lib, retain: true, release: true); + } + + NSFileWrapper initWithSerializedRepresentation_( + NSData? serializeRepresentation) { + final _ret = _lib._objc_msgSend_257( + _id, + _lib._sel_initWithSerializedRepresentation_1, + serializeRepresentation?._id ?? ffi.nullptr); + return NSFileWrapper._(_ret, _lib, retain: true, release: true); + } + + NSFileWrapper initWithCoder_(NSCoder? inCoder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); + return NSFileWrapper._(_ret, _lib, retain: true, release: true); + } + + bool get directory { + return _lib._objc_msgSend_12(_id, _lib._sel_isDirectory1); + } + + bool get regularFile { + return _lib._objc_msgSend_12(_id, _lib._sel_isRegularFile1); + } + + bool get symbolicLink { + return _lib._objc_msgSend_12(_id, _lib._sel_isSymbolicLink1); + } + + NSString? get preferredFilename { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_preferredFilename1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set preferredFilename(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setPreferredFilename_1, value?._id ?? ffi.nullptr); + } + + NSString? get filename { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_filename1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set filename(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setFilename_1, value?._id ?? ffi.nullptr); + } + + NSDictionary? get fileAttributes { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_fileAttributes1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set fileAttributes(NSDictionary? value) { + _lib._objc_msgSend_171( + _id, _lib._sel_setFileAttributes_1, value?._id ?? ffi.nullptr); + } + + bool matchesContentsOfURL_(NSURL? url) { + return _lib._objc_msgSend_244( + _id, _lib._sel_matchesContentsOfURL_1, url?._id ?? ffi.nullptr); + } + + bool readFromURL_options_error_( + NSURL? url, int options, ffi.Pointer> outError) { + return _lib._objc_msgSend_937(_id, _lib._sel_readFromURL_options_error_1, + url?._id ?? ffi.nullptr, options, outError); + } + + bool writeToURL_options_originalContentsURL_error_( + NSURL? url, + int options, + NSURL? originalContentsURL, + ffi.Pointer> outError) { + return _lib._objc_msgSend_938( + _id, + _lib._sel_writeToURL_options_originalContentsURL_error_1, + url?._id ?? ffi.nullptr, + options, + originalContentsURL?._id ?? ffi.nullptr, + outError); + } + + NSData? get serializedRepresentation { + final _ret = + _lib._objc_msgSend_39(_id, _lib._sel_serializedRepresentation1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + NSString addFileWrapper_(NSFileWrapper? child) { + final _ret = _lib._objc_msgSend_939( + _id, _lib._sel_addFileWrapper_1, child?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString addRegularFileWithContents_preferredFilename_( + NSData? data, NSString? fileName) { + final _ret = _lib._objc_msgSend_940( + _id, + _lib._sel_addRegularFileWithContents_preferredFilename_1, + data?._id ?? ffi.nullptr, + fileName?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + void removeFileWrapper_(NSFileWrapper? child) { + return _lib._objc_msgSend_941( + _id, _lib._sel_removeFileWrapper_1, child?._id ?? ffi.nullptr); + } + + NSDictionary? get fileWrappers { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_fileWrappers1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSString keyForFileWrapper_(NSFileWrapper? child) { + final _ret = _lib._objc_msgSend_939( + _id, _lib._sel_keyForFileWrapper_1, child?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSData? get regularFileContents { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_regularFileContents1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + NSURL? get symbolicLinkDestinationURL { + final _ret = + _lib._objc_msgSend_40(_id, _lib._sel_symbolicLinkDestinationURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSObject initWithPath_(NSString? path) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithPath_1, path?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject initSymbolicLinkWithDestination_(NSString? path) { + final _ret = _lib._objc_msgSend_30(_id, + _lib._sel_initSymbolicLinkWithDestination_1, path?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + bool needsToBeUpdatedFromPath_(NSString? path) { + return _lib._objc_msgSend_59( + _id, _lib._sel_needsToBeUpdatedFromPath_1, path?._id ?? ffi.nullptr); + } + + bool updateFromPath_(NSString? path) { + return _lib._objc_msgSend_59( + _id, _lib._sel_updateFromPath_1, path?._id ?? ffi.nullptr); + } + + bool writeToFile_atomically_updateFilenames_( + NSString? path, bool atomicFlag, bool updateFilenamesFlag) { + return _lib._objc_msgSend_942( + _id, + _lib._sel_writeToFile_atomically_updateFilenames_1, + path?._id ?? ffi.nullptr, + atomicFlag, + updateFilenamesFlag); + } + + NSString addFileWithPath_(NSString? path) { + final _ret = _lib._objc_msgSend_64( + _id, _lib._sel_addFileWithPath_1, path?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString addSymbolicLinkWithDestination_preferredFilename_( + NSString? path, NSString? filename) { + final _ret = _lib._objc_msgSend_339( + _id, + _lib._sel_addSymbolicLinkWithDestination_preferredFilename_1, + path?._id ?? ffi.nullptr, + filename?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString symbolicLinkDestination() { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_symbolicLinkDestination1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSFileWrapper new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSFileWrapper1, _lib._sel_new1); + return NSFileWrapper._(_ret, _lib, retain: false, release: true); + } + + static NSFileWrapper alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSFileWrapper1, _lib._sel_alloc1); + return NSFileWrapper._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSFileWrapper1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSFileWrapper1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSFileWrapper1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSFileWrapper1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSFileWrapper1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSFileWrapper1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSFileWrapper1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSFileWrapper1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSFileWrapper1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSFileWrapperReadingOptions { + static const int NSFileWrapperReadingImmediate = 1; + static const int NSFileWrapperReadingWithoutMapping = 2; +} + +abstract class NSFileWrapperWritingOptions { + static const int NSFileWrapperWritingAtomic = 1; + static const int NSFileWrapperWritingWithNameUpdating = 2; +} + +class NSURLSession extends NSObject { + NSURLSession._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLSession] that points to the same underlying object as [other]. + static NSURLSession castFrom(T other) { + return NSURLSession._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSURLSession] that wraps the given raw object pointer. + static NSURLSession castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLSession._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSURLSession]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLSession1); + } + + static NSURLSession? getSharedSession(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_943( + _lib._class_NSURLSession1, _lib._sel_sharedSession1); + return _ret.address == 0 + ? null + : NSURLSession._(_ret, _lib, retain: true, release: true); + } + + static NSURLSession sessionWithConfiguration_( + HidListenerBindingsSwift _lib, NSURLSessionConfiguration? configuration) { + final _ret = _lib._objc_msgSend_954( + _lib._class_NSURLSession1, + _lib._sel_sessionWithConfiguration_1, + configuration?._id ?? ffi.nullptr); + return NSURLSession._(_ret, _lib, retain: true, release: true); + } + + static NSURLSession sessionWithConfiguration_delegate_delegateQueue_( + HidListenerBindingsSwift _lib, + NSURLSessionConfiguration? configuration, + NSObject? delegate, + NSOperationQueue? queue) { + final _ret = _lib._objc_msgSend_955( + _lib._class_NSURLSession1, + _lib._sel_sessionWithConfiguration_delegate_delegateQueue_1, + configuration?._id ?? ffi.nullptr, + delegate?._id ?? ffi.nullptr, + queue?._id ?? ffi.nullptr); + return NSURLSession._(_ret, _lib, retain: true, release: true); + } + + NSOperationQueue? get delegateQueue { + final _ret = _lib._objc_msgSend_824(_id, _lib._sel_delegateQueue1); + return _ret.address == 0 + ? null + : NSOperationQueue._(_ret, _lib, retain: true, release: true); + } + + NSObject? get delegate { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionConfiguration? get configuration { + final _ret = _lib._objc_msgSend_944(_id, _lib._sel_configuration1); + return _ret.address == 0 + ? null + : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + } + + NSString? get sessionDescription { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sessionDescription1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set sessionDescription(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setSessionDescription_1, value?._id ?? ffi.nullptr); + } + + void finishTasksAndInvalidate() { + return _lib._objc_msgSend_1(_id, _lib._sel_finishTasksAndInvalidate1); + } + + void invalidateAndCancel() { + return _lib._objc_msgSend_1(_id, _lib._sel_invalidateAndCancel1); + } + + void resetWithCompletionHandler_(ObjCBlock21 completionHandler) { + return _lib._objc_msgSend_497( + _id, _lib._sel_resetWithCompletionHandler_1, completionHandler._id); + } + + void flushWithCompletionHandler_(ObjCBlock21 completionHandler) { + return _lib._objc_msgSend_497( + _id, _lib._sel_flushWithCompletionHandler_1, completionHandler._id); + } + + void getTasksWithCompletionHandler_(ObjCBlock43 completionHandler) { + return _lib._objc_msgSend_956( + _id, _lib._sel_getTasksWithCompletionHandler_1, completionHandler._id); + } + + void getAllTasksWithCompletionHandler_(ObjCBlock36 completionHandler) { + return _lib._objc_msgSend_957(_id, + _lib._sel_getAllTasksWithCompletionHandler_1, completionHandler._id); + } + + NSURLSessionDataTask dataTaskWithRequest_(NSURLRequest? request) { + final _ret = _lib._objc_msgSend_958( + _id, _lib._sel_dataTaskWithRequest_1, request?._id ?? ffi.nullptr); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionDataTask dataTaskWithURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_959( + _id, _lib._sel_dataTaskWithURL_1, url?._id ?? ffi.nullptr); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionUploadTask uploadTaskWithRequest_fromFile_( + NSURLRequest? request, NSURL? fileURL) { + final _ret = _lib._objc_msgSend_960( + _id, + _lib._sel_uploadTaskWithRequest_fromFile_1, + request?._id ?? ffi.nullptr, + fileURL?._id ?? ffi.nullptr); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionUploadTask uploadTaskWithRequest_fromData_( + NSURLRequest? request, NSData? bodyData) { + final _ret = _lib._objc_msgSend_961( + _id, + _lib._sel_uploadTaskWithRequest_fromData_1, + request?._id ?? ffi.nullptr, + bodyData?._id ?? ffi.nullptr); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionUploadTask uploadTaskWithStreamedRequest_(NSURLRequest? request) { + final _ret = _lib._objc_msgSend_962(_id, + _lib._sel_uploadTaskWithStreamedRequest_1, request?._id ?? ffi.nullptr); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionDownloadTask downloadTaskWithRequest_(NSURLRequest? request) { + final _ret = _lib._objc_msgSend_964( + _id, _lib._sel_downloadTaskWithRequest_1, request?._id ?? ffi.nullptr); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionDownloadTask downloadTaskWithURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_965( + _id, _lib._sel_downloadTaskWithURL_1, url?._id ?? ffi.nullptr); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionDownloadTask downloadTaskWithResumeData_(NSData? resumeData) { + final _ret = _lib._objc_msgSend_966(_id, + _lib._sel_downloadTaskWithResumeData_1, resumeData?._id ?? ffi.nullptr); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionStreamTask streamTaskWithHostName_port_( + NSString? hostname, int port) { + final _ret = _lib._objc_msgSend_969( + _id, + _lib._sel_streamTaskWithHostName_port_1, + hostname?._id ?? ffi.nullptr, + port); + return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionStreamTask streamTaskWithNetService_(NSNetService? service) { + final _ret = _lib._objc_msgSend_975( + _id, _lib._sel_streamTaskWithNetService_1, service?._id ?? ffi.nullptr); + return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionWebSocketTask webSocketTaskWithURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_982( + _id, _lib._sel_webSocketTaskWithURL_1, url?._id ?? ffi.nullptr); + return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionWebSocketTask webSocketTaskWithURL_protocols_( + NSURL? url, NSArray? protocols) { + final _ret = _lib._objc_msgSend_983( + _id, + _lib._sel_webSocketTaskWithURL_protocols_1, + url?._id ?? ffi.nullptr, + protocols?._id ?? ffi.nullptr); + return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionWebSocketTask webSocketTaskWithRequest_(NSURLRequest? request) { + final _ret = _lib._objc_msgSend_984( + _id, _lib._sel_webSocketTaskWithRequest_1, request?._id ?? ffi.nullptr); + return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); + } + + @override + NSURLSession init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSession._(_ret, _lib, retain: true, release: true); + } + + static NSURLSession new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLSession1, _lib._sel_new1); + return NSURLSession._(_ret, _lib, retain: false, release: true); + } + + NSURLSessionDataTask dataTaskWithRequest_completionHandler_( + NSURLRequest? request, ObjCBlock47 completionHandler) { + final _ret = _lib._objc_msgSend_985( + _id, + _lib._sel_dataTaskWithRequest_completionHandler_1, + request?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionDataTask dataTaskWithURL_completionHandler_( + NSURL? url, ObjCBlock47 completionHandler) { + final _ret = _lib._objc_msgSend_986( + _id, + _lib._sel_dataTaskWithURL_completionHandler_1, + url?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionUploadTask uploadTaskWithRequest_fromFile_completionHandler_( + NSURLRequest? request, NSURL? fileURL, ObjCBlock47 completionHandler) { + final _ret = _lib._objc_msgSend_987( + _id, + _lib._sel_uploadTaskWithRequest_fromFile_completionHandler_1, + request?._id ?? ffi.nullptr, + fileURL?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionUploadTask uploadTaskWithRequest_fromData_completionHandler_( + NSURLRequest? request, NSData? bodyData, ObjCBlock47 completionHandler) { + final _ret = _lib._objc_msgSend_988( + _id, + _lib._sel_uploadTaskWithRequest_fromData_completionHandler_1, + request?._id ?? ffi.nullptr, + bodyData?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionDownloadTask downloadTaskWithRequest_completionHandler_( + NSURLRequest? request, ObjCBlock48 completionHandler) { + final _ret = _lib._objc_msgSend_989( + _id, + _lib._sel_downloadTaskWithRequest_completionHandler_1, + request?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionDownloadTask downloadTaskWithURL_completionHandler_( + NSURL? url, ObjCBlock48 completionHandler) { + final _ret = _lib._objc_msgSend_990( + _id, + _lib._sel_downloadTaskWithURL_completionHandler_1, + url?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionDownloadTask downloadTaskWithResumeData_completionHandler_( + NSData? resumeData, ObjCBlock48 completionHandler) { + final _ret = _lib._objc_msgSend_991( + _id, + _lib._sel_downloadTaskWithResumeData_completionHandler_1, + resumeData?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + } + + static NSURLSession alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLSession1, _lib._sel_alloc1); + return NSURLSession._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSURLSession1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSURLSession1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLSession1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLSession1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLSession1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLSession1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSURLSession1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSURLSession1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSession1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSURLSessionConfiguration extends NSObject { + NSURLSessionConfiguration._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLSessionConfiguration] that points to the same underlying object as [other]. + static NSURLSessionConfiguration castFrom(T other) { + return NSURLSessionConfiguration._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSURLSessionConfiguration] that wraps the given raw object pointer. + static NSURLSessionConfiguration castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLSessionConfiguration._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSURLSessionConfiguration]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLSessionConfiguration1); + } + + static NSURLSessionConfiguration? getDefaultSessionConfiguration( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_944(_lib._class_NSURLSessionConfiguration1, + _lib._sel_defaultSessionConfiguration1); + return _ret.address == 0 + ? null + : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + } + + static NSURLSessionConfiguration? getEphemeralSessionConfiguration( + HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_944(_lib._class_NSURLSessionConfiguration1, + _lib._sel_ephemeralSessionConfiguration1); + return _ret.address == 0 + ? null + : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + } + + static NSURLSessionConfiguration + backgroundSessionConfigurationWithIdentifier_( + HidListenerBindingsSwift _lib, NSString? identifier) { + final _ret = _lib._objc_msgSend_945( + _lib._class_NSURLSessionConfiguration1, + _lib._sel_backgroundSessionConfigurationWithIdentifier_1, + identifier?._id ?? ffi.nullptr); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + } + + NSString? get identifier { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_identifier1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + int get requestCachePolicy { + return _lib._objc_msgSend_782(_id, _lib._sel_requestCachePolicy1); + } + + set requestCachePolicy(int value) { + _lib._objc_msgSend_922(_id, _lib._sel_setRequestCachePolicy_1, value); + } + + double get timeoutIntervalForRequest { + return _lib._objc_msgSend_155(_id, _lib._sel_timeoutIntervalForRequest1); + } + + set timeoutIntervalForRequest(double value) { + _lib._objc_msgSend_506( + _id, _lib._sel_setTimeoutIntervalForRequest_1, value); + } + + double get timeoutIntervalForResource { + return _lib._objc_msgSend_155(_id, _lib._sel_timeoutIntervalForResource1); + } + + set timeoutIntervalForResource(double value) { + _lib._objc_msgSend_506( + _id, _lib._sel_setTimeoutIntervalForResource_1, value); + } + + int get networkServiceType { + return _lib._objc_msgSend_783(_id, _lib._sel_networkServiceType1); + } + + set networkServiceType(int value) { + _lib._objc_msgSend_923(_id, _lib._sel_setNetworkServiceType_1, value); + } + + bool get allowsCellularAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); + } + + set allowsCellularAccess(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setAllowsCellularAccess_1, value); + } + + bool get allowsExpensiveNetworkAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); + } + + set allowsExpensiveNetworkAccess(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); + } + + bool get allowsConstrainedNetworkAccess { + return _lib._objc_msgSend_12( + _id, _lib._sel_allowsConstrainedNetworkAccess1); + } + + set allowsConstrainedNetworkAccess(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); + } + + bool get requiresDNSSECValidation { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); + } + + set requiresDNSSECValidation(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setRequiresDNSSECValidation_1, value); + } + + bool get waitsForConnectivity { + return _lib._objc_msgSend_12(_id, _lib._sel_waitsForConnectivity1); + } + + set waitsForConnectivity(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setWaitsForConnectivity_1, value); + } + + bool get discretionary { + return _lib._objc_msgSend_12(_id, _lib._sel_isDiscretionary1); + } + + set discretionary(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setDiscretionary_1, value); + } + + NSString? get sharedContainerIdentifier { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_sharedContainerIdentifier1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set sharedContainerIdentifier(NSString? value) { + _lib._objc_msgSend_509(_id, _lib._sel_setSharedContainerIdentifier_1, + value?._id ?? ffi.nullptr); + } + + bool get sessionSendsLaunchEvents { + return _lib._objc_msgSend_12(_id, _lib._sel_sessionSendsLaunchEvents1); + } + + set sessionSendsLaunchEvents(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setSessionSendsLaunchEvents_1, value); + } + + NSDictionary? get connectionProxyDictionary { + final _ret = + _lib._objc_msgSend_170(_id, _lib._sel_connectionProxyDictionary1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set connectionProxyDictionary(NSDictionary? value) { + _lib._objc_msgSend_171(_id, _lib._sel_setConnectionProxyDictionary_1, + value?._id ?? ffi.nullptr); + } + + int get TLSMinimumSupportedProtocol { + return _lib._objc_msgSend_946(_id, _lib._sel_TLSMinimumSupportedProtocol1); + } + + set TLSMinimumSupportedProtocol(int value) { + _lib._objc_msgSend_947( + _id, _lib._sel_setTLSMinimumSupportedProtocol_1, value); + } + + int get TLSMaximumSupportedProtocol { + return _lib._objc_msgSend_946(_id, _lib._sel_TLSMaximumSupportedProtocol1); + } + + set TLSMaximumSupportedProtocol(int value) { + _lib._objc_msgSend_947( + _id, _lib._sel_setTLSMaximumSupportedProtocol_1, value); + } + + int get TLSMinimumSupportedProtocolVersion { + return _lib._objc_msgSend_948( + _id, _lib._sel_TLSMinimumSupportedProtocolVersion1); + } + + set TLSMinimumSupportedProtocolVersion(int value) { + _lib._objc_msgSend_949( + _id, _lib._sel_setTLSMinimumSupportedProtocolVersion_1, value); + } + + int get TLSMaximumSupportedProtocolVersion { + return _lib._objc_msgSend_948( + _id, _lib._sel_TLSMaximumSupportedProtocolVersion1); + } + + set TLSMaximumSupportedProtocolVersion(int value) { + _lib._objc_msgSend_949( + _id, _lib._sel_setTLSMaximumSupportedProtocolVersion_1, value); + } + + bool get HTTPShouldUsePipelining { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); + } + + set HTTPShouldUsePipelining(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setHTTPShouldUsePipelining_1, value); + } + + bool get HTTPShouldSetCookies { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldSetCookies1); + } + + set HTTPShouldSetCookies(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setHTTPShouldSetCookies_1, value); + } + + int get HTTPCookieAcceptPolicy { + return _lib._objc_msgSend_779(_id, _lib._sel_HTTPCookieAcceptPolicy1); + } + + set HTTPCookieAcceptPolicy(int value) { + _lib._objc_msgSend_780(_id, _lib._sel_setHTTPCookieAcceptPolicy_1, value); + } + + NSDictionary? get HTTPAdditionalHeaders { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_HTTPAdditionalHeaders1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set HTTPAdditionalHeaders(NSDictionary? value) { + _lib._objc_msgSend_171( + _id, _lib._sel_setHTTPAdditionalHeaders_1, value?._id ?? ffi.nullptr); + } + + int get HTTPMaximumConnectionsPerHost { + return _lib._objc_msgSend_78(_id, _lib._sel_HTTPMaximumConnectionsPerHost1); + } + + set HTTPMaximumConnectionsPerHost(int value) { + _lib._objc_msgSend_590( + _id, _lib._sel_setHTTPMaximumConnectionsPerHost_1, value); + } + + NSHTTPCookieStorage? get HTTPCookieStorage { + final _ret = _lib._objc_msgSend_773(_id, _lib._sel_HTTPCookieStorage1); + return _ret.address == 0 + ? null + : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); + } + + set HTTPCookieStorage(NSHTTPCookieStorage? value) { + _lib._objc_msgSend_950( + _id, _lib._sel_setHTTPCookieStorage_1, value?._id ?? ffi.nullptr); + } + + NSURLCredentialStorage? get URLCredentialStorage { + final _ret = _lib._objc_msgSend_908(_id, _lib._sel_URLCredentialStorage1); + return _ret.address == 0 + ? null + : NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); + } + + set URLCredentialStorage(NSURLCredentialStorage? value) { + _lib._objc_msgSend_951( + _id, _lib._sel_setURLCredentialStorage_1, value?._id ?? ffi.nullptr); + } + + NSURLCache? get URLCache { + final _ret = _lib._objc_msgSend_878(_id, _lib._sel_URLCache1); + return _ret.address == 0 + ? null + : NSURLCache._(_ret, _lib, retain: true, release: true); + } + + set URLCache(NSURLCache? value) { + _lib._objc_msgSend_879( + _id, _lib._sel_setURLCache_1, value?._id ?? ffi.nullptr); + } + + bool get shouldUseExtendedBackgroundIdleMode { + return _lib._objc_msgSend_12( + _id, _lib._sel_shouldUseExtendedBackgroundIdleMode1); + } + + set shouldUseExtendedBackgroundIdleMode(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setShouldUseExtendedBackgroundIdleMode_1, value); + } + + NSArray? get protocolClasses { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_protocolClasses1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set protocolClasses(NSArray? value) { + _lib._objc_msgSend_731( + _id, _lib._sel_setProtocolClasses_1, value?._id ?? ffi.nullptr); + } + + int get multipathServiceType { + return _lib._objc_msgSend_952(_id, _lib._sel_multipathServiceType1); + } + + set multipathServiceType(int value) { + _lib._objc_msgSend_953(_id, _lib._sel_setMultipathServiceType_1, value); + } + + @override + NSURLSessionConfiguration init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + } + + static NSURLSessionConfiguration new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionConfiguration1, _lib._sel_new1); + return NSURLSessionConfiguration._(_ret, _lib, + retain: false, release: true); + } + + static NSURLSessionConfiguration backgroundSessionConfiguration_( + HidListenerBindingsSwift _lib, NSString? identifier) { + final _ret = _lib._objc_msgSend_945( + _lib._class_NSURLSessionConfiguration1, + _lib._sel_backgroundSessionConfiguration_1, + identifier?._id ?? ffi.nullptr); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + } + + static NSURLSessionConfiguration alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionConfiguration1, _lib._sel_alloc1); + return NSURLSessionConfiguration._(_ret, _lib, + retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSURLSessionConfiguration1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSURLSessionConfiguration1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSURLSessionConfiguration1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLSessionConfiguration1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLSessionConfiguration1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLSessionConfiguration1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSURLSessionConfiguration1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionConfiguration1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionConfiguration1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class SSLProtocol { + static const int kSSLProtocolUnknown = 0; + static const int kTLSProtocol1 = 4; + static const int kTLSProtocol11 = 7; + static const int kTLSProtocol12 = 8; + static const int kDTLSProtocol1 = 9; + static const int kTLSProtocol13 = 10; + static const int kDTLSProtocol12 = 11; + static const int kTLSProtocolMaxSupported = 999; + static const int kSSLProtocol2 = 1; + static const int kSSLProtocol3 = 2; + static const int kSSLProtocol3Only = 3; + static const int kTLSProtocol1Only = 5; + static const int kSSLProtocolAll = 6; +} + +abstract class tls_protocol_version_t { + static const int tls_protocol_version_TLSv10 = 769; + static const int tls_protocol_version_TLSv11 = 770; + static const int tls_protocol_version_TLSv12 = 771; + static const int tls_protocol_version_TLSv13 = 772; + static const int tls_protocol_version_DTLSv10 = -257; + static const int tls_protocol_version_DTLSv12 = -259; +} + +abstract class NSURLSessionMultipathServiceType { + static const int NSURLSessionMultipathServiceTypeNone = 0; + static const int NSURLSessionMultipathServiceTypeHandover = 1; + static const int NSURLSessionMultipathServiceTypeInteractive = 2; + static const int NSURLSessionMultipathServiceTypeAggregate = 3; +} + +void _ObjCBlock43_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} + +final _ObjCBlock43_closureRegistry = {}; +int _ObjCBlock43_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock43_registerClosure(Function fn) { + final id = ++_ObjCBlock43_closureRegistryIndex; + _ObjCBlock43_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock43_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return _ObjCBlock43_closureRegistry[block.ref.target.address]!( + arg0, arg1, arg2); +} + +class ObjCBlock43 extends _ObjCBlockBase { + ObjCBlock43._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock43.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock43_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock43.fromFunction( + HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock43_closureTrampoline) + .cast(), + _ObjCBlock43_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } +} + +class NSURLSessionUploadTask extends NSURLSessionDataTask { + NSURLSessionUploadTask._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLSessionUploadTask] that points to the same underlying object as [other]. + static NSURLSessionUploadTask castFrom(T other) { + return NSURLSessionUploadTask._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSURLSessionUploadTask] that wraps the given raw object pointer. + static NSURLSessionUploadTask castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLSessionUploadTask._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSURLSessionUploadTask]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLSessionUploadTask1); + } + + @override + NSURLSessionUploadTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + } + + static NSURLSessionUploadTask new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionUploadTask1, _lib._sel_new1); + return NSURLSessionUploadTask._(_ret, _lib, retain: false, release: true); + } + + static NSURLSessionUploadTask alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionUploadTask1, _lib._sel_alloc1); + return NSURLSessionUploadTask._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSURLSessionUploadTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSURLSessionUploadTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSURLSessionUploadTask1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLSessionUploadTask1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLSessionUploadTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLSessionUploadTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSURLSessionUploadTask1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionUploadTask1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionUploadTask1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSURLSessionDownloadTask extends NSURLSessionTask { + NSURLSessionDownloadTask._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLSessionDownloadTask] that points to the same underlying object as [other]. + static NSURLSessionDownloadTask castFrom(T other) { + return NSURLSessionDownloadTask._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSURLSessionDownloadTask] that wraps the given raw object pointer. + static NSURLSessionDownloadTask castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLSessionDownloadTask._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSURLSessionDownloadTask]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLSessionDownloadTask1); + } + + void cancelByProducingResumeData_(ObjCBlock44 completionHandler) { + return _lib._objc_msgSend_963( + _id, _lib._sel_cancelByProducingResumeData_1, completionHandler._id); + } + + @override + NSURLSessionDownloadTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + } + + static NSURLSessionDownloadTask new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionDownloadTask1, _lib._sel_new1); + return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); + } + + static NSURLSessionDownloadTask alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionDownloadTask1, _lib._sel_alloc1); + return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSURLSessionDownloadTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSURLSessionDownloadTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSURLSessionDownloadTask1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLSessionDownloadTask1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLSessionDownloadTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLSessionDownloadTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSURLSessionDownloadTask1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionDownloadTask1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionDownloadTask1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +void _ObjCBlock44_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} + +final _ObjCBlock44_closureRegistry = {}; +int _ObjCBlock44_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock44_registerClosure(Function fn) { + final id = ++_ObjCBlock44_closureRegistryIndex; + _ObjCBlock44_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock44_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return _ObjCBlock44_closureRegistry[block.ref.target.address]!(arg0); +} + +class ObjCBlock44 extends _ObjCBlockBase { + ObjCBlock44._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock44.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock44_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock44.fromFunction(HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock44_closureTrampoline) + .cast(), + _ObjCBlock44_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); + } +} + +class NSURLSessionStreamTask extends NSURLSessionTask { + NSURLSessionStreamTask._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLSessionStreamTask] that points to the same underlying object as [other]. + static NSURLSessionStreamTask castFrom(T other) { + return NSURLSessionStreamTask._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSURLSessionStreamTask] that wraps the given raw object pointer. + static NSURLSessionStreamTask castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLSessionStreamTask._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSURLSessionStreamTask]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLSessionStreamTask1); + } + + void readDataOfMinLength_maxLength_timeout_completionHandler_(int minBytes, + int maxBytes, double timeout, ObjCBlock45 completionHandler) { + return _lib._objc_msgSend_967( + _id, + _lib._sel_readDataOfMinLength_maxLength_timeout_completionHandler_1, + minBytes, + maxBytes, + timeout, + completionHandler._id); + } + + void writeData_timeout_completionHandler_( + NSData? data, double timeout, ObjCBlock18 completionHandler) { + return _lib._objc_msgSend_968( + _id, + _lib._sel_writeData_timeout_completionHandler_1, + data?._id ?? ffi.nullptr, + timeout, + completionHandler._id); + } + + void captureStreams() { + return _lib._objc_msgSend_1(_id, _lib._sel_captureStreams1); + } + + void closeWrite() { + return _lib._objc_msgSend_1(_id, _lib._sel_closeWrite1); + } + + void closeRead() { + return _lib._objc_msgSend_1(_id, _lib._sel_closeRead1); + } + + void startSecureConnection() { + return _lib._objc_msgSend_1(_id, _lib._sel_startSecureConnection1); + } + + void stopSecureConnection() { + return _lib._objc_msgSend_1(_id, _lib._sel_stopSecureConnection1); + } + + @override + NSURLSessionStreamTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); + } + + static NSURLSessionStreamTask new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionStreamTask1, _lib._sel_new1); + return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); + } + + static NSURLSessionStreamTask alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionStreamTask1, _lib._sel_alloc1); + return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSURLSessionStreamTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSURLSessionStreamTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSURLSessionStreamTask1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLSessionStreamTask1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLSessionStreamTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLSessionStreamTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSURLSessionStreamTask1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionStreamTask1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionStreamTask1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +void _ObjCBlock45_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer arg0, bool arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} + +final _ObjCBlock45_closureRegistry = {}; +int _ObjCBlock45_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock45_registerClosure(Function fn) { + final id = ++_ObjCBlock45_closureRegistryIndex; + _ObjCBlock45_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock45_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { + return _ObjCBlock45_closureRegistry[block.ref.target.address]!( + arg0, arg1, arg2); +} + +class ObjCBlock45 extends _ObjCBlockBase { + ObjCBlock45._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock45.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2)>( + _ObjCBlock45_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock45.fromFunction( + HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0, bool arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2)>( + _ObjCBlock45_closureTrampoline) + .cast(), + _ObjCBlock45_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call( + ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } +} + +class NSNetService extends NSObject { + NSNetService._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSNetService] that points to the same underlying object as [other]. + static NSNetService castFrom(T other) { + return NSNetService._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSNetService] that wraps the given raw object pointer. + static NSNetService castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSNetService._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSNetService]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSNetService1); + } + + NSNetService initWithDomain_type_name_port_( + NSString? domain, NSString? type, NSString? name, int port) { + final _ret = _lib._objc_msgSend_970( + _id, + _lib._sel_initWithDomain_type_name_port_1, + domain?._id ?? ffi.nullptr, + type?._id ?? ffi.nullptr, + name?._id ?? ffi.nullptr, + port); + return NSNetService._(_ret, _lib, retain: true, release: true); + } + + NSNetService initWithDomain_type_name_( + NSString? domain, NSString? type, NSString? name) { + final _ret = _lib._objc_msgSend_26( + _id, + _lib._sel_initWithDomain_type_name_1, + domain?._id ?? ffi.nullptr, + type?._id ?? ffi.nullptr, + name?._id ?? ffi.nullptr); + return NSNetService._(_ret, _lib, retain: true, release: true); + } + + void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { + return _lib._objc_msgSend_533(_id, _lib._sel_scheduleInRunLoop_forMode_1, + aRunLoop?._id ?? ffi.nullptr, mode._id); + } + + void removeFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { + return _lib._objc_msgSend_533(_id, _lib._sel_removeFromRunLoop_forMode_1, + aRunLoop?._id ?? ffi.nullptr, mode._id); + } + + NSObject? get delegate { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + set delegate(NSObject? value) { + _lib._objc_msgSend_387( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + } + + bool get includesPeerToPeer { + return _lib._objc_msgSend_12(_id, _lib._sel_includesPeerToPeer1); + } + + set includesPeerToPeer(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setIncludesPeerToPeer_1, value); + } + + NSString? get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get type { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_type1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get domain { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_domain1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get hostName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_hostName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray? get addresses { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_addresses1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + int get port { + return _lib._objc_msgSend_78(_id, _lib._sel_port1); + } + + void publish() { + return _lib._objc_msgSend_1(_id, _lib._sel_publish1); + } + + void publishWithOptions_(int options) { + return _lib._objc_msgSend_971(_id, _lib._sel_publishWithOptions_1, options); + } + + void resolve() { + return _lib._objc_msgSend_1(_id, _lib._sel_resolve1); + } + + void stop() { + return _lib._objc_msgSend_1(_id, _lib._sel_stop1); + } + + static NSDictionary dictionaryFromTXTRecordData_( + HidListenerBindingsSwift _lib, NSData? txtData) { + final _ret = _lib._objc_msgSend_972(_lib._class_NSNetService1, + _lib._sel_dictionaryFromTXTRecordData_1, txtData?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSData dataFromTXTRecordDictionary_( + HidListenerBindingsSwift _lib, NSDictionary? txtDictionary) { + final _ret = _lib._objc_msgSend_973( + _lib._class_NSNetService1, + _lib._sel_dataFromTXTRecordDictionary_1, + txtDictionary?._id ?? ffi.nullptr); + return NSData._(_ret, _lib, retain: true, release: true); + } + + void resolveWithTimeout_(double timeout) { + return _lib._objc_msgSend_505(_id, _lib._sel_resolveWithTimeout_1, timeout); + } + + bool getInputStream_outputStream_( + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + return _lib._objc_msgSend_974(_id, _lib._sel_getInputStream_outputStream_1, + inputStream, outputStream); + } + + bool setTXTRecordData_(NSData? recordData) { + return _lib._objc_msgSend_23( + _id, _lib._sel_setTXTRecordData_1, recordData?._id ?? ffi.nullptr); + } + + NSData TXTRecordData() { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_TXTRecordData1); + return NSData._(_ret, _lib, retain: true, release: true); + } + + void startMonitoring() { + return _lib._objc_msgSend_1(_id, _lib._sel_startMonitoring1); + } + + void stopMonitoring() { + return _lib._objc_msgSend_1(_id, _lib._sel_stopMonitoring1); + } + + static NSNetService new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSNetService1, _lib._sel_new1); + return NSNetService._(_ret, _lib, retain: false, release: true); + } + + static NSNetService alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSNetService1, _lib._sel_alloc1); + return NSNetService._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSNetService1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSNetService1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSNetService1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSNetService1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSNetService1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSNetService1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSNetService1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSNetService1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSNetService1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSNetServiceOptions { + static const int NSNetServiceNoAutoRename = 1; + static const int NSNetServiceListenForConnections = 2; +} + +class NSURLSessionWebSocketTask extends NSURLSessionTask { + NSURLSessionWebSocketTask._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLSessionWebSocketTask] that points to the same underlying object as [other]. + static NSURLSessionWebSocketTask castFrom(T other) { + return NSURLSessionWebSocketTask._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSURLSessionWebSocketTask] that wraps the given raw object pointer. + static NSURLSessionWebSocketTask castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLSessionWebSocketTask._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSURLSessionWebSocketTask]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLSessionWebSocketTask1); + } + + void sendMessage_completionHandler_( + NSURLSessionWebSocketMessage? message, ObjCBlock18 completionHandler) { + return _lib._objc_msgSend_977( + _id, + _lib._sel_sendMessage_completionHandler_1, + message?._id ?? ffi.nullptr, + completionHandler._id); + } + + void receiveMessageWithCompletionHandler_(ObjCBlock46 completionHandler) { + return _lib._objc_msgSend_978(_id, + _lib._sel_receiveMessageWithCompletionHandler_1, completionHandler._id); + } + + void sendPingWithPongReceiveHandler_(ObjCBlock18 pongReceiveHandler) { + return _lib._objc_msgSend_979(_id, + _lib._sel_sendPingWithPongReceiveHandler_1, pongReceiveHandler._id); + } + + void cancelWithCloseCode_reason_(int closeCode, NSData? reason) { + return _lib._objc_msgSend_980(_id, _lib._sel_cancelWithCloseCode_reason_1, + closeCode, reason?._id ?? ffi.nullptr); + } + + int get maximumMessageSize { + return _lib._objc_msgSend_78(_id, _lib._sel_maximumMessageSize1); + } + + set maximumMessageSize(int value) { + _lib._objc_msgSend_590(_id, _lib._sel_setMaximumMessageSize_1, value); + } + + int get closeCode { + return _lib._objc_msgSend_981(_id, _lib._sel_closeCode1); + } + + NSData? get closeReason { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_closeReason1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + @override + NSURLSessionWebSocketTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); + } + + static NSURLSessionWebSocketTask new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionWebSocketTask1, _lib._sel_new1); + return NSURLSessionWebSocketTask._(_ret, _lib, + retain: false, release: true); + } + + static NSURLSessionWebSocketTask alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionWebSocketTask1, _lib._sel_alloc1); + return NSURLSessionWebSocketTask._(_ret, _lib, + retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSURLSessionWebSocketTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLSessionWebSocketTask1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLSessionWebSocketTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLSessionWebSocketTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSURLSessionWebSocketTask1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSURLSessionWebSocketMessage extends NSObject { + NSURLSessionWebSocketMessage._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLSessionWebSocketMessage] that points to the same underlying object as [other]. + static NSURLSessionWebSocketMessage castFrom( + T other) { + return NSURLSessionWebSocketMessage._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSURLSessionWebSocketMessage] that wraps the given raw object pointer. + static NSURLSessionWebSocketMessage castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLSessionWebSocketMessage._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSURLSessionWebSocketMessage]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLSessionWebSocketMessage1); + } + + NSURLSessionWebSocketMessage initWithData_(NSData? data) { + final _ret = _lib._objc_msgSend_257( + _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: true, release: true); + } + + NSURLSessionWebSocketMessage initWithString_(NSString? string) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithString_1, string?._id ?? ffi.nullptr); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: true, release: true); + } + + int get type { + return _lib._objc_msgSend_976(_id, _lib._sel_type1); + } + + NSData? get data { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + NSString? get string { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_string1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + @override + NSURLSessionWebSocketMessage init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: true, release: true); + } + + static NSURLSessionWebSocketMessage new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_new1); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: false, release: true); + } + + static NSURLSessionWebSocketMessage alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_alloc1); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSURLSessionWebSocketMessageType { + static const int NSURLSessionWebSocketMessageTypeData = 0; + static const int NSURLSessionWebSocketMessageTypeString = 1; +} + +void _ObjCBlock46_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); +} + +final _ObjCBlock46_closureRegistry = {}; +int _ObjCBlock46_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock46_registerClosure(Function fn) { + final id = ++_ObjCBlock46_closureRegistryIndex; + _ObjCBlock46_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock46_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return _ObjCBlock46_closureRegistry[block.ref.target.address]!(arg0, arg1); +} + +class ObjCBlock46 extends _ObjCBlockBase { + ObjCBlock46._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock46.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock46_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock46.fromFunction( + HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock46_closureTrampoline) + .cast(), + _ObjCBlock46_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); + } +} + +abstract class NSURLSessionWebSocketCloseCode { + static const int NSURLSessionWebSocketCloseCodeInvalid = 0; + static const int NSURLSessionWebSocketCloseCodeNormalClosure = 1000; + static const int NSURLSessionWebSocketCloseCodeGoingAway = 1001; + static const int NSURLSessionWebSocketCloseCodeProtocolError = 1002; + static const int NSURLSessionWebSocketCloseCodeUnsupportedData = 1003; + static const int NSURLSessionWebSocketCloseCodeNoStatusReceived = 1005; + static const int NSURLSessionWebSocketCloseCodeAbnormalClosure = 1006; + static const int NSURLSessionWebSocketCloseCodeInvalidFramePayloadData = 1007; + static const int NSURLSessionWebSocketCloseCodePolicyViolation = 1008; + static const int NSURLSessionWebSocketCloseCodeMessageTooBig = 1009; + static const int NSURLSessionWebSocketCloseCodeMandatoryExtensionMissing = + 1010; + static const int NSURLSessionWebSocketCloseCodeInternalServerError = 1011; + static const int NSURLSessionWebSocketCloseCodeTLSHandshakeFailure = 1015; +} + +void _ObjCBlock47_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} + +final _ObjCBlock47_closureRegistry = {}; +int _ObjCBlock47_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock47_registerClosure(Function fn) { + final id = ++_ObjCBlock47_closureRegistryIndex; + _ObjCBlock47_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock47_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return _ObjCBlock47_closureRegistry[block.ref.target.address]!( + arg0, arg1, arg2); +} + +class ObjCBlock47 extends _ObjCBlockBase { + ObjCBlock47._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock47.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock47_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock47.fromFunction( + HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock47_closureTrampoline) + .cast(), + _ObjCBlock47_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } +} + +void _ObjCBlock48_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} + +final _ObjCBlock48_closureRegistry = {}; +int _ObjCBlock48_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock48_registerClosure(Function fn) { + final id = ++_ObjCBlock48_closureRegistryIndex; + _ObjCBlock48_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock48_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return _ObjCBlock48_closureRegistry[block.ref.target.address]!( + arg0, arg1, arg2); +} + +class ObjCBlock48 extends _ObjCBlockBase { + ObjCBlock48._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock48.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock48_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock48.fromFunction( + HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock48_closureTrampoline) + .cast(), + _ObjCBlock48_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } +} + +class NSProtocolChecker extends NSProxy { + NSProtocolChecker._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSProtocolChecker] that points to the same underlying object as [other]. + static NSProtocolChecker castFrom(T other) { + return NSProtocolChecker._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSProtocolChecker] that wraps the given raw object pointer. + static NSProtocolChecker castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSProtocolChecker._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSProtocolChecker]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSProtocolChecker1); + } + + Protocol? get protocol { + final _ret = _lib._objc_msgSend_992(_id, _lib._sel_protocol1); + return _ret.address == 0 + ? null + : Protocol._(_ret, _lib, retain: true, release: true); + } + + NSObject? get target { + final _ret = _lib._objc_msgSend_822(_id, _lib._sel_target1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSProtocolChecker protocolCheckerWithTarget_protocol_( + HidListenerBindingsSwift _lib, NSObject? anObject, Protocol? aProtocol) { + final _ret = _lib._objc_msgSend_993( + _lib._class_NSProtocolChecker1, + _lib._sel_protocolCheckerWithTarget_protocol_1, + anObject?._id ?? ffi.nullptr, + aProtocol?._id ?? ffi.nullptr); + return NSProtocolChecker._(_ret, _lib, retain: true, release: true); + } + + NSProtocolChecker initWithTarget_protocol_( + NSObject? anObject, Protocol? aProtocol) { + final _ret = _lib._objc_msgSend_993( + _id, + _lib._sel_initWithTarget_protocol_1, + anObject?._id ?? ffi.nullptr, + aProtocol?._id ?? ffi.nullptr); + return NSProtocolChecker._(_ret, _lib, retain: true, release: true); + } + + static NSObject alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSProtocolChecker1, _lib._sel_alloc1); + return NSObject._(_ret, _lib, retain: false, release: true); + } + + static bool respondsToSelector_( + HidListenerBindingsSwift _lib, ffi.Pointer aSelector) { + return _lib._objc_msgSend_4(_lib._class_NSProtocolChecker1, + _lib._sel_respondsToSelector_1, aSelector); + } +} + +class NSTask extends NSObject { + NSTask._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSTask] that points to the same underlying object as [other]. + static NSTask castFrom(T other) { + return NSTask._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSTask] that wraps the given raw object pointer. + static NSTask castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSTask._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSTask]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSTask1); + } + + @override + NSTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSTask._(_ret, _lib, retain: true, release: true); + } + + NSURL? get executableURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_executableURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + set executableURL(NSURL? value) { + _lib._objc_msgSend_621( + _id, _lib._sel_setExecutableURL_1, value?._id ?? ffi.nullptr); + } + + NSArray? get arguments { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_arguments1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set arguments(NSArray? value) { + _lib._objc_msgSend_731( + _id, _lib._sel_setArguments_1, value?._id ?? ffi.nullptr); + } + + NSDictionary? get environment { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_environment1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set environment(NSDictionary? value) { + _lib._objc_msgSend_171( + _id, _lib._sel_setEnvironment_1, value?._id ?? ffi.nullptr); + } + + NSURL? get currentDirectoryURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_currentDirectoryURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + set currentDirectoryURL(NSURL? value) { + _lib._objc_msgSend_621( + _id, _lib._sel_setCurrentDirectoryURL_1, value?._id ?? ffi.nullptr); + } + + NSObject get standardInput { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardInput1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + set standardInput(NSObject value) { + _lib._objc_msgSend_387(_id, _lib._sel_setStandardInput_1, value._id); + } + + NSObject get standardOutput { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardOutput1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + set standardOutput(NSObject value) { + _lib._objc_msgSend_387(_id, _lib._sel_setStandardOutput_1, value._id); + } + + NSObject get standardError { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardError1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + set standardError(NSObject value) { + _lib._objc_msgSend_387(_id, _lib._sel_setStandardError_1, value._id); + } + + bool launchAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_225(_id, _lib._sel_launchAndReturnError_1, error); + } + + void interrupt() { + return _lib._objc_msgSend_1(_id, _lib._sel_interrupt1); + } + + void terminate() { + return _lib._objc_msgSend_1(_id, _lib._sel_terminate1); + } + + bool suspend() { + return _lib._objc_msgSend_12(_id, _lib._sel_suspend1); + } + + bool resume() { + return _lib._objc_msgSend_12(_id, _lib._sel_resume1); + } + + int get processIdentifier { + return _lib._objc_msgSend_219(_id, _lib._sel_processIdentifier1); + } + + bool get running { + return _lib._objc_msgSend_12(_id, _lib._sel_isRunning1); + } + + int get terminationStatus { + return _lib._objc_msgSend_219(_id, _lib._sel_terminationStatus1); + } + + int get terminationReason { + return _lib._objc_msgSend_994(_id, _lib._sel_terminationReason1); + } + + ObjCBlock49 get terminationHandler { + final _ret = _lib._objc_msgSend_995(_id, _lib._sel_terminationHandler1); + return ObjCBlock49._(_ret, _lib); + } + + set terminationHandler(ObjCBlock49 value) { + _lib._objc_msgSend_996(_id, _lib._sel_setTerminationHandler_1, value._id); + } + + int get qualityOfService { + return _lib._objc_msgSend_507(_id, _lib._sel_qualityOfService1); + } + + set qualityOfService(int value) { + _lib._objc_msgSend_508(_id, _lib._sel_setQualityOfService_1, value); + } + + static NSTask + launchedTaskWithExecutableURL_arguments_error_terminationHandler_( + HidListenerBindingsSwift _lib, + NSURL? url, + NSArray? arguments, + ffi.Pointer> error, + ObjCBlock49 terminationHandler) { + final _ret = _lib._objc_msgSend_997( + _lib._class_NSTask1, + _lib._sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_1, + url?._id ?? ffi.nullptr, + arguments?._id ?? ffi.nullptr, + error, + terminationHandler._id); + return NSTask._(_ret, _lib, retain: true, release: true); + } + + void waitUntilExit() { + return _lib._objc_msgSend_1(_id, _lib._sel_waitUntilExit1); + } + + NSString? get launchPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_launchPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set launchPath(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setLaunchPath_1, value?._id ?? ffi.nullptr); + } + + NSString? get currentDirectoryPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currentDirectoryPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set currentDirectoryPath(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setCurrentDirectoryPath_1, value?._id ?? ffi.nullptr); + } + + void launch() { + return _lib._objc_msgSend_1(_id, _lib._sel_launch1); + } + + static NSTask launchedTaskWithLaunchPath_arguments_( + HidListenerBindingsSwift _lib, NSString? path, NSArray? arguments) { + final _ret = _lib._objc_msgSend_998( + _lib._class_NSTask1, + _lib._sel_launchedTaskWithLaunchPath_arguments_1, + path?._id ?? ffi.nullptr, + arguments?._id ?? ffi.nullptr); + return NSTask._(_ret, _lib, retain: true, release: true); + } + + static NSTask new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSTask1, _lib._sel_new1); + return NSTask._(_ret, _lib, retain: false, release: true); + } + + static NSTask alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSTask1, _lib._sel_alloc1); + return NSTask._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSTask1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSTask1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSTask1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSTask1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSTask1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSTaskTerminationReason { + static const int NSTaskTerminationReasonExit = 1; + static const int NSTaskTerminationReasonUncaughtSignal = 2; +} + +void _ObjCBlock49_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} + +final _ObjCBlock49_closureRegistry = {}; +int _ObjCBlock49_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock49_registerClosure(Function fn) { + final id = ++_ObjCBlock49_closureRegistryIndex; + _ObjCBlock49_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock49_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return _ObjCBlock49_closureRegistry[block.ref.target.address]!(arg0); +} + +class ObjCBlock49 extends _ObjCBlockBase { + ObjCBlock49._(ffi.Pointer<_ObjCBlock> id, HidListenerBindingsSwift lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock49.fromFunctionPointer( + HidListenerBindingsSwift lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock49_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock49.fromFunction(HidListenerBindingsSwift lib, + void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock49_closureTrampoline) + .cast(), + _ObjCBlock49_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); + } +} + +class NSXMLElement extends NSXMLNode { + NSXMLElement._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSXMLElement] that points to the same underlying object as [other]. + static NSXMLElement castFrom(T other) { + return NSXMLElement._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSXMLElement] that wraps the given raw object pointer. + static NSXMLElement castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSXMLElement._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSXMLElement]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLElement1); + } + + NSXMLElement initWithName_(NSString? name) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithName_1, name?._id ?? ffi.nullptr); + return NSXMLElement._(_ret, _lib, retain: true, release: true); + } + + NSXMLElement initWithName_URI_(NSString? name, NSString? URI) { + final _ret = _lib._objc_msgSend_165(_id, _lib._sel_initWithName_URI_1, + name?._id ?? ffi.nullptr, URI?._id ?? ffi.nullptr); + return NSXMLElement._(_ret, _lib, retain: true, release: true); + } + + NSXMLElement initWithName_stringValue_(NSString? name, NSString? string) { + final _ret = _lib._objc_msgSend_165( + _id, + _lib._sel_initWithName_stringValue_1, + name?._id ?? ffi.nullptr, + string?._id ?? ffi.nullptr); + return NSXMLElement._(_ret, _lib, retain: true, release: true); + } + + NSXMLElement initWithXMLString_error_( + NSString? string, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_279(_id, + _lib._sel_initWithXMLString_error_1, string?._id ?? ffi.nullptr, error); + return NSXMLElement._(_ret, _lib, retain: true, release: true); + } + + @override + NSXMLElement initWithKind_options_(int kind, int options) { + final _ret = _lib._objc_msgSend_1000( + _id, _lib._sel_initWithKind_options_1, kind, options); + return NSXMLElement._(_ret, _lib, retain: true, release: true); + } + + NSArray elementsForName_(NSString? name) { + final _ret = _lib._objc_msgSend_123( + _id, _lib._sel_elementsForName_1, name?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray elementsForLocalName_URI_(NSString? localName, NSString? URI) { + final _ret = _lib._objc_msgSend_652( + _id, + _lib._sel_elementsForLocalName_URI_1, + localName?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + void addAttribute_(NSXMLNode? attribute) { + return _lib._objc_msgSend_1012( + _id, _lib._sel_addAttribute_1, attribute?._id ?? ffi.nullptr); + } + + void removeAttributeForName_(NSString? name) { + return _lib._objc_msgSend_192( + _id, _lib._sel_removeAttributeForName_1, name?._id ?? ffi.nullptr); + } + + NSArray? get attributes { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attributes1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set attributes(NSArray? value) { + _lib._objc_msgSend_731( + _id, _lib._sel_setAttributes_1, value?._id ?? ffi.nullptr); + } + + void setAttributesWithDictionary_(NSDictionary? attributes) { + return _lib._objc_msgSend_476(_id, _lib._sel_setAttributesWithDictionary_1, + attributes?._id ?? ffi.nullptr); + } + + NSXMLNode attributeForName_(NSString? name) { + final _ret = _lib._objc_msgSend_1016( + _id, _lib._sel_attributeForName_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + NSXMLNode attributeForLocalName_URI_(NSString? localName, NSString? URI) { + final _ret = _lib._objc_msgSend_1033( + _id, + _lib._sel_attributeForLocalName_URI_1, + localName?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + void addNamespace_(NSXMLNode? aNamespace) { + return _lib._objc_msgSend_1012( + _id, _lib._sel_addNamespace_1, aNamespace?._id ?? ffi.nullptr); + } + + void removeNamespaceForPrefix_(NSString? name) { + return _lib._objc_msgSend_192( + _id, _lib._sel_removeNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + } + + NSArray? get namespaces { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_namespaces1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set namespaces(NSArray? value) { + _lib._objc_msgSend_731( + _id, _lib._sel_setNamespaces_1, value?._id ?? ffi.nullptr); + } + + NSXMLNode namespaceForPrefix_(NSString? name) { + final _ret = _lib._objc_msgSend_1016( + _id, _lib._sel_namespaceForPrefix_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + NSXMLNode resolveNamespaceForName_(NSString? name) { + final _ret = _lib._objc_msgSend_1016( + _id, _lib._sel_resolveNamespaceForName_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + NSString resolvePrefixForNamespaceURI_(NSString? namespaceURI) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_resolvePrefixForNamespaceURI_1, + namespaceURI?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + void insertChild_atIndex_(NSXMLNode? child, int index) { + return _lib._objc_msgSend_1010( + _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); + } + + void insertChildren_atIndex_(NSArray? children, int index) { + return _lib._objc_msgSend_1011(_id, _lib._sel_insertChildren_atIndex_1, + children?._id ?? ffi.nullptr, index); + } + + void removeChildAtIndex_(int index) { + return _lib._objc_msgSend_439(_id, _lib._sel_removeChildAtIndex_1, index); + } + + void setChildren_(NSArray? children) { + return _lib._objc_msgSend_441( + _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); + } + + void addChild_(NSXMLNode? child) { + return _lib._objc_msgSend_1012( + _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); + } + + void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { + return _lib._objc_msgSend_1013( + _id, + _lib._sel_replaceChildAtIndex_withNode_1, + index, + node?._id ?? ffi.nullptr); + } + + void normalizeAdjacentTextNodesPreservingCDATA_(bool preserve) { + return _lib._objc_msgSend_790( + _id, _lib._sel_normalizeAdjacentTextNodesPreservingCDATA_1, preserve); + } + + void setAttributesAsDictionary_(NSDictionary? attributes) { + return _lib._objc_msgSend_476(_id, _lib._sel_setAttributesAsDictionary_1, + attributes?._id ?? ffi.nullptr); + } + + static NSObject document(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLElement1, _lib._sel_document1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject documentWithRootElement_( + HidListenerBindingsSwift _lib, NSXMLElement? element) { + final _ret = _lib._objc_msgSend_1001(_lib._class_NSXMLElement1, + _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_( + HidListenerBindingsSwift _lib, NSString? name) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, + _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_URI_( + HidListenerBindingsSwift _lib, NSString? name, NSString? URI) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLElement1, + _lib._sel_elementWithName_URI_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_stringValue_( + HidListenerBindingsSwift _lib, NSString? name, NSString? string) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLElement1, + _lib._sel_elementWithName_stringValue_1, + name?._id ?? ffi.nullptr, + string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_children_attributes_( + HidListenerBindingsSwift _lib, + NSString? name, + NSArray? children, + NSArray? attributes) { + final _ret = _lib._objc_msgSend_1002( + _lib._class_NSXMLElement1, + _lib._sel_elementWithName_children_attributes_1, + name?._id ?? ffi.nullptr, + children?._id ?? ffi.nullptr, + attributes?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject attributeWithName_stringValue_( + HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLElement1, + _lib._sel_attributeWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject attributeWithName_URI_stringValue_( + HidListenerBindingsSwift _lib, + NSString? name, + NSString? URI, + NSString? stringValue) { + final _ret = _lib._objc_msgSend_26( + _lib._class_NSXMLElement1, + _lib._sel_attributeWithName_URI_stringValue_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject namespaceWithName_stringValue_( + HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLElement1, + _lib._sel_namespaceWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject processingInstructionWithName_stringValue_( + HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLElement1, + _lib._sel_processingInstructionWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject commentWithStringValue_( + HidListenerBindingsSwift _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, + _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject textWithStringValue_( + HidListenerBindingsSwift _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, + _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject DTDNodeWithXMLString_( + HidListenerBindingsSwift _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, + _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSString localNameForName_( + HidListenerBindingsSwift _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLElement1, + _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString prefixForName_( + HidListenerBindingsSwift _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLElement1, + _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSXMLNode predefinedNamespaceForPrefix_( + HidListenerBindingsSwift _lib, NSString? name) { + final _ret = _lib._objc_msgSend_1016(_lib._class_NSXMLElement1, + _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + static NSXMLElement new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLElement1, _lib._sel_new1); + return NSXMLElement._(_ret, _lib, retain: false, release: true); + } + + static NSXMLElement alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLElement1, _lib._sel_alloc1); + return NSXMLElement._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSXMLElement1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSXMLElement1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSXMLElement1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSXMLElement1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSXMLElement1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSXMLElement1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSXMLElement1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSXMLElement1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSXMLElement1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSXMLNode extends NSObject { + NSXMLNode._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSXMLNode] that points to the same underlying object as [other]. + static NSXMLNode castFrom(T other) { + return NSXMLNode._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSXMLNode] that wraps the given raw object pointer. + static NSXMLNode castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSXMLNode._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSXMLNode]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLNode1); + } + + @override + NSXMLNode init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + NSXMLNode initWithKind_(int kind) { + final _ret = _lib._objc_msgSend_999(_id, _lib._sel_initWithKind_1, kind); + return NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + NSXMLNode initWithKind_options_(int kind, int options) { + final _ret = _lib._objc_msgSend_1000( + _id, _lib._sel_initWithKind_options_1, kind, options); + return NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + static NSObject document(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLNode1, _lib._sel_document1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject documentWithRootElement_( + HidListenerBindingsSwift _lib, NSXMLElement? element) { + final _ret = _lib._objc_msgSend_1001(_lib._class_NSXMLNode1, + _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_( + HidListenerBindingsSwift _lib, NSString? name) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, + _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_URI_( + HidListenerBindingsSwift _lib, NSString? name, NSString? URI) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLNode1, + _lib._sel_elementWithName_URI_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_stringValue_( + HidListenerBindingsSwift _lib, NSString? name, NSString? string) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLNode1, + _lib._sel_elementWithName_stringValue_1, + name?._id ?? ffi.nullptr, + string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_children_attributes_( + HidListenerBindingsSwift _lib, + NSString? name, + NSArray? children, + NSArray? attributes) { + final _ret = _lib._objc_msgSend_1002( + _lib._class_NSXMLNode1, + _lib._sel_elementWithName_children_attributes_1, + name?._id ?? ffi.nullptr, + children?._id ?? ffi.nullptr, + attributes?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject attributeWithName_stringValue_( + HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLNode1, + _lib._sel_attributeWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject attributeWithName_URI_stringValue_( + HidListenerBindingsSwift _lib, + NSString? name, + NSString? URI, + NSString? stringValue) { + final _ret = _lib._objc_msgSend_26( + _lib._class_NSXMLNode1, + _lib._sel_attributeWithName_URI_stringValue_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject namespaceWithName_stringValue_( + HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLNode1, + _lib._sel_namespaceWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject processingInstructionWithName_stringValue_( + HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLNode1, + _lib._sel_processingInstructionWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject commentWithStringValue_( + HidListenerBindingsSwift _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, + _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject textWithStringValue_( + HidListenerBindingsSwift _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, + _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject DTDNodeWithXMLString_( + HidListenerBindingsSwift _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, + _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + int get kind { + return _lib._objc_msgSend_1003(_id, _lib._sel_kind1); + } + + NSString? get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set name(NSString? value) { + _lib._objc_msgSend_509(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + } + + NSObject get objectValue { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_objectValue1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + set objectValue(NSObject value) { + _lib._objc_msgSend_387(_id, _lib._sel_setObjectValue_1, value._id); + } + + NSString? get stringValue { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_stringValue1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set stringValue(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setStringValue_1, value?._id ?? ffi.nullptr); + } + + void setStringValue_resolvingEntities_(NSString? string, bool resolve) { + return _lib._objc_msgSend_1004( + _id, + _lib._sel_setStringValue_resolvingEntities_1, + string?._id ?? ffi.nullptr, + resolve); + } + + int get index { + return _lib._objc_msgSend_10(_id, _lib._sel_index1); + } + + int get level { + return _lib._objc_msgSend_10(_id, _lib._sel_level1); + } + + NSXMLDocument? get rootDocument { + final _ret = _lib._objc_msgSend_1027(_id, _lib._sel_rootDocument1); + return _ret.address == 0 + ? null + : NSXMLDocument._(_ret, _lib, retain: true, release: true); + } + + NSXMLNode? get parent { + final _ret = _lib._objc_msgSend_1028(_id, _lib._sel_parent1); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + int get childCount { + return _lib._objc_msgSend_10(_id, _lib._sel_childCount1); + } + + NSArray? get children { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_children1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSXMLNode childAtIndex_(int index) { + final _ret = _lib._objc_msgSend_1029(_id, _lib._sel_childAtIndex_1, index); + return NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + NSXMLNode? get previousSibling { + final _ret = _lib._objc_msgSend_1028(_id, _lib._sel_previousSibling1); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + NSXMLNode? get nextSibling { + final _ret = _lib._objc_msgSend_1028(_id, _lib._sel_nextSibling1); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + NSXMLNode? get previousNode { + final _ret = _lib._objc_msgSend_1028(_id, _lib._sel_previousNode1); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + NSXMLNode? get nextNode { + final _ret = _lib._objc_msgSend_1028(_id, _lib._sel_nextNode1); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + void detach() { + return _lib._objc_msgSend_1(_id, _lib._sel_detach1); + } + + NSString? get XPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_XPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get localName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get prefix { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_prefix1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get URI { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_URI1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set URI(NSString? value) { + _lib._objc_msgSend_509(_id, _lib._sel_setURI_1, value?._id ?? ffi.nullptr); + } + + static NSString localNameForName_( + HidListenerBindingsSwift _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLNode1, + _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString prefixForName_( + HidListenerBindingsSwift _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLNode1, + _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSXMLNode predefinedNamespaceForPrefix_( + HidListenerBindingsSwift _lib, NSString? name) { + final _ret = _lib._objc_msgSend_1016(_lib._class_NSXMLNode1, + _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + NSString? get description { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get XMLString { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_XMLString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString XMLStringWithOptions_(int options) { + final _ret = + _lib._objc_msgSend_1030(_id, _lib._sel_XMLStringWithOptions_1, options); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString canonicalXMLStringPreservingComments_(bool comments) { + final _ret = _lib._objc_msgSend_1031( + _id, _lib._sel_canonicalXMLStringPreservingComments_1, comments); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray nodesForXPath_error_( + NSString? xpath, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_414( + _id, _lib._sel_nodesForXPath_error_1, xpath?._id ?? ffi.nullptr, error); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray objectsForXQuery_constants_error_(NSString? xquery, + NSDictionary? constants, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1032( + _id, + _lib._sel_objectsForXQuery_constants_error_1, + xquery?._id ?? ffi.nullptr, + constants?._id ?? ffi.nullptr, + error); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray objectsForXQuery_error_( + NSString? xquery, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_414(_id, _lib._sel_objectsForXQuery_error_1, + xquery?._id ?? ffi.nullptr, error); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSXMLNode new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLNode1, _lib._sel_new1); + return NSXMLNode._(_ret, _lib, retain: false, release: true); + } + + static NSXMLNode alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLNode1, _lib._sel_alloc1); + return NSXMLNode._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSXMLNode1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSXMLNode1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSXMLNode1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSXMLNode1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSXMLNode1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSXMLNode1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSXMLNode1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSXMLNode1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSXMLNode1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSXMLNodeKind { + static const int NSXMLInvalidKind = 0; + static const int NSXMLDocumentKind = 1; + static const int NSXMLElementKind = 2; + static const int NSXMLAttributeKind = 3; + static const int NSXMLNamespaceKind = 4; + static const int NSXMLProcessingInstructionKind = 5; + static const int NSXMLCommentKind = 6; + static const int NSXMLTextKind = 7; + static const int NSXMLDTDKind = 8; + static const int NSXMLEntityDeclarationKind = 9; + static const int NSXMLAttributeDeclarationKind = 10; + static const int NSXMLElementDeclarationKind = 11; + static const int NSXMLNotationDeclarationKind = 12; +} + +abstract class NSXMLNodeOptions { + static const int NSXMLNodeOptionsNone = 0; + static const int NSXMLNodeIsCDATA = 1; + static const int NSXMLNodeExpandEmptyElement = 2; + static const int NSXMLNodeCompactEmptyElement = 4; + static const int NSXMLNodeUseSingleQuotes = 8; + static const int NSXMLNodeUseDoubleQuotes = 16; + static const int NSXMLNodeNeverEscapeContents = 32; + static const int NSXMLDocumentTidyHTML = 512; + static const int NSXMLDocumentTidyXML = 1024; + static const int NSXMLDocumentValidate = 8192; + static const int NSXMLNodeLoadExternalEntitiesAlways = 16384; + static const int NSXMLNodeLoadExternalEntitiesSameOriginOnly = 32768; + static const int NSXMLNodeLoadExternalEntitiesNever = 524288; + static const int NSXMLDocumentXInclude = 65536; + static const int NSXMLNodePrettyPrint = 131072; + static const int NSXMLDocumentIncludeContentTypeDeclaration = 262144; + static const int NSXMLNodePreserveNamespaceOrder = 1048576; + static const int NSXMLNodePreserveAttributeOrder = 2097152; + static const int NSXMLNodePreserveEntities = 4194304; + static const int NSXMLNodePreservePrefixes = 8388608; + static const int NSXMLNodePreserveCDATA = 16777216; + static const int NSXMLNodePreserveWhitespace = 33554432; + static const int NSXMLNodePreserveDTD = 67108864; + static const int NSXMLNodePreserveCharacterReferences = 134217728; + static const int NSXMLNodePromoteSignificantWhitespace = 268435456; + static const int NSXMLNodePreserveEmptyElements = 6; + static const int NSXMLNodePreserveQuotes = 24; + static const int NSXMLNodePreserveAll = 4293918750; +} + +class NSXMLDocument extends NSXMLNode { + NSXMLDocument._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSXMLDocument] that points to the same underlying object as [other]. + static NSXMLDocument castFrom(T other) { + return NSXMLDocument._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSXMLDocument] that wraps the given raw object pointer. + static NSXMLDocument castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSXMLDocument._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSXMLDocument]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLDocument1); + } + + @override + NSXMLDocument init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); + } + + NSXMLDocument initWithXMLString_options_error_( + NSString? string, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1005( + _id, + _lib._sel_initWithXMLString_options_error_1, + string?._id ?? ffi.nullptr, + mask, + error); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); + } + + NSXMLDocument initWithContentsOfURL_options_error_( + NSURL? url, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1006( + _id, + _lib._sel_initWithContentsOfURL_options_error_1, + url?._id ?? ffi.nullptr, + mask, + error); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); + } + + NSXMLDocument initWithData_options_error_( + NSData? data, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1007( + _id, + _lib._sel_initWithData_options_error_1, + data?._id ?? ffi.nullptr, + mask, + error); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); + } + + NSXMLDocument initWithRootElement_(NSXMLElement? element) { + final _ret = _lib._objc_msgSend_1001( + _id, _lib._sel_initWithRootElement_1, element?._id ?? ffi.nullptr); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); + } + + static NSObject replacementClassForClass_( + HidListenerBindingsSwift _lib, NSObject cls) { + final _ret = _lib._objc_msgSend_16(_lib._class_NSXMLDocument1, + _lib._sel_replacementClassForClass_1, cls._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSString? get characterEncoding { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_characterEncoding1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set characterEncoding(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setCharacterEncoding_1, value?._id ?? ffi.nullptr); + } + + NSString? get version { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_version1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set version(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setVersion_1, value?._id ?? ffi.nullptr); + } + + bool get standalone { + return _lib._objc_msgSend_12(_id, _lib._sel_isStandalone1); + } + + set standalone(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setStandalone_1, value); + } + + int get documentContentKind { + return _lib._objc_msgSend_1008(_id, _lib._sel_documentContentKind1); + } + + set documentContentKind(int value) { + _lib._objc_msgSend_1009(_id, _lib._sel_setDocumentContentKind_1, value); + } + + NSString? get MIMEType { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_MIMEType1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set MIMEType(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setMIMEType_1, value?._id ?? ffi.nullptr); + } + + NSXMLDTD? get DTD { + final _ret = _lib._objc_msgSend_1019(_id, _lib._sel_DTD1); + return _ret.address == 0 + ? null + : NSXMLDTD._(_ret, _lib, retain: true, release: true); + } + + set DTD(NSXMLDTD? value) { + _lib._objc_msgSend_1020(_id, _lib._sel_setDTD_1, value?._id ?? ffi.nullptr); + } + + void setRootElement_(NSXMLElement? root) { + return _lib._objc_msgSend_1021( + _id, _lib._sel_setRootElement_1, root?._id ?? ffi.nullptr); + } + + NSXMLElement rootElement() { + final _ret = _lib._objc_msgSend_1022(_id, _lib._sel_rootElement1); + return NSXMLElement._(_ret, _lib, retain: true, release: true); + } + + void insertChild_atIndex_(NSXMLNode? child, int index) { + return _lib._objc_msgSend_1010( + _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); + } + + void insertChildren_atIndex_(NSArray? children, int index) { + return _lib._objc_msgSend_1011(_id, _lib._sel_insertChildren_atIndex_1, + children?._id ?? ffi.nullptr, index); + } + + void removeChildAtIndex_(int index) { + return _lib._objc_msgSend_439(_id, _lib._sel_removeChildAtIndex_1, index); + } + + void setChildren_(NSArray? children) { + return _lib._objc_msgSend_441( + _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); + } + + void addChild_(NSXMLNode? child) { + return _lib._objc_msgSend_1012( + _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); + } + + void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { + return _lib._objc_msgSend_1013( + _id, + _lib._sel_replaceChildAtIndex_withNode_1, + index, + node?._id ?? ffi.nullptr); + } + + NSData? get XMLData { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_XMLData1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + NSData XMLDataWithOptions_(int options) { + final _ret = + _lib._objc_msgSend_1023(_id, _lib._sel_XMLDataWithOptions_1, options); + return NSData._(_ret, _lib, retain: true, release: true); + } + + NSObject objectByApplyingXSLT_arguments_error_(NSData? xslt, + NSDictionary? arguments, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1024( + _id, + _lib._sel_objectByApplyingXSLT_arguments_error_1, + xslt?._id ?? ffi.nullptr, + arguments?._id ?? ffi.nullptr, + error); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject objectByApplyingXSLTString_arguments_error_(NSString? xslt, + NSDictionary? arguments, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1025( + _id, + _lib._sel_objectByApplyingXSLTString_arguments_error_1, + xslt?._id ?? ffi.nullptr, + arguments?._id ?? ffi.nullptr, + error); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject objectByApplyingXSLTAtURL_arguments_error_(NSURL? xsltURL, + NSDictionary? argument, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1026( + _id, + _lib._sel_objectByApplyingXSLTAtURL_arguments_error_1, + xsltURL?._id ?? ffi.nullptr, + argument?._id ?? ffi.nullptr, + error); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + bool validateAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_225( + _id, _lib._sel_validateAndReturnError_1, error); + } + + static NSObject document(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLDocument1, _lib._sel_document1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject documentWithRootElement_( + HidListenerBindingsSwift _lib, NSXMLElement? element) { + final _ret = _lib._objc_msgSend_1001(_lib._class_NSXMLDocument1, + _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_( + HidListenerBindingsSwift _lib, NSString? name) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, + _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_URI_( + HidListenerBindingsSwift _lib, NSString? name, NSString? URI) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDocument1, + _lib._sel_elementWithName_URI_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_stringValue_( + HidListenerBindingsSwift _lib, NSString? name, NSString? string) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDocument1, + _lib._sel_elementWithName_stringValue_1, + name?._id ?? ffi.nullptr, + string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_children_attributes_( + HidListenerBindingsSwift _lib, + NSString? name, + NSArray? children, + NSArray? attributes) { + final _ret = _lib._objc_msgSend_1002( + _lib._class_NSXMLDocument1, + _lib._sel_elementWithName_children_attributes_1, + name?._id ?? ffi.nullptr, + children?._id ?? ffi.nullptr, + attributes?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject attributeWithName_stringValue_( + HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDocument1, + _lib._sel_attributeWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject attributeWithName_URI_stringValue_( + HidListenerBindingsSwift _lib, + NSString? name, + NSString? URI, + NSString? stringValue) { + final _ret = _lib._objc_msgSend_26( + _lib._class_NSXMLDocument1, + _lib._sel_attributeWithName_URI_stringValue_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject namespaceWithName_stringValue_( + HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDocument1, + _lib._sel_namespaceWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject processingInstructionWithName_stringValue_( + HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDocument1, + _lib._sel_processingInstructionWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject commentWithStringValue_( + HidListenerBindingsSwift _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, + _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject textWithStringValue_( + HidListenerBindingsSwift _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, + _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject DTDNodeWithXMLString_( + HidListenerBindingsSwift _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, + _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSString localNameForName_( + HidListenerBindingsSwift _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDocument1, + _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString prefixForName_( + HidListenerBindingsSwift _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDocument1, + _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSXMLNode predefinedNamespaceForPrefix_( + HidListenerBindingsSwift _lib, NSString? name) { + final _ret = _lib._objc_msgSend_1016(_lib._class_NSXMLDocument1, + _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + static NSXMLDocument new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLDocument1, _lib._sel_new1); + return NSXMLDocument._(_ret, _lib, retain: false, release: true); + } + + static NSXMLDocument alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLDocument1, _lib._sel_alloc1); + return NSXMLDocument._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSXMLDocument1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSXMLDocument1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSXMLDocument1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSXMLDocument1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSXMLDocument1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSXMLDocument1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSXMLDocument1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSXMLDocument1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSXMLDocument1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSXMLDocumentContentKind { + static const int NSXMLDocumentXMLKind = 0; + static const int NSXMLDocumentXHTMLKind = 1; + static const int NSXMLDocumentHTMLKind = 2; + static const int NSXMLDocumentTextKind = 3; +} + +class NSXMLDTD extends NSXMLNode { + NSXMLDTD._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSXMLDTD] that points to the same underlying object as [other]. + static NSXMLDTD castFrom(T other) { + return NSXMLDTD._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSXMLDTD] that wraps the given raw object pointer. + static NSXMLDTD castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSXMLDTD._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSXMLDTD]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLDTD1); + } + + @override + NSXMLDTD init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSXMLDTD._(_ret, _lib, retain: true, release: true); + } + + @override + NSXMLDTD initWithKind_options_(int kind, int options) { + final _ret = _lib._objc_msgSend_1000( + _id, _lib._sel_initWithKind_options_1, kind, options); + return NSXMLDTD._(_ret, _lib, retain: true, release: true); + } + + NSXMLDTD initWithContentsOfURL_options_error_( + NSURL? url, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1006( + _id, + _lib._sel_initWithContentsOfURL_options_error_1, + url?._id ?? ffi.nullptr, + mask, + error); + return NSXMLDTD._(_ret, _lib, retain: true, release: true); + } + + NSXMLDTD initWithData_options_error_( + NSData? data, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1007( + _id, + _lib._sel_initWithData_options_error_1, + data?._id ?? ffi.nullptr, + mask, + error); + return NSXMLDTD._(_ret, _lib, retain: true, release: true); + } + + NSString? get publicID { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_publicID1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set publicID(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setPublicID_1, value?._id ?? ffi.nullptr); + } + + NSString? get systemID { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_systemID1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set systemID(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setSystemID_1, value?._id ?? ffi.nullptr); + } + + void insertChild_atIndex_(NSXMLNode? child, int index) { + return _lib._objc_msgSend_1010( + _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); + } + + void insertChildren_atIndex_(NSArray? children, int index) { + return _lib._objc_msgSend_1011(_id, _lib._sel_insertChildren_atIndex_1, + children?._id ?? ffi.nullptr, index); + } + + void removeChildAtIndex_(int index) { + return _lib._objc_msgSend_439(_id, _lib._sel_removeChildAtIndex_1, index); + } + + void setChildren_(NSArray? children) { + return _lib._objc_msgSend_441( + _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); + } + + void addChild_(NSXMLNode? child) { + return _lib._objc_msgSend_1012( + _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); + } + + void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { + return _lib._objc_msgSend_1013( + _id, + _lib._sel_replaceChildAtIndex_withNode_1, + index, + node?._id ?? ffi.nullptr); + } + + NSXMLDTDNode entityDeclarationForName_(NSString? name) { + final _ret = _lib._objc_msgSend_1017( + _id, _lib._sel_entityDeclarationForName_1, name?._id ?? ffi.nullptr); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + } + + NSXMLDTDNode notationDeclarationForName_(NSString? name) { + final _ret = _lib._objc_msgSend_1017( + _id, _lib._sel_notationDeclarationForName_1, name?._id ?? ffi.nullptr); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + } + + NSXMLDTDNode elementDeclarationForName_(NSString? name) { + final _ret = _lib._objc_msgSend_1017( + _id, _lib._sel_elementDeclarationForName_1, name?._id ?? ffi.nullptr); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + } + + NSXMLDTDNode attributeDeclarationForName_elementName_( + NSString? name, NSString? elementName) { + final _ret = _lib._objc_msgSend_1018( + _id, + _lib._sel_attributeDeclarationForName_elementName_1, + name?._id ?? ffi.nullptr, + elementName?._id ?? ffi.nullptr); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + } + + static NSXMLDTDNode predefinedEntityDeclarationForName_( + HidListenerBindingsSwift _lib, NSString? name) { + final _ret = _lib._objc_msgSend_1017( + _lib._class_NSXMLDTD1, + _lib._sel_predefinedEntityDeclarationForName_1, + name?._id ?? ffi.nullptr); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + } + + static NSObject document(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLDTD1, _lib._sel_document1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject documentWithRootElement_( + HidListenerBindingsSwift _lib, NSXMLElement? element) { + final _ret = _lib._objc_msgSend_1001(_lib._class_NSXMLDTD1, + _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_( + HidListenerBindingsSwift _lib, NSString? name) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, + _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_URI_( + HidListenerBindingsSwift _lib, NSString? name, NSString? URI) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTD1, + _lib._sel_elementWithName_URI_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_stringValue_( + HidListenerBindingsSwift _lib, NSString? name, NSString? string) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTD1, + _lib._sel_elementWithName_stringValue_1, + name?._id ?? ffi.nullptr, + string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_children_attributes_( + HidListenerBindingsSwift _lib, + NSString? name, + NSArray? children, + NSArray? attributes) { + final _ret = _lib._objc_msgSend_1002( + _lib._class_NSXMLDTD1, + _lib._sel_elementWithName_children_attributes_1, + name?._id ?? ffi.nullptr, + children?._id ?? ffi.nullptr, + attributes?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject attributeWithName_stringValue_( + HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTD1, + _lib._sel_attributeWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject attributeWithName_URI_stringValue_( + HidListenerBindingsSwift _lib, + NSString? name, + NSString? URI, + NSString? stringValue) { + final _ret = _lib._objc_msgSend_26( + _lib._class_NSXMLDTD1, + _lib._sel_attributeWithName_URI_stringValue_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject namespaceWithName_stringValue_( + HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTD1, + _lib._sel_namespaceWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject processingInstructionWithName_stringValue_( + HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTD1, + _lib._sel_processingInstructionWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject commentWithStringValue_( + HidListenerBindingsSwift _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, + _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject textWithStringValue_( + HidListenerBindingsSwift _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, + _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject DTDNodeWithXMLString_( + HidListenerBindingsSwift _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, + _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSString localNameForName_( + HidListenerBindingsSwift _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTD1, + _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString prefixForName_( + HidListenerBindingsSwift _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTD1, + _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSXMLNode predefinedNamespaceForPrefix_( + HidListenerBindingsSwift _lib, NSString? name) { + final _ret = _lib._objc_msgSend_1016(_lib._class_NSXMLDTD1, + _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + static NSXMLDTD new1(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLDTD1, _lib._sel_new1); + return NSXMLDTD._(_ret, _lib, retain: false, release: true); + } + + static NSXMLDTD alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLDTD1, _lib._sel_alloc1); + return NSXMLDTD._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSXMLDTD1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSXMLDTD1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSXMLDTD1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSXMLDTD1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSXMLDTD1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSXMLDTD1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSXMLDTD1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSXMLDTD1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSXMLDTD1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSXMLDTDNode extends NSXMLNode { + NSXMLDTDNode._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSXMLDTDNode] that points to the same underlying object as [other]. + static NSXMLDTDNode castFrom(T other) { + return NSXMLDTDNode._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSXMLDTDNode] that wraps the given raw object pointer. + static NSXMLDTDNode castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSXMLDTDNode._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSXMLDTDNode]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLDTDNode1); + } + + NSXMLDTDNode initWithXMLString_(NSString? string) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithXMLString_1, string?._id ?? ffi.nullptr); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + } + + @override + NSXMLDTDNode initWithKind_options_(int kind, int options) { + final _ret = _lib._objc_msgSend_1000( + _id, _lib._sel_initWithKind_options_1, kind, options); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + } + + @override + NSXMLDTDNode init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + } + + int get DTDKind { + return _lib._objc_msgSend_1014(_id, _lib._sel_DTDKind1); + } + + set DTDKind(int value) { + _lib._objc_msgSend_1015(_id, _lib._sel_setDTDKind_1, value); + } + + bool get external1 { + return _lib._objc_msgSend_12(_id, _lib._sel_isExternal1); + } + + NSString? get publicID { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_publicID1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set publicID(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setPublicID_1, value?._id ?? ffi.nullptr); + } + + NSString? get systemID { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_systemID1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set systemID(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setSystemID_1, value?._id ?? ffi.nullptr); + } + + NSString? get notationName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_notationName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set notationName(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setNotationName_1, value?._id ?? ffi.nullptr); + } + + static NSObject document(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLDTDNode1, _lib._sel_document1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject documentWithRootElement_( + HidListenerBindingsSwift _lib, NSXMLElement? element) { + final _ret = _lib._objc_msgSend_1001(_lib._class_NSXMLDTDNode1, + _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_( + HidListenerBindingsSwift _lib, NSString? name) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, + _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_URI_( + HidListenerBindingsSwift _lib, NSString? name, NSString? URI) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTDNode1, + _lib._sel_elementWithName_URI_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_stringValue_( + HidListenerBindingsSwift _lib, NSString? name, NSString? string) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTDNode1, + _lib._sel_elementWithName_stringValue_1, + name?._id ?? ffi.nullptr, + string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject elementWithName_children_attributes_( + HidListenerBindingsSwift _lib, + NSString? name, + NSArray? children, + NSArray? attributes) { + final _ret = _lib._objc_msgSend_1002( + _lib._class_NSXMLDTDNode1, + _lib._sel_elementWithName_children_attributes_1, + name?._id ?? ffi.nullptr, + children?._id ?? ffi.nullptr, + attributes?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject attributeWithName_stringValue_( + HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTDNode1, + _lib._sel_attributeWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject attributeWithName_URI_stringValue_( + HidListenerBindingsSwift _lib, + NSString? name, + NSString? URI, + NSString? stringValue) { + final _ret = _lib._objc_msgSend_26( + _lib._class_NSXMLDTDNode1, + _lib._sel_attributeWithName_URI_stringValue_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject namespaceWithName_stringValue_( + HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTDNode1, + _lib._sel_namespaceWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject processingInstructionWithName_stringValue_( + HidListenerBindingsSwift _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTDNode1, + _lib._sel_processingInstructionWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject commentWithStringValue_( + HidListenerBindingsSwift _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, + _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject textWithStringValue_( + HidListenerBindingsSwift _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, + _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject DTDNodeWithXMLString_( + HidListenerBindingsSwift _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, + _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSString localNameForName_( + HidListenerBindingsSwift _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTDNode1, + _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString prefixForName_( + HidListenerBindingsSwift _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTDNode1, + _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSXMLNode predefinedNamespaceForPrefix_( + HidListenerBindingsSwift _lib, NSString? name) { + final _ret = _lib._objc_msgSend_1016(_lib._class_NSXMLDTDNode1, + _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + static NSXMLDTDNode new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLDTDNode1, _lib._sel_new1); + return NSXMLDTDNode._(_ret, _lib, retain: false, release: true); + } + + static NSXMLDTDNode alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLDTDNode1, _lib._sel_alloc1); + return NSXMLDTDNode._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSXMLDTDNode1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSXMLDTDNode1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSXMLDTDNode1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSXMLDTDNode1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSXMLDTDNode1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSXMLDTDNode1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSXMLDTDNode1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSXMLDTDNode1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSXMLDTDNode1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSXMLDTDNodeKind { + static const int NSXMLEntityGeneralKind = 1; + static const int NSXMLEntityParsedKind = 2; + static const int NSXMLEntityUnparsedKind = 3; + static const int NSXMLEntityParameterKind = 4; + static const int NSXMLEntityPredefined = 5; + static const int NSXMLAttributeCDATAKind = 6; + static const int NSXMLAttributeIDKind = 7; + static const int NSXMLAttributeIDRefKind = 8; + static const int NSXMLAttributeIDRefsKind = 9; + static const int NSXMLAttributeEntityKind = 10; + static const int NSXMLAttributeEntitiesKind = 11; + static const int NSXMLAttributeNMTokenKind = 12; + static const int NSXMLAttributeNMTokensKind = 13; + static const int NSXMLAttributeEnumerationKind = 14; + static const int NSXMLAttributeNotationKind = 15; + static const int NSXMLElementDeclarationUndefinedKind = 16; + static const int NSXMLElementDeclarationEmptyKind = 17; + static const int NSXMLElementDeclarationAnyKind = 18; + static const int NSXMLElementDeclarationMixedKind = 19; + static const int NSXMLElementDeclarationElementKind = 20; +} + +class HidListenerBindings extends NSObject { + HidListenerBindings._( + ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [HidListenerBindings] that points to the same underlying object as [other]. + static HidListenerBindings castFrom(T other) { + return HidListenerBindings._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [HidListenerBindings] that wraps the given raw object pointer. + static HidListenerBindings castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return HidListenerBindings._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [HidListenerBindings]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_HidListenerBindings1); + } + + static void InitializeDartAPIWithData_( + HidListenerBindingsSwift _lib, ffi.Pointer data) { + return _lib._objc_msgSend_47(_lib._class_HidListenerBindings1, + _lib._sel_InitializeDartAPIWithData_1, data); + } + + static bool InitializeListeners(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_HidListenerBindings1, _lib._sel_InitializeListeners1); + } + + static bool SetKeyboardListenerWithPort_( + HidListenerBindingsSwift _lib, int port) { + return _lib._objc_msgSend_1034(_lib._class_HidListenerBindings1, + _lib._sel_SetKeyboardListenerWithPort_1, port); + } + + static bool SetMouseListenerWithPort_( + HidListenerBindingsSwift _lib, int port) { + return _lib._objc_msgSend_1034(_lib._class_HidListenerBindings1, + _lib._sel_SetMouseListenerWithPort_1, port); + } + + @override + HidListenerBindings init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return HidListenerBindings._(_ret, _lib, retain: true, release: true); + } + + static HidListenerBindings new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_HidListenerBindings1, _lib._sel_new1); + return HidListenerBindings._(_ret, _lib, retain: false, release: true); + } + + static HidListenerBindings alloc(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_HidListenerBindings1, _lib._sel_alloc1); + return HidListenerBindings._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_HidListenerBindings1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_HidListenerBindings1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_HidListenerBindings1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_HidListenerBindings1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_HidListenerBindings1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_HidListenerBindings1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_HidListenerBindings1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_HidListenerBindings1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_HidListenerBindings1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class MacOsKeyboardEvent extends NSObject { + MacOsKeyboardEvent._(ffi.Pointer id, HidListenerBindingsSwift lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [MacOsKeyboardEvent] that points to the same underlying object as [other]. + static MacOsKeyboardEvent castFrom(T other) { + return MacOsKeyboardEvent._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [MacOsKeyboardEvent] that wraps the given raw object pointer. + static MacOsKeyboardEvent castFromPointer( + HidListenerBindingsSwift lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return MacOsKeyboardEvent._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [MacOsKeyboardEvent]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_MacOsKeyboardEvent1); + } + + int get eventType { + return _lib._objc_msgSend_1035(_id, _lib._sel_eventType1); + } + + set eventType(int value) { + _lib._objc_msgSend_1036(_id, _lib._sel_setEventType_1, value); + } + + NSString? get characters { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_characters1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set characters(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setCharacters_1, value?._id ?? ffi.nullptr); + } + + NSString? get charactersIgnoringModifiers { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_charactersIgnoringModifiers1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set charactersIgnoringModifiers(NSString? value) { + _lib._objc_msgSend_509(_id, _lib._sel_setCharactersIgnoringModifiers_1, + value?._id ?? ffi.nullptr); + } + + int get keyCode { + return _lib._objc_msgSend_78(_id, _lib._sel_keyCode1); + } + + set keyCode(int value) { + _lib._objc_msgSend_590(_id, _lib._sel_setKeyCode_1, value); + } + + int get modifiers { + return _lib._objc_msgSend_78(_id, _lib._sel_modifiers1); + } + + set modifiers(int value) { + _lib._objc_msgSend_590(_id, _lib._sel_setModifiers_1, value); + } + + bool get isMedia { + return _lib._objc_msgSend_12(_id, _lib._sel_isMedia1); + } + + set isMedia(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setIsMedia_1, value); + } + + int get mediaEventType { + return _lib._objc_msgSend_1037(_id, _lib._sel_mediaEventType1); + } + + set mediaEventType(int value) { + _lib._objc_msgSend_1038(_id, _lib._sel_setMediaEventType_1, value); + } + + @override + MacOsKeyboardEvent init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return MacOsKeyboardEvent._(_ret, _lib, retain: true, release: true); + } + + static MacOsKeyboardEvent new1(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_MacOsKeyboardEvent1, _lib._sel_new1); + return MacOsKeyboardEvent._(_ret, _lib, retain: false, release: true); + } + + static MacOsKeyboardEvent alloc(HidListenerBindingsSwift _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_MacOsKeyboardEvent1, _lib._sel_alloc1); + return MacOsKeyboardEvent._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + HidListenerBindingsSwift _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_MacOsKeyboardEvent1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + HidListenerBindingsSwift _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_MacOsKeyboardEvent1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly( + HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12(_lib._class_MacOsKeyboardEvent1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(HidListenerBindingsSwift _lib) { + return _lib._objc_msgSend_12( + _lib._class_MacOsKeyboardEvent1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_MacOsKeyboardEvent1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + HidListenerBindingsSwift _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_MacOsKeyboardEvent1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + HidListenerBindingsSwift _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_MacOsKeyboardEvent1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_MacOsKeyboardEvent1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(HidListenerBindingsSwift _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_MacOsKeyboardEvent1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class MacOsKeyboardEventType { + static const int MacOsKeyboardEventTypeKeyDown = 0; + static const int MacOsKeyboardEventTypeKeyUp = 1; +} + +abstract class MacOsMediaEventType { + static const int MacOsMediaEventTypePlay = 0; + static const int MacOsMediaEventTypePrevious = 1; + static const int MacOsMediaEventTypeNext = 2; + static const int MacOsMediaEventTypeRewind = 3; + static const int MacOsMediaEventTypeFast = 4; + static const int MacOsMediaEventTypeMute = 5; + static const int MacOsMediaEventTypeBrightnessUp = 6; + static const int MacOsMediaEventTypeBrightnessDown = 7; + static const int MacOsMediaEventTypeVolumeUp = 8; + static const int MacOsMediaEventTypeVolumeDown = 9; +} diff --git a/lib/src/macos/hid_listener_macos.dart b/lib/src/macos/hid_listener_macos.dart index 1fff20e..e168828 100644 --- a/lib/src/macos/hid_listener_macos.dart +++ b/lib/src/macos/hid_listener_macos.dart @@ -1,145 +1,145 @@ -import 'dart:ffi' as ffi; -import 'dart:isolate'; - -import 'package:flutter/services.dart'; -import 'package:hid_listener/src/hid_listener.dart'; -import 'package:hid_listener/src/shared/hid_listener_shared.dart' as shared; - -import 'hid_listener_bindings_macos.dart' as bindings; - -class MacOsHidListenerBackend extends HidListenerBackend { - MacOsHidListenerBackend(ffi.DynamicLibrary library) - : _bindings = bindings.HidListenerBindingsSwift(library) { - bindings.HidListenerBindings.InitializeDartAPIWithData_( - _bindings, ffi.NativeApi.initializeApiDLData); - - final inverse = - kMacOsToPhysicalKey.map((key, value) => MapEntry(value, key)); - - _muteKeyCode = inverse[PhysicalKeyboardKey.audioVolumeMute]!; - _volumeUpKeyCode = inverse[PhysicalKeyboardKey.audioVolumeUp]!; - _volumeDownKeyCode = inverse[PhysicalKeyboardKey.audioVolumeDown]!; - } - - @override - bool initialize() { - return bindings.HidListenerBindings.InitializeListeners(_bindings); - } - - @override - bool registerKeyboard() { - final requests = ReceivePort()..listen(_keyboardProc); - final int nativePort = requests.sendPort.nativePort; - - return bindings.HidListenerBindings.SetKeyboardListenerWithPort_( - _bindings, nativePort); - } - - @override - bool registerMouse() { - final requests = ReceivePort()..listen(_mouseProc); - final int nativePort = requests.sendPort.nativePort; - - return bindings.HidListenerBindings.SetMouseListenerWithPort_( - _bindings, nativePort); - } - - void _keyboardProc(dynamic e) { - final eventAddr = - ffi.Pointer>.fromAddress(e); - final event = - bindings.MacOsKeyboardEvent.castFromPointer(_bindings, eventAddr.value); - - final RawKeyEventData eventData; - if (!event.isMedia) { - eventData = _nonMediaKeyboardProc(event); - } else { - final data = _mediaKeyboardProc(event); - if (data == null) return; - eventData = data; - } - - final RawKeyEvent rawKeyEvent; - if (event.eventType == - bindings.MacOsKeyboardEventType.MacOsKeyboardEventTypeKeyDown) { - rawKeyEvent = RawKeyDownEvent(data: eventData); - } else { - rawKeyEvent = RawKeyUpEvent(data: eventData); - } - - for (final listener in keyboardListeners.values) { - listener(rawKeyEvent); - } - } - - RawKeyEventData _nonMediaKeyboardProc(bindings.MacOsKeyboardEvent event) { - return RawKeyEventDataMacOs( - characters: event.characters.toString(), - charactersIgnoringModifiers: - event.charactersIgnoringModifiers.toString(), - keyCode: event.keyCode, - modifiers: event.modifiers); - } - - RawKeyEventData? _mediaKeyboardProc(bindings.MacOsKeyboardEvent event) { - LogicalKeyboardKey? specifiedLogicalKey; - - switch (event.mediaEventType) { - case bindings.MacOsMediaEventType.MacOsMediaEventTypePlay: - specifiedLogicalKey = LogicalKeyboardKey.mediaPlayPause; - case bindings.MacOsMediaEventType.MacOsMediaEventTypePrevious: - specifiedLogicalKey = LogicalKeyboardKey.mediaTrackPrevious; - case bindings.MacOsMediaEventType.MacOsMediaEventTypeNext: - specifiedLogicalKey = LogicalKeyboardKey.mediaTrackNext; - case bindings.MacOsMediaEventType.MacOsMediaEventTypeRewind: - specifiedLogicalKey = LogicalKeyboardKey.mediaRewind; - case bindings.MacOsMediaEventType.MacOsMediaEventTypeFast: - specifiedLogicalKey = LogicalKeyboardKey.mediaFastForward; - case bindings.MacOsMediaEventType.MacOsMediaEventTypeBrightnessUp: - specifiedLogicalKey = LogicalKeyboardKey.brightnessUp; - case bindings.MacOsMediaEventType.MacOsMediaEventTypeBrightnessDown: - specifiedLogicalKey = LogicalKeyboardKey.brightnessDown; - } - - if (specifiedLogicalKey != null) { - return RawKeyEventDataMacOs( - characters: " ", - charactersIgnoringModifiers: " ", - keyCode: 0, - modifiers: 0, - specifiedLogicalKey: specifiedLogicalKey.keyId); - } - - int? keyCode; - switch (event.mediaEventType) { - case bindings.MacOsMediaEventType.MacOsMediaEventTypeMute: - keyCode = _muteKeyCode; - case bindings.MacOsMediaEventType.MacOsMediaEventTypeVolumeUp: - keyCode = _volumeUpKeyCode; - case bindings.MacOsMediaEventType.MacOsMediaEventTypeVolumeDown: - keyCode = _volumeDownKeyCode; - } - - if (keyCode == null) return null; - return RawKeyEventDataMacOs( - characters: " ", - charactersIgnoringModifiers: " ", - keyCode: keyCode, - modifiers: 0); - } - - void _mouseProc(dynamic e) { - final event = shared.mouseProc(e); - if (event == null) return; - - for (final listener in mouseListeners.values) { - listener(event); - } - } - - final bindings.HidListenerBindingsSwift _bindings; - - late final int _muteKeyCode; - late final int _volumeUpKeyCode; - late final int _volumeDownKeyCode; -} +import 'dart:ffi' as ffi; +import 'dart:isolate'; + +import 'package:flutter/services.dart'; +import 'package:hid_listener/src/hid_listener.dart'; +import 'package:hid_listener/src/shared/hid_listener_shared.dart' as shared; + +import 'hid_listener_bindings_macos.dart' as bindings; + +class MacOsHidListenerBackend extends HidListenerBackend { + MacOsHidListenerBackend(ffi.DynamicLibrary library) + : _bindings = bindings.HidListenerBindingsSwift(library) { + bindings.HidListenerBindings.InitializeDartAPIWithData_( + _bindings, ffi.NativeApi.initializeApiDLData); + + final inverse = + kMacOsToPhysicalKey.map((key, value) => MapEntry(value, key)); + + _muteKeyCode = inverse[PhysicalKeyboardKey.audioVolumeMute]!; + _volumeUpKeyCode = inverse[PhysicalKeyboardKey.audioVolumeUp]!; + _volumeDownKeyCode = inverse[PhysicalKeyboardKey.audioVolumeDown]!; + } + + @override + bool initialize() { + return bindings.HidListenerBindings.InitializeListeners(_bindings); + } + + @override + bool registerKeyboard() { + final requests = ReceivePort()..listen(_keyboardProc); + final int nativePort = requests.sendPort.nativePort; + + return bindings.HidListenerBindings.SetKeyboardListenerWithPort_( + _bindings, nativePort); + } + + @override + bool registerMouse() { + final requests = ReceivePort()..listen(_mouseProc); + final int nativePort = requests.sendPort.nativePort; + + return bindings.HidListenerBindings.SetMouseListenerWithPort_( + _bindings, nativePort); + } + + void _keyboardProc(dynamic e) { + final eventAddr = + ffi.Pointer>.fromAddress(e); + final event = + bindings.MacOsKeyboardEvent.castFromPointer(_bindings, eventAddr.value); + + final RawKeyEventData eventData; + if (!event.isMedia) { + eventData = _nonMediaKeyboardProc(event); + } else { + final data = _mediaKeyboardProc(event); + if (data == null) return; + eventData = data; + } + + final RawKeyEvent rawKeyEvent; + if (event.eventType == + bindings.MacOsKeyboardEventType.MacOsKeyboardEventTypeKeyDown) { + rawKeyEvent = RawKeyDownEvent(data: eventData); + } else { + rawKeyEvent = RawKeyUpEvent(data: eventData); + } + + for (final listener in keyboardListeners.values) { + listener(rawKeyEvent); + } + } + + RawKeyEventData _nonMediaKeyboardProc(bindings.MacOsKeyboardEvent event) { + return RawKeyEventDataMacOs( + characters: event.characters.toString(), + charactersIgnoringModifiers: + event.charactersIgnoringModifiers.toString(), + keyCode: event.keyCode, + modifiers: event.modifiers); + } + + RawKeyEventData? _mediaKeyboardProc(bindings.MacOsKeyboardEvent event) { + LogicalKeyboardKey? specifiedLogicalKey; + + switch (event.mediaEventType) { + case bindings.MacOsMediaEventType.MacOsMediaEventTypePlay: + specifiedLogicalKey = LogicalKeyboardKey.mediaPlayPause; + case bindings.MacOsMediaEventType.MacOsMediaEventTypePrevious: + specifiedLogicalKey = LogicalKeyboardKey.mediaTrackPrevious; + case bindings.MacOsMediaEventType.MacOsMediaEventTypeNext: + specifiedLogicalKey = LogicalKeyboardKey.mediaTrackNext; + case bindings.MacOsMediaEventType.MacOsMediaEventTypeRewind: + specifiedLogicalKey = LogicalKeyboardKey.mediaRewind; + case bindings.MacOsMediaEventType.MacOsMediaEventTypeFast: + specifiedLogicalKey = LogicalKeyboardKey.mediaFastForward; + case bindings.MacOsMediaEventType.MacOsMediaEventTypeBrightnessUp: + specifiedLogicalKey = LogicalKeyboardKey.brightnessUp; + case bindings.MacOsMediaEventType.MacOsMediaEventTypeBrightnessDown: + specifiedLogicalKey = LogicalKeyboardKey.brightnessDown; + } + + if (specifiedLogicalKey != null) { + return RawKeyEventDataMacOs( + characters: " ", + charactersIgnoringModifiers: " ", + keyCode: 0, + modifiers: 0, + specifiedLogicalKey: specifiedLogicalKey.keyId); + } + + int? keyCode; + switch (event.mediaEventType) { + case bindings.MacOsMediaEventType.MacOsMediaEventTypeMute: + keyCode = _muteKeyCode; + case bindings.MacOsMediaEventType.MacOsMediaEventTypeVolumeUp: + keyCode = _volumeUpKeyCode; + case bindings.MacOsMediaEventType.MacOsMediaEventTypeVolumeDown: + keyCode = _volumeDownKeyCode; + } + + if (keyCode == null) return null; + return RawKeyEventDataMacOs( + characters: " ", + charactersIgnoringModifiers: " ", + keyCode: keyCode, + modifiers: 0); + } + + void _mouseProc(dynamic e) { + final event = shared.mouseProc(e); + if (event == null) return; + + for (final listener in mouseListeners.values) { + listener(event); + } + } + + final bindings.HidListenerBindingsSwift _bindings; + + late final int _muteKeyCode; + late final int _volumeUpKeyCode; + late final int _volumeDownKeyCode; +} diff --git a/lib/src/shared/hid_listener_bindings_shared.dart b/lib/src/shared/hid_listener_bindings_shared.dart index 6318ab2..313c246 100644 --- a/lib/src/shared/hid_listener_bindings_shared.dart +++ b/lib/src/shared/hid_listener_bindings_shared.dart @@ -12,11 +12,13 @@ import 'dart:ffi' as ffi; abstract class MouseEventType { static const int LeftButtonDown = 0; static const int LeftButtonUp = 1; - static const int RightButtonDown = 2; - static const int RightButtonUp = 3; - static const int MouseMove = 4; - static const int MouseWheel = 5; - static const int MouseHorizontalWheel = 6; + static const int MiddleButtonDown = 2; + static const int MiddleButtonUp = 3; + static const int RightButtonDown = 4; + static const int RightButtonUp = 5; + static const int MouseMove = 6; + static const int MouseWheel = 7; + static const int MouseHorizontalWheel = 8; } final class MouseEvent extends ffi.Struct { diff --git a/lib/src/shared/hid_listener_shared.dart b/lib/src/shared/hid_listener_shared.dart index 9a8576a..cce7ff0 100644 --- a/lib/src/shared/hid_listener_shared.dart +++ b/lib/src/shared/hid_listener_shared.dart @@ -1,45 +1,57 @@ -import 'dart:ffi' as ffi; -import 'package:hid_listener/hid_listener.dart'; - -import 'hid_listener_bindings_shared.dart' as bindings; - -MouseEvent? mouseProc(dynamic event) { - final eventAddr = ffi.Pointer.fromAddress(event); - - MouseEvent? mouseEvent; - - if (eventAddr.ref.eventType == bindings.MouseEventType.LeftButtonDown) { - mouseEvent = MouseButtonEvent( - x: eventAddr.ref.x, - y: eventAddr.ref.y, - type: MouseButtonEventType.leftButtonDown); - } else if (eventAddr.ref.eventType == bindings.MouseEventType.LeftButtonUp) { - mouseEvent = MouseButtonEvent( - x: eventAddr.ref.x, - y: eventAddr.ref.y, - type: MouseButtonEventType.leftButtonUp); - } else if (eventAddr.ref.eventType == - bindings.MouseEventType.RightButtonDown) { - mouseEvent = MouseButtonEvent( - x: eventAddr.ref.x, - y: eventAddr.ref.y, - type: MouseButtonEventType.rightButtonDown); - } else if (eventAddr.ref.eventType == bindings.MouseEventType.RightButtonUp) { - mouseEvent = MouseButtonEvent( - x: eventAddr.ref.x, - y: eventAddr.ref.y, - type: MouseButtonEventType.rightButtonUp); - } else if (eventAddr.ref.eventType == bindings.MouseEventType.MouseMove) { - mouseEvent = MouseMoveEvent(x: eventAddr.ref.x, y: eventAddr.ref.y); - } else if (eventAddr.ref.eventType == bindings.MouseEventType.MouseWheel || - eventAddr.ref.eventType == bindings.MouseEventType.MouseHorizontalWheel) { - mouseEvent = MouseWheelEvent( - x: eventAddr.ref.x, - y: eventAddr.ref.y, - wheelDelta: eventAddr.ref.wheelDelta, - isHorizontal: eventAddr.ref.eventType == - bindings.MouseEventType.MouseHorizontalWheel); - } - - return mouseEvent; -} +import 'dart:ffi' as ffi; +import 'package:hid_listener/hid_listener.dart'; + +import 'hid_listener_bindings_shared.dart' as bindings; + +MouseEvent? mouseProc(dynamic event) { + final eventAddr = ffi.Pointer.fromAddress(event); + + MouseEvent? mouseEvent; + + if (eventAddr.ref.eventType == bindings.MouseEventType.LeftButtonDown) { + mouseEvent = MouseButtonEvent( + x: eventAddr.ref.x, + y: eventAddr.ref.y, + type: MouseButtonEventType.leftButtonDown); + } else if (eventAddr.ref.eventType == bindings.MouseEventType.LeftButtonUp) { + mouseEvent = MouseButtonEvent( + x: eventAddr.ref.x, + y: eventAddr.ref.y, + type: MouseButtonEventType.leftButtonUp); + } else if (eventAddr.ref.eventType == + bindings.MouseEventType.RightButtonDown) { + mouseEvent = MouseButtonEvent( + x: eventAddr.ref.x, + y: eventAddr.ref.y, + type: MouseButtonEventType.rightButtonDown); + } else if (eventAddr.ref.eventType == bindings.MouseEventType.RightButtonUp) { + mouseEvent = MouseButtonEvent( + x: eventAddr.ref.x, + y: eventAddr.ref.y, + type: MouseButtonEventType.rightButtonUp); + } else if (eventAddr.ref.eventType == + bindings.MouseEventType.MiddleButtonDown) { + mouseEvent = MouseButtonEvent( + x: eventAddr.ref.x, + y: eventAddr.ref.y, + type: MouseButtonEventType.middleButtonDown); + } else if (eventAddr.ref.eventType == + bindings.MouseEventType.MiddleButtonUp) { + mouseEvent = MouseButtonEvent( + x: eventAddr.ref.x, + y: eventAddr.ref.y, + type: MouseButtonEventType.middleButtonUp); + } else if (eventAddr.ref.eventType == bindings.MouseEventType.MouseMove) { + mouseEvent = MouseMoveEvent(x: eventAddr.ref.x, y: eventAddr.ref.y); + } else if (eventAddr.ref.eventType == bindings.MouseEventType.MouseWheel || + eventAddr.ref.eventType == bindings.MouseEventType.MouseHorizontalWheel) { + mouseEvent = MouseWheelEvent( + x: eventAddr.ref.x, + y: eventAddr.ref.y, + wheelDelta: eventAddr.ref.wheelDelta, + isHorizontal: eventAddr.ref.eventType == + bindings.MouseEventType.MouseHorizontalWheel); + } + + return mouseEvent; +} diff --git a/lib/src/windows/hid_listener_windows.dart b/lib/src/windows/hid_listener_windows.dart index 29dec06..52c8f45 100644 --- a/lib/src/windows/hid_listener_windows.dart +++ b/lib/src/windows/hid_listener_windows.dart @@ -1,127 +1,127 @@ -import 'dart:ffi' as ffi; -import 'dart:isolate'; - -import 'package:flutter/services.dart'; -import 'package:hid_listener/src/hid_listener.dart'; -import 'package:hid_listener/src/shared/hid_listener_shared.dart' as shared; - -import 'hid_listener_bindings_windows.dart' as bindings; - -class WindowsHidListenerBackend extends HidListenerBackend { - WindowsHidListenerBackend(ffi.DynamicLibrary library) - : _bindings = bindings.HidListenerBindingsWindows(library) { - _bindings.InitializeDartAPI(ffi.NativeApi.initializeApiDLData); - } - - @override - bool initialize() { - return _bindings.InitializeListeners(); - } - - @override - bool registerKeyboard() { - final requests = ReceivePort()..listen(_keyboardProc); - final int nativePort = requests.sendPort.nativePort; - - return _bindings.SetKeyboardListener(nativePort); - } - - @override - bool registerMouse() { - final requests = ReceivePort()..listen(_mouseProc); - final int nativePort = requests.sendPort.nativePort; - - return _bindings.SetMouseListener(nativePort); - } - - void _keyboardProc(dynamic event) { - final eventAddr = - ffi.Pointer.fromAddress(event); - - final vkCode = eventAddr.ref.vkCode; - final pressed = - eventAddr.ref.eventType == bindings.WindowsKeyboardEventType.WKE_KeyDown - ? 0xffffffff - : 0x0; - - final physicalKey = kWindowsToPhysicalKey[vkCode]; - - if (physicalKey == PhysicalKeyboardKey.altLeft) _lAltPressed = pressed; - if (physicalKey == PhysicalKeyboardKey.altRight) _rAltPressed = pressed; - - if (physicalKey == PhysicalKeyboardKey.controlLeft) { - _lControlPressed = pressed; - } - if (physicalKey == PhysicalKeyboardKey.controlRight) { - _rControlPressed = pressed; - } - - if (physicalKey == PhysicalKeyboardKey.metaLeft) _lMetaPressed = pressed; - if (physicalKey == PhysicalKeyboardKey.metaRight) _rMetaPressed = pressed; - - if (physicalKey == PhysicalKeyboardKey.shiftLeft) _lShiftPressed = pressed; - if (physicalKey == PhysicalKeyboardKey.shiftRight) _rShiftPressed = pressed; - - final altModifiers = - (RawKeyEventDataWindows.modifierAlt & (_lAltPressed | _rAltPressed)) | - (RawKeyEventDataWindows.modifierLeftAlt & _lAltPressed) | - (RawKeyEventDataWindows.modifierRightAlt & _rAltPressed); - - final controlModifiers = (RawKeyEventDataWindows.modifierControl & - (_lControlPressed | _rControlPressed)) | - (RawKeyEventDataWindows.modifierLeftControl & _lControlPressed) | - (RawKeyEventDataWindows.modifierRightControl & _rControlPressed); - - final metaModifiers = - (RawKeyEventDataWindows.modifierLeftMeta & _lMetaPressed) | - (RawKeyEventDataWindows.modifierRightMeta & _rMetaPressed); - - final shiftModifiers = (RawKeyEventDataWindows.modifierShift & - (_lShiftPressed | _rShiftPressed)) | - (RawKeyEventDataWindows.modifierLeftShift & _lShiftPressed) | - (RawKeyEventDataWindows.modifierRightShift); - - final modifiers = - altModifiers | controlModifiers | metaModifiers | shiftModifiers; - - final eventData = RawKeyEventDataWindows( - keyCode: vkCode, - scanCode: eventAddr.ref.scanCode, - modifiers: modifiers); - - final RawKeyEvent rawEvent; - - if (pressed == 0xffffffff) { - rawEvent = RawKeyDownEvent(data: eventData); - } else { - rawEvent = RawKeyUpEvent(data: eventData); - } - - for (final listener in keyboardListeners.values) { - listener(rawEvent); - } - } - - void _mouseProc(dynamic e) { - final event = shared.mouseProc(e); - if (event == null) return; - - for (final listener in mouseListeners.values) { - listener(event); - } - } - - final bindings.HidListenerBindingsWindows _bindings; - - int _lAltPressed = 0; - int _rAltPressed = 0; - - int _lControlPressed = 0; - int _rControlPressed = 0; - - int _lMetaPressed = 0; - int _rMetaPressed = 0; - - int _lShiftPressed = 0; - int _rShiftPressed = 0; -} +import 'dart:ffi' as ffi; +import 'dart:isolate'; + +import 'package:flutter/services.dart'; +import 'package:hid_listener/src/hid_listener.dart'; +import 'package:hid_listener/src/shared/hid_listener_shared.dart' as shared; + +import 'hid_listener_bindings_windows.dart' as bindings; + +class WindowsHidListenerBackend extends HidListenerBackend { + WindowsHidListenerBackend(ffi.DynamicLibrary library) + : _bindings = bindings.HidListenerBindingsWindows(library) { + _bindings.InitializeDartAPI(ffi.NativeApi.initializeApiDLData); + } + + @override + bool initialize() { + return _bindings.InitializeListeners(); + } + + @override + bool registerKeyboard() { + final requests = ReceivePort()..listen(_keyboardProc); + final int nativePort = requests.sendPort.nativePort; + + return _bindings.SetKeyboardListener(nativePort); + } + + @override + bool registerMouse() { + final requests = ReceivePort()..listen(_mouseProc); + final int nativePort = requests.sendPort.nativePort; + + return _bindings.SetMouseListener(nativePort); + } + + void _keyboardProc(dynamic event) { + final eventAddr = + ffi.Pointer.fromAddress(event); + + final vkCode = eventAddr.ref.vkCode; + final pressed = + eventAddr.ref.eventType == bindings.WindowsKeyboardEventType.WKE_KeyDown + ? 0xffffffff + : 0x0; + + final physicalKey = kWindowsToPhysicalKey[vkCode]; + + if (physicalKey == PhysicalKeyboardKey.altLeft) _lAltPressed = pressed; + if (physicalKey == PhysicalKeyboardKey.altRight) _rAltPressed = pressed; + + if (physicalKey == PhysicalKeyboardKey.controlLeft) { + _lControlPressed = pressed; + } + if (physicalKey == PhysicalKeyboardKey.controlRight) { + _rControlPressed = pressed; + } + + if (physicalKey == PhysicalKeyboardKey.metaLeft) _lMetaPressed = pressed; + if (physicalKey == PhysicalKeyboardKey.metaRight) _rMetaPressed = pressed; + + if (physicalKey == PhysicalKeyboardKey.shiftLeft) _lShiftPressed = pressed; + if (physicalKey == PhysicalKeyboardKey.shiftRight) _rShiftPressed = pressed; + + final altModifiers = + (RawKeyEventDataWindows.modifierAlt & (_lAltPressed | _rAltPressed)) | + (RawKeyEventDataWindows.modifierLeftAlt & _lAltPressed) | + (RawKeyEventDataWindows.modifierRightAlt & _rAltPressed); + + final controlModifiers = (RawKeyEventDataWindows.modifierControl & + (_lControlPressed | _rControlPressed)) | + (RawKeyEventDataWindows.modifierLeftControl & _lControlPressed) | + (RawKeyEventDataWindows.modifierRightControl & _rControlPressed); + + final metaModifiers = + (RawKeyEventDataWindows.modifierLeftMeta & _lMetaPressed) | + (RawKeyEventDataWindows.modifierRightMeta & _rMetaPressed); + + final shiftModifiers = (RawKeyEventDataWindows.modifierShift & + (_lShiftPressed | _rShiftPressed)) | + (RawKeyEventDataWindows.modifierLeftShift & _lShiftPressed) | + (RawKeyEventDataWindows.modifierRightShift); + + final modifiers = + altModifiers | controlModifiers | metaModifiers | shiftModifiers; + + final eventData = RawKeyEventDataWindows( + keyCode: vkCode, + scanCode: eventAddr.ref.scanCode, + modifiers: modifiers); + + final RawKeyEvent rawEvent; + + if (pressed == 0xffffffff) { + rawEvent = RawKeyDownEvent(data: eventData); + } else { + rawEvent = RawKeyUpEvent(data: eventData); + } + + for (final listener in keyboardListeners.values) { + listener(rawEvent); + } + } + + void _mouseProc(dynamic e) { + final event = shared.mouseProc(e); + if (event == null) return; + + for (final listener in mouseListeners.values) { + listener(event); + } + } + + final bindings.HidListenerBindingsWindows _bindings; + + int _lAltPressed = 0; + int _rAltPressed = 0; + + int _lControlPressed = 0; + int _rControlPressed = 0; + + int _lMetaPressed = 0; + int _rMetaPressed = 0; + + int _lShiftPressed = 0; + int _rShiftPressed = 0; +} diff --git a/linux/CMakeLists.txt b/linux/CMakeLists.txt index 21ec147..3e2d6bc 100644 --- a/linux/CMakeLists.txt +++ b/linux/CMakeLists.txt @@ -1,60 +1,60 @@ -# 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-level configuration. -set(PROJECT_NAME "hid_listener") -project(${PROJECT_NAME} LANGUAGES CXX) - -# This value is used when generating builds using this plugin, so it must -# not be changed. -set(PLUGIN_NAME "hid_listener_plugin") - -add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/../shared" shared) -# Define the plugin library target. Its name must not be changed (see comment -# on PLUGIN_NAME above). -# -# Any new source files that you add to the plugin should be added here. - -get_filename_component(SHARED_INC ${CMAKE_CURRENT_SOURCE_DIR}/../shared ABSOLUTE) -find_package(X11 REQUIRED) - -add_library(${PLUGIN_NAME} SHARED - "${SHARED_INC}/dart-sdk/include/dart_api_dl.h" - "${SHARED_INC}/dart-sdk/include/dart_api_dl.c" - "hid_listener_plugin.cpp" - "hid_listener_plugin_linux.cpp" -) - -set_target_properties(${PLUGIN_NAME} PROPERTIES OUTPUT_NAME "hid_listener") - -# Apply a standard set of build settings that are configured in the -# application-level CMakeLists.txt. This can be removed for plugins that want -# full control over build settings. -# apply_standard_settings(${PLUGIN_NAME}) - -# Symbols are hidden by default to reduce the chance of accidental conflicts -# between plugins. This should not be removed; any symbols that should be -# exported should be explicitly exported with the FLUTTER_PLUGIN_EXPORT macro. -set_target_properties(${PLUGIN_NAME} PROPERTIES - CXX_VISIBILITY_PRESET hidden) -target_compile_definitions(${PLUGIN_NAME} PRIVATE FLUTTER_PLUGIN_IMPL) - -# Source include directories and library dependencies. Add any plugin-specific -# dependencies here. -include_directories(${SHARED_INC}) -target_include_directories(${PLUGIN_NAME} INTERFACE - "${CMAKE_CURRENT_SOURCE_DIR}/include" - ${SHARED_INC} - ${X11_INCLUDE_DIR}) -target_link_libraries(${PLUGIN_NAME} PRIVATE flutter ${X11_LIBRARIES} ${X11_Xi_LIB}) -# target_link_libraries(${PLUGIN_NAME} PRIVATE PkgConfig::GTK) - -# List of absolute paths to libraries that should be bundled with the plugin. -# This list could contain prebuilt libraries, or libraries created by an -# external build triggered from this build file. -set(hid_listener_bundled_libraries - "" - PARENT_SCOPE -) +# 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-level configuration. +set(PROJECT_NAME "hid_listener") +project(${PROJECT_NAME} LANGUAGES CXX) + +# This value is used when generating builds using this plugin, so it must +# not be changed. +set(PLUGIN_NAME "hid_listener_plugin") + +add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/../shared" shared) +# Define the plugin library target. Its name must not be changed (see comment +# on PLUGIN_NAME above). +# +# Any new source files that you add to the plugin should be added here. + +get_filename_component(SHARED_INC ${CMAKE_CURRENT_SOURCE_DIR}/../shared ABSOLUTE) +find_package(X11 REQUIRED) + +add_library(${PLUGIN_NAME} SHARED + "${SHARED_INC}/dart-sdk/include/dart_api_dl.h" + "${SHARED_INC}/dart-sdk/include/dart_api_dl.c" + "hid_listener_plugin.cpp" + "hid_listener_plugin_linux.cpp" +) + +set_target_properties(${PLUGIN_NAME} PROPERTIES OUTPUT_NAME "hid_listener") + +# Apply a standard set of build settings that are configured in the +# application-level CMakeLists.txt. This can be removed for plugins that want +# full control over build settings. +# apply_standard_settings(${PLUGIN_NAME}) + +# Symbols are hidden by default to reduce the chance of accidental conflicts +# between plugins. This should not be removed; any symbols that should be +# exported should be explicitly exported with the FLUTTER_PLUGIN_EXPORT macro. +set_target_properties(${PLUGIN_NAME} PROPERTIES + CXX_VISIBILITY_PRESET hidden) +target_compile_definitions(${PLUGIN_NAME} PRIVATE FLUTTER_PLUGIN_IMPL) + +# Source include directories and library dependencies. Add any plugin-specific +# dependencies here. +include_directories(${SHARED_INC}) +target_include_directories(${PLUGIN_NAME} INTERFACE + "${CMAKE_CURRENT_SOURCE_DIR}/include" + ${SHARED_INC} + ${X11_INCLUDE_DIR}) +target_link_libraries(${PLUGIN_NAME} PRIVATE flutter ${X11_LIBRARIES} ${X11_Xi_LIB}) +# target_link_libraries(${PLUGIN_NAME} PRIVATE PkgConfig::GTK) + +# List of absolute paths to libraries that should be bundled with the plugin. +# This list could contain prebuilt libraries, or libraries created by an +# external build triggered from this build file. +set(hid_listener_bundled_libraries + "" + PARENT_SCOPE +) diff --git a/linux/hid_listener_linux.h b/linux/hid_listener_linux.h index 8a0e330..c0c9ca2 100644 --- a/linux/hid_listener_linux.h +++ b/linux/hid_listener_linux.h @@ -1,28 +1,28 @@ -#pragma once -#include -#include - -enum LinuxKeyboardEventType -{ - LKE_KeyUp, - LKE_KeyDown -}; - -struct LinuxKeyboardEvent { - enum LinuxKeyboardEventType eventType; - uint32_t unicodeScalarValues; - uint32_t scanCode; - uint32_t keyCode; -}; - -#if defined(__cplusplus) -extern "C" -{ -#endif - FLUTTER_PLUGIN_EXPORT bool SetKeyboardListener(Dart_Port port); - FLUTTER_PLUGIN_EXPORT bool SetMouseListener(Dart_Port port); - FLUTTER_PLUGIN_EXPORT void InitializeDartAPI(void* data); - FLUTTER_PLUGIN_EXPORT bool InitializeListeners(); -#if defined(__cplusplus) -} +#pragma once +#include +#include + +enum LinuxKeyboardEventType +{ + LKE_KeyUp, + LKE_KeyDown +}; + +struct LinuxKeyboardEvent { + enum LinuxKeyboardEventType eventType; + uint32_t unicodeScalarValues; + uint32_t scanCode; + uint32_t keyCode; +}; + +#if defined(__cplusplus) +extern "C" +{ +#endif + FLUTTER_PLUGIN_EXPORT bool SetKeyboardListener(Dart_Port port); + FLUTTER_PLUGIN_EXPORT bool SetMouseListener(Dart_Port port); + FLUTTER_PLUGIN_EXPORT void InitializeDartAPI(void* data); + FLUTTER_PLUGIN_EXPORT bool InitializeListeners(); +#if defined(__cplusplus) +} #endif \ No newline at end of file diff --git a/linux/hid_listener_plugin.cpp b/linux/hid_listener_plugin.cpp index 42502a5..2bd46f2 100644 --- a/linux/hid_listener_plugin.cpp +++ b/linux/hid_listener_plugin.cpp @@ -1,70 +1,70 @@ -#include "include/hid_listener/hid_listener_plugin.h" - -#include -#include -#include - -#include - -#define HID_LISTENER_PLUGIN(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj), hid_listener_plugin_get_type(), \ - HidListenerPlugin)) - -struct _HidListenerPlugin { - GObject parent_instance; -}; - -G_DEFINE_TYPE(HidListenerPlugin, hid_listener_plugin, g_object_get_type()) - -// Called when a method call is received from Flutter. -static void hid_listener_plugin_handle_method_call( - HidListenerPlugin* self, - FlMethodCall* method_call) { - g_autoptr(FlMethodResponse) response = nullptr; - - const gchar* method = fl_method_call_get_name(method_call); - - if (strcmp(method, "getPlatformVersion") == 0) { - struct utsname uname_data = {}; - uname(&uname_data); - g_autofree gchar *version = g_strdup_printf("Linux %s", uname_data.version); - g_autoptr(FlValue) result = fl_value_new_string(version); - response = FL_METHOD_RESPONSE(fl_method_success_response_new(result)); - } else { - response = FL_METHOD_RESPONSE(fl_method_not_implemented_response_new()); - } - - fl_method_call_respond(method_call, response, nullptr); -} - -static void hid_listener_plugin_dispose(GObject* object) { - G_OBJECT_CLASS(hid_listener_plugin_parent_class)->dispose(object); -} - -static void hid_listener_plugin_class_init(HidListenerPluginClass* klass) { - G_OBJECT_CLASS(klass)->dispose = hid_listener_plugin_dispose; -} - -static void hid_listener_plugin_init(HidListenerPlugin* self) {} - -static void method_call_cb(FlMethodChannel* channel, FlMethodCall* method_call, - gpointer user_data) { - HidListenerPlugin* plugin = HID_LISTENER_PLUGIN(user_data); - hid_listener_plugin_handle_method_call(plugin, method_call); -} - -void hid_listener_plugin_register_with_registrar(FlPluginRegistrar* registrar) { - HidListenerPlugin* plugin = HID_LISTENER_PLUGIN( - g_object_new(hid_listener_plugin_get_type(), nullptr)); - - g_autoptr(FlStandardMethodCodec) codec = fl_standard_method_codec_new(); - g_autoptr(FlMethodChannel) channel = - fl_method_channel_new(fl_plugin_registrar_get_messenger(registrar), - "hid_listener", - FL_METHOD_CODEC(codec)); - fl_method_channel_set_method_call_handler(channel, method_call_cb, - g_object_ref(plugin), - g_object_unref); - - g_object_unref(plugin); -} +#include "include/hid_listener/hid_listener_plugin.h" + +#include +#include +#include + +#include + +#define HID_LISTENER_PLUGIN(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), hid_listener_plugin_get_type(), \ + HidListenerPlugin)) + +struct _HidListenerPlugin { + GObject parent_instance; +}; + +G_DEFINE_TYPE(HidListenerPlugin, hid_listener_plugin, g_object_get_type()) + +// Called when a method call is received from Flutter. +static void hid_listener_plugin_handle_method_call( + HidListenerPlugin* self, + FlMethodCall* method_call) { + g_autoptr(FlMethodResponse) response = nullptr; + + const gchar* method = fl_method_call_get_name(method_call); + + if (strcmp(method, "getPlatformVersion") == 0) { + struct utsname uname_data = {}; + uname(&uname_data); + g_autofree gchar *version = g_strdup_printf("Linux %s", uname_data.version); + g_autoptr(FlValue) result = fl_value_new_string(version); + response = FL_METHOD_RESPONSE(fl_method_success_response_new(result)); + } else { + response = FL_METHOD_RESPONSE(fl_method_not_implemented_response_new()); + } + + fl_method_call_respond(method_call, response, nullptr); +} + +static void hid_listener_plugin_dispose(GObject* object) { + G_OBJECT_CLASS(hid_listener_plugin_parent_class)->dispose(object); +} + +static void hid_listener_plugin_class_init(HidListenerPluginClass* klass) { + G_OBJECT_CLASS(klass)->dispose = hid_listener_plugin_dispose; +} + +static void hid_listener_plugin_init(HidListenerPlugin* self) {} + +static void method_call_cb(FlMethodChannel* channel, FlMethodCall* method_call, + gpointer user_data) { + HidListenerPlugin* plugin = HID_LISTENER_PLUGIN(user_data); + hid_listener_plugin_handle_method_call(plugin, method_call); +} + +void hid_listener_plugin_register_with_registrar(FlPluginRegistrar* registrar) { + HidListenerPlugin* plugin = HID_LISTENER_PLUGIN( + g_object_new(hid_listener_plugin_get_type(), nullptr)); + + g_autoptr(FlStandardMethodCodec) codec = fl_standard_method_codec_new(); + g_autoptr(FlMethodChannel) channel = + fl_method_channel_new(fl_plugin_registrar_get_messenger(registrar), + "hid_listener", + FL_METHOD_CODEC(codec)); + fl_method_channel_set_method_call_handler(channel, method_call_cb, + g_object_ref(plugin), + g_object_unref); + + g_object_unref(plugin); +} diff --git a/linux/hid_listener_plugin_linux.cpp b/linux/hid_listener_plugin_linux.cpp index bab8c6c..7b89341 100644 --- a/linux/hid_listener_plugin_linux.cpp +++ b/linux/hid_listener_plugin_linux.cpp @@ -1,204 +1,210 @@ -#include "include/hid_listener/hid_listener_plugin.h" -#include "hid_listener_linux.h" - -#include -#include - -#include -#include - -#include -#include -#include - -#include -#include - -// Keycodes lie in the inclusive range [8,255] -const int KEYCODE_OFFSET = 8; - -HidListener* HidListener::listenerInstance = nullptr; - -HidListener::HidListener() { - if(listenerInstance) return; - - m_rootInitializer = true; - - Display* display = XOpenDisplay(nullptr); - - int xiOpcode, queryEvent, queryError; - if(!XQueryExtension(display, "XInputExtension", &xiOpcode, &queryEvent, &queryError)) { - throw std::runtime_error("Failed to get XInput extension"); - } - - int major = 2, minor = 0; - if(XIQueryVersion(display, &major, &minor) != Success) { - throw std::runtime_error(std::string("Failed to get XInput 2.0, got ") + std::to_string(major) + "." + std::to_string(minor)); - } - - Window root = DefaultRootWindow(display); - XIEventMask mask; - mask.deviceid = XIAllMasterDevices; - mask.mask_len = XIMaskLen(XI_LASTEVENT); - mask.mask = reinterpret_cast(calloc(mask.mask_len, sizeof(char))); - - XISetMask(mask.mask, XI_RawKeyPress); - XISetMask(mask.mask, XI_RawKeyRelease); - XISetMask(mask.mask, XI_RawButtonPress); - XISetMask(mask.mask, XI_RawButtonRelease); - XISetMask(mask.mask, XI_RawMotion); - XISelectEvents(display, root, &mask, 1); - XSync(display, false); - free(mask.mask); - - int xkbOpcode, xkbEventCode; - if(!XkbQueryExtension(display, &xkbOpcode, &xkbEventCode, &queryError, &major, &minor)) { - throw std::runtime_error("XKB extension unavailable"); - } - - m_xiOpcode = xiOpcode; - m_display = display; - - XInitThreads(); - m_running = true; - m_workerThread = std::thread([&] { - this->WorkerThread(); - }); - listenerInstance = this; -} - -HidListener::~HidListener() { - if(!m_rootInitializer) return; - - XCloseDisplay(m_display); - - m_running = false; - m_workerThread.join(); - listenerInstance = nullptr; -} - -static Dart_Port keyboardListenerPort = 0; -static Dart_Port mouseListenerPort = 0; - -void NotifyDart(Dart_Port port, const void* work) { - if(port == 0) return; - const intptr_t workAddr = reinterpret_cast(work); - - Dart_CObject cObject; - cObject.type = Dart_CObject_kInt64; - cObject.value.as_int64 = workAddr; - - Dart_PostCObject_DL(port, &cObject); -} - -void HidListener::WorkerThread() { - while(m_running) { - XEvent event; - XNextEvent(m_display, &event); - XGenericEventCookie* cookie = &event.xcookie; - - if(XGetEventData(m_display, cookie)) { - if(cookie->type == GenericEvent && cookie->extension == m_xiOpcode) { - if(cookie->evtype == XI_RawKeyPress || cookie->evtype == XI_RawKeyRelease) { - XIRawEvent* rawEvent = (XIRawEvent*)cookie->data; - - GdkDisplay* gdkDisplay = gdk_display_get_default(); - GdkKeymap* gdkKeymap = gdk_keymap_get_for_display(gdkDisplay); - - GdkKeymapKey* keys; - guint* keyVals; - gint nEntries; - if (!gdk_keymap_get_entries_for_keycode(gdkKeymap, rawEvent->detail, &keys, &keyVals, &nEntries)) { - return; - } - - LinuxKeyboardEvent* keyboardEvent = new LinuxKeyboardEvent; - - if (cookie->evtype == XI_RawKeyPress) { - keyboardEvent->eventType = LinuxKeyboardEventType::LKE_KeyDown; - } else { - keyboardEvent->eventType = LinuxKeyboardEventType::LKE_KeyUp; - } - - keyboardEvent->unicodeScalarValues = gdk_keyval_to_unicode(keyVals[0]); - keyboardEvent->keyCode = keyVals[0]; - keyboardEvent->scanCode = keyboardEvent->keyCode - KEYCODE_OFFSET; - - g_free(keys); - g_free(keyVals); - - NotifyDart(keyboardListenerPort, keyboardEvent); - } else if (cookie->evtype == XI_RawButtonPress || cookie->evtype == XI_RawButtonRelease || cookie->evtype == XI_RawMotion) { - XIRawEvent* rawEvent = (XIRawEvent*)cookie->data; - - MouseEvent* mouseEvent = new MouseEvent; - - if (rawEvent->detail == 1) { - if (cookie->evtype == XI_RawButtonPress) { - mouseEvent->eventType = MouseEventType::LeftButtonDown; - } else if (cookie->evtype == XI_RawButtonRelease) { - mouseEvent->eventType = MouseEventType::LeftButtonUp; - } - } else if (rawEvent->detail == 3) { - if (cookie->evtype == XI_RawButtonPress) { - mouseEvent->eventType = MouseEventType::RightButtonDown; - } else if (cookie->evtype == XI_RawButtonRelease) { - mouseEvent->eventType = MouseEventType::RightButtonUp; - } - } else if (rawEvent->detail == 4) { - mouseEvent->eventType = MouseEventType::MouseWheel; - mouseEvent->wheelDelta = -120; - } else if (rawEvent->detail == 5) { - mouseEvent->eventType = MouseEventType::MouseWheel; - mouseEvent->wheelDelta = 120; - } else if (rawEvent->detail == 6) { - mouseEvent->eventType = MouseEventType::MouseHorizontalWheel; - mouseEvent->wheelDelta = -120; - } else if (rawEvent->detail == 7) { - mouseEvent->eventType = MouseEventType::MouseHorizontalWheel; - mouseEvent->wheelDelta = 120; - } - - if (cookie->evtype == XI_RawMotion) { - mouseEvent->eventType = MouseEventType::MouseMove; - } - - - Window _unusedWindow; - int _unusedInt; - int x, y; - XQueryPointer(m_display, DefaultRootWindow(m_display), (Window*)&_unusedWindow, (Window*)&_unusedWindow, &x, &y, &_unusedInt, &_unusedInt, (unsigned int*)&_unusedInt); - - mouseEvent->x = x; - mouseEvent->y = y; - - NotifyDart(mouseListenerPort, mouseEvent); - } - } - } - } -} - -extern "C" { - -FLUTTER_PLUGIN_EXPORT bool SetKeyboardListener(Dart_Port port) { - if(HidListener::Get() == nullptr) return false; - keyboardListenerPort = port; - return true; -} - -FLUTTER_PLUGIN_EXPORT bool SetMouseListener(Dart_Port port) { - if(HidListener::Get() == nullptr) return false; - mouseListenerPort = port; - return true; -} - -FLUTTER_PLUGIN_EXPORT void InitializeDartAPI(void* data) { - Dart_InitializeApiDL(data); -} - -FLUTTER_PLUGIN_EXPORT bool InitializeListeners() { - return true; -} - +#include "include/hid_listener/hid_listener_plugin.h" +#include "hid_listener_linux.h" + +#include +#include + +#include +#include + +#include +#include +#include + +#include +#include + +// Keycodes lie in the inclusive range [8,255] +const int KEYCODE_OFFSET = 8; + +HidListener* HidListener::listenerInstance = nullptr; + +HidListener::HidListener() { + if(listenerInstance) return; + + m_rootInitializer = true; + + Display* display = XOpenDisplay(nullptr); + + int xiOpcode, queryEvent, queryError; + if(!XQueryExtension(display, "XInputExtension", &xiOpcode, &queryEvent, &queryError)) { + throw std::runtime_error("Failed to get XInput extension"); + } + + int major = 2, minor = 0; + if(XIQueryVersion(display, &major, &minor) != Success) { + throw std::runtime_error(std::string("Failed to get XInput 2.0, got ") + std::to_string(major) + "." + std::to_string(minor)); + } + + Window root = DefaultRootWindow(display); + XIEventMask mask; + mask.deviceid = XIAllMasterDevices; + mask.mask_len = XIMaskLen(XI_LASTEVENT); + mask.mask = reinterpret_cast(calloc(mask.mask_len, sizeof(char))); + + XISetMask(mask.mask, XI_RawKeyPress); + XISetMask(mask.mask, XI_RawKeyRelease); + XISetMask(mask.mask, XI_RawButtonPress); + XISetMask(mask.mask, XI_RawButtonRelease); + XISetMask(mask.mask, XI_RawMotion); + XISelectEvents(display, root, &mask, 1); + XSync(display, false); + free(mask.mask); + + int xkbOpcode, xkbEventCode; + if(!XkbQueryExtension(display, &xkbOpcode, &xkbEventCode, &queryError, &major, &minor)) { + throw std::runtime_error("XKB extension unavailable"); + } + + m_xiOpcode = xiOpcode; + m_display = display; + + XInitThreads(); + m_running = true; + m_workerThread = std::thread([&] { + this->WorkerThread(); + }); + listenerInstance = this; +} + +HidListener::~HidListener() { + if(!m_rootInitializer) return; + + XCloseDisplay(m_display); + + m_running = false; + m_workerThread.join(); + listenerInstance = nullptr; +} + +static Dart_Port keyboardListenerPort = 0; +static Dart_Port mouseListenerPort = 0; + +void NotifyDart(Dart_Port port, const void* work) { + if(port == 0) return; + const intptr_t workAddr = reinterpret_cast(work); + + Dart_CObject cObject; + cObject.type = Dart_CObject_kInt64; + cObject.value.as_int64 = workAddr; + + Dart_PostCObject_DL(port, &cObject); +} + +void HidListener::WorkerThread() { + while(m_running) { + XEvent event; + XNextEvent(m_display, &event); + XGenericEventCookie* cookie = &event.xcookie; + + if(XGetEventData(m_display, cookie)) { + if(cookie->type == GenericEvent && cookie->extension == m_xiOpcode) { + if(cookie->evtype == XI_RawKeyPress || cookie->evtype == XI_RawKeyRelease) { + XIRawEvent* rawEvent = (XIRawEvent*)cookie->data; + + GdkDisplay* gdkDisplay = gdk_display_get_default(); + GdkKeymap* gdkKeymap = gdk_keymap_get_for_display(gdkDisplay); + + GdkKeymapKey* keys; + guint* keyVals; + gint nEntries; + if (!gdk_keymap_get_entries_for_keycode(gdkKeymap, rawEvent->detail, &keys, &keyVals, &nEntries)) { + return; + } + + LinuxKeyboardEvent* keyboardEvent = new LinuxKeyboardEvent; + + if (cookie->evtype == XI_RawKeyPress) { + keyboardEvent->eventType = LinuxKeyboardEventType::LKE_KeyDown; + } else { + keyboardEvent->eventType = LinuxKeyboardEventType::LKE_KeyUp; + } + + keyboardEvent->unicodeScalarValues = gdk_keyval_to_unicode(keyVals[0]); + keyboardEvent->keyCode = keyVals[0]; + keyboardEvent->scanCode = keyboardEvent->keyCode - KEYCODE_OFFSET; + + g_free(keys); + g_free(keyVals); + + NotifyDart(keyboardListenerPort, keyboardEvent); + } else if (cookie->evtype == XI_RawButtonPress || cookie->evtype == XI_RawButtonRelease || cookie->evtype == XI_RawMotion) { + XIRawEvent* rawEvent = (XIRawEvent*)cookie->data; + + MouseEvent* mouseEvent = new MouseEvent; + + if (rawEvent->detail == 1) { + if (cookie->evtype == XI_RawButtonPress) { + mouseEvent->eventType = MouseEventType::LeftButtonDown; + } else if (cookie->evtype == XI_RawButtonRelease) { + mouseEvent->eventType = MouseEventType::LeftButtonUp; + } + } else if (rawEvent->detail == 2) { + if (cookie->evtype == XI_RawButtonPress) { + mouseEvent->eventType = MouseEventType::MiddleButtonDown; + } else if (cookie->evtype == XI_RawButtonRelease) { + mouseEvent->eventType = MouseEventType::MiddleButtonUp; + } + } else if (rawEvent->detail == 3) { + if (cookie->evtype == XI_RawButtonPress) { + mouseEvent->eventType = MouseEventType::RightButtonDown; + } else if (cookie->evtype == XI_RawButtonRelease) { + mouseEvent->eventType = MouseEventType::RightButtonUp; + } + } else if (rawEvent->detail == 4) { + mouseEvent->eventType = MouseEventType::MouseWheel; + mouseEvent->wheelDelta = -120; + } else if (rawEvent->detail == 5) { + mouseEvent->eventType = MouseEventType::MouseWheel; + mouseEvent->wheelDelta = 120; + } else if (rawEvent->detail == 6) { + mouseEvent->eventType = MouseEventType::MouseHorizontalWheel; + mouseEvent->wheelDelta = -120; + } else if (rawEvent->detail == 7) { + mouseEvent->eventType = MouseEventType::MouseHorizontalWheel; + mouseEvent->wheelDelta = 120; + } + + if (cookie->evtype == XI_RawMotion) { + mouseEvent->eventType = MouseEventType::MouseMove; + } + + + Window _unusedWindow; + int _unusedInt; + int x, y; + XQueryPointer(m_display, DefaultRootWindow(m_display), (Window*)&_unusedWindow, (Window*)&_unusedWindow, &x, &y, &_unusedInt, &_unusedInt, (unsigned int*)&_unusedInt); + + mouseEvent->x = x; + mouseEvent->y = y; + + NotifyDart(mouseListenerPort, mouseEvent); + } + } + } + } +} + +extern "C" { + +FLUTTER_PLUGIN_EXPORT bool SetKeyboardListener(Dart_Port port) { + if(HidListener::Get() == nullptr) return false; + keyboardListenerPort = port; + return true; +} + +FLUTTER_PLUGIN_EXPORT bool SetMouseListener(Dart_Port port) { + if(HidListener::Get() == nullptr) return false; + mouseListenerPort = port; + return true; +} + +FLUTTER_PLUGIN_EXPORT void InitializeDartAPI(void* data) { + Dart_InitializeApiDL(data); +} + +FLUTTER_PLUGIN_EXPORT bool InitializeListeners() { + return true; +} + } \ No newline at end of file diff --git a/linux/include/hid_listener/hid_listener_plugin.h b/linux/include/hid_listener/hid_listener_plugin.h index 3aeba1c..d76db35 100644 --- a/linux/include/hid_listener/hid_listener_plugin.h +++ b/linux/include/hid_listener/hid_listener_plugin.h @@ -1,50 +1,50 @@ -#ifndef FLUTTER_PLUGIN_HID_LISTENER_PLUGIN_H_ -#define FLUTTER_PLUGIN_HID_LISTENER_PLUGIN_H_ - -#include - -G_BEGIN_DECLS - -#ifdef FLUTTER_PLUGIN_IMPL -#define FLUTTER_PLUGIN_EXPORT __attribute__((visibility("default"))) -#else -#define FLUTTER_PLUGIN_EXPORT -#endif - -typedef struct _HidListenerPlugin HidListenerPlugin; -typedef struct { - GObjectClass parent_class; -} HidListenerPluginClass; - -FLUTTER_PLUGIN_EXPORT GType hid_listener_plugin_get_type(); - -FLUTTER_PLUGIN_EXPORT void hid_listener_plugin_register_with_registrar( - FlPluginRegistrar* registrar); - -G_END_DECLS - - -#if defined(__cplusplus) -#include -#include -class FLUTTER_PLUGIN_EXPORT HidListener { -public: - HidListener(); - ~HidListener(); - - static HidListener *Get() { return HidListener::listenerInstance; } - -private: - void WorkerThread(); - std::thread m_workerThread; - bool m_rootInitializer; - bool m_running; - Display* m_display; - int m_xiOpcode; - - static HidListener* listenerInstance; -}; -#endif - - -#endif // FLUTTER_PLUGIN_HID_LISTENER_PLUGIN_H_ +#ifndef FLUTTER_PLUGIN_HID_LISTENER_PLUGIN_H_ +#define FLUTTER_PLUGIN_HID_LISTENER_PLUGIN_H_ + +#include + +G_BEGIN_DECLS + +#ifdef FLUTTER_PLUGIN_IMPL +#define FLUTTER_PLUGIN_EXPORT __attribute__((visibility("default"))) +#else +#define FLUTTER_PLUGIN_EXPORT +#endif + +typedef struct _HidListenerPlugin HidListenerPlugin; +typedef struct { + GObjectClass parent_class; +} HidListenerPluginClass; + +FLUTTER_PLUGIN_EXPORT GType hid_listener_plugin_get_type(); + +FLUTTER_PLUGIN_EXPORT void hid_listener_plugin_register_with_registrar( + FlPluginRegistrar* registrar); + +G_END_DECLS + + +#if defined(__cplusplus) +#include +#include +class FLUTTER_PLUGIN_EXPORT HidListener { +public: + HidListener(); + ~HidListener(); + + static HidListener *Get() { return HidListener::listenerInstance; } + +private: + void WorkerThread(); + std::thread m_workerThread; + bool m_rootInitializer; + bool m_running; + Display* m_display; + int m_xiOpcode; + + static HidListener* listenerInstance; +}; +#endif + + +#endif // FLUTTER_PLUGIN_HID_LISTENER_PLUGIN_H_ diff --git a/macos/Bindings/HidListener.h b/macos/Bindings/HidListener.h index 5140ec4..7058766 100644 --- a/macos/Bindings/HidListener.h +++ b/macos/Bindings/HidListener.h @@ -1,304 +1,304 @@ -// Generated by Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51) -#ifndef HIDLISTENER_SWIFT_H -#define HIDLISTENER_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 "-Wduplicate-method-match" -#pragma clang diagnostic ignored "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include -#include -#include -#else -#include -#include -#include -#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 __has_attribute(objc_runtime_name) -# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -# define SWIFT_RUNTIME_NAME(X) -#endif -#if __has_attribute(swift_name) -# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -# define SWIFT_COMPILE_NAME(X) -#endif -#if __has_attribute(objc_method_family) -# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -# define SWIFT_METHOD_FAMILY(X) -#endif -#if __has_attribute(noescape) -# define SWIFT_NOESCAPE __attribute__((noescape)) -#else -# define SWIFT_NOESCAPE -#endif -#if __has_attribute(ns_consumed) -# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -# define SWIFT_RELEASES_ARGUMENT -#endif -#if __has_attribute(warn_unused_result) -# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -# define SWIFT_WARN_UNUSED_RESULT -#endif -#if __has_attribute(noreturn) -# define SWIFT_NORETURN __attribute__((noreturn)) -#else -# define SWIFT_NORETURN -#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 defined(__has_attribute) && __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 __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 -#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(__cplusplus) -#if !defined(SWIFT_NOEXCEPT) -# define SWIFT_NOEXCEPT noexcept -#endif -#else -#if !defined(SWIFT_NOEXCEPT) -# define SWIFT_NOEXCEPT -#endif -#endif -#if defined(__cplusplus) -#if !defined(SWIFT_CXX_INT_DEFINED) -#define SWIFT_CXX_INT_DEFINED -namespace swift { -using Int = ptrdiff_t; -using UInt = size_t; -} -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(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" - -#if __has_attribute(external_source_symbol) -# pragma push_macro("any") -# undef any -# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="HidListener",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) -# pragma pop_macro("any") -#endif - -#if defined(__OBJC__) - -SWIFT_CLASS("_TtC11HidListener19HidListenerBindings") -@interface HidListenerBindings : NSObject -+ (void)InitializeDartAPIWithData:(void * _Nonnull)data; -+ (BOOL)InitializeListeners SWIFT_WARN_UNUSED_RESULT; -+ (BOOL)SetKeyboardListenerWithPort:(int64_t)port SWIFT_WARN_UNUSED_RESULT; -+ (BOOL)SetMouseListenerWithPort:(int64_t)port SWIFT_WARN_UNUSED_RESULT; -- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -@end - -enum MacOsKeyboardEventType : NSInteger; -@class NSString; -enum MacOsMediaEventType : NSInteger; - -SWIFT_CLASS("_TtC11HidListener18MacOsKeyboardEvent") -@interface MacOsKeyboardEvent : NSObject -@property (nonatomic) enum MacOsKeyboardEventType eventType; -@property (nonatomic, copy) NSString * _Nonnull characters; -@property (nonatomic, copy) NSString * _Nonnull charactersIgnoringModifiers; -@property (nonatomic) NSInteger keyCode; -@property (nonatomic) NSInteger modifiers; -@property (nonatomic) BOOL isMedia; -@property (nonatomic) enum MacOsMediaEventType mediaEventType; -- (nonnull instancetype)init SWIFT_UNAVAILABLE; -+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); -@end - -typedef SWIFT_ENUM(NSInteger, MacOsKeyboardEventType, closed) { - MacOsKeyboardEventTypeKeyDown = 0, - MacOsKeyboardEventTypeKeyUp = 1, -}; - -typedef SWIFT_ENUM(NSInteger, MacOsMediaEventType, closed) { - MacOsMediaEventTypePlay = 0, - MacOsMediaEventTypePrevious = 1, - MacOsMediaEventTypeNext = 2, - MacOsMediaEventTypeRewind = 3, - MacOsMediaEventTypeFast = 4, - MacOsMediaEventTypeMute = 5, - MacOsMediaEventTypeBrightnessUp = 6, - MacOsMediaEventTypeBrightnessDown = 7, - MacOsMediaEventTypeVolumeUp = 8, - MacOsMediaEventTypeVolumeDown = 9, -}; - -#endif -#if defined(__cplusplus) -#endif -#if __has_attribute(external_source_symbol) -# pragma clang attribute pop -#endif -#pragma clang diagnostic pop -#endif +// Generated by Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51) +#ifndef HIDLISTENER_SWIFT_H +#define HIDLISTENER_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 "-Wduplicate-method-match" +#pragma clang diagnostic ignored "-Wauto-import" +#if defined(__OBJC__) +#include +#endif +#if defined(__cplusplus) +#include +#include +#include +#else +#include +#include +#include +#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 __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#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 defined(__has_attribute) && __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 __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 +#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(__cplusplus) +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT noexcept +#endif +#else +#if !defined(SWIFT_NOEXCEPT) +# define SWIFT_NOEXCEPT +#endif +#endif +#if defined(__cplusplus) +#if !defined(SWIFT_CXX_INT_DEFINED) +#define SWIFT_CXX_INT_DEFINED +namespace swift { +using Int = ptrdiff_t; +using UInt = size_t; +} +#endif +#endif +#if defined(__OBJC__) +#if __has_feature(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" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="HidListener",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if defined(__OBJC__) + +SWIFT_CLASS("_TtC11HidListener19HidListenerBindings") +@interface HidListenerBindings : NSObject ++ (void)InitializeDartAPIWithData:(void * _Nonnull)data; ++ (BOOL)InitializeListeners SWIFT_WARN_UNUSED_RESULT; ++ (BOOL)SetKeyboardListenerWithPort:(int64_t)port SWIFT_WARN_UNUSED_RESULT; ++ (BOOL)SetMouseListenerWithPort:(int64_t)port SWIFT_WARN_UNUSED_RESULT; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + +enum MacOsKeyboardEventType : NSInteger; +@class NSString; +enum MacOsMediaEventType : NSInteger; + +SWIFT_CLASS("_TtC11HidListener18MacOsKeyboardEvent") +@interface MacOsKeyboardEvent : NSObject +@property (nonatomic) enum MacOsKeyboardEventType eventType; +@property (nonatomic, copy) NSString * _Nonnull characters; +@property (nonatomic, copy) NSString * _Nonnull charactersIgnoringModifiers; +@property (nonatomic) NSInteger keyCode; +@property (nonatomic) NSInteger modifiers; +@property (nonatomic) BOOL isMedia; +@property (nonatomic) enum MacOsMediaEventType mediaEventType; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + +typedef SWIFT_ENUM(NSInteger, MacOsKeyboardEventType, closed) { + MacOsKeyboardEventTypeKeyDown = 0, + MacOsKeyboardEventTypeKeyUp = 1, +}; + +typedef SWIFT_ENUM(NSInteger, MacOsMediaEventType, closed) { + MacOsMediaEventTypePlay = 0, + MacOsMediaEventTypePrevious = 1, + MacOsMediaEventTypeNext = 2, + MacOsMediaEventTypeRewind = 3, + MacOsMediaEventTypeFast = 4, + MacOsMediaEventTypeMute = 5, + MacOsMediaEventTypeBrightnessUp = 6, + MacOsMediaEventTypeBrightnessDown = 7, + MacOsMediaEventTypeVolumeUp = 8, + MacOsMediaEventTypeVolumeDown = 9, +}; + +#endif +#if defined(__cplusplus) +#endif +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif diff --git a/macos/Classes/HidListener.swift b/macos/Classes/HidListener.swift index d338b37..e797385 100644 --- a/macos/Classes/HidListener.swift +++ b/macos/Classes/HidListener.swift @@ -1,299 +1,308 @@ -import AppKit -import CoreGraphics -import Foundation -import HidListenerShared - -var listenerInstance: HidListener? - -var prevFlags = UInt64(256) - -func keyboardEventCallback( - proxy _: CGEventTapProxy, type: CGEventType, event: CGEvent, _: UnsafeMutableRawPointer? -) -> Unmanaged? { - DispatchQueue.main.async { - if let nsEvent = NSEvent(cgEvent: event) { - let eventType = { - if type == .flagsChanged { - return prevFlags < event.flags.rawValue ? MacOsKeyboardEventType.KeyDown : MacOsKeyboardEventType.KeyUp - } else if type == .keyDown { - return MacOsKeyboardEventType.KeyDown - } - return MacOsKeyboardEventType.KeyUp - }() - - let characters = nsEvent.characters ?? " " - let charactersIgnoringModifiers = nsEvent.charactersIgnoringModifiers ?? " " - let keyCode = Int(nsEvent.keyCode) - let modifiers = Int(nsEvent.modifierFlags.rawValue) - let keyboardEvent = Unmanaged.passRetained(MacOsKeyboardEvent( - eventType: eventType, - characters: characters, - charactersIgnoringModifiers: charactersIgnoringModifiers, - keyCode: keyCode, - modifiers: modifiers, - isMedia: false, - mediaEventType: MacOsMediaEventType.Play - )) - - let pointerEvent = UnsafeMutablePointer.allocate(capacity: 1) - pointerEvent.initialize(to: keyboardEvent.takeRetainedValue()) - - notifyDart(port: keyboardListenerPort, data: pointerEvent) - } - } - - return Unmanaged.passRetained(event) -} - -func mediaEventCallback( - proxy _: CGEventTapProxy, type _: CGEventType, event: CGEvent, _: UnsafeMutableRawPointer? -) -> Unmanaged? { - if let nsEvent = NSEvent(cgEvent: event) { - let keyCode = (nsEvent.data1 & 0xFFFF_0000) >> 16 - let keyDown = ((nsEvent.data1 & 0xFF00) >> 8) == 0xA - - let mediaEventType: MacOsMediaEventType? = { - switch Int32(keyCode) { - case NX_KEYTYPE_PLAY: return MacOsMediaEventType.Play - case NX_KEYTYPE_PREVIOUS: return MacOsMediaEventType.Previous - case NX_KEYTYPE_NEXT: return MacOsMediaEventType.Next - case NX_KEYTYPE_REWIND: return MacOsMediaEventType.Rewind - case NX_KEYTYPE_FAST: return MacOsMediaEventType.Fast - case NX_KEYTYPE_MUTE: return MacOsMediaEventType.Mute - case NX_KEYTYPE_BRIGHTNESS_UP: return MacOsMediaEventType.BrightnessUp - case NX_KEYTYPE_BRIGHTNESS_DOWN: return MacOsMediaEventType.BrightnessDown - case NX_KEYTYPE_SOUND_UP: return MacOsMediaEventType.VolumeUp - case NX_KEYTYPE_SOUND_DOWN: return MacOsMediaEventType.VolumeDown - default: return nil - } - }() - - if mediaEventType != nil { - let eventType = { - switch keyDown { - case true: return MacOsKeyboardEventType.KeyDown - case false: return MacOsKeyboardEventType.KeyUp - } - }() - - let keyboardEvent = Unmanaged.passRetained(MacOsKeyboardEvent( - eventType: eventType, - characters: " ", - charactersIgnoringModifiers: " ", - keyCode: 0, - modifiers: 0, - isMedia: true, - mediaEventType: mediaEventType! - )) - - let pointerEvent = UnsafeMutablePointer.allocate(capacity: 1) - pointerEvent.initialize(to: keyboardEvent.takeRetainedValue()) - - notifyDart(port: keyboardListenerPort, data: pointerEvent) - } - } - - return Unmanaged.passRetained(event) -} - -func mouseEventCallback( - proxy _: CGEventTapProxy, type: CGEventType, event: CGEvent, _: UnsafeMutableRawPointer? -) -> Unmanaged? { - let mouseLoc = NSEvent.mouseLocation - let mouseEvent = UnsafeMutablePointer.allocate(capacity: 1) - - mouseEvent.pointee.x = mouseLoc.x - mouseEvent.pointee.y = mouseLoc.y - - if type == .leftMouseDown { - mouseEvent.pointee.eventType = MouseEventType(0) - } else if type == .leftMouseUp { - mouseEvent.pointee.eventType = MouseEventType(1) - } else if type == .rightMouseDown { - mouseEvent.pointee.eventType = MouseEventType(2) - } else if type == .rightMouseUp { - mouseEvent.pointee.eventType = MouseEventType(3) - } else if type == .mouseMoved || type == .leftMouseDragged || type == .rightMouseDragged { - mouseEvent.pointee.eventType = MouseEventType(4) - } else if type == .scrollWheel { - let verticalScroll = event.getIntegerValueField(.scrollWheelEventDeltaAxis1) - let horizontalScroll = event.getIntegerValueField(.scrollWheelEventDeltaAxis2) - - if verticalScroll != 0 { - mouseEvent.pointee.eventType = MouseEventType(5) - mouseEvent.pointee.wheelDelta = verticalScroll - } else if horizontalScroll != 0 { - mouseEvent.pointee.eventType = MouseEventType(6) - mouseEvent.pointee.wheelDelta = horizontalScroll - } - } - - notifyDart(port: mouseListenerPort, data: mouseEvent) - - return Unmanaged.passRetained(event) -} - -public class HidListener { - let keyboardQueue = DispatchQueue(label: "HidListener Keyboard Queue") - var initialized = false - var rootInitializer = false - - public init() { - if listenerInstance != nil { - return - } - - rootInitializer = true - listenerInstance = self - } - - public func initialize() -> Bool { - let keyboardEventMask = - (1 << CGEventType.keyDown.rawValue) - | (1 << CGEventType.keyUp.rawValue) - - guard - let keyboardEventTap = CGEvent.tapCreate( - tap: .cgSessionEventTap, place: .headInsertEventTap, options: .defaultTap, - eventsOfInterest: CGEventMask(keyboardEventMask), callback: keyboardEventCallback, userInfo: nil - ) - else { - return false - } - - guard - let mediaEventTap = CGEvent.tapCreate( - tap: .cgSessionEventTap, place: .headInsertEventTap, options: .defaultTap, - eventsOfInterest: CGEventMask(1 << NX_SYSDEFINED), callback: mediaEventCallback, userInfo: nil - ) - else { - return false - } - - let mouseEventMask = - (1 << CGEventType.leftMouseDown.rawValue) | (1 << CGEventType.leftMouseUp.rawValue) | - (1 << CGEventType.rightMouseDown.rawValue) | (1 << CGEventType.rightMouseUp.rawValue) | - (1 << CGEventType.mouseMoved.rawValue) | (1 << CGEventType.scrollWheel.rawValue) | - (1 << CGEventType.leftMouseDragged.rawValue) | (1 << CGEventType.rightMouseDragged.rawValue) - - guard - let mouseEventTap = CGEvent.tapCreate( - tap: .cgSessionEventTap, place: .headInsertEventTap, options: .defaultTap, - eventsOfInterest: CGEventMask(mouseEventMask), callback: mouseEventCallback, userInfo: nil - ) - else { - return false - } - - keyboardQueue.async { - let keyboardRunLoopSource = CFMachPortCreateRunLoopSource(kCFAllocatorDefault, keyboardEventTap, 0) - let mediaRunLoopSource = CFMachPortCreateRunLoopSource(kCFAllocatorDefault, mediaEventTap, 0) - let mouseRunLoopSource = CFMachPortCreateRunLoopSource(kCFAllocatorDefault, mouseEventTap, 0) - CFRunLoopAddSource(CFRunLoopGetCurrent(), keyboardRunLoopSource, .commonModes) - CFRunLoopAddSource(CFRunLoopGetCurrent(), mediaRunLoopSource, .commonModes) - CFRunLoopAddSource(CFRunLoopGetCurrent(), mouseRunLoopSource, .commonModes) - CGEvent.tapEnable(tap: keyboardEventTap, enable: true) - CGEvent.tapEnable(tap: mediaEventTap, enable: true) - CGEvent.tapEnable(tap: mouseEventTap, enable: true) - CFRunLoopRun() - } - - initialized = true - - return initialized - } - - deinit { - if rootInitializer { - listenerInstance = nil - } - } -} - -var keyboardListenerPort: Dart_Port = 0 -var mouseListenerPort: Dart_Port = 0 - -func notifyDart(port: Dart_Port, data: UnsafeMutableRawPointer) { - if port == 0 { - return - } - - var cObject = Dart_CObject() - cObject.type = Dart_CObject_kInt64 - cObject.value.as_int64 = Int64(UInt(bitPattern: data)) - - _ = Dart_PostCObject_DL(port, &cObject) -} - -func Internal_SetKeyboardListener(port: Dart_Port) -> Bool { - if !(listenerInstance?.initialized ?? false) { - return false - } - keyboardListenerPort = port - return true -} - -func Internal_SetMouseListener(port: Dart_Port) -> Bool { - if !(listenerInstance?.initialized ?? false) { - return false - } - mouseListenerPort = port - return true -} - -func Internal_InitializeDartAPI(data: UnsafeMutableRawPointer) { - Dart_InitializeApiDL(data) -} - -func Internal_InitializeListeners() -> Bool { - if listenerInstance == nil { - listenerInstance = HidListener() - } - return listenerInstance?.initialize() ?? false -} - -@objc public enum MacOsKeyboardEventType: Int { - case KeyDown, KeyUp -} - -@objc public enum MacOsMediaEventType: Int { - case Play, Previous, Next, Rewind, Fast, Mute, BrightnessUp, BrightnessDown, VolumeUp, VolumeDown -} - -@objc public class MacOsKeyboardEvent: NSObject { - @objc public var eventType: MacOsKeyboardEventType - @objc public var characters: String - @objc public var charactersIgnoringModifiers: String - @objc public var keyCode: Int - @objc public var modifiers: Int - @objc public var isMedia: Bool - @objc public var mediaEventType: MacOsMediaEventType - - init(eventType: MacOsKeyboardEventType, characters: String, charactersIgnoringModifiers: String, keyCode: Int, modifiers: Int, isMedia: Bool, mediaEventType: MacOsMediaEventType) { - self.eventType = eventType - self.characters = characters - self.charactersIgnoringModifiers = charactersIgnoringModifiers - self.keyCode = keyCode - self.modifiers = modifiers - self.isMedia = isMedia - self.mediaEventType = mediaEventType - } -} - -@objc public class HidListenerBindings: NSObject { - @objc public static func InitializeDartAPI(data: UnsafeMutableRawPointer) { - Internal_InitializeDartAPI(data: data) - } - - @objc public static func InitializeListeners() -> Bool { - return Internal_InitializeListeners() - } - - @objc public static func SetKeyboardListener(port: Int64) -> Bool { - return Internal_SetKeyboardListener(port: Dart_Port(port)) - } - - @objc public static func SetMouseListener(port: Int64) -> Bool { - return Internal_SetMouseListener(port: Dart_Port(port)) - } -} +import AppKit +import CoreGraphics +import Foundation +import HidListenerShared + +var listenerInstance: HidListener? + +var prevFlags = UInt64(256) + +func keyboardEventCallback( + proxy _: CGEventTapProxy, type: CGEventType, event: CGEvent, _: UnsafeMutableRawPointer? +) -> Unmanaged? { + DispatchQueue.main.async { + guard let nsEvent = NSEvent(cgEvent: event) else { return } + let eventType: MacOsKeyboardEventType = { + if type == .flagsChanged { + return prevFlags < event.flags.rawValue ? .KeyDown : .KeyUp + } else if type == .keyDown { + return .KeyDown + } + return .KeyUp + }() + + let (characters, charactersIgnoringModifiers, keyCode): (String, String, Int) = { + if type == .flagsChanged { + // Modifier keys: characters may be nil or empty, keyCode is valid + return ("", "", Int(nsEvent.keyCode)) + } else { + return (nsEvent.characters ?? " ", nsEvent.charactersIgnoringModifiers ?? " ", Int(nsEvent.keyCode)) + } + }() + let modifiers = Int(nsEvent.modifierFlags.rawValue) + let keyboardEvent = Unmanaged.passRetained(MacOsKeyboardEvent( + eventType: eventType, + characters: characters, + charactersIgnoringModifiers: charactersIgnoringModifiers, + keyCode: keyCode, + modifiers: modifiers, + isMedia: false, + mediaEventType: MacOsMediaEventType.Play + )) + + let pointerEvent = UnsafeMutablePointer.allocate(capacity: 1) + pointerEvent.initialize(to: keyboardEvent.takeRetainedValue()) + + notifyDart(port: keyboardListenerPort, data: pointerEvent) + } + + return Unmanaged.passRetained(event) +} + +func mediaEventCallback( + proxy _: CGEventTapProxy, type _: CGEventType, event: CGEvent, _: UnsafeMutableRawPointer? +) -> Unmanaged? { + if let nsEvent = NSEvent(cgEvent: event) { + let keyCode = (nsEvent.data1 & 0xFFFF_0000) >> 16 + let keyDown = ((nsEvent.data1 & 0xFF00) >> 8) == 0xA + + let mediaEventType: MacOsMediaEventType? = { + switch Int32(keyCode) { + case NX_KEYTYPE_PLAY: return MacOsMediaEventType.Play + case NX_KEYTYPE_PREVIOUS: return MacOsMediaEventType.Previous + case NX_KEYTYPE_NEXT: return MacOsMediaEventType.Next + case NX_KEYTYPE_REWIND: return MacOsMediaEventType.Rewind + case NX_KEYTYPE_FAST: return MacOsMediaEventType.Fast + case NX_KEYTYPE_MUTE: return MacOsMediaEventType.Mute + case NX_KEYTYPE_BRIGHTNESS_UP: return MacOsMediaEventType.BrightnessUp + case NX_KEYTYPE_BRIGHTNESS_DOWN: return MacOsMediaEventType.BrightnessDown + case NX_KEYTYPE_SOUND_UP: return MacOsMediaEventType.VolumeUp + case NX_KEYTYPE_SOUND_DOWN: return MacOsMediaEventType.VolumeDown + default: return nil + } + }() + + if mediaEventType != nil { + let eventType = { + switch keyDown { + case true: return MacOsKeyboardEventType.KeyDown + case false: return MacOsKeyboardEventType.KeyUp + } + }() + + let keyboardEvent = Unmanaged.passRetained(MacOsKeyboardEvent( + eventType: eventType, + characters: " ", + charactersIgnoringModifiers: " ", + keyCode: 0, + modifiers: 0, + isMedia: true, + mediaEventType: mediaEventType! + )) + + let pointerEvent = UnsafeMutablePointer.allocate(capacity: 1) + pointerEvent.initialize(to: keyboardEvent.takeRetainedValue()) + + notifyDart(port: keyboardListenerPort, data: pointerEvent) + } + } + + return Unmanaged.passRetained(event) +} + +func mouseEventCallback( + proxy _: CGEventTapProxy, type: CGEventType, event: CGEvent, _: UnsafeMutableRawPointer? +) -> Unmanaged? { + let mouseLoc = NSEvent.mouseLocation + let mouseEvent = UnsafeMutablePointer.allocate(capacity: 1) + + mouseEvent.pointee.x = mouseLoc.x + mouseEvent.pointee.y = mouseLoc.y + + if type == .leftMouseDown { + mouseEvent.pointee.eventType = MouseEventType(0) + } else if type == .leftMouseUp { + mouseEvent.pointee.eventType = MouseEventType(1) + } else if type == .otherMouseDown { + mouseEvent.pointee.eventType = MouseEventType(2) + } else if type == .otherMouseUp { + mouseEvent.pointee.eventType = MouseEventType(3) + } else if type == .rightMouseDown { + mouseEvent.pointee.eventType = MouseEventType(4) + } else if type == .rightMouseUp { + mouseEvent.pointee.eventType = MouseEventType(5) + } else if type == .mouseMoved || type == .leftMouseDragged || type == .rightMouseDragged { + mouseEvent.pointee.eventType = MouseEventType(6) + } else if type == .scrollWheel { + let verticalScroll = event.getIntegerValueField(.scrollWheelEventDeltaAxis1) + let horizontalScroll = event.getIntegerValueField(.scrollWheelEventDeltaAxis2) + + if verticalScroll != 0 { + mouseEvent.pointee.eventType = MouseEventType(7) + mouseEvent.pointee.wheelDelta = verticalScroll + } else if horizontalScroll != 0 { + mouseEvent.pointee.eventType = MouseEventType(8) + mouseEvent.pointee.wheelDelta = horizontalScroll + } + } + + notifyDart(port: mouseListenerPort, data: mouseEvent) + + return Unmanaged.passRetained(event) +} + +public class HidListener { + let keyboardQueue = DispatchQueue(label: "HidListener Keyboard Queue") + var initialized = false + var rootInitializer = false + + public init() { + if listenerInstance != nil { + return + } + + rootInitializer = true + listenerInstance = self + } + + public func initialize() -> Bool { + let keyboardEventMask = + (1 << CGEventType.keyDown.rawValue) + | (1 << CGEventType.keyUp.rawValue) + | (1 << CGEventType.flagsChanged.rawValue) + + guard + let keyboardEventTap = CGEvent.tapCreate( + tap: .cgSessionEventTap, place: .headInsertEventTap, options: .defaultTap, + eventsOfInterest: CGEventMask(keyboardEventMask), callback: keyboardEventCallback, userInfo: nil + ) + else { + return false + } + + guard + let mediaEventTap = CGEvent.tapCreate( + tap: .cgSessionEventTap, place: .headInsertEventTap, options: .defaultTap, + eventsOfInterest: CGEventMask(1 << NX_SYSDEFINED), callback: mediaEventCallback, userInfo: nil + ) + else { + return false + } + + let mouseButtonEvents = (1 << CGEventType.leftMouseDown.rawValue) | (1 << CGEventType.leftMouseUp.rawValue) | (1 << CGEventType.rightMouseDown.rawValue) | (1 << CGEventType.rightMouseUp.rawValue) | (1 << CGEventType.otherMouseDown.rawValue) | (1 << CGEventType.otherMouseUp.rawValue) + let mouseMoveEvents = (1 << CGEventType.mouseMoved.rawValue) | (1 << CGEventType.scrollWheel.rawValue) + let mouseDragEvents = (1 << CGEventType.leftMouseDragged.rawValue) | (1 << CGEventType.rightMouseDragged.rawValue) + + let mouseEventMask = mouseButtonEvents | mouseMoveEvents | mouseDragEvents + + guard + let mouseEventTap = CGEvent.tapCreate( + tap: .cgSessionEventTap, place: .headInsertEventTap, options: .defaultTap, + eventsOfInterest: CGEventMask(mouseEventMask), callback: mouseEventCallback, userInfo: nil + ) + else { + return false + } + + keyboardQueue.async { + let keyboardRunLoopSource = CFMachPortCreateRunLoopSource(kCFAllocatorDefault, keyboardEventTap, 0) + let mediaRunLoopSource = CFMachPortCreateRunLoopSource(kCFAllocatorDefault, mediaEventTap, 0) + let mouseRunLoopSource = CFMachPortCreateRunLoopSource(kCFAllocatorDefault, mouseEventTap, 0) + CFRunLoopAddSource(CFRunLoopGetCurrent(), keyboardRunLoopSource, .commonModes) + CFRunLoopAddSource(CFRunLoopGetCurrent(), mediaRunLoopSource, .commonModes) + CFRunLoopAddSource(CFRunLoopGetCurrent(), mouseRunLoopSource, .commonModes) + CGEvent.tapEnable(tap: keyboardEventTap, enable: true) + CGEvent.tapEnable(tap: mediaEventTap, enable: true) + CGEvent.tapEnable(tap: mouseEventTap, enable: true) + CFRunLoopRun() + } + + initialized = true + + return initialized + } + + deinit { + if rootInitializer { + listenerInstance = nil + } + } +} + +var keyboardListenerPort: Dart_Port = 0 +var mouseListenerPort: Dart_Port = 0 + +func notifyDart(port: Dart_Port, data: UnsafeMutableRawPointer) { + if port == 0 { + return + } + + var cObject = Dart_CObject() + cObject.type = Dart_CObject_kInt64 + cObject.value.as_int64 = Int64(UInt(bitPattern: data)) + + _ = Dart_PostCObject_DL(port, &cObject) +} + +func Internal_SetKeyboardListener(port: Dart_Port) -> Bool { + if !(listenerInstance?.initialized ?? false) { + return false + } + keyboardListenerPort = port + return true +} + +func Internal_SetMouseListener(port: Dart_Port) -> Bool { + if !(listenerInstance?.initialized ?? false) { + return false + } + mouseListenerPort = port + return true +} + +func Internal_InitializeDartAPI(data: UnsafeMutableRawPointer) { + Dart_InitializeApiDL(data) +} + +func Internal_InitializeListeners() -> Bool { + if listenerInstance == nil { + listenerInstance = HidListener() + } + return listenerInstance?.initialize() ?? false +} + +@objc public enum MacOsKeyboardEventType: Int { + case KeyDown, KeyUp +} + +@objc public enum MacOsMediaEventType: Int { + case Play, Previous, Next, Rewind, Fast, Mute, BrightnessUp, BrightnessDown, VolumeUp, VolumeDown +} + +@objc public class MacOsKeyboardEvent: NSObject { + @objc public var eventType: MacOsKeyboardEventType + @objc public var characters: String + @objc public var charactersIgnoringModifiers: String + @objc public var keyCode: Int + @objc public var modifiers: Int + @objc public var isMedia: Bool + @objc public var mediaEventType: MacOsMediaEventType + + init(eventType: MacOsKeyboardEventType, characters: String, charactersIgnoringModifiers: String, keyCode: Int, modifiers: Int, isMedia: Bool, mediaEventType: MacOsMediaEventType) { + self.eventType = eventType + self.characters = characters + self.charactersIgnoringModifiers = charactersIgnoringModifiers + self.keyCode = keyCode + self.modifiers = modifiers + self.isMedia = isMedia + self.mediaEventType = mediaEventType + } +} + +@objc public class HidListenerBindings: NSObject { + @objc public static func InitializeDartAPI(data: UnsafeMutableRawPointer) { + Internal_InitializeDartAPI(data: data) + } + + @objc public static func InitializeListeners() -> Bool { + return Internal_InitializeListeners() + } + + @objc public static func SetKeyboardListener(port: Int64) -> Bool { + return Internal_SetKeyboardListener(port: Dart_Port(port)) + } + + @objc public static func SetMouseListener(port: Int64) -> Bool { + return Internal_SetMouseListener(port: Dart_Port(port)) + } +} diff --git a/macos/Classes/HidListenerPlugin.swift b/macos/Classes/HidListenerPlugin.swift index 3130068..1eb42ad 100644 --- a/macos/Classes/HidListenerPlugin.swift +++ b/macos/Classes/HidListenerPlugin.swift @@ -1,9 +1,9 @@ -import Cocoa -import Dispatch -import FlutterMacOS -import Foundation - -public class HidListenerPlugin: NSObject, FlutterPlugin { - public static func register(with registrar: FlutterPluginRegistrar) { - } -} +import Cocoa +import Dispatch +import FlutterMacOS +import Foundation + +public class HidListenerPlugin: NSObject, FlutterPlugin { + public static func register(with registrar: FlutterPluginRegistrar) { + } +} diff --git a/macos/generate_header.sh b/macos/generate_header.sh index da8fffd..ae31f09 100644 --- a/macos/generate_header.sh +++ b/macos/generate_header.sh @@ -1,2 +1,2 @@ -#!/bin/bash -swiftc -framework CoreGraphics -c Classes/HidListener.swift -I ../shared/module -module-name HidListener -emit-objc-header-path Bindings/HidListener.h +#!/bin/bash +swiftc -framework CoreGraphics -c Classes/HidListener.swift -I ../shared/module -module-name HidListener -emit-objc-header-path Bindings/HidListener.h diff --git a/macos/hid_listener.podspec b/macos/hid_listener.podspec index 5c79507..a64083d 100644 --- a/macos/hid_listener.podspec +++ b/macos/hid_listener.podspec @@ -1,29 +1,29 @@ -# -# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. -# Run `pod lib lint hid_listener.podspec` to validate before publishing. -# -Pod::Spec.new do |s| - s.name = 'hid_listener' - s.version = '1.0.0' - s.summary = 'Hid Listening library' - s.description = <<-DESC -A hid listening library for cross platform listening to keyboard/mouse events. - DESC - s.homepage = 'https://localcc.cc' - s.license = { :file => '../LICENSE' } - s.author = { 'localcc' => 'work@localcc.cc' } - - s.source = { :path => '.' } - s.source_files = 'Classes/**/*', '../shared/**/**.{c,h}' - s.preserve_paths = '../shared/module/module.modulemap' - - s.xcconfig = { - 'HEADER_SEARCH_PATHS' => __dir__ + '/../shared/**' - } - - s.dependency 'FlutterMacOS' - - s.platform = :osx, '10.11' - s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'SWIFT_INCLUDE_PATHS' => __dir__ + '/../shared/**' } - s.swift_version = '5.0' -end +# +# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. +# Run `pod lib lint hid_listener.podspec` to validate before publishing. +# +Pod::Spec.new do |s| + s.name = 'hid_listener' + s.version = '1.0.0' + s.summary = 'Hid Listening library' + s.description = <<-DESC +A hid listening library for cross platform listening to keyboard/mouse events. + DESC + s.homepage = 'https://localcc.cc' + s.license = { :file => '../LICENSE' } + s.author = { 'localcc' => 'work@localcc.cc' } + + s.source = { :path => '.' } + s.source_files = 'Classes/**/*', '../shared/**/**.{c,h}' + s.preserve_paths = '../shared/module/module.modulemap' + + s.xcconfig = { + 'HEADER_SEARCH_PATHS' => __dir__ + '/../shared/**' + } + + s.dependency 'FlutterMacOS' + + s.platform = :osx, '10.11' + s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'SWIFT_INCLUDE_PATHS' => __dir__ + '/../shared/**' } + s.swift_version = '5.0' +end diff --git a/pubspec.yaml b/pubspec.yaml index b50605c..25c9116 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,81 +1,82 @@ -name: hid_listener -description: A hid listening library for cross platform listening to keyboard/mouse events. -version: 2.0.1 -homepage: https://github.com/localcc/hid_listener -repository: https://github.com/localcc/hid_listener - -environment: - sdk: ">=3.0.0 <4.0.0" - flutter: ">=2.5.0" - -platforms: - windows: - linux: - macos: - -dependencies: - flutter: - sdk: flutter - plugin_platform_interface: ^2.0.2 - ffi: ">=2.0.0 <3.0.0" - -dev_dependencies: - flutter_test: - sdk: flutter - flutter_lints: ^2.0.0 - ffigen: ^9.0.1 - -# For information on the generic Dart part of this file, see the -# following page: https://dart.dev/tools/pub/pubspec - -# The following section is specific to Flutter packages. -flutter: - # This section identifies this Flutter project as a plugin project. - # The 'pluginClass' specifies the class (in Java, Kotlin, Swift, Objective-C, etc.) - # which should be registered in the plugin registry. This is required for - # using method channels. - # The Android 'package' specifies package in which the registered class is. - # This is required for using method channels on Android. - # The 'ffiPlugin' specifies that native code should be built and bundled. - # This is required for using `dart:ffi`. - # All these are used by the tooling to maintain consistency when - # adding or updating assets for this project. - plugin: - platforms: - linux: - pluginClass: HidListenerPlugin - macos: - pluginClass: HidListenerPlugin - windows: - pluginClass: HidListenerPluginWindows - - # To add assets to your plugin package, add an assets section, like this: - # assets: - # - images/a_dot_burr.jpeg - # - images/a_dot_ham.jpeg - # - # For details regarding assets in packages, see - # https://flutter.dev/assets-and-images/#from-packages - # - # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/assets-and-images/#resolution-aware - - # To add custom fonts to your plugin package, add a fonts section here, - # in this "flutter" section. Each entry in this list should have a - # "family" key with the font family name, and a "fonts" key with a - # list giving the asset and other descriptors for the font. For - # example: - # fonts: - # - family: Schyler - # fonts: - # - asset: fonts/Schyler-Regular.ttf - # - asset: fonts/Schyler-Italic.ttf - # style: italic - # - family: Trajan Pro - # fonts: - # - asset: fonts/TrajanPro.ttf - # - asset: fonts/TrajanPro_Bold.ttf - # weight: 700 - # - # For details regarding fonts in packages, see - # https://flutter.dev/custom-fonts/#from-packages +name: hid_listener +description: A hid listening library for cross platform listening to keyboard/mouse events. +version: 2.0.1 +homepage: https://github.com/localcc/hid_listener +repository: https://github.com/localcc/hid_listener + +environment: + sdk: ">=3.0.0 <4.0.0" + flutter: ">=2.5.0" + +platforms: + windows: + linux: + macos: + +dependencies: + flutter: + sdk: flutter + plugin_platform_interface: ^2.0.2 + ffi: ">=2.0.0 <3.0.0" + meta: ^1.7.0 + +dev_dependencies: + flutter_test: + sdk: flutter + flutter_lints: ^2.0.0 + ffigen: ^9.0.1 + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + +# The following section is specific to Flutter packages. +flutter: + # This section identifies this Flutter project as a plugin project. + # The 'pluginClass' specifies the class (in Java, Kotlin, Swift, Objective-C, etc.) + # which should be registered in the plugin registry. This is required for + # using method channels. + # The Android 'package' specifies package in which the registered class is. + # This is required for using method channels on Android. + # The 'ffiPlugin' specifies that native code should be built and bundled. + # This is required for using `dart:ffi`. + # All these are used by the tooling to maintain consistency when + # adding or updating assets for this project. + plugin: + platforms: + linux: + pluginClass: HidListenerPlugin + macos: + pluginClass: HidListenerPlugin + windows: + pluginClass: HidListenerPluginWindows + + # To add assets to your plugin package, add an assets section, like this: + # assets: + # - images/a_dot_burr.jpeg + # - images/a_dot_ham.jpeg + # + # For details regarding assets in packages, see + # https://flutter.dev/assets-and-images/#from-packages + # + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/assets-and-images/#resolution-aware + + # To add custom fonts to your plugin package, add a fonts section here, + # in this "flutter" section. Each entry in this list should have a + # "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # For details regarding fonts in packages, see + # https://flutter.dev/custom-fonts/#from-packages diff --git a/shared/dart-sdk/LICENSE b/shared/dart-sdk/LICENSE index be5c7b4..268eefe 100644 --- a/shared/dart-sdk/LICENSE +++ b/shared/dart-sdk/LICENSE @@ -1,26 +1,26 @@ -Copyright 2012, the Dart project authors. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - * Neither the name of Google LLC nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +Copyright 2012, the Dart project authors. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of Google LLC nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/shared/dart-sdk/README b/shared/dart-sdk/README index 61ffe7e..77a2f0c 100644 --- a/shared/dart-sdk/README +++ b/shared/dart-sdk/README @@ -1,29 +1,29 @@ -The Dart SDK is a set of tools and libraries for the Dart programming language. - -You can find information about Dart online at https://dart.dev/. - -Here's a brief guide to what's in here: - -bin/ Binaries/scripts to compile, run, and manage Dart apps. - dart Command line Dart tool - dartaotruntime Minimal Dart runtime for running AOT modules - dart2js Dart to JavaScript production compiler - dartdevc Dart to Javascript development compiler - dartdoc Dart documentation generator - -include/ header files that define the Dart embedding API for use by - - C/C++ applications that embed the Dart Virtual machine - - native libraries loaded into a dart application using FFI - (https://dart.dev/guides/libraries/c-interop) - -lib/ Libraries that are shipped with the Dart runtime. More - information is available at https://api.dart.dev. - -LICENSE Description of Dart SDK license - -README This file - -revision The git commit ID of the SDK build - (for example, 020b3efd3f0023c5db2097787f7cf778db837a8f). - -version The version number of the SDK (for example, 2.12.1). +The Dart SDK is a set of tools and libraries for the Dart programming language. + +You can find information about Dart online at https://dart.dev/. + +Here's a brief guide to what's in here: + +bin/ Binaries/scripts to compile, run, and manage Dart apps. + dart Command line Dart tool + dartaotruntime Minimal Dart runtime for running AOT modules + dart2js Dart to JavaScript production compiler + dartdevc Dart to Javascript development compiler + dartdoc Dart documentation generator + +include/ header files that define the Dart embedding API for use by + - C/C++ applications that embed the Dart Virtual machine + - native libraries loaded into a dart application using FFI + (https://dart.dev/guides/libraries/c-interop) + +lib/ Libraries that are shipped with the Dart runtime. More + information is available at https://api.dart.dev. + +LICENSE Description of Dart SDK license + +README This file + +revision The git commit ID of the SDK build + (for example, 020b3efd3f0023c5db2097787f7cf778db837a8f). + +version The version number of the SDK (for example, 2.12.1). diff --git a/shared/dart-sdk/dartdoc_options.yaml b/shared/dart-sdk/dartdoc_options.yaml index 0d3d8df..1dc51a5 100644 --- a/shared/dart-sdk/dartdoc_options.yaml +++ b/shared/dart-sdk/dartdoc_options.yaml @@ -1,30 +1,30 @@ -dartdoc: - categoryOrder: ["Core", "VM", "Web"] - linkToSource: - root: '.' - uriTemplate: 'https://github.com/dart-lang/sdk/blob/c42a304ce78f37b717cc055abc503023871a7013/sdk/%f%#L%l%' - errors: - # Default errors of dartdoc: - - duplicate-file - - invalid-parameter - - no-defining-library-found - - tool-error - - unresolved-export - # Warnings that are elevated to errors: - - ambiguous-doc-reference - - ambiguous-reexport - - broken-link - - category-order-gives-missing-package-name - - deprecated - - ignored-canonical-for - - missing-from-search-index - - no-canonical-found - - no-documentable-libraries - - no-library-level-docs - - not-implemented - - orphaned-file - - reexported-private-api-across-packages - # - unknown-directive # Disabled due to https://github.com/dart-lang/dartdoc/issues/2353 - - unknown-file - - unknown-macro - - unresolved-doc-reference +dartdoc: + categoryOrder: ["Core", "VM", "Web"] + linkToSource: + root: '.' + uriTemplate: 'https://github.com/dart-lang/sdk/blob/c42a304ce78f37b717cc055abc503023871a7013/sdk/%f%#L%l%' + errors: + # Default errors of dartdoc: + - duplicate-file + - invalid-parameter + - no-defining-library-found + - tool-error + - unresolved-export + # Warnings that are elevated to errors: + - ambiguous-doc-reference + - ambiguous-reexport + - broken-link + - category-order-gives-missing-package-name + - deprecated + - ignored-canonical-for + - missing-from-search-index + - no-canonical-found + - no-documentable-libraries + - no-library-level-docs + - not-implemented + - orphaned-file + - reexported-private-api-across-packages + # - unknown-directive # Disabled due to https://github.com/dart-lang/dartdoc/issues/2353 + - unknown-file + - unknown-macro + - unresolved-doc-reference diff --git a/shared/dart-sdk/include/dart_api.h b/shared/dart-sdk/include/dart_api.h index 4f2fc30..08558e4 100644 --- a/shared/dart-sdk/include/dart_api.h +++ b/shared/dart-sdk/include/dart_api.h @@ -1,4041 +1,4041 @@ -/* - * Copyright (c) 2012, 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. - */ - -#ifndef RUNTIME_INCLUDE_DART_API_H_ -#define RUNTIME_INCLUDE_DART_API_H_ - -/** \mainpage Dart Embedding API Reference - * - * This reference describes the Dart Embedding API, which is used to embed the - * Dart Virtual Machine within C/C++ applications. - * - * This reference is generated from the header include/dart_api.h. - */ - -/* __STDC_FORMAT_MACROS has to be defined before including to - * enable platform independent printf format specifiers. */ -#ifndef __STDC_FORMAT_MACROS -#define __STDC_FORMAT_MACROS -#endif - -#include -#include -#include - -#ifdef __cplusplus -#define DART_EXTERN_C extern "C" -#else -#define DART_EXTERN_C extern -#endif - -#if defined(__CYGWIN__) -#error Tool chain and platform not supported. -#elif defined(_WIN32) -#if defined(DART_SHARED_LIB) -#define DART_EXPORT DART_EXTERN_C __declspec(dllexport) -#else -#define DART_EXPORT DART_EXTERN_C -#endif -#else -#if __GNUC__ >= 4 -#if defined(DART_SHARED_LIB) -#define DART_EXPORT \ - DART_EXTERN_C __attribute__((visibility("default"))) __attribute((used)) -#else -#define DART_EXPORT DART_EXTERN_C -#endif -#else -#error Tool chain not supported. -#endif -#endif - -#if __GNUC__ -#define DART_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#elif _MSC_VER -#define DART_WARN_UNUSED_RESULT _Check_return_ -#else -#define DART_WARN_UNUSED_RESULT -#endif - -/* - * ======= - * Handles - * ======= - */ - -/** - * An isolate is the unit of concurrency in Dart. Each isolate has - * its own memory and thread of control. No state is shared between - * isolates. Instead, isolates communicate by message passing. - * - * Each thread keeps track of its current isolate, which is the - * isolate which is ready to execute on the current thread. The - * current isolate may be NULL, in which case no isolate is ready to - * execute. Most of the Dart apis require there to be a current - * isolate in order to function without error. The current isolate is - * set by any call to Dart_CreateIsolateGroup or Dart_EnterIsolate. - */ -typedef struct _Dart_Isolate* Dart_Isolate; -typedef struct _Dart_IsolateGroup* Dart_IsolateGroup; - -/** - * An object reference managed by the Dart VM garbage collector. - * - * Because the garbage collector may move objects, it is unsafe to - * refer to objects directly. Instead, we refer to objects through - * handles, which are known to the garbage collector and updated - * automatically when the object is moved. Handles should be passed - * by value (except in cases like out-parameters) and should never be - * allocated on the heap. - * - * Most functions in the Dart Embedding API return a handle. When a - * function completes normally, this will be a valid handle to an - * object in the Dart VM heap. This handle may represent the result of - * the operation or it may be a special valid handle used merely to - * indicate successful completion. Note that a valid handle may in - * some cases refer to the null object. - * - * --- Error handles --- - * - * When a function encounters a problem that prevents it from - * completing normally, it returns an error handle (See Dart_IsError). - * An error handle has an associated error message that gives more - * details about the problem (See Dart_GetError). - * - * There are four kinds of error handles that can be produced, - * depending on what goes wrong: - * - * - Api error handles are produced when an api function is misused. - * This happens when a Dart embedding api function is called with - * invalid arguments or in an invalid context. - * - * - Unhandled exception error handles are produced when, during the - * execution of Dart code, an exception is thrown but not caught. - * Prototypically this would occur during a call to Dart_Invoke, but - * it can occur in any function which triggers the execution of Dart - * code (for example, Dart_ToString). - * - * An unhandled exception error provides access to an exception and - * stacktrace via the functions Dart_ErrorGetException and - * Dart_ErrorGetStackTrace. - * - * - Compilation error handles are produced when, during the execution - * of Dart code, a compile-time error occurs. As above, this can - * occur in any function which triggers the execution of Dart code. - * - * - Fatal error handles are produced when the system wants to shut - * down the current isolate. - * - * --- Propagating errors --- - * - * When an error handle is returned from the top level invocation of - * Dart code in a program, the embedder must handle the error as they - * see fit. Often, the embedder will print the error message produced - * by Dart_Error and exit the program. - * - * When an error is returned while in the body of a native function, - * it can be propagated up the call stack by calling - * Dart_PropagateError, Dart_SetReturnValue, or Dart_ThrowException. - * Errors should be propagated unless there is a specific reason not - * to. If an error is not propagated then it is ignored. For - * example, if an unhandled exception error is ignored, that - * effectively "catches" the unhandled exception. Fatal errors must - * always be propagated. - * - * When an error is propagated, any current scopes created by - * Dart_EnterScope will be exited. - * - * Using Dart_SetReturnValue to propagate an exception is somewhat - * more convenient than using Dart_PropagateError, and should be - * preferred for reasons discussed below. - * - * Dart_PropagateError and Dart_ThrowException do not return. Instead - * they transfer control non-locally using a setjmp-like mechanism. - * This can be inconvenient if you have resources that you need to - * clean up before propagating the error. - * - * When relying on Dart_PropagateError, we often return error handles - * rather than propagating them from helper functions. Consider the - * following contrived example: - * - * 1 Dart_Handle isLongStringHelper(Dart_Handle arg) { - * 2 intptr_t* length = 0; - * 3 result = Dart_StringLength(arg, &length); - * 4 if (Dart_IsError(result)) { - * 5 return result; - * 6 } - * 7 return Dart_NewBoolean(length > 100); - * 8 } - * 9 - * 10 void NativeFunction_isLongString(Dart_NativeArguments args) { - * 11 Dart_EnterScope(); - * 12 AllocateMyResource(); - * 13 Dart_Handle arg = Dart_GetNativeArgument(args, 0); - * 14 Dart_Handle result = isLongStringHelper(arg); - * 15 if (Dart_IsError(result)) { - * 16 FreeMyResource(); - * 17 Dart_PropagateError(result); - * 18 abort(); // will not reach here - * 19 } - * 20 Dart_SetReturnValue(result); - * 21 FreeMyResource(); - * 22 Dart_ExitScope(); - * 23 } - * - * In this example, we have a native function which calls a helper - * function to do its work. On line 5, the helper function could call - * Dart_PropagateError, but that would not give the native function a - * chance to call FreeMyResource(), causing a leak. Instead, the - * helper function returns the error handle to the caller, giving the - * caller a chance to clean up before propagating the error handle. - * - * When an error is propagated by calling Dart_SetReturnValue, the - * native function will be allowed to complete normally and then the - * exception will be propagated only once the native call - * returns. This can be convenient, as it allows the C code to clean - * up normally. - * - * The example can be written more simply using Dart_SetReturnValue to - * propagate the error. - * - * 1 Dart_Handle isLongStringHelper(Dart_Handle arg) { - * 2 intptr_t* length = 0; - * 3 result = Dart_StringLength(arg, &length); - * 4 if (Dart_IsError(result)) { - * 5 return result - * 6 } - * 7 return Dart_NewBoolean(length > 100); - * 8 } - * 9 - * 10 void NativeFunction_isLongString(Dart_NativeArguments args) { - * 11 Dart_EnterScope(); - * 12 AllocateMyResource(); - * 13 Dart_Handle arg = Dart_GetNativeArgument(args, 0); - * 14 Dart_SetReturnValue(isLongStringHelper(arg)); - * 15 FreeMyResource(); - * 16 Dart_ExitScope(); - * 17 } - * - * In this example, the call to Dart_SetReturnValue on line 14 will - * either return the normal return value or the error (potentially - * generated on line 3). The call to FreeMyResource on line 15 will - * execute in either case. - * - * --- Local and persistent handles --- - * - * Local handles are allocated within the current scope (see - * Dart_EnterScope) and go away when the current scope exits. Unless - * otherwise indicated, callers should assume that all functions in - * the Dart embedding api return local handles. - * - * Persistent handles are allocated within the current isolate. They - * can be used to store objects across scopes. Persistent handles have - * the lifetime of the current isolate unless they are explicitly - * deallocated (see Dart_DeletePersistentHandle). - * The type Dart_Handle represents a handle (both local and persistent). - * The type Dart_PersistentHandle is a Dart_Handle and it is used to - * document that a persistent handle is expected as a parameter to a call - * or the return value from a call is a persistent handle. - * - * FinalizableHandles are persistent handles which are auto deleted when - * the object is garbage collected. It is never safe to use these handles - * unless you know the object is still reachable. - * - * WeakPersistentHandles are persistent handles which are automatically set - * to point Dart_Null when the object is garbage collected. They are not auto - * deleted, so it is safe to use them after the object has become unreachable. - */ -typedef struct _Dart_Handle* Dart_Handle; -typedef Dart_Handle Dart_PersistentHandle; -typedef struct _Dart_WeakPersistentHandle* Dart_WeakPersistentHandle; -typedef struct _Dart_FinalizableHandle* Dart_FinalizableHandle; -// These structs are versioned by DART_API_DL_MAJOR_VERSION, bump the -// version when changing this struct. - -typedef void (*Dart_HandleFinalizer)(void* isolate_callback_data, void* peer); - -/** - * Is this an error handle? - * - * Requires there to be a current isolate. - */ -DART_EXPORT bool Dart_IsError(Dart_Handle handle); - -/** - * Is this an api error handle? - * - * Api error handles are produced when an api function is misused. - * This happens when a Dart embedding api function is called with - * invalid arguments or in an invalid context. - * - * Requires there to be a current isolate. - */ -DART_EXPORT bool Dart_IsApiError(Dart_Handle handle); - -/** - * Is this an unhandled exception error handle? - * - * Unhandled exception error handles are produced when, during the - * execution of Dart code, an exception is thrown but not caught. - * This can occur in any function which triggers the execution of Dart - * code. - * - * See Dart_ErrorGetException and Dart_ErrorGetStackTrace. - * - * Requires there to be a current isolate. - */ -DART_EXPORT bool Dart_IsUnhandledExceptionError(Dart_Handle handle); - -/** - * Is this a compilation error handle? - * - * Compilation error handles are produced when, during the execution - * of Dart code, a compile-time error occurs. This can occur in any - * function which triggers the execution of Dart code. - * - * Requires there to be a current isolate. - */ -DART_EXPORT bool Dart_IsCompilationError(Dart_Handle handle); - -/** - * Is this a fatal error handle? - * - * Fatal error handles are produced when the system wants to shut down - * the current isolate. - * - * Requires there to be a current isolate. - */ -DART_EXPORT bool Dart_IsFatalError(Dart_Handle handle); - -/** - * Gets the error message from an error handle. - * - * Requires there to be a current isolate. - * - * \return A C string containing an error message if the handle is - * error. An empty C string ("") if the handle is valid. This C - * String is scope allocated and is only valid until the next call - * to Dart_ExitScope. -*/ -DART_EXPORT const char* Dart_GetError(Dart_Handle handle); - -/** - * Is this an error handle for an unhandled exception? - */ -DART_EXPORT bool Dart_ErrorHasException(Dart_Handle handle); - -/** - * Gets the exception Object from an unhandled exception error handle. - */ -DART_EXPORT Dart_Handle Dart_ErrorGetException(Dart_Handle handle); - -/** - * Gets the stack trace Object from an unhandled exception error handle. - */ -DART_EXPORT Dart_Handle Dart_ErrorGetStackTrace(Dart_Handle handle); - -/** - * Produces an api error handle with the provided error message. - * - * Requires there to be a current isolate. - * - * \param error the error message. - */ -DART_EXPORT Dart_Handle Dart_NewApiError(const char* error); -DART_EXPORT Dart_Handle Dart_NewCompilationError(const char* error); - -/** - * Produces a new unhandled exception error handle. - * - * Requires there to be a current isolate. - * - * \param exception An instance of a Dart object to be thrown or - * an ApiError or CompilationError handle. - * When an ApiError or CompilationError handle is passed in - * a string object of the error message is created and it becomes - * the Dart object to be thrown. - */ -DART_EXPORT Dart_Handle Dart_NewUnhandledExceptionError(Dart_Handle exception); - -/** - * Propagates an error. - * - * If the provided handle is an unhandled exception error, this - * function will cause the unhandled exception to be rethrown. This - * will proceed in the standard way, walking up Dart frames until an - * appropriate 'catch' block is found, executing 'finally' blocks, - * etc. - * - * If the error is not an unhandled exception error, we will unwind - * the stack to the next C frame. Intervening Dart frames will be - * discarded; specifically, 'finally' blocks will not execute. This - * is the standard way that compilation errors (and the like) are - * handled by the Dart runtime. - * - * In either case, when an error is propagated any current scopes - * created by Dart_EnterScope will be exited. - * - * See the additional discussion under "Propagating Errors" at the - * beginning of this file. - * - * \param handle An error handle (See Dart_IsError) - * - * On success, this function does not return. On failure, the - * process is terminated. - */ -DART_EXPORT void Dart_PropagateError(Dart_Handle handle); - -/** - * Converts an object to a string. - * - * May generate an unhandled exception error. - * - * \return The converted string if no error occurs during - * the conversion. If an error does occur, an error handle is - * returned. - */ -DART_EXPORT Dart_Handle Dart_ToString(Dart_Handle object); - -/** - * Checks to see if two handles refer to identically equal objects. - * - * If both handles refer to instances, this is equivalent to using the top-level - * function identical() from dart:core. Otherwise, returns whether the two - * argument handles refer to the same object. - * - * \param obj1 An object to be compared. - * \param obj2 An object to be compared. - * - * \return True if the objects are identically equal. False otherwise. - */ -DART_EXPORT bool Dart_IdentityEquals(Dart_Handle obj1, Dart_Handle obj2); - -/** - * Allocates a handle in the current scope from a persistent handle. - */ -DART_EXPORT Dart_Handle Dart_HandleFromPersistent(Dart_PersistentHandle object); - -/** - * Allocates a handle in the current scope from a weak persistent handle. - * - * This will be a handle to Dart_Null if the object has been garbage collected. - */ -DART_EXPORT Dart_Handle -Dart_HandleFromWeakPersistent(Dart_WeakPersistentHandle object); - -/** - * Allocates a persistent handle for an object. - * - * This handle has the lifetime of the current isolate unless it is - * explicitly deallocated by calling Dart_DeletePersistentHandle. - * - * Requires there to be a current isolate. - */ -DART_EXPORT Dart_PersistentHandle Dart_NewPersistentHandle(Dart_Handle object); - -/** - * Assign value of local handle to a persistent handle. - * - * Requires there to be a current isolate. - * - * \param obj1 A persistent handle whose value needs to be set. - * \param obj2 An object whose value needs to be set to the persistent handle. - */ -DART_EXPORT void Dart_SetPersistentHandle(Dart_PersistentHandle obj1, - Dart_Handle obj2); - -/** - * Deallocates a persistent handle. - * - * Requires there to be a current isolate group. - */ -DART_EXPORT void Dart_DeletePersistentHandle(Dart_PersistentHandle object); - -/** - * Allocates a weak persistent handle for an object. - * - * This handle has the lifetime of the current isolate. The handle can also be - * explicitly deallocated by calling Dart_DeleteWeakPersistentHandle. - * - * If the object becomes unreachable the callback is invoked with the peer as - * argument. The callback can be executed on any thread, will have a current - * isolate group, but will not have a current isolate. The callback can only - * call Dart_DeletePersistentHandle or Dart_DeleteWeakPersistentHandle. This - * gives the embedder the ability to cleanup data associated with the object. - * The handle will point to the Dart_Null object after the finalizer has been - * run. It is illegal to call into the VM with any other Dart_* functions from - * the callback. If the handle is deleted before the object becomes - * unreachable, the callback is never invoked. - * - * Requires there to be a current isolate. - * - * \param object An object with identity. - * \param peer A pointer to a native object or NULL. This value is - * provided to callback when it is invoked. - * \param external_allocation_size The number of externally allocated - * bytes for peer. Used to inform the garbage collector. - * \param callback A function pointer that will be invoked sometime - * after the object is garbage collected, unless the handle has been deleted. - * A valid callback needs to be specified it cannot be NULL. - * - * \return The weak persistent handle or NULL. NULL is returned in case of bad - * parameters. - */ -DART_EXPORT Dart_WeakPersistentHandle -Dart_NewWeakPersistentHandle(Dart_Handle object, - void* peer, - intptr_t external_allocation_size, - Dart_HandleFinalizer callback); - -/** - * Deletes the given weak persistent [object] handle. - * - * Requires there to be a current isolate group. - */ -DART_EXPORT void Dart_DeleteWeakPersistentHandle( - Dart_WeakPersistentHandle object); - -/** - * Updates the external memory size for the given weak persistent handle. - * - * May trigger garbage collection. - */ -DART_EXPORT void Dart_UpdateExternalSize(Dart_WeakPersistentHandle object, - intptr_t external_allocation_size); - -/** - * Allocates a finalizable handle for an object. - * - * This handle has the lifetime of the current isolate group unless the object - * pointed to by the handle is garbage collected, in this case the VM - * automatically deletes the handle after invoking the callback associated - * with the handle. The handle can also be explicitly deallocated by - * calling Dart_DeleteFinalizableHandle. - * - * If the object becomes unreachable the callback is invoked with the - * the peer as argument. The callback can be executed on any thread, will have - * an isolate group, but will not have a current isolate. The callback can only - * call Dart_DeletePersistentHandle or Dart_DeleteWeakPersistentHandle. - * This gives the embedder the ability to cleanup data associated with the - * object and clear out any cached references to the handle. All references to - * this handle after the callback will be invalid. It is illegal to call into - * the VM with any other Dart_* functions from the callback. If the handle is - * deleted before the object becomes unreachable, the callback is never - * invoked. - * - * Requires there to be a current isolate. - * - * \param object An object with identity. - * \param peer A pointer to a native object or NULL. This value is - * provided to callback when it is invoked. - * \param external_allocation_size The number of externally allocated - * bytes for peer. Used to inform the garbage collector. - * \param callback A function pointer that will be invoked sometime - * after the object is garbage collected, unless the handle has been deleted. - * A valid callback needs to be specified it cannot be NULL. - * - * \return The finalizable handle or NULL. NULL is returned in case of bad - * parameters. - */ -DART_EXPORT Dart_FinalizableHandle -Dart_NewFinalizableHandle(Dart_Handle object, - void* peer, - intptr_t external_allocation_size, - Dart_HandleFinalizer callback); - -/** - * Deletes the given finalizable [object] handle. - * - * The caller has to provide the actual Dart object the handle was created from - * to prove the object (and therefore the finalizable handle) is still alive. - * - * Requires there to be a current isolate. - */ -DART_EXPORT void Dart_DeleteFinalizableHandle(Dart_FinalizableHandle object, - Dart_Handle strong_ref_to_object); - -/** - * Updates the external memory size for the given finalizable handle. - * - * The caller has to provide the actual Dart object the handle was created from - * to prove the object (and therefore the finalizable handle) is still alive. - * - * May trigger garbage collection. - */ -DART_EXPORT void Dart_UpdateFinalizableExternalSize( - Dart_FinalizableHandle object, - Dart_Handle strong_ref_to_object, - intptr_t external_allocation_size); - -/* - * ========================== - * Initialization and Globals - * ========================== - */ - -/** - * Gets the version string for the Dart VM. - * - * The version of the Dart VM can be accessed without initializing the VM. - * - * \return The version string for the embedded Dart VM. - */ -DART_EXPORT const char* Dart_VersionString(void); - -/** - * Isolate specific flags are set when creating a new isolate using the - * Dart_IsolateFlags structure. - * - * Current version of flags is encoded in a 32-bit integer with 16 bits used - * for each part. - */ - -#define DART_FLAGS_CURRENT_VERSION (0x0000000c) - -typedef struct { - int32_t version; - bool enable_asserts; - bool use_field_guards; - bool use_osr; - bool obfuscate; - bool load_vmservice_library; - bool copy_parent_code; - bool null_safety; - bool is_system_isolate; - bool snapshot_is_dontneed_safe; - bool branch_coverage; -} Dart_IsolateFlags; - -/** - * Initialize Dart_IsolateFlags with correct version and default values. - */ -DART_EXPORT void Dart_IsolateFlagsInitialize(Dart_IsolateFlags* flags); - -/** - * An isolate creation and initialization callback function. - * - * This callback, provided by the embedder, is called when the VM - * needs to create an isolate. The callback should create an isolate - * by calling Dart_CreateIsolateGroup and load any scripts required for - * execution. - * - * This callback may be called on a different thread than the one - * running the parent isolate. - * - * When the function returns NULL, it is the responsibility of this - * function to ensure that Dart_ShutdownIsolate has been called if - * required (for example, if the isolate was created successfully by - * Dart_CreateIsolateGroup() but the root library fails to load - * successfully, then the function should call Dart_ShutdownIsolate - * before returning). - * - * When the function returns NULL, the function should set *error to - * a malloc-allocated buffer containing a useful error message. The - * caller of this function (the VM) will make sure that the buffer is - * freed. - * - * \param script_uri The uri of the main source file or snapshot to load. - * Either the URI of the parent isolate set in Dart_CreateIsolateGroup for - * Isolate.spawn, or the argument to Isolate.spawnUri canonicalized by the - * library tag handler of the parent isolate. - * The callback is responsible for loading the program by a call to - * Dart_LoadScriptFromKernel. - * \param main The name of the main entry point this isolate will - * eventually run. This is provided for advisory purposes only to - * improve debugging messages. The main function is not invoked by - * this function. - * \param package_root Ignored. - * \param package_config Uri of the package configuration file (either in format - * of .packages or .dart_tool/package_config.json) for this isolate - * to resolve package imports against. If this parameter is not passed the - * package resolution of the parent isolate should be used. - * \param flags Default flags for this isolate being spawned. Either inherited - * from the spawning isolate or passed as parameters when spawning the - * isolate from Dart code. - * \param isolate_data The isolate data which was passed to the - * parent isolate when it was created by calling Dart_CreateIsolateGroup(). - * \param error A structure into which the embedder can place a - * C string containing an error message in the case of failures. - * - * \return The embedder returns NULL if the creation and - * initialization was not successful and the isolate if successful. - */ -typedef Dart_Isolate (*Dart_IsolateGroupCreateCallback)( - const char* script_uri, - const char* main, - const char* package_root, - const char* package_config, - Dart_IsolateFlags* flags, - void* isolate_data, - char** error); - -/** - * An isolate initialization callback function. - * - * This callback, provided by the embedder, is called when the VM has created an - * isolate within an existing isolate group (i.e. from the same source as an - * existing isolate). - * - * The callback should setup native resolvers and might want to set a custom - * message handler via [Dart_SetMessageNotifyCallback] and mark the isolate as - * runnable. - * - * This callback may be called on a different thread than the one - * running the parent isolate. - * - * When the function returns `false`, it is the responsibility of this - * function to ensure that `Dart_ShutdownIsolate` has been called. - * - * When the function returns `false`, the function should set *error to - * a malloc-allocated buffer containing a useful error message. The - * caller of this function (the VM) will make sure that the buffer is - * freed. - * - * \param child_isolate_data The callback data to associate with the new - * child isolate. - * \param error A structure into which the embedder can place a - * C string containing an error message in the case the initialization fails. - * - * \return The embedder returns true if the initialization was successful and - * false otherwise (in which case the VM will terminate the isolate). - */ -typedef bool (*Dart_InitializeIsolateCallback)(void** child_isolate_data, - char** error); - -/** - * An isolate shutdown callback function. - * - * This callback, provided by the embedder, is called before the vm - * shuts down an isolate. The isolate being shutdown will be the current - * isolate. It is safe to run Dart code. - * - * This function should be used to dispose of native resources that - * are allocated to an isolate in order to avoid leaks. - * - * \param isolate_group_data The same callback data which was passed to the - * isolate group when it was created. - * \param isolate_data The same callback data which was passed to the isolate - * when it was created. - */ -typedef void (*Dart_IsolateShutdownCallback)(void* isolate_group_data, - void* isolate_data); - -/** - * An isolate cleanup callback function. - * - * This callback, provided by the embedder, is called after the vm - * shuts down an isolate. There will be no current isolate and it is *not* - * safe to run Dart code. - * - * This function should be used to dispose of native resources that - * are allocated to an isolate in order to avoid leaks. - * - * \param isolate_group_data The same callback data which was passed to the - * isolate group when it was created. - * \param isolate_data The same callback data which was passed to the isolate - * when it was created. - */ -typedef void (*Dart_IsolateCleanupCallback)(void* isolate_group_data, - void* isolate_data); - -/** - * An isolate group cleanup callback function. - * - * This callback, provided by the embedder, is called after the vm - * shuts down an isolate group. - * - * This function should be used to dispose of native resources that - * are allocated to an isolate in order to avoid leaks. - * - * \param isolate_group_data The same callback data which was passed to the - * isolate group when it was created. - * - */ -typedef void (*Dart_IsolateGroupCleanupCallback)(void* isolate_group_data); - -/** - * A thread start callback function. - * This callback, provided by the embedder, is called after a thread in the - * vm thread pool starts. - * This function could be used to adjust thread priority or attach native - * resources to the thread. - */ -typedef void (*Dart_ThreadStartCallback)(void); - -/** - * A thread death callback function. - * This callback, provided by the embedder, is called before a thread in the - * vm thread pool exits. - * This function could be used to dispose of native resources that - * are associated and attached to the thread, in order to avoid leaks. - */ -typedef void (*Dart_ThreadExitCallback)(void); - -/** - * Opens a file for reading or writing. - * - * Callback provided by the embedder for file operations. If the - * embedder does not allow file operations this callback can be - * NULL. - * - * \param name The name of the file to open. - * \param write A boolean variable which indicates if the file is to - * opened for writing. If there is an existing file it needs to truncated. - */ -typedef void* (*Dart_FileOpenCallback)(const char* name, bool write); - -/** - * Read contents of file. - * - * Callback provided by the embedder for file operations. If the - * embedder does not allow file operations this callback can be - * NULL. - * - * \param data Buffer allocated in the callback into which the contents - * of the file are read into. It is the responsibility of the caller to - * free this buffer. - * \param file_length A variable into which the length of the file is returned. - * In the case of an error this value would be -1. - * \param stream Handle to the opened file. - */ -typedef void (*Dart_FileReadCallback)(uint8_t** data, - intptr_t* file_length, - void* stream); - -/** - * Write data into file. - * - * Callback provided by the embedder for file operations. If the - * embedder does not allow file operations this callback can be - * NULL. - * - * \param data Buffer which needs to be written into the file. - * \param length Length of the buffer. - * \param stream Handle to the opened file. - */ -typedef void (*Dart_FileWriteCallback)(const void* data, - intptr_t length, - void* stream); - -/** - * Closes the opened file. - * - * Callback provided by the embedder for file operations. If the - * embedder does not allow file operations this callback can be - * NULL. - * - * \param stream Handle to the opened file. - */ -typedef void (*Dart_FileCloseCallback)(void* stream); - -typedef bool (*Dart_EntropySource)(uint8_t* buffer, intptr_t length); - -/** - * Callback provided by the embedder that is used by the vmservice isolate - * to request the asset archive. The asset archive must be an uncompressed tar - * archive that is stored in a Uint8List. - * - * If the embedder has no vmservice isolate assets, the callback can be NULL. - * - * \return The embedder must return a handle to a Uint8List containing an - * uncompressed tar archive or null. - */ -typedef Dart_Handle (*Dart_GetVMServiceAssetsArchive)(void); - -/** - * The current version of the Dart_InitializeFlags. Should be incremented every - * time Dart_InitializeFlags changes in a binary incompatible way. - */ -#define DART_INITIALIZE_PARAMS_CURRENT_VERSION (0x00000007) - -/** Forward declaration */ -struct Dart_CodeObserver; - -/** - * Callback provided by the embedder that is used by the VM to notify on code - * object creation, *before* it is invoked the first time. - * This is useful for embedders wanting to e.g. keep track of PCs beyond - * the lifetime of the garbage collected code objects. - * Note that an address range may be used by more than one code object over the - * lifecycle of a process. Clients of this function should record timestamps for - * these compilation events and when collecting PCs to disambiguate reused - * address ranges. - */ -typedef void (*Dart_OnNewCodeCallback)(struct Dart_CodeObserver* observer, - const char* name, - uintptr_t base, - uintptr_t size); - -typedef struct Dart_CodeObserver { - void* data; - - Dart_OnNewCodeCallback on_new_code; -} Dart_CodeObserver; - -/** - * Optional callback provided by the embedder that is used by the VM to - * implement registration of kernel blobs for the subsequent Isolate.spawnUri - * If no callback is provided, the registration of kernel blobs will throw - * an error. - * - * \param kernel_buffer A buffer which contains a kernel program. Callback - * should copy the contents of `kernel_buffer` as - * it may be freed immediately after registration. - * \param kernel_buffer_size The size of `kernel_buffer`. - * - * \return A C string representing URI which can be later used - * to spawn a new isolate. This C String should be scope allocated - * or owned by the embedder. - * Returns NULL if embedder runs out of memory. - */ -typedef const char* (*Dart_RegisterKernelBlobCallback)( - const uint8_t* kernel_buffer, - intptr_t kernel_buffer_size); - -/** - * Optional callback provided by the embedder that is used by the VM to - * unregister kernel blobs. - * If no callback is provided, the unregistration of kernel blobs will throw - * an error. - * - * \param kernel_blob_uri URI of the kernel blob to unregister. - */ -typedef void (*Dart_UnregisterKernelBlobCallback)(const char* kernel_blob_uri); - -/** - * Describes how to initialize the VM. Used with Dart_Initialize. - */ -typedef struct { - /** - * Identifies the version of the struct used by the client. - * should be initialized to DART_INITIALIZE_PARAMS_CURRENT_VERSION. - */ - int32_t version; - - /** - * A buffer containing snapshot data, or NULL if no snapshot is provided. - * - * If provided, the buffer must remain valid until Dart_Cleanup returns. - */ - const uint8_t* vm_snapshot_data; - - /** - * A buffer containing a snapshot of precompiled instructions, or NULL if - * no snapshot is provided. - * - * If provided, the buffer must remain valid until Dart_Cleanup returns. - */ - const uint8_t* vm_snapshot_instructions; - - /** - * A function to be called during isolate group creation. - * See Dart_IsolateGroupCreateCallback. - */ - Dart_IsolateGroupCreateCallback create_group; - - /** - * A function to be called during isolate - * initialization inside an existing isolate group. - * See Dart_InitializeIsolateCallback. - */ - Dart_InitializeIsolateCallback initialize_isolate; - - /** - * A function to be called right before an isolate is shutdown. - * See Dart_IsolateShutdownCallback. - */ - Dart_IsolateShutdownCallback shutdown_isolate; - - /** - * A function to be called after an isolate was shutdown. - * See Dart_IsolateCleanupCallback. - */ - Dart_IsolateCleanupCallback cleanup_isolate; - - /** - * A function to be called after an isolate group is - * shutdown. See Dart_IsolateGroupCleanupCallback. - */ - Dart_IsolateGroupCleanupCallback cleanup_group; - - Dart_ThreadStartCallback thread_start; - Dart_ThreadExitCallback thread_exit; - Dart_FileOpenCallback file_open; - Dart_FileReadCallback file_read; - Dart_FileWriteCallback file_write; - Dart_FileCloseCallback file_close; - Dart_EntropySource entropy_source; - - /** - * A function to be called by the service isolate when it requires the - * vmservice assets archive. See Dart_GetVMServiceAssetsArchive. - */ - Dart_GetVMServiceAssetsArchive get_service_assets; - - bool start_kernel_isolate; - - /** - * An external code observer callback function. The observer can be invoked - * as early as during the Dart_Initialize() call. - */ - Dart_CodeObserver* code_observer; - - /** - * Kernel blob registration callback function. See Dart_RegisterKernelBlobCallback. - */ - Dart_RegisterKernelBlobCallback register_kernel_blob; - - /** - * Kernel blob unregistration callback function. See Dart_UnregisterKernelBlobCallback. - */ - Dart_UnregisterKernelBlobCallback unregister_kernel_blob; -} Dart_InitializeParams; - -/** - * Initializes the VM. - * - * \param params A struct containing initialization information. The version - * field of the struct must be DART_INITIALIZE_PARAMS_CURRENT_VERSION. - * - * \return NULL if initialization is successful. Returns an error message - * otherwise. The caller is responsible for freeing the error message. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT char* Dart_Initialize( - Dart_InitializeParams* params); - -/** - * Cleanup state in the VM before process termination. - * - * \return NULL if cleanup is successful. Returns an error message otherwise. - * The caller is responsible for freeing the error message. - * - * NOTE: This function must not be called on a thread that was created by the VM - * itself. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT char* Dart_Cleanup(void); - -/** - * Sets command line flags. Should be called before Dart_Initialize. - * - * \param argc The length of the arguments array. - * \param argv An array of arguments. - * - * \return NULL if successful. Returns an error message otherwise. - * The caller is responsible for freeing the error message. - * - * NOTE: This call does not store references to the passed in c-strings. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT char* Dart_SetVMFlags(int argc, - const char** argv); - -/** - * Returns true if the named VM flag is of boolean type, specified, and set to - * true. - * - * \param flag_name The name of the flag without leading punctuation - * (example: "enable_asserts"). - */ -DART_EXPORT bool Dart_IsVMFlagSet(const char* flag_name); - -/* - * ======== - * Isolates - * ======== - */ - -/** - * Creates a new isolate. The new isolate becomes the current isolate. - * - * A snapshot can be used to restore the VM quickly to a saved state - * and is useful for fast startup. If snapshot data is provided, the - * isolate will be started using that snapshot data. Requires a core snapshot or - * an app snapshot created by Dart_CreateSnapshot or - * Dart_CreatePrecompiledSnapshot* from a VM with the same version. - * - * Requires there to be no current isolate. - * - * \param script_uri The main source file or snapshot this isolate will load. - * The VM will provide this URI to the Dart_IsolateGroupCreateCallback when a - * child isolate is created by Isolate.spawn. The embedder should use a URI - * that allows it to load the same program into such a child isolate. - * \param name A short name for the isolate to improve debugging messages. - * Typically of the format 'foo.dart:main()'. - * \param isolate_snapshot_data Buffer containing the snapshot data of the - * isolate or NULL if no snapshot is provided. If provided, the buffer must - * remain valid until the isolate shuts down. - * \param isolate_snapshot_instructions Buffer containing the snapshot - * instructions of the isolate or NULL if no snapshot is provided. If - * provided, the buffer must remain valid until the isolate shuts down. - * \param flags Pointer to VM specific flags or NULL for default flags. - * \param isolate_group_data Embedder group data. This data can be obtained - * by calling Dart_IsolateGroupData and will be passed to the - * Dart_IsolateShutdownCallback, Dart_IsolateCleanupCallback, and - * Dart_IsolateGroupCleanupCallback. - * \param isolate_data Embedder data. This data will be passed to - * the Dart_IsolateGroupCreateCallback when new isolates are spawned from - * this parent isolate. - * \param error Returns NULL if creation is successful, an error message - * otherwise. The caller is responsible for calling free() on the error - * message. - * - * \return The new isolate on success, or NULL if isolate creation failed. - */ -DART_EXPORT Dart_Isolate -Dart_CreateIsolateGroup(const char* script_uri, - const char* name, - const uint8_t* isolate_snapshot_data, - const uint8_t* isolate_snapshot_instructions, - Dart_IsolateFlags* flags, - void* isolate_group_data, - void* isolate_data, - char** error); -/** - * Creates a new isolate inside the isolate group of [group_member]. - * - * Requires there to be no current isolate. - * - * \param group_member An isolate from the same group into which the newly created - * isolate should be born into. Other threads may not have entered / enter this - * member isolate. - * \param name A short name for the isolate for debugging purposes. - * \param shutdown_callback A callback to be called when the isolate is being - * shutdown (may be NULL). - * \param cleanup_callback A callback to be called when the isolate is being - * cleaned up (may be NULL). - * \param isolate_data The embedder-specific data associated with this isolate. - * \param error Set to NULL if creation is successful, set to an error - * message otherwise. The caller is responsible for calling free() on the - * error message. - * - * \return The newly created isolate on success, or NULL if isolate creation - * failed. - * - * If successful, the newly created isolate will become the current isolate. - */ -DART_EXPORT Dart_Isolate -Dart_CreateIsolateInGroup(Dart_Isolate group_member, - const char* name, - Dart_IsolateShutdownCallback shutdown_callback, - Dart_IsolateCleanupCallback cleanup_callback, - void* child_isolate_data, - char** error); - -/* TODO(turnidge): Document behavior when there is already a current - * isolate. */ - -/** - * Creates a new isolate from a Dart Kernel file. The new isolate - * becomes the current isolate. - * - * Requires there to be no current isolate. - * - * \param script_uri The main source file or snapshot this isolate will load. - * The VM will provide this URI to the Dart_IsolateGroupCreateCallback when a - * child isolate is created by Isolate.spawn. The embedder should use a URI that - * allows it to load the same program into such a child isolate. - * \param name A short name for the isolate to improve debugging messages. - * Typically of the format 'foo.dart:main()'. - * \param kernel_buffer A buffer which contains a kernel/DIL program. Must - * remain valid until isolate shutdown. - * \param kernel_buffer_size The size of `kernel_buffer`. - * \param flags Pointer to VM specific flags or NULL for default flags. - * \param isolate_group_data Embedder group data. This data can be obtained - * by calling Dart_IsolateGroupData and will be passed to the - * Dart_IsolateShutdownCallback, Dart_IsolateCleanupCallback, and - * Dart_IsolateGroupCleanupCallback. - * \param isolate_data Embedder data. This data will be passed to - * the Dart_IsolateGroupCreateCallback when new isolates are spawned from - * this parent isolate. - * \param error Returns NULL if creation is successful, an error message - * otherwise. The caller is responsible for calling free() on the error - * message. - * - * \return The new isolate on success, or NULL if isolate creation failed. - */ -DART_EXPORT Dart_Isolate -Dart_CreateIsolateGroupFromKernel(const char* script_uri, - const char* name, - const uint8_t* kernel_buffer, - intptr_t kernel_buffer_size, - Dart_IsolateFlags* flags, - void* isolate_group_data, - void* isolate_data, - char** error); -/** - * Shuts down the current isolate. After this call, the current isolate is NULL. - * Any current scopes created by Dart_EnterScope will be exited. Invokes the - * shutdown callback and any callbacks of remaining weak persistent handles. - * - * Requires there to be a current isolate. - */ -DART_EXPORT void Dart_ShutdownIsolate(void); -/* TODO(turnidge): Document behavior when there is no current isolate. */ - -/** - * Returns the current isolate. Will return NULL if there is no - * current isolate. - */ -DART_EXPORT Dart_Isolate Dart_CurrentIsolate(void); - -/** - * Returns the callback data associated with the current isolate. This - * data was set when the isolate got created or initialized. - */ -DART_EXPORT void* Dart_CurrentIsolateData(void); - -/** - * Returns the callback data associated with the given isolate. This - * data was set when the isolate got created or initialized. - */ -DART_EXPORT void* Dart_IsolateData(Dart_Isolate isolate); - -/** - * Returns the current isolate group. Will return NULL if there is no - * current isolate group. - */ -DART_EXPORT Dart_IsolateGroup Dart_CurrentIsolateGroup(void); - -/** - * Returns the callback data associated with the current isolate group. This - * data was passed to the isolate group when it was created. - */ -DART_EXPORT void* Dart_CurrentIsolateGroupData(void); - -/** - * Gets an id that uniquely identifies current isolate group. - * - * It is the responsibility of the caller to free the returned ID. - */ -typedef int64_t Dart_IsolateGroupId; -DART_EXPORT Dart_IsolateGroupId Dart_CurrentIsolateGroupId(); - -/** - * Returns the callback data associated with the specified isolate group. This - * data was passed to the isolate when it was created. - * The embedder is responsible for ensuring the consistency of this data - * with respect to the lifecycle of an isolate group. - */ -DART_EXPORT void* Dart_IsolateGroupData(Dart_Isolate isolate); - -/** - * Returns the debugging name for the current isolate. - * - * This name is unique to each isolate and should only be used to make - * debugging messages more comprehensible. - */ -DART_EXPORT Dart_Handle Dart_DebugName(void); - -/** - * Returns the ID for an isolate which is used to query the service protocol. - * - * It is the responsibility of the caller to free the returned ID. - */ -DART_EXPORT const char* Dart_IsolateServiceId(Dart_Isolate isolate); - -/** - * Enters an isolate. After calling this function, - * the current isolate will be set to the provided isolate. - * - * Requires there to be no current isolate. Multiple threads may not be in - * the same isolate at once. - */ -DART_EXPORT void Dart_EnterIsolate(Dart_Isolate isolate); - -/** - * Kills the given isolate. - * - * This function has the same effect as dart:isolate's - * Isolate.kill(priority:immediate). - * It can interrupt ordinary Dart code but not native code. If the isolate is - * in the middle of a long running native function, the isolate will not be - * killed until control returns to Dart. - * - * Does not require a current isolate. It is safe to kill the current isolate if - * there is one. - */ -DART_EXPORT void Dart_KillIsolate(Dart_Isolate isolate); - -/** - * Notifies the VM that the embedder expects to be idle until |deadline|. The VM - * may use this time to perform garbage collection or other tasks to avoid - * delays during execution of Dart code in the future. - * - * |deadline| is measured in microseconds against the system's monotonic time. - * This clock can be accessed via Dart_TimelineGetMicros(). - * - * Requires there to be a current isolate. - */ -DART_EXPORT void Dart_NotifyIdle(int64_t deadline); - -/** - * Notifies the VM that the system is running low on memory. - * - * Does not require a current isolate. Only valid after calling Dart_Initialize. - */ -DART_EXPORT void Dart_NotifyLowMemory(void); - -/** - * Starts the CPU sampling profiler. - */ -DART_EXPORT void Dart_StartProfiling(void); - -/** - * Stops the CPU sampling profiler. - * - * Note that some profile samples might still be taken after this fucntion - * returns due to the asynchronous nature of the implementation on some - * platforms. - */ -DART_EXPORT void Dart_StopProfiling(void); - -/** - * Notifies the VM that the current thread should not be profiled until a - * matching call to Dart_ThreadEnableProfiling is made. - * - * NOTE: By default, if a thread has entered an isolate it will be profiled. - * This function should be used when an embedder knows a thread is about - * to make a blocking call and wants to avoid unnecessary interrupts by - * the profiler. - */ -DART_EXPORT void Dart_ThreadDisableProfiling(void); - -/** - * Notifies the VM that the current thread should be profiled. - * - * NOTE: It is only legal to call this function *after* calling - * Dart_ThreadDisableProfiling. - * - * NOTE: By default, if a thread has entered an isolate it will be profiled. - */ -DART_EXPORT void Dart_ThreadEnableProfiling(void); - -/** - * Register symbol information for the Dart VM's profiler and crash dumps. - * - * This consumes the output of //topaz/runtime/dart/profiler_symbols, which - * should be treated as opaque. - */ -DART_EXPORT void Dart_AddSymbols(const char* dso_name, - void* buffer, - intptr_t buffer_size); - -/** - * Exits an isolate. After this call, Dart_CurrentIsolate will - * return NULL. - * - * Requires there to be a current isolate. - */ -DART_EXPORT void Dart_ExitIsolate(void); -/* TODO(turnidge): We don't want users of the api to be able to exit a - * "pure" dart isolate. Implement and document. */ - -/** - * Creates a full snapshot of the current isolate heap. - * - * A full snapshot is a compact representation of the dart vm isolate heap - * and dart isolate heap states. These snapshots are used to initialize - * the vm isolate on startup and fast initialization of an isolate. - * A Snapshot of the heap is created before any dart code has executed. - * - * Requires there to be a current isolate. Not available in the precompiled - * runtime (check Dart_IsPrecompiledRuntime). - * - * \param vm_snapshot_data_buffer Returns a pointer to a buffer containing the - * vm snapshot. This buffer is scope allocated and is only valid - * until the next call to Dart_ExitScope. - * \param vm_snapshot_data_size Returns the size of vm_snapshot_data_buffer. - * \param isolate_snapshot_data_buffer Returns a pointer to a buffer containing - * the isolate snapshot. This buffer is scope allocated and is only valid - * until the next call to Dart_ExitScope. - * \param isolate_snapshot_data_size Returns the size of - * isolate_snapshot_data_buffer. - * \param is_core Create a snapshot containing core libraries. - * Such snapshot should be agnostic to null safety mode. - * - * \return A valid handle if no error occurs during the operation. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle -Dart_CreateSnapshot(uint8_t** vm_snapshot_data_buffer, - intptr_t* vm_snapshot_data_size, - uint8_t** isolate_snapshot_data_buffer, - intptr_t* isolate_snapshot_data_size, - bool is_core); - -/** - * Returns whether the buffer contains a kernel file. - * - * \param buffer Pointer to a buffer that might contain a kernel binary. - * \param buffer_size Size of the buffer. - * - * \return Whether the buffer contains a kernel binary (full or partial). - */ -DART_EXPORT bool Dart_IsKernel(const uint8_t* buffer, intptr_t buffer_size); - -/** - * Make isolate runnable. - * - * When isolates are spawned, this function is used to indicate that - * the creation and initialization (including script loading) of the - * isolate is complete and the isolate can start. - * This function expects there to be no current isolate. - * - * \param isolate The isolate to be made runnable. - * - * \return NULL if successful. Returns an error message otherwise. The caller - * is responsible for freeing the error message. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT char* Dart_IsolateMakeRunnable( - Dart_Isolate isolate); - -/* - * ================== - * Messages and Ports - * ================== - */ - -/** - * A port is used to send or receive inter-isolate messages - */ -typedef int64_t Dart_Port; - -/** - * ILLEGAL_PORT is a port number guaranteed never to be associated with a valid - * port. - */ -#define ILLEGAL_PORT ((Dart_Port)0) - -/** - * A message notification callback. - * - * This callback allows the embedder to provide an alternate wakeup - * mechanism for the delivery of inter-isolate messages. It is the - * responsibility of the embedder to call Dart_HandleMessage to - * process the message. - */ -typedef void (*Dart_MessageNotifyCallback)(Dart_Isolate dest_isolate); - -/** - * Allows embedders to provide an alternative wakeup mechanism for the - * delivery of inter-isolate messages. This setting only applies to - * the current isolate. - * - * Most embedders will only call this function once, before isolate - * execution begins. If this function is called after isolate - * execution begins, the embedder is responsible for threading issues. - */ -DART_EXPORT void Dart_SetMessageNotifyCallback( - Dart_MessageNotifyCallback message_notify_callback); -/* TODO(turnidge): Consider moving this to isolate creation so that it - * is impossible to mess up. */ - -/** - * Query the current message notify callback for the isolate. - * - * \return The current message notify callback for the isolate. - */ -DART_EXPORT Dart_MessageNotifyCallback Dart_GetMessageNotifyCallback(void); - -/** - * The VM's default message handler supports pausing an isolate before it - * processes the first message and right after the it processes the isolate's - * final message. This can be controlled for all isolates by two VM flags: - * - * `--pause-isolates-on-start` - * `--pause-isolates-on-exit` - * - * Additionally, Dart_SetShouldPauseOnStart and Dart_SetShouldPauseOnExit can be - * used to control this behaviour on a per-isolate basis. - * - * When an embedder is using a Dart_MessageNotifyCallback the embedder - * needs to cooperate with the VM so that the service protocol can report - * accurate information about isolates and so that tools such as debuggers - * work reliably. - * - * The following functions can be used to implement pausing on start and exit. - */ - -/** - * If the VM flag `--pause-isolates-on-start` was passed this will be true. - * - * \return A boolean value indicating if pause on start was requested. - */ -DART_EXPORT bool Dart_ShouldPauseOnStart(void); - -/** - * Override the VM flag `--pause-isolates-on-start` for the current isolate. - * - * \param should_pause Should the isolate be paused on start? - * - * NOTE: This must be called before Dart_IsolateMakeRunnable. - */ -DART_EXPORT void Dart_SetShouldPauseOnStart(bool should_pause); - -/** - * Is the current isolate paused on start? - * - * \return A boolean value indicating if the isolate is paused on start. - */ -DART_EXPORT bool Dart_IsPausedOnStart(void); - -/** - * Called when the embedder has paused the current isolate on start and when - * the embedder has resumed the isolate. - * - * \param paused Is the isolate paused on start? - */ -DART_EXPORT void Dart_SetPausedOnStart(bool paused); - -/** - * If the VM flag `--pause-isolates-on-exit` was passed this will be true. - * - * \return A boolean value indicating if pause on exit was requested. - */ -DART_EXPORT bool Dart_ShouldPauseOnExit(void); - -/** - * Override the VM flag `--pause-isolates-on-exit` for the current isolate. - * - * \param should_pause Should the isolate be paused on exit? - * - */ -DART_EXPORT void Dart_SetShouldPauseOnExit(bool should_pause); - -/** - * Is the current isolate paused on exit? - * - * \return A boolean value indicating if the isolate is paused on exit. - */ -DART_EXPORT bool Dart_IsPausedOnExit(void); - -/** - * Called when the embedder has paused the current isolate on exit and when - * the embedder has resumed the isolate. - * - * \param paused Is the isolate paused on exit? - */ -DART_EXPORT void Dart_SetPausedOnExit(bool paused); - -/** - * Called when the embedder has caught a top level unhandled exception error - * in the current isolate. - * - * NOTE: It is illegal to call this twice on the same isolate without first - * clearing the sticky error to null. - * - * \param error The unhandled exception error. - */ -DART_EXPORT void Dart_SetStickyError(Dart_Handle error); - -/** - * Does the current isolate have a sticky error? - */ -DART_EXPORT bool Dart_HasStickyError(void); - -/** - * Gets the sticky error for the current isolate. - * - * \return A handle to the sticky error object or null. - */ -DART_EXPORT Dart_Handle Dart_GetStickyError(void); - -/** - * Handles the next pending message for the current isolate. - * - * May generate an unhandled exception error. - * - * \return A valid handle if no error occurs during the operation. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_HandleMessage(void); - -/** - * Drains the microtask queue, then blocks the calling thread until the current - * isolate receives a message, then handles all messages. - * - * \param timeout_millis When non-zero, the call returns after the indicated - number of milliseconds even if no message was received. - * \return A valid handle if no error occurs, otherwise an error handle. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle -Dart_WaitForEvent(int64_t timeout_millis); - -/** - * Handles any pending messages for the vm service for the current - * isolate. - * - * This function may be used by an embedder at a breakpoint to avoid - * pausing the vm service. - * - * This function can indirectly cause the message notify callback to - * be called. - * - * \return true if the vm service requests the program resume - * execution, false otherwise - */ -DART_EXPORT bool Dart_HandleServiceMessages(void); - -/** - * Does the current isolate have pending service messages? - * - * \return true if the isolate has pending service messages, false otherwise. - */ -DART_EXPORT bool Dart_HasServiceMessages(void); - -/** - * Processes any incoming messages for the current isolate. - * - * This function may only be used when the embedder has not provided - * an alternate message delivery mechanism with - * Dart_SetMessageCallbacks. It is provided for convenience. - * - * This function waits for incoming messages for the current - * isolate. As new messages arrive, they are handled using - * Dart_HandleMessage. The routine exits when all ports to the - * current isolate are closed. - * - * \return A valid handle if the run loop exited successfully. If an - * exception or other error occurs while processing messages, an - * error handle is returned. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_RunLoop(void); - -/** - * Lets the VM run message processing for the isolate. - * - * This function expects there to a current isolate and the current isolate - * must not have an active api scope. The VM will take care of making the - * isolate runnable (if not already), handles its message loop and will take - * care of shutting the isolate down once it's done. - * - * \param errors_are_fatal Whether uncaught errors should be fatal. - * \param on_error_port A port to notify on uncaught errors (or ILLEGAL_PORT). - * \param on_exit_port A port to notify on exit (or ILLEGAL_PORT). - * \param error A non-NULL pointer which will hold an error message if the call - * fails. The error has to be free()ed by the caller. - * - * \return If successfull the VM takes owernship of the isolate and takes care - * of its message loop. If not successful the caller retains owernship of the - * isolate. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT bool Dart_RunLoopAsync( - bool errors_are_fatal, - Dart_Port on_error_port, - Dart_Port on_exit_port, - char** error); - -/* TODO(turnidge): Should this be removed from the public api? */ - -/** - * Gets the main port id for the current isolate. - */ -DART_EXPORT Dart_Port Dart_GetMainPortId(void); - -/** - * Does the current isolate have live ReceivePorts? - * - * A ReceivePort is live when it has not been closed. - */ -DART_EXPORT bool Dart_HasLivePorts(void); - -/** - * Posts a message for some isolate. The message is a serialized - * object. - * - * Requires there to be a current isolate. - * - * \param port_id The destination port. - * \param object An object from the current isolate. - * - * \return True if the message was posted. - */ -DART_EXPORT bool Dart_Post(Dart_Port port_id, Dart_Handle object); - -/** - * Returns a new SendPort with the provided port id. - * - * \param port_id The destination port. - * - * \return A new SendPort if no errors occurs. Otherwise returns - * an error handle. - */ -DART_EXPORT Dart_Handle Dart_NewSendPort(Dart_Port port_id); - -/** - * Gets the SendPort id for the provided SendPort. - * \param port A SendPort object whose id is desired. - * \param port_id Returns the id of the SendPort. - * \return Success if no error occurs. Otherwise returns - * an error handle. - */ -DART_EXPORT Dart_Handle Dart_SendPortGetId(Dart_Handle port, - Dart_Port* port_id); - -/* - * ====== - * Scopes - * ====== - */ - -/** - * Enters a new scope. - * - * All new local handles will be created in this scope. Additionally, - * some functions may return "scope allocated" memory which is only - * valid within this scope. - * - * Requires there to be a current isolate. - */ -DART_EXPORT void Dart_EnterScope(void); - -/** - * Exits a scope. - * - * The previous scope (if any) becomes the current scope. - * - * Requires there to be a current isolate. - */ -DART_EXPORT void Dart_ExitScope(void); - -/** - * The Dart VM uses "zone allocation" for temporary structures. Zones - * support very fast allocation of small chunks of memory. The chunks - * cannot be deallocated individually, but instead zones support - * deallocating all chunks in one fast operation. - * - * This function makes it possible for the embedder to allocate - * temporary data in the VMs zone allocator. - * - * Zone allocation is possible: - * 1. when inside a scope where local handles can be allocated - * 2. when processing a message from a native port in a native port - * handler - * - * All the memory allocated this way will be reclaimed either on the - * next call to Dart_ExitScope or when the native port handler exits. - * - * \param size Size of the memory to allocate. - * - * \return A pointer to the allocated memory. NULL if allocation - * failed. Failure might due to is no current VM zone. - */ -DART_EXPORT uint8_t* Dart_ScopeAllocate(intptr_t size); - -/* - * ======= - * Objects - * ======= - */ - -/** - * Returns the null object. - * - * \return A handle to the null object. - */ -DART_EXPORT Dart_Handle Dart_Null(void); - -/** - * Is this object null? - */ -DART_EXPORT bool Dart_IsNull(Dart_Handle object); - -/** - * Returns the empty string object. - * - * \return A handle to the empty string object. - */ -DART_EXPORT Dart_Handle Dart_EmptyString(void); - -/** - * Returns types that are not classes, and which therefore cannot be looked up - * as library members by Dart_GetType. - * - * \return A handle to the dynamic, void or Never type. - */ -DART_EXPORT Dart_Handle Dart_TypeDynamic(void); -DART_EXPORT Dart_Handle Dart_TypeVoid(void); -DART_EXPORT Dart_Handle Dart_TypeNever(void); - -/** - * Checks if the two objects are equal. - * - * The result of the comparison is returned through the 'equal' - * parameter. The return value itself is used to indicate success or - * failure, not equality. - * - * May generate an unhandled exception error. - * - * \param obj1 An object to be compared. - * \param obj2 An object to be compared. - * \param equal Returns the result of the equality comparison. - * - * \return A valid handle if no error occurs during the comparison. - */ -DART_EXPORT Dart_Handle Dart_ObjectEquals(Dart_Handle obj1, - Dart_Handle obj2, - bool* equal); - -/** - * Is this object an instance of some type? - * - * The result of the test is returned through the 'instanceof' parameter. - * The return value itself is used to indicate success or failure. - * - * \param object An object. - * \param type A type. - * \param instanceof Return true if 'object' is an instance of type 'type'. - * - * \return A valid handle if no error occurs during the operation. - */ -DART_EXPORT Dart_Handle Dart_ObjectIsType(Dart_Handle object, - Dart_Handle type, - bool* instanceof); - -/** - * Query object type. - * - * \param object Some Object. - * - * \return true if Object is of the specified type. - */ -DART_EXPORT bool Dart_IsInstance(Dart_Handle object); -DART_EXPORT bool Dart_IsNumber(Dart_Handle object); -DART_EXPORT bool Dart_IsInteger(Dart_Handle object); -DART_EXPORT bool Dart_IsDouble(Dart_Handle object); -DART_EXPORT bool Dart_IsBoolean(Dart_Handle object); -DART_EXPORT bool Dart_IsString(Dart_Handle object); -DART_EXPORT bool Dart_IsStringLatin1(Dart_Handle object); /* (ISO-8859-1) */ -DART_EXPORT bool Dart_IsExternalString(Dart_Handle object); -DART_EXPORT bool Dart_IsList(Dart_Handle object); -DART_EXPORT bool Dart_IsMap(Dart_Handle object); -DART_EXPORT bool Dart_IsLibrary(Dart_Handle object); -DART_EXPORT bool Dart_IsType(Dart_Handle handle); -DART_EXPORT bool Dart_IsFunction(Dart_Handle handle); -DART_EXPORT bool Dart_IsVariable(Dart_Handle handle); -DART_EXPORT bool Dart_IsTypeVariable(Dart_Handle handle); -DART_EXPORT bool Dart_IsClosure(Dart_Handle object); -DART_EXPORT bool Dart_IsTypedData(Dart_Handle object); -DART_EXPORT bool Dart_IsByteBuffer(Dart_Handle object); -DART_EXPORT bool Dart_IsFuture(Dart_Handle object); - -/* - * ========= - * Instances - * ========= - */ - -/* - * For the purposes of the embedding api, not all objects returned are - * Dart language objects. Within the api, we use the term 'Instance' - * to indicate handles which refer to true Dart language objects. - * - * TODO(turnidge): Reorganize the "Object" section above, pulling down - * any functions that more properly belong here. */ - -/** - * Gets the type of a Dart language object. - * - * \param instance Some Dart object. - * - * \return If no error occurs, the type is returned. Otherwise an - * error handle is returned. - */ -DART_EXPORT Dart_Handle Dart_InstanceGetType(Dart_Handle instance); - -/** - * Returns the name for the provided class type. - * - * \return A valid string handle if no error occurs during the - * operation. - */ -DART_EXPORT Dart_Handle Dart_ClassName(Dart_Handle cls_type); - -/** - * Returns the name for the provided function or method. - * - * \return A valid string handle if no error occurs during the - * operation. - */ -DART_EXPORT Dart_Handle Dart_FunctionName(Dart_Handle function); - -/** - * Returns a handle to the owner of a function. - * - * The owner of an instance method or a static method is its defining - * class. The owner of a top-level function is its defining - * library. The owner of the function of a non-implicit closure is the - * function of the method or closure that defines the non-implicit - * closure. - * - * \return A valid handle to the owner of the function, or an error - * handle if the argument is not a valid handle to a function. - */ -DART_EXPORT Dart_Handle Dart_FunctionOwner(Dart_Handle function); - -/** - * Determines whether a function handle referes to a static function - * of method. - * - * For the purposes of the embedding API, a top-level function is - * implicitly declared static. - * - * \param function A handle to a function or method declaration. - * \param is_static Returns whether the function or method is declared static. - * - * \return A valid handle if no error occurs during the operation. - */ -DART_EXPORT Dart_Handle Dart_FunctionIsStatic(Dart_Handle function, - bool* is_static); - -/** - * Is this object a closure resulting from a tear-off (closurized method)? - * - * Returns true for closures produced when an ordinary method is accessed - * through a getter call. Returns false otherwise, in particular for closures - * produced from local function declarations. - * - * \param object Some Object. - * - * \return true if Object is a tear-off. - */ -DART_EXPORT bool Dart_IsTearOff(Dart_Handle object); - -/** - * Retrieves the function of a closure. - * - * \return A handle to the function of the closure, or an error handle if the - * argument is not a closure. - */ -DART_EXPORT Dart_Handle Dart_ClosureFunction(Dart_Handle closure); - -/** - * Returns a handle to the library which contains class. - * - * \return A valid handle to the library with owns class, null if the class - * has no library or an error handle if the argument is not a valid handle - * to a class type. - */ -DART_EXPORT Dart_Handle Dart_ClassLibrary(Dart_Handle cls_type); - -/* - * ============================= - * Numbers, Integers and Doubles - * ============================= - */ - -/** - * Does this Integer fit into a 64-bit signed integer? - * - * \param integer An integer. - * \param fits Returns true if the integer fits into a 64-bit signed integer. - * - * \return A valid handle if no error occurs during the operation. - */ -DART_EXPORT Dart_Handle Dart_IntegerFitsIntoInt64(Dart_Handle integer, - bool* fits); - -/** - * Does this Integer fit into a 64-bit unsigned integer? - * - * \param integer An integer. - * \param fits Returns true if the integer fits into a 64-bit unsigned integer. - * - * \return A valid handle if no error occurs during the operation. - */ -DART_EXPORT Dart_Handle Dart_IntegerFitsIntoUint64(Dart_Handle integer, - bool* fits); - -/** - * Returns an Integer with the provided value. - * - * \param value The value of the integer. - * - * \return The Integer object if no error occurs. Otherwise returns - * an error handle. - */ -DART_EXPORT Dart_Handle Dart_NewInteger(int64_t value); - -/** - * Returns an Integer with the provided value. - * - * \param value The unsigned value of the integer. - * - * \return The Integer object if no error occurs. Otherwise returns - * an error handle. - */ -DART_EXPORT Dart_Handle Dart_NewIntegerFromUint64(uint64_t value); - -/** - * Returns an Integer with the provided value. - * - * \param value The value of the integer represented as a C string - * containing a hexadecimal number. - * - * \return The Integer object if no error occurs. Otherwise returns - * an error handle. - */ -DART_EXPORT Dart_Handle Dart_NewIntegerFromHexCString(const char* value); - -/** - * Gets the value of an Integer. - * - * The integer must fit into a 64-bit signed integer, otherwise an error occurs. - * - * \param integer An Integer. - * \param value Returns the value of the Integer. - * - * \return A valid handle if no error occurs during the operation. - */ -DART_EXPORT Dart_Handle Dart_IntegerToInt64(Dart_Handle integer, - int64_t* value); - -/** - * Gets the value of an Integer. - * - * The integer must fit into a 64-bit unsigned integer, otherwise an - * error occurs. - * - * \param integer An Integer. - * \param value Returns the value of the Integer. - * - * \return A valid handle if no error occurs during the operation. - */ -DART_EXPORT Dart_Handle Dart_IntegerToUint64(Dart_Handle integer, - uint64_t* value); - -/** - * Gets the value of an integer as a hexadecimal C string. - * - * \param integer An Integer. - * \param value Returns the value of the Integer as a hexadecimal C - * string. This C string is scope allocated and is only valid until - * the next call to Dart_ExitScope. - * - * \return A valid handle if no error occurs during the operation. - */ -DART_EXPORT Dart_Handle Dart_IntegerToHexCString(Dart_Handle integer, - const char** value); - -/** - * Returns a Double with the provided value. - * - * \param value A double. - * - * \return The Double object if no error occurs. Otherwise returns - * an error handle. - */ -DART_EXPORT Dart_Handle Dart_NewDouble(double value); - -/** - * Gets the value of a Double - * - * \param double_obj A Double - * \param value Returns the value of the Double. - * - * \return A valid handle if no error occurs during the operation. - */ -DART_EXPORT Dart_Handle Dart_DoubleValue(Dart_Handle double_obj, double* value); - -/** - * Returns a closure of static function 'function_name' in the class 'class_name' - * in the exported namespace of specified 'library'. - * - * \param library Library object - * \param cls_type Type object representing a Class - * \param function_name Name of the static function in the class - * - * \return A valid Dart instance if no error occurs during the operation. - */ -DART_EXPORT Dart_Handle Dart_GetStaticMethodClosure(Dart_Handle library, - Dart_Handle cls_type, - Dart_Handle function_name); - -/* - * ======== - * Booleans - * ======== - */ - -/** - * Returns the True object. - * - * Requires there to be a current isolate. - * - * \return A handle to the True object. - */ -DART_EXPORT Dart_Handle Dart_True(void); - -/** - * Returns the False object. - * - * Requires there to be a current isolate. - * - * \return A handle to the False object. - */ -DART_EXPORT Dart_Handle Dart_False(void); - -/** - * Returns a Boolean with the provided value. - * - * \param value true or false. - * - * \return The Boolean object if no error occurs. Otherwise returns - * an error handle. - */ -DART_EXPORT Dart_Handle Dart_NewBoolean(bool value); - -/** - * Gets the value of a Boolean - * - * \param boolean_obj A Boolean - * \param value Returns the value of the Boolean. - * - * \return A valid handle if no error occurs during the operation. - */ -DART_EXPORT Dart_Handle Dart_BooleanValue(Dart_Handle boolean_obj, bool* value); - -/* - * ======= - * Strings - * ======= - */ - -/** - * Gets the length of a String. - * - * \param str A String. - * \param length Returns the length of the String. - * - * \return A valid handle if no error occurs during the operation. - */ -DART_EXPORT Dart_Handle Dart_StringLength(Dart_Handle str, intptr_t* length); - -/** - * Returns a String built from the provided C string - * (There is an implicit assumption that the C string passed in contains - * UTF-8 encoded characters and '\0' is considered as a termination - * character). - * - * \param str A C String - * - * \return The String object if no error occurs. Otherwise returns - * an error handle. - */ -DART_EXPORT Dart_Handle Dart_NewStringFromCString(const char* str); -/* TODO(turnidge): Document what happens when we run out of memory - * during this call. */ - -/** - * Returns a String built from an array of UTF-8 encoded characters. - * - * \param utf8_array An array of UTF-8 encoded characters. - * \param length The length of the codepoints array. - * - * \return The String object if no error occurs. Otherwise returns - * an error handle. - */ -DART_EXPORT Dart_Handle Dart_NewStringFromUTF8(const uint8_t* utf8_array, - intptr_t length); - -/** - * Returns a String built from an array of UTF-16 encoded characters. - * - * \param utf16_array An array of UTF-16 encoded characters. - * \param length The length of the codepoints array. - * - * \return The String object if no error occurs. Otherwise returns - * an error handle. - */ -DART_EXPORT Dart_Handle Dart_NewStringFromUTF16(const uint16_t* utf16_array, - intptr_t length); - -/** - * Returns a String built from an array of UTF-32 encoded characters. - * - * \param utf32_array An array of UTF-32 encoded characters. - * \param length The length of the codepoints array. - * - * \return The String object if no error occurs. Otherwise returns - * an error handle. - */ -DART_EXPORT Dart_Handle Dart_NewStringFromUTF32(const int32_t* utf32_array, - intptr_t length); - -/** - * Returns a String which references an external array of - * Latin-1 (ISO-8859-1) encoded characters. - * - * \param latin1_array Array of Latin-1 encoded characters. This must not move. - * \param length The length of the characters array. - * \param peer An external pointer to associate with this string. - * \param external_allocation_size The number of externally allocated - * bytes for peer. Used to inform the garbage collector. - * \param callback A callback to be called when this string is finalized. - * - * \return The String object if no error occurs. Otherwise returns - * an error handle. - */ -DART_EXPORT Dart_Handle -Dart_NewExternalLatin1String(const uint8_t* latin1_array, - intptr_t length, - void* peer, - intptr_t external_allocation_size, - Dart_HandleFinalizer callback); - -/** - * Returns a String which references an external array of UTF-16 encoded - * characters. - * - * \param utf16_array An array of UTF-16 encoded characters. This must not move. - * \param length The length of the characters array. - * \param peer An external pointer to associate with this string. - * \param external_allocation_size The number of externally allocated - * bytes for peer. Used to inform the garbage collector. - * \param callback A callback to be called when this string is finalized. - * - * \return The String object if no error occurs. Otherwise returns - * an error handle. - */ -DART_EXPORT Dart_Handle -Dart_NewExternalUTF16String(const uint16_t* utf16_array, - intptr_t length, - void* peer, - intptr_t external_allocation_size, - Dart_HandleFinalizer callback); - -/** - * Gets the C string representation of a String. - * (It is a sequence of UTF-8 encoded values with a '\0' termination.) - * - * \param str A string. - * \param cstr Returns the String represented as a C string. - * This C string is scope allocated and is only valid until - * the next call to Dart_ExitScope. - * - * \return A valid handle if no error occurs during the operation. - */ -DART_EXPORT Dart_Handle Dart_StringToCString(Dart_Handle str, - const char** cstr); - -/** - * Gets a UTF-8 encoded representation of a String. - * - * Any unpaired surrogate code points in the string will be converted as - * replacement characters (U+FFFD, 0xEF 0xBF 0xBD in UTF-8). If you need - * to preserve unpaired surrogates, use the Dart_StringToUTF16 function. - * - * \param str A string. - * \param utf8_array Returns the String represented as UTF-8 code - * units. This UTF-8 array is scope allocated and is only valid - * until the next call to Dart_ExitScope. - * \param length Used to return the length of the array which was - * actually used. - * - * \return A valid handle if no error occurs during the operation. - */ -DART_EXPORT Dart_Handle Dart_StringToUTF8(Dart_Handle str, - uint8_t** utf8_array, - intptr_t* length); - -/** - * Gets the data corresponding to the string object. This function returns - * the data only for Latin-1 (ISO-8859-1) string objects. For all other - * string objects it returns an error. - * - * \param str A string. - * \param latin1_array An array allocated by the caller, used to return - * the string data. - * \param length Used to pass in the length of the provided array. - * Used to return the length of the array which was actually used. - * - * \return A valid handle if no error occurs during the operation. - */ -DART_EXPORT Dart_Handle Dart_StringToLatin1(Dart_Handle str, - uint8_t* latin1_array, - intptr_t* length); - -/** - * Gets the UTF-16 encoded representation of a string. - * - * \param str A string. - * \param utf16_array An array allocated by the caller, used to return - * the array of UTF-16 encoded characters. - * \param length Used to pass in the length of the provided array. - * Used to return the length of the array which was actually used. - * - * \return A valid handle if no error occurs during the operation. - */ -DART_EXPORT Dart_Handle Dart_StringToUTF16(Dart_Handle str, - uint16_t* utf16_array, - intptr_t* length); - -/** - * Gets the storage size in bytes of a String. - * - * \param str A String. - * \param size Returns the storage size in bytes of the String. - * This is the size in bytes needed to store the String. - * - * \return A valid handle if no error occurs during the operation. - */ -DART_EXPORT Dart_Handle Dart_StringStorageSize(Dart_Handle str, intptr_t* size); - -/** - * Retrieves some properties associated with a String. - * Properties retrieved are: - * - character size of the string (one or two byte) - * - length of the string - * - peer pointer of string if it is an external string. - * \param str A String. - * \param char_size Returns the character size of the String. - * \param str_len Returns the length of the String. - * \param peer Returns the peer pointer associated with the String or 0 if - * there is no peer pointer for it. - * \return Success if no error occurs. Otherwise returns - * an error handle. - */ -DART_EXPORT Dart_Handle Dart_StringGetProperties(Dart_Handle str, - intptr_t* char_size, - intptr_t* str_len, - void** peer); - -/* - * ===== - * Lists - * ===== - */ - -/** - * Returns a List of the desired length. - * - * \param length The length of the list. - * - * \return The List object if no error occurs. Otherwise returns - * an error handle. - */ -DART_EXPORT Dart_Handle Dart_NewList(intptr_t length); - -typedef enum { - Dart_CoreType_Dynamic, - Dart_CoreType_Int, - Dart_CoreType_String, -} Dart_CoreType_Id; - -// TODO(bkonyi): convert this to use nullable types once NNBD is enabled. -/** - * Returns a List of the desired length with the desired legacy element type. - * - * \param element_type_id The type of elements of the list. - * \param length The length of the list. - * - * \return The List object if no error occurs. Otherwise returns an error - * handle. - */ -DART_EXPORT Dart_Handle Dart_NewListOf(Dart_CoreType_Id element_type_id, - intptr_t length); - -/** - * Returns a List of the desired length with the desired element type. - * - * \param element_type Handle to a nullable type object. E.g., from - * Dart_GetType or Dart_GetNullableType. - * - * \param length The length of the list. - * - * \return The List object if no error occurs. Otherwise returns - * an error handle. - */ -DART_EXPORT Dart_Handle Dart_NewListOfType(Dart_Handle element_type, - intptr_t length); - -/** - * Returns a List of the desired length with the desired element type, filled - * with the provided object. - * - * \param element_type Handle to a type object. E.g., from Dart_GetType. - * - * \param fill_object Handle to an object of type 'element_type' that will be - * used to populate the list. This parameter can only be Dart_Null() if the - * length of the list is 0 or 'element_type' is a nullable type. - * - * \param length The length of the list. - * - * \return The List object if no error occurs. Otherwise returns - * an error handle. - */ -DART_EXPORT Dart_Handle Dart_NewListOfTypeFilled(Dart_Handle element_type, - Dart_Handle fill_object, - intptr_t length); - -/** - * Gets the length of a List. - * - * May generate an unhandled exception error. - * - * \param list A List. - * \param length Returns the length of the List. - * - * \return A valid handle if no error occurs during the operation. - */ -DART_EXPORT Dart_Handle Dart_ListLength(Dart_Handle list, intptr_t* length); - -/** - * Gets the Object at some index of a List. - * - * If the index is out of bounds, an error occurs. - * - * May generate an unhandled exception error. - * - * \param list A List. - * \param index A valid index into the List. - * - * \return The Object in the List at the specified index if no error - * occurs. Otherwise returns an error handle. - */ -DART_EXPORT Dart_Handle Dart_ListGetAt(Dart_Handle list, intptr_t index); - -/** -* Gets a range of Objects from a List. -* -* If any of the requested index values are out of bounds, an error occurs. -* -* May generate an unhandled exception error. -* -* \param list A List. -* \param offset The offset of the first item to get. -* \param length The number of items to get. -* \param result A pointer to fill with the objects. -* -* \return Success if no error occurs during the operation. -*/ -DART_EXPORT Dart_Handle Dart_ListGetRange(Dart_Handle list, - intptr_t offset, - intptr_t length, - Dart_Handle* result); - -/** - * Sets the Object at some index of a List. - * - * If the index is out of bounds, an error occurs. - * - * May generate an unhandled exception error. - * - * \param list A List. - * \param index A valid index into the List. - * \param value The Object to put in the List. - * - * \return A valid handle if no error occurs during the operation. - */ -DART_EXPORT Dart_Handle Dart_ListSetAt(Dart_Handle list, - intptr_t index, - Dart_Handle value); - -/** - * May generate an unhandled exception error. - */ -DART_EXPORT Dart_Handle Dart_ListGetAsBytes(Dart_Handle list, - intptr_t offset, - uint8_t* native_array, - intptr_t length); - -/** - * May generate an unhandled exception error. - */ -DART_EXPORT Dart_Handle Dart_ListSetAsBytes(Dart_Handle list, - intptr_t offset, - const uint8_t* native_array, - intptr_t length); - -/* - * ==== - * Maps - * ==== - */ - -/** - * Gets the Object at some key of a Map. - * - * May generate an unhandled exception error. - * - * \param map A Map. - * \param key An Object. - * - * \return The value in the map at the specified key, null if the map does not - * contain the key, or an error handle. - */ -DART_EXPORT Dart_Handle Dart_MapGetAt(Dart_Handle map, Dart_Handle key); - -/** - * Returns whether the Map contains a given key. - * - * May generate an unhandled exception error. - * - * \param map A Map. - * - * \return A handle on a boolean indicating whether map contains the key. - * Otherwise returns an error handle. - */ -DART_EXPORT Dart_Handle Dart_MapContainsKey(Dart_Handle map, Dart_Handle key); - -/** - * Gets the list of keys of a Map. - * - * May generate an unhandled exception error. - * - * \param map A Map. - * - * \return The list of key Objects if no error occurs. Otherwise returns an - * error handle. - */ -DART_EXPORT Dart_Handle Dart_MapKeys(Dart_Handle map); - -/* - * ========== - * Typed Data - * ========== - */ - -typedef enum { - Dart_TypedData_kByteData = 0, - Dart_TypedData_kInt8, - Dart_TypedData_kUint8, - Dart_TypedData_kUint8Clamped, - Dart_TypedData_kInt16, - Dart_TypedData_kUint16, - Dart_TypedData_kInt32, - Dart_TypedData_kUint32, - Dart_TypedData_kInt64, - Dart_TypedData_kUint64, - Dart_TypedData_kFloat32, - Dart_TypedData_kFloat64, - Dart_TypedData_kInt32x4, - Dart_TypedData_kFloat32x4, - Dart_TypedData_kFloat64x2, - Dart_TypedData_kInvalid -} Dart_TypedData_Type; - -/** - * Return type if this object is a TypedData object. - * - * \return kInvalid if the object is not a TypedData object or the appropriate - * Dart_TypedData_Type. - */ -DART_EXPORT Dart_TypedData_Type Dart_GetTypeOfTypedData(Dart_Handle object); - -/** - * Return type if this object is an external TypedData object. - * - * \return kInvalid if the object is not an external TypedData object or - * the appropriate Dart_TypedData_Type. - */ -DART_EXPORT Dart_TypedData_Type -Dart_GetTypeOfExternalTypedData(Dart_Handle object); - -/** - * Returns a TypedData object of the desired length and type. - * - * \param type The type of the TypedData object. - * \param length The length of the TypedData object (length in type units). - * - * \return The TypedData object if no error occurs. Otherwise returns - * an error handle. - */ -DART_EXPORT Dart_Handle Dart_NewTypedData(Dart_TypedData_Type type, - intptr_t length); - -/** - * Returns a TypedData object which references an external data array. - * - * \param type The type of the data array. - * \param data A data array. This array must not move. - * \param length The length of the data array (length in type units). - * - * \return The TypedData object if no error occurs. Otherwise returns - * an error handle. - */ -DART_EXPORT Dart_Handle Dart_NewExternalTypedData(Dart_TypedData_Type type, - void* data, - intptr_t length); - -/** - * Returns a TypedData object which references an external data array. - * - * \param type The type of the data array. - * \param data A data array. This array must not move. - * \param length The length of the data array (length in type units). - * \param peer A pointer to a native object or NULL. This value is - * provided to callback when it is invoked. - * \param external_allocation_size The number of externally allocated - * bytes for peer. Used to inform the garbage collector. - * \param callback A function pointer that will be invoked sometime - * after the object is garbage collected, unless the handle has been deleted. - * A valid callback needs to be specified it cannot be NULL. - * - * \return The TypedData object if no error occurs. Otherwise returns - * an error handle. - */ -DART_EXPORT Dart_Handle -Dart_NewExternalTypedDataWithFinalizer(Dart_TypedData_Type type, - void* data, - intptr_t length, - void* peer, - intptr_t external_allocation_size, - Dart_HandleFinalizer callback); - -/** - * Returns a ByteBuffer object for the typed data. - * - * \param typed_data The TypedData object. - * - * \return The ByteBuffer object if no error occurs. Otherwise returns - * an error handle. - */ -DART_EXPORT Dart_Handle Dart_NewByteBuffer(Dart_Handle typed_data); - -/** - * Acquires access to the internal data address of a TypedData object. - * - * \param object The typed data object whose internal data address is to - * be accessed. - * \param type The type of the object is returned here. - * \param data The internal data address is returned here. - * \param len Size of the typed array is returned here. - * - * Notes: - * When the internal address of the object is acquired any calls to a - * Dart API function that could potentially allocate an object or run - * any Dart code will return an error. - * - * Any Dart API functions for accessing the data should not be called - * before the corresponding release. In particular, the object should - * not be acquired again before its release. This leads to undefined - * behavior. - * - * \return Success if the internal data address is acquired successfully. - * Otherwise, returns an error handle. - */ -DART_EXPORT Dart_Handle Dart_TypedDataAcquireData(Dart_Handle object, - Dart_TypedData_Type* type, - void** data, - intptr_t* len); - -/** - * Releases access to the internal data address that was acquired earlier using - * Dart_TypedDataAcquireData. - * - * \param object The typed data object whose internal data address is to be - * released. - * - * \return Success if the internal data address is released successfully. - * Otherwise, returns an error handle. - */ -DART_EXPORT Dart_Handle Dart_TypedDataReleaseData(Dart_Handle object); - -/** - * Returns the TypedData object associated with the ByteBuffer object. - * - * \param byte_buffer The ByteBuffer object. - * - * \return The TypedData object if no error occurs. Otherwise returns - * an error handle. - */ -DART_EXPORT Dart_Handle Dart_GetDataFromByteBuffer(Dart_Handle byte_buffer); - -/* - * ============================================================ - * Invoking Constructors, Methods, Closures and Field accessors - * ============================================================ - */ - -/** - * Invokes a constructor, creating a new object. - * - * This function allows hidden constructors (constructors with leading - * underscores) to be called. - * - * \param type Type of object to be constructed. - * \param constructor_name The name of the constructor to invoke. Use - * Dart_Null() or Dart_EmptyString() to invoke the unnamed constructor. - * This name should not include the name of the class. - * \param number_of_arguments Size of the arguments array. - * \param arguments An array of arguments to the constructor. - * - * \return If the constructor is called and completes successfully, - * then the new object. If an error occurs during execution, then an - * error handle is returned. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle -Dart_New(Dart_Handle type, - Dart_Handle constructor_name, - int number_of_arguments, - Dart_Handle* arguments); - -/** - * Allocate a new object without invoking a constructor. - * - * \param type The type of an object to be allocated. - * - * \return The new object. If an error occurs during execution, then an - * error handle is returned. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_Allocate(Dart_Handle type); - -/** - * Allocate a new object without invoking a constructor, and sets specified - * native fields. - * - * \param type The type of an object to be allocated. - * \param num_native_fields The number of native fields to set. - * \param native_fields An array containing the value of native fields. - * - * \return The new object. If an error occurs during execution, then an - * error handle is returned. - */ -DART_EXPORT Dart_Handle -Dart_AllocateWithNativeFields(Dart_Handle type, - intptr_t num_native_fields, - const intptr_t* native_fields); - -/** - * Invokes a method or function. - * - * The 'target' parameter may be an object, type, or library. If - * 'target' is an object, then this function will invoke an instance - * method. If 'target' is a type, then this function will invoke a - * static method. If 'target' is a library, then this function will - * invoke a top-level function from that library. - * NOTE: This API call cannot be used to invoke methods of a type object. - * - * This function ignores visibility (leading underscores in names). - * - * May generate an unhandled exception error. - * - * \param target An object, type, or library. - * \param name The name of the function or method to invoke. - * \param number_of_arguments Size of the arguments array. - * \param arguments An array of arguments to the function. - * - * \return If the function or method is called and completes - * successfully, then the return value is returned. If an error - * occurs during execution, then an error handle is returned. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle -Dart_Invoke(Dart_Handle target, - Dart_Handle name, - int number_of_arguments, - Dart_Handle* arguments); -/* TODO(turnidge): Document how to invoke operators. */ - -/** - * Invokes a Closure with the given arguments. - * - * May generate an unhandled exception error. - * - * \return If no error occurs during execution, then the result of - * invoking the closure is returned. If an error occurs during - * execution, then an error handle is returned. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle -Dart_InvokeClosure(Dart_Handle closure, - int number_of_arguments, - Dart_Handle* arguments); - -/** - * Invokes a Generative Constructor on an object that was previously - * allocated using Dart_Allocate/Dart_AllocateWithNativeFields. - * - * The 'object' parameter must be an object. - * - * This function ignores visibility (leading underscores in names). - * - * May generate an unhandled exception error. - * - * \param object An object. - * \param name The name of the constructor to invoke. - * Use Dart_Null() or Dart_EmptyString() to invoke the unnamed constructor. - * \param number_of_arguments Size of the arguments array. - * \param arguments An array of arguments to the function. - * - * \return If the constructor is called and completes - * successfully, then the object is returned. If an error - * occurs during execution, then an error handle is returned. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle -Dart_InvokeConstructor(Dart_Handle object, - Dart_Handle name, - int number_of_arguments, - Dart_Handle* arguments); - -/** - * Gets the value of a field. - * - * The 'container' parameter may be an object, type, or library. If - * 'container' is an object, then this function will access an - * instance field. If 'container' is a type, then this function will - * access a static field. If 'container' is a library, then this - * function will access a top-level variable. - * NOTE: This API call cannot be used to access fields of a type object. - * - * This function ignores field visibility (leading underscores in names). - * - * May generate an unhandled exception error. - * - * \param container An object, type, or library. - * \param name A field name. - * - * \return If no error occurs, then the value of the field is - * returned. Otherwise an error handle is returned. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle -Dart_GetField(Dart_Handle container, Dart_Handle name); - -/** - * Sets the value of a field. - * - * The 'container' parameter may actually be an object, type, or - * library. If 'container' is an object, then this function will - * access an instance field. If 'container' is a type, then this - * function will access a static field. If 'container' is a library, - * then this function will access a top-level variable. - * NOTE: This API call cannot be used to access fields of a type object. - * - * This function ignores field visibility (leading underscores in names). - * - * May generate an unhandled exception error. - * - * \param container An object, type, or library. - * \param name A field name. - * \param value The new field value. - * - * \return A valid handle if no error occurs. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle -Dart_SetField(Dart_Handle container, Dart_Handle name, Dart_Handle value); - -/* - * ========== - * Exceptions - * ========== - */ - -/* - * TODO(turnidge): Remove these functions from the api and replace all - * uses with Dart_NewUnhandledExceptionError. */ - -/** - * Throws an exception. - * - * This function causes a Dart language exception to be thrown. This - * will proceed in the standard way, walking up Dart frames until an - * appropriate 'catch' block is found, executing 'finally' blocks, - * etc. - * - * If an error handle is passed into this function, the error is - * propagated immediately. See Dart_PropagateError for a discussion - * of error propagation. - * - * If successful, this function does not return. Note that this means - * that the destructors of any stack-allocated C++ objects will not be - * called. If there are no Dart frames on the stack, an error occurs. - * - * \return An error handle if the exception was not thrown. - * Otherwise the function does not return. - */ -DART_EXPORT Dart_Handle Dart_ThrowException(Dart_Handle exception); - -/** - * Rethrows an exception. - * - * Rethrows an exception, unwinding all dart frames on the stack. If - * successful, this function does not return. Note that this means - * that the destructors of any stack-allocated C++ objects will not be - * called. If there are no Dart frames on the stack, an error occurs. - * - * \return An error handle if the exception was not thrown. - * Otherwise the function does not return. - */ -DART_EXPORT Dart_Handle Dart_ReThrowException(Dart_Handle exception, - Dart_Handle stacktrace); - -/* - * =========================== - * Native fields and functions - * =========================== - */ - -/** - * Gets the number of native instance fields in an object. - */ -DART_EXPORT Dart_Handle Dart_GetNativeInstanceFieldCount(Dart_Handle obj, - int* count); - -/** - * Gets the value of a native field. - * - * TODO(turnidge): Document. - */ -DART_EXPORT Dart_Handle Dart_GetNativeInstanceField(Dart_Handle obj, - int index, - intptr_t* value); - -/** - * Sets the value of a native field. - * - * TODO(turnidge): Document. - */ -DART_EXPORT Dart_Handle Dart_SetNativeInstanceField(Dart_Handle obj, - int index, - intptr_t value); - -/** - * The arguments to a native function. - * - * This object is passed to a native function to represent its - * arguments and return value. It allows access to the arguments to a - * native function by index. It also allows the return value of a - * native function to be set. - */ -typedef struct _Dart_NativeArguments* Dart_NativeArguments; - -/** - * Extracts current isolate group data from the native arguments structure. - */ -DART_EXPORT void* Dart_GetNativeIsolateGroupData(Dart_NativeArguments args); - -typedef enum { - Dart_NativeArgument_kBool = 0, - Dart_NativeArgument_kInt32, - Dart_NativeArgument_kUint32, - Dart_NativeArgument_kInt64, - Dart_NativeArgument_kUint64, - Dart_NativeArgument_kDouble, - Dart_NativeArgument_kString, - Dart_NativeArgument_kInstance, - Dart_NativeArgument_kNativeFields, -} Dart_NativeArgument_Type; - -typedef struct _Dart_NativeArgument_Descriptor { - uint8_t type; - uint8_t index; -} Dart_NativeArgument_Descriptor; - -typedef union _Dart_NativeArgument_Value { - bool as_bool; - int32_t as_int32; - uint32_t as_uint32; - int64_t as_int64; - uint64_t as_uint64; - double as_double; - struct { - Dart_Handle dart_str; - void* peer; - } as_string; - struct { - intptr_t num_fields; - intptr_t* values; - } as_native_fields; - Dart_Handle as_instance; -} Dart_NativeArgument_Value; - -enum { - kNativeArgNumberPos = 0, - kNativeArgNumberSize = 8, - kNativeArgTypePos = kNativeArgNumberPos + kNativeArgNumberSize, - kNativeArgTypeSize = 8, -}; - -#define BITMASK(size) ((1 << size) - 1) -#define DART_NATIVE_ARG_DESCRIPTOR(type, position) \ - (((type & BITMASK(kNativeArgTypeSize)) << kNativeArgTypePos) | \ - (position & BITMASK(kNativeArgNumberSize))) - -/** - * Gets the native arguments based on the types passed in and populates - * the passed arguments buffer with appropriate native values. - * - * \param args the Native arguments block passed into the native call. - * \param num_arguments length of argument descriptor array and argument - * values array passed in. - * \param arg_descriptors an array that describes the arguments that - * need to be retrieved. For each argument to be retrieved the descriptor - * contains the argument number (0, 1 etc.) and the argument type - * described using Dart_NativeArgument_Type, e.g: - * DART_NATIVE_ARG_DESCRIPTOR(Dart_NativeArgument_kBool, 1) indicates - * that the first argument is to be retrieved and it should be a boolean. - * \param arg_values array into which the native arguments need to be - * extracted into, the array is allocated by the caller (it could be - * stack allocated to avoid the malloc/free performance overhead). - * - * \return Success if all the arguments could be extracted correctly, - * returns an error handle if there were any errors while extracting the - * arguments (mismatched number of arguments, incorrect types, etc.). - */ -DART_EXPORT Dart_Handle -Dart_GetNativeArguments(Dart_NativeArguments args, - int num_arguments, - const Dart_NativeArgument_Descriptor* arg_descriptors, - Dart_NativeArgument_Value* arg_values); - -/** - * Gets the native argument at some index. - */ -DART_EXPORT Dart_Handle Dart_GetNativeArgument(Dart_NativeArguments args, - int index); -/* TODO(turnidge): Specify the behavior of an out-of-bounds access. */ - -/** - * Gets the number of native arguments. - */ -DART_EXPORT int Dart_GetNativeArgumentCount(Dart_NativeArguments args); - -/** - * Gets all the native fields of the native argument at some index. - * \param args Native arguments structure. - * \param arg_index Index of the desired argument in the structure above. - * \param num_fields size of the intptr_t array 'field_values' passed in. - * \param field_values intptr_t array in which native field values are returned. - * \return Success if the native fields where copied in successfully. Otherwise - * returns an error handle. On success the native field values are copied - * into the 'field_values' array, if the argument at 'arg_index' is a - * null object then 0 is copied as the native field values into the - * 'field_values' array. - */ -DART_EXPORT Dart_Handle -Dart_GetNativeFieldsOfArgument(Dart_NativeArguments args, - int arg_index, - int num_fields, - intptr_t* field_values); - -/** - * Gets the native field of the receiver. - */ -DART_EXPORT Dart_Handle Dart_GetNativeReceiver(Dart_NativeArguments args, - intptr_t* value); - -/** - * Gets a string native argument at some index. - * \param args Native arguments structure. - * \param arg_index Index of the desired argument in the structure above. - * \param peer Returns the peer pointer if the string argument has one. - * \return Success if the string argument has a peer, if it does not - * have a peer then the String object is returned. Otherwise returns - * an error handle (argument is not a String object). - */ -DART_EXPORT Dart_Handle Dart_GetNativeStringArgument(Dart_NativeArguments args, - int arg_index, - void** peer); - -/** - * Gets an integer native argument at some index. - * \param args Native arguments structure. - * \param index Index of the desired argument in the structure above. - * \param value Returns the integer value if the argument is an Integer. - * \return Success if no error occurs. Otherwise returns an error handle. - */ -DART_EXPORT Dart_Handle Dart_GetNativeIntegerArgument(Dart_NativeArguments args, - int index, - int64_t* value); - -/** - * Gets a boolean native argument at some index. - * \param args Native arguments structure. - * \param index Index of the desired argument in the structure above. - * \param value Returns the boolean value if the argument is a Boolean. - * \return Success if no error occurs. Otherwise returns an error handle. - */ -DART_EXPORT Dart_Handle Dart_GetNativeBooleanArgument(Dart_NativeArguments args, - int index, - bool* value); - -/** - * Gets a double native argument at some index. - * \param args Native arguments structure. - * \param index Index of the desired argument in the structure above. - * \param value Returns the double value if the argument is a double. - * \return Success if no error occurs. Otherwise returns an error handle. - */ -DART_EXPORT Dart_Handle Dart_GetNativeDoubleArgument(Dart_NativeArguments args, - int index, - double* value); - -/** - * Sets the return value for a native function. - * - * If retval is an Error handle, then error will be propagated once - * the native functions exits. See Dart_PropagateError for a - * discussion of how different types of errors are propagated. - */ -DART_EXPORT void Dart_SetReturnValue(Dart_NativeArguments args, - Dart_Handle retval); - -DART_EXPORT void Dart_SetWeakHandleReturnValue(Dart_NativeArguments args, - Dart_WeakPersistentHandle rval); - -DART_EXPORT void Dart_SetBooleanReturnValue(Dart_NativeArguments args, - bool retval); - -DART_EXPORT void Dart_SetIntegerReturnValue(Dart_NativeArguments args, - int64_t retval); - -DART_EXPORT void Dart_SetDoubleReturnValue(Dart_NativeArguments args, - double retval); - -/** - * A native function. - */ -typedef void (*Dart_NativeFunction)(Dart_NativeArguments arguments); - -/** - * Native entry resolution callback. - * - * For libraries and scripts which have native functions, the embedder - * can provide a native entry resolver. This callback is used to map a - * name/arity to a Dart_NativeFunction. If no function is found, the - * callback should return NULL. - * - * The parameters to the native resolver function are: - * \param name a Dart string which is the name of the native function. - * \param num_of_arguments is the number of arguments expected by the - * native function. - * \param auto_setup_scope is a boolean flag that can be set by the resolver - * to indicate if this function needs a Dart API scope (see Dart_EnterScope/ - * Dart_ExitScope) to be setup automatically by the VM before calling into - * the native function. By default most native functions would require this - * to be true but some light weight native functions which do not call back - * into the VM through the Dart API may not require a Dart scope to be - * setup automatically. - * - * \return A valid Dart_NativeFunction which resolves to a native entry point - * for the native function. - * - * See Dart_SetNativeResolver. - */ -typedef Dart_NativeFunction (*Dart_NativeEntryResolver)(Dart_Handle name, - int num_of_arguments, - bool* auto_setup_scope); -/* TODO(turnidge): Consider renaming to NativeFunctionResolver or - * NativeResolver. */ - -/** - * Native entry symbol lookup callback. - * - * For libraries and scripts which have native functions, the embedder - * can provide a callback for mapping a native entry to a symbol. This callback - * maps a native function entry PC to the native function name. If no native - * entry symbol can be found, the callback should return NULL. - * - * The parameters to the native reverse resolver function are: - * \param nf A Dart_NativeFunction. - * - * \return A const UTF-8 string containing the symbol name or NULL. - * - * See Dart_SetNativeResolver. - */ -typedef const uint8_t* (*Dart_NativeEntrySymbol)(Dart_NativeFunction nf); - -/** - * FFI Native C function pointer resolver callback. - * - * See Dart_SetFfiNativeResolver. - */ -typedef void* (*Dart_FfiNativeResolver)(const char* name, uintptr_t args_n); - -/* - * =========== - * Environment - * =========== - */ - -/** - * An environment lookup callback function. - * - * \param name The name of the value to lookup in the environment. - * - * \return A valid handle to a string if the name exists in the - * current environment or Dart_Null() if not. - */ -typedef Dart_Handle (*Dart_EnvironmentCallback)(Dart_Handle name); - -/** - * Sets the environment callback for the current isolate. This - * callback is used to lookup environment values by name in the - * current environment. This enables the embedder to supply values for - * the const constructors bool.fromEnvironment, int.fromEnvironment - * and String.fromEnvironment. - */ -DART_EXPORT Dart_Handle -Dart_SetEnvironmentCallback(Dart_EnvironmentCallback callback); - -/** - * Sets the callback used to resolve native functions for a library. - * - * \param library A library. - * \param resolver A native entry resolver. - * - * \return A valid handle if the native resolver was set successfully. - */ -DART_EXPORT Dart_Handle -Dart_SetNativeResolver(Dart_Handle library, - Dart_NativeEntryResolver resolver, - Dart_NativeEntrySymbol symbol); -/* TODO(turnidge): Rename to Dart_LibrarySetNativeResolver? */ - -/** - * Returns the callback used to resolve native functions for a library. - * - * \param library A library. - * \param resolver a pointer to a Dart_NativeEntryResolver - * - * \return A valid handle if the library was found. - */ -DART_EXPORT Dart_Handle -Dart_GetNativeResolver(Dart_Handle library, Dart_NativeEntryResolver* resolver); - -/** - * Returns the callback used to resolve native function symbols for a library. - * - * \param library A library. - * \param resolver a pointer to a Dart_NativeEntrySymbol. - * - * \return A valid handle if the library was found. - */ -DART_EXPORT Dart_Handle Dart_GetNativeSymbol(Dart_Handle library, - Dart_NativeEntrySymbol* resolver); - -/** - * Sets the callback used to resolve FFI native functions for a library. - * The resolved functions are expected to be a C function pointer of the - * correct signature (as specified in the `@FfiNative()` function - * annotation in Dart code). - * - * NOTE: This is an experimental feature and might change in the future. - * - * \param library A library. - * \param resolver A native function resolver. - * - * \return A valid handle if the native resolver was set successfully. - */ -DART_EXPORT Dart_Handle -Dart_SetFfiNativeResolver(Dart_Handle library, Dart_FfiNativeResolver resolver); - -/* - * ===================== - * Scripts and Libraries - * ===================== - */ - -typedef enum { - Dart_kCanonicalizeUrl = 0, - Dart_kImportTag, - Dart_kKernelTag, -} Dart_LibraryTag; - -/** - * The library tag handler is a multi-purpose callback provided by the - * embedder to the Dart VM. The embedder implements the tag handler to - * provide the ability to load Dart scripts and imports. - * - * -- TAGS -- - * - * Dart_kCanonicalizeUrl - * - * This tag indicates that the embedder should canonicalize 'url' with - * respect to 'library'. For most embedders, the - * Dart_DefaultCanonicalizeUrl function is a sufficient implementation - * of this tag. The return value should be a string holding the - * canonicalized url. - * - * Dart_kImportTag - * - * This tag is used to load a library from IsolateMirror.loadUri. The embedder - * should call Dart_LoadLibraryFromKernel to provide the library to the VM. The - * return value should be an error or library (the result from - * Dart_LoadLibraryFromKernel). - * - * Dart_kKernelTag - * - * This tag is used to load the intermediate file (kernel) generated by - * the Dart front end. This tag is typically used when a 'hot-reload' - * of an application is needed and the VM is 'use dart front end' mode. - * The dart front end typically compiles all the scripts, imports and part - * files into one intermediate file hence we don't use the source/import or - * script tags. The return value should be an error or a TypedData containing - * the kernel bytes. - * - */ -typedef Dart_Handle (*Dart_LibraryTagHandler)( - Dart_LibraryTag tag, - Dart_Handle library_or_package_map_url, - Dart_Handle url); - -/** - * Sets library tag handler for the current isolate. This handler is - * used to handle the various tags encountered while loading libraries - * or scripts in the isolate. - * - * \param handler Handler code to be used for handling the various tags - * encountered while loading libraries or scripts in the isolate. - * - * \return If no error occurs, the handler is set for the isolate. - * Otherwise an error handle is returned. - * - * TODO(turnidge): Document. - */ -DART_EXPORT Dart_Handle -Dart_SetLibraryTagHandler(Dart_LibraryTagHandler handler); - -/** - * Handles deferred loading requests. When this handler is invoked, it should - * eventually load the deferred loading unit with the given id and call - * Dart_DeferredLoadComplete or Dart_DeferredLoadCompleteError. It is - * recommended that the loading occur asynchronously, but it is permitted to - * call Dart_DeferredLoadComplete or Dart_DeferredLoadCompleteError before the - * handler returns. - * - * If an error is returned, it will be propagated through - * `prefix.loadLibrary()`. This is useful for synchronous - * implementations, which must propagate any unwind errors from - * Dart_DeferredLoadComplete or Dart_DeferredLoadComplete. Otherwise the handler - * should return a non-error such as `Dart_Null()`. - */ -typedef Dart_Handle (*Dart_DeferredLoadHandler)(intptr_t loading_unit_id); - -/** - * Sets the deferred load handler for the current isolate. This handler is - * used to handle loading deferred imports in an AppJIT or AppAOT program. - */ -DART_EXPORT Dart_Handle -Dart_SetDeferredLoadHandler(Dart_DeferredLoadHandler handler); - -/** - * Notifies the VM that a deferred load completed successfully. This function - * will eventually cause the corresponding `prefix.loadLibrary()` futures to - * complete. - * - * Requires the current isolate to be the same current isolate during the - * invocation of the Dart_DeferredLoadHandler. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle -Dart_DeferredLoadComplete(intptr_t loading_unit_id, - const uint8_t* snapshot_data, - const uint8_t* snapshot_instructions); - -/** - * Notifies the VM that a deferred load failed. This function - * will eventually cause the corresponding `prefix.loadLibrary()` futures to - * complete with an error. - * - * If `transient` is true, future invocations of `prefix.loadLibrary()` will - * trigger new load requests. If false, futures invocation will complete with - * the same error. - * - * Requires the current isolate to be the same current isolate during the - * invocation of the Dart_DeferredLoadHandler. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle -Dart_DeferredLoadCompleteError(intptr_t loading_unit_id, - const char* error_message, - bool transient); - -/** - * Canonicalizes a url with respect to some library. - * - * The url is resolved with respect to the library's url and some url - * normalizations are performed. - * - * This canonicalization function should be sufficient for most - * embedders to implement the Dart_kCanonicalizeUrl tag. - * - * \param base_url The base url relative to which the url is - * being resolved. - * \param url The url being resolved and canonicalized. This - * parameter is a string handle. - * - * \return If no error occurs, a String object is returned. Otherwise - * an error handle is returned. - */ -DART_EXPORT Dart_Handle Dart_DefaultCanonicalizeUrl(Dart_Handle base_url, - Dart_Handle url); - -/** - * Loads the root library for the current isolate. - * - * Requires there to be no current root library. - * - * \param kernel_buffer A buffer which contains a kernel binary (see - * pkg/kernel/binary.md). Must remain valid until isolate group shutdown. - * \param kernel_size Length of the passed in buffer. - * - * \return A handle to the root library, or an error. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle -Dart_LoadScriptFromKernel(const uint8_t* kernel_buffer, intptr_t kernel_size); - -/** - * Gets the library for the root script for the current isolate. - * - * If the root script has not yet been set for the current isolate, - * this function returns Dart_Null(). This function never returns an - * error handle. - * - * \return Returns the root Library for the current isolate or Dart_Null(). - */ -DART_EXPORT Dart_Handle Dart_RootLibrary(void); - -/** - * Sets the root library for the current isolate. - * - * \return Returns an error handle if `library` is not a library handle. - */ -DART_EXPORT Dart_Handle Dart_SetRootLibrary(Dart_Handle library); - -/** - * Lookup or instantiate a legacy type by name and type arguments from a - * Library. - * - * \param library The library containing the class or interface. - * \param class_name The class name for the type. - * \param number_of_type_arguments Number of type arguments. - * For non parametric types the number of type arguments would be 0. - * \param type_arguments Pointer to an array of type arguments. - * For non parameteric types a NULL would be passed in for this argument. - * - * \return If no error occurs, the type is returned. - * Otherwise an error handle is returned. - */ -DART_EXPORT Dart_Handle Dart_GetType(Dart_Handle library, - Dart_Handle class_name, - intptr_t number_of_type_arguments, - Dart_Handle* type_arguments); - -/** - * Lookup or instantiate a nullable type by name and type arguments from - * Library. - * - * \param library The library containing the class or interface. - * \param class_name The class name for the type. - * \param number_of_type_arguments Number of type arguments. - * For non parametric types the number of type arguments would be 0. - * \param type_arguments Pointer to an array of type arguments. - * For non parameteric types a NULL would be passed in for this argument. - * - * \return If no error occurs, the type is returned. - * Otherwise an error handle is returned. - */ -DART_EXPORT Dart_Handle Dart_GetNullableType(Dart_Handle library, - Dart_Handle class_name, - intptr_t number_of_type_arguments, - Dart_Handle* type_arguments); - -/** - * Lookup or instantiate a non-nullable type by name and type arguments from - * Library. - * - * \param library The library containing the class or interface. - * \param class_name The class name for the type. - * \param number_of_type_arguments Number of type arguments. - * For non parametric types the number of type arguments would be 0. - * \param type_arguments Pointer to an array of type arguments. - * For non parameteric types a NULL would be passed in for this argument. - * - * \return If no error occurs, the type is returned. - * Otherwise an error handle is returned. - */ -DART_EXPORT Dart_Handle -Dart_GetNonNullableType(Dart_Handle library, - Dart_Handle class_name, - intptr_t number_of_type_arguments, - Dart_Handle* type_arguments); - -/** - * Creates a nullable version of the provided type. - * - * \param type The type to be converted to a nullable type. - * - * \return If no error occurs, a nullable type is returned. - * Otherwise an error handle is returned. - */ -DART_EXPORT Dart_Handle Dart_TypeToNullableType(Dart_Handle type); - -/** - * Creates a non-nullable version of the provided type. - * - * \param type The type to be converted to a non-nullable type. - * - * \return If no error occurs, a non-nullable type is returned. - * Otherwise an error handle is returned. - */ -DART_EXPORT Dart_Handle Dart_TypeToNonNullableType(Dart_Handle type); - -/** - * A type's nullability. - * - * \param type A Dart type. - * \param result An out parameter containing the result of the check. True if - * the type is of the specified nullability, false otherwise. - * - * \return Returns an error handle if type is not of type Type. - */ -DART_EXPORT Dart_Handle Dart_IsNullableType(Dart_Handle type, bool* result); -DART_EXPORT Dart_Handle Dart_IsNonNullableType(Dart_Handle type, bool* result); -DART_EXPORT Dart_Handle Dart_IsLegacyType(Dart_Handle type, bool* result); - -/** - * Lookup a class or interface by name from a Library. - * - * \param library The library containing the class or interface. - * \param class_name The name of the class or interface. - * - * \return If no error occurs, the class or interface is - * returned. Otherwise an error handle is returned. - */ -DART_EXPORT Dart_Handle Dart_GetClass(Dart_Handle library, - Dart_Handle class_name); -/* TODO(asiva): The above method needs to be removed once all uses - * of it are removed from the embedder code. */ - -/** - * Returns an import path to a Library, such as "file:///test.dart" or - * "dart:core". - */ -DART_EXPORT Dart_Handle Dart_LibraryUrl(Dart_Handle library); - -/** - * Returns a URL from which a Library was loaded. - */ -DART_EXPORT Dart_Handle Dart_LibraryResolvedUrl(Dart_Handle library); - -/** - * \return An array of libraries. - */ -DART_EXPORT Dart_Handle Dart_GetLoadedLibraries(void); - -DART_EXPORT Dart_Handle Dart_LookupLibrary(Dart_Handle url); -/* TODO(turnidge): Consider returning Dart_Null() when the library is - * not found to distinguish that from a true error case. */ - -/** - * Report an loading error for the library. - * - * \param library The library that failed to load. - * \param error The Dart error instance containing the load error. - * - * \return If the VM handles the error, the return value is - * a null handle. If it doesn't handle the error, the error - * object is returned. - */ -DART_EXPORT Dart_Handle Dart_LibraryHandleError(Dart_Handle library, - Dart_Handle error); - -/** - * Called by the embedder to load a partial program. Does not set the root - * library. - * - * \param kernel_buffer A buffer which contains a kernel binary (see - * pkg/kernel/binary.md). Must remain valid until isolate shutdown. - * \param kernel_buffer_size Length of the passed in buffer. - * - * \return A handle to the main library of the compilation unit, or an error. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle -Dart_LoadLibraryFromKernel(const uint8_t* kernel_buffer, - intptr_t kernel_buffer_size); - -/** - * Indicates that all outstanding load requests have been satisfied. - * This finalizes all the new classes loaded and optionally completes - * deferred library futures. - * - * Requires there to be a current isolate. - * - * \param complete_futures Specify true if all deferred library - * futures should be completed, false otherwise. - * - * \return Success if all classes have been finalized and deferred library - * futures are completed. Otherwise, returns an error. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle -Dart_FinalizeLoading(bool complete_futures); - -/* - * ===== - * Peers - * ===== - */ - -/** - * The peer field is a lazily allocated field intended for storage of - * an uncommonly used values. Most instances types can have a peer - * field allocated. The exceptions are subtypes of Null, num, and - * bool. - */ - -/** - * Returns the value of peer field of 'object' in 'peer'. - * - * \param object An object. - * \param peer An out parameter that returns the value of the peer - * field. - * - * \return Returns an error if 'object' is a subtype of Null, num, or - * bool. - */ -DART_EXPORT Dart_Handle Dart_GetPeer(Dart_Handle object, void** peer); - -/** - * Sets the value of the peer field of 'object' to the value of - * 'peer'. - * - * \param object An object. - * \param peer A value to store in the peer field. - * - * \return Returns an error if 'object' is a subtype of Null, num, or - * bool. - */ -DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); - -/* - * ====== - * Kernel - * ====== - */ - -/** - * Experimental support for Dart to Kernel parser isolate. - * - * TODO(hausner): Document finalized interface. - * - */ - -// TODO(33433): Remove kernel service from the embedding API. - -typedef enum { - Dart_KernelCompilationStatus_Unknown = -1, - Dart_KernelCompilationStatus_Ok = 0, - Dart_KernelCompilationStatus_Error = 1, - Dart_KernelCompilationStatus_Crash = 2, - Dart_KernelCompilationStatus_MsgFailed = 3, -} Dart_KernelCompilationStatus; - -typedef struct { - Dart_KernelCompilationStatus status; - bool null_safety; - char* error; - uint8_t* kernel; - intptr_t kernel_size; -} Dart_KernelCompilationResult; - -typedef enum { - Dart_KernelCompilationVerbosityLevel_Error = 0, - Dart_KernelCompilationVerbosityLevel_Warning, - Dart_KernelCompilationVerbosityLevel_Info, - Dart_KernelCompilationVerbosityLevel_All, -} Dart_KernelCompilationVerbosityLevel; - -DART_EXPORT bool Dart_IsKernelIsolate(Dart_Isolate isolate); -DART_EXPORT bool Dart_KernelIsolateIsRunning(void); -DART_EXPORT Dart_Port Dart_KernelPort(void); - -/** - * Compiles the given `script_uri` to a kernel file. - * - * \param platform_kernel A buffer containing the kernel of the platform (e.g. - * `vm_platform_strong.dill`). The VM does not take ownership of this memory. - * - * \param platform_kernel_size The length of the platform_kernel buffer. - * - * \param snapshot_compile Set to `true` when the compilation is for a snapshot. - * This is used by the frontend to determine if compilation related information - * should be printed to console (e.g., null safety mode). - * - * \param verbosity Specifies the logging behavior of the kernel compilation - * service. - * - * \return Returns the result of the compilation. - * - * On a successful compilation the returned [Dart_KernelCompilationResult] has - * a status of [Dart_KernelCompilationStatus_Ok] and the `kernel`/`kernel_size` - * fields are set. The caller takes ownership of the malloc()ed buffer. - * - * On a failed compilation the `error` might be set describing the reason for - * the failed compilation. The caller takes ownership of the malloc()ed - * error. - * - * Requires there to be a current isolate. - */ -DART_EXPORT Dart_KernelCompilationResult -Dart_CompileToKernel(const char* script_uri, - const uint8_t* platform_kernel, - const intptr_t platform_kernel_size, - bool incremental_compile, - bool snapshot_compile, - const char* package_config, - Dart_KernelCompilationVerbosityLevel verbosity); - -/** - * Compiles the given `script_uri` to a kernel file. - * - * \param platform_kernel A buffer containing the kernel of the platform (e.g. - * `vm_platform_strong.dill`). The VM does not take ownership of this memory. - * - * \param platform_kernel_size The length of the platform_kernel buffer. - * - * \param snapshot_compile Set to `true` when the compilation is for a snapshot. - * This is used by the frontend to determine if compilation related information - * should be printed to console (e.g., null safety mode). - * - * \param null_safety Provides null-safety mode setting for the compiler. - * - * \param verbosity Specifies the logging behavior of the kernel compilation - * service. - * - * \return Returns the result of the compilation. - * - * On a successful compilation the returned [Dart_KernelCompilationResult] has - * a status of [Dart_KernelCompilationStatus_Ok] and the `kernel`/`kernel_size` - * fields are set. The caller takes ownership of the malloc()ed buffer. - * - * On a failed compilation the `error` might be set describing the reason for - * the failed compilation. The caller takes ownership of the malloc()ed - * error. - */ -DART_EXPORT Dart_KernelCompilationResult -Dart_CompileToKernelWithGivenNullsafety( - const char* script_uri, - const uint8_t* platform_kernel, - const intptr_t platform_kernel_size, - bool snapshot_compile, - const char* package_config, - const bool null_safety, - Dart_KernelCompilationVerbosityLevel verbosity); - -typedef struct { - const char* uri; - const char* source; -} Dart_SourceFile; - -DART_EXPORT Dart_KernelCompilationResult Dart_KernelListDependencies(void); - -/** - * Sets the kernel buffer which will be used to load Dart SDK sources - * dynamically at runtime. - * - * \param platform_kernel A buffer containing kernel which has sources for the - * Dart SDK populated. Note: The VM does not take ownership of this memory. - * - * \param platform_kernel_size The length of the platform_kernel buffer. - */ -DART_EXPORT void Dart_SetDartLibrarySourcesKernel( - const uint8_t* platform_kernel, - const intptr_t platform_kernel_size); - -/** - * Detect the null safety opt-in status. - * - * When running from source, it is based on the opt-in status of `script_uri`. - * When running from a kernel buffer, it is based on the mode used when - * generating `kernel_buffer`. - * When running from an appJIT or AOT snapshot, it is based on the mode used - * when generating `snapshot_data`. - * - * \param script_uri Uri of the script that contains the source code - * - * \param package_config Uri of the package configuration file (either in format - * of .packages or .dart_tool/package_config.json) for the null safety - * detection to resolve package imports against. If this parameter is not - * passed the package resolution of the parent isolate should be used. - * - * \param original_working_directory current working directory when the VM - * process was launched, this is used to correctly resolve the path specified - * for package_config. - * - * \param snapshot_data Buffer containing the snapshot data of the - * isolate or NULL if no snapshot is provided. If provided, the buffers must - * remain valid until the isolate shuts down. - * - * \param snapshot_instructions Buffer containing the snapshot instructions of - * the isolate or NULL if no snapshot is provided. If provided, the buffers - * must remain valid until the isolate shuts down. - * - * \param kernel_buffer A buffer which contains a kernel/DIL program. Must - * remain valid until isolate shutdown. - * - * \param kernel_buffer_size The size of `kernel_buffer`. - * - * \return Returns true if the null safety is opted in by the input being - * run `script_uri`, `snapshot_data` or `kernel_buffer`. - * - */ -DART_EXPORT bool Dart_DetectNullSafety(const char* script_uri, - const char* package_config, - const char* original_working_directory, - const uint8_t* snapshot_data, - const uint8_t* snapshot_instructions, - const uint8_t* kernel_buffer, - intptr_t kernel_buffer_size); - -#define DART_KERNEL_ISOLATE_NAME "kernel-service" - -/* - * ======= - * Service - * ======= - */ - -#define DART_VM_SERVICE_ISOLATE_NAME "vm-service" - -/** - * Returns true if isolate is the service isolate. - * - * \param isolate An isolate - * - * \return Returns true if 'isolate' is the service isolate. - */ -DART_EXPORT bool Dart_IsServiceIsolate(Dart_Isolate isolate); - -/** - * Writes the CPU profile to the timeline as a series of 'instant' events. - * - * Note that this is an expensive operation. - * - * \param main_port The main port of the Isolate whose profile samples to write. - * \param error An optional error, must be free()ed by caller. - * - * \return Returns true if the profile is successfully written and false - * otherwise. - */ -DART_EXPORT bool Dart_WriteProfileToTimeline(Dart_Port main_port, char** error); - -/* - * ============== - * Precompilation - * ============== - */ - -/** - * Compiles all functions reachable from entry points and marks - * the isolate to disallow future compilation. - * - * Entry points should be specified using `@pragma("vm:entry-point")` - * annotation. - * - * \return An error handle if a compilation error or runtime error running const - * constructors was encountered. - */ -DART_EXPORT Dart_Handle Dart_Precompile(void); - -typedef void (*Dart_CreateLoadingUnitCallback)( - void* callback_data, - intptr_t loading_unit_id, - void** write_callback_data, - void** write_debug_callback_data); -typedef void (*Dart_StreamingWriteCallback)(void* callback_data, - const uint8_t* buffer, - intptr_t size); -typedef void (*Dart_StreamingCloseCallback)(void* callback_data); - -DART_EXPORT Dart_Handle Dart_LoadingUnitLibraryUris(intptr_t loading_unit_id); - -// On Darwin systems, 'dlsym' adds an '_' to the beginning of the symbol name. -// Use the '...CSymbol' definitions for resolving through 'dlsym'. The actual -// symbol names in the objects are given by the '...AsmSymbol' definitions. -#if defined(__APPLE__) -#define kSnapshotBuildIdCSymbol "kDartSnapshotBuildId" -#define kVmSnapshotDataCSymbol "kDartVmSnapshotData" -#define kVmSnapshotInstructionsCSymbol "kDartVmSnapshotInstructions" -#define kVmSnapshotBssCSymbol "kDartVmSnapshotBss" -#define kIsolateSnapshotDataCSymbol "kDartIsolateSnapshotData" -#define kIsolateSnapshotInstructionsCSymbol "kDartIsolateSnapshotInstructions" -#define kIsolateSnapshotBssCSymbol "kDartIsolateSnapshotBss" -#else -#define kSnapshotBuildIdCSymbol "_kDartSnapshotBuildId" -#define kVmSnapshotDataCSymbol "_kDartVmSnapshotData" -#define kVmSnapshotInstructionsCSymbol "_kDartVmSnapshotInstructions" -#define kVmSnapshotBssCSymbol "_kDartVmSnapshotBss" -#define kIsolateSnapshotDataCSymbol "_kDartIsolateSnapshotData" -#define kIsolateSnapshotInstructionsCSymbol "_kDartIsolateSnapshotInstructions" -#define kIsolateSnapshotBssCSymbol "_kDartIsolateSnapshotBss" -#endif - -#define kSnapshotBuildIdAsmSymbol "_kDartSnapshotBuildId" -#define kVmSnapshotDataAsmSymbol "_kDartVmSnapshotData" -#define kVmSnapshotInstructionsAsmSymbol "_kDartVmSnapshotInstructions" -#define kVmSnapshotBssAsmSymbol "_kDartVmSnapshotBss" -#define kIsolateSnapshotDataAsmSymbol "_kDartIsolateSnapshotData" -#define kIsolateSnapshotInstructionsAsmSymbol \ - "_kDartIsolateSnapshotInstructions" -#define kIsolateSnapshotBssAsmSymbol "_kDartIsolateSnapshotBss" - -/** - * Creates a precompiled snapshot. - * - A root library must have been loaded. - * - Dart_Precompile must have been called. - * - * Outputs an assembly file defining the symbols listed in the definitions - * above. - * - * The assembly should be compiled as a static or shared library and linked or - * loaded by the embedder. Running this snapshot requires a VM compiled with - * DART_PRECOMPILED_SNAPSHOT. The kDartVmSnapshotData and - * kDartVmSnapshotInstructions should be passed to Dart_Initialize. The - * kDartIsolateSnapshotData and kDartIsolateSnapshotInstructions should be - * passed to Dart_CreateIsolateGroup. - * - * The callback will be invoked one or more times to provide the assembly code. - * - * If stripped is true, then the assembly code will not include DWARF - * debugging sections. - * - * If debug_callback_data is provided, debug_callback_data will be used with - * the callback to provide separate debugging information. - * - * \return A valid handle if no error occurs during the operation. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle -Dart_CreateAppAOTSnapshotAsAssembly(Dart_StreamingWriteCallback callback, - void* callback_data, - bool stripped, - void* debug_callback_data); -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle -Dart_CreateAppAOTSnapshotAsAssemblies( - Dart_CreateLoadingUnitCallback next_callback, - void* next_callback_data, - bool stripped, - Dart_StreamingWriteCallback write_callback, - Dart_StreamingCloseCallback close_callback); - -/** - * Creates a precompiled snapshot. - * - A root library must have been loaded. - * - Dart_Precompile must have been called. - * - * Outputs an ELF shared library defining the symbols - * - _kDartVmSnapshotData - * - _kDartVmSnapshotInstructions - * - _kDartIsolateSnapshotData - * - _kDartIsolateSnapshotInstructions - * - * The shared library should be dynamically loaded by the embedder. - * Running this snapshot requires a VM compiled with DART_PRECOMPILED_SNAPSHOT. - * The kDartVmSnapshotData and kDartVmSnapshotInstructions should be passed to - * Dart_Initialize. The kDartIsolateSnapshotData and - * kDartIsolateSnapshotInstructions should be passed to Dart_CreateIsolate. - * - * The callback will be invoked one or more times to provide the binary output. - * - * If stripped is true, then the binary output will not include DWARF - * debugging sections. - * - * If debug_callback_data is provided, debug_callback_data will be used with - * the callback to provide separate debugging information. - * - * \return A valid handle if no error occurs during the operation. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle -Dart_CreateAppAOTSnapshotAsElf(Dart_StreamingWriteCallback callback, - void* callback_data, - bool stripped, - void* debug_callback_data); -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle -Dart_CreateAppAOTSnapshotAsElfs(Dart_CreateLoadingUnitCallback next_callback, - void* next_callback_data, - bool stripped, - Dart_StreamingWriteCallback write_callback, - Dart_StreamingCloseCallback close_callback); - -/** - * Like Dart_CreateAppAOTSnapshotAsAssembly, but only includes - * kDartVmSnapshotData and kDartVmSnapshotInstructions. It also does - * not strip DWARF information from the generated assembly or allow for - * separate debug information. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle -Dart_CreateVMAOTSnapshotAsAssembly(Dart_StreamingWriteCallback callback, - void* callback_data); - -/** - * Sorts the class-ids in depth first traversal order of the inheritance - * tree. This is a costly operation, but it can make method dispatch - * more efficient and is done before writing snapshots. - * - * \return A valid handle if no error occurs during the operation. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_SortClasses(void); - -/** - * Creates a snapshot that caches compiled code and type feedback for faster - * startup and quicker warmup in a subsequent process. - * - * Outputs a snapshot in two pieces. The pieces should be passed to - * Dart_CreateIsolateGroup in a VM using the same VM snapshot pieces used in the - * current VM. The instructions piece must be loaded with read and execute - * permissions; the data piece may be loaded as read-only. - * - * - Requires the VM to have not been started with --precompilation. - * - Not supported when targeting IA32. - * - The VM writing the snapshot and the VM reading the snapshot must be the - * same version, must be built in the same DEBUG/RELEASE/PRODUCT mode, must - * be targeting the same architecture, and must both be in checked mode or - * both in unchecked mode. - * - * The buffers are scope allocated and are only valid until the next call to - * Dart_ExitScope. - * - * \return A valid handle if no error occurs during the operation. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle -Dart_CreateAppJITSnapshotAsBlobs(uint8_t** isolate_snapshot_data_buffer, - intptr_t* isolate_snapshot_data_size, - uint8_t** isolate_snapshot_instructions_buffer, - intptr_t* isolate_snapshot_instructions_size); - -/** - * Like Dart_CreateAppJITSnapshotAsBlobs, but also creates a new VM snapshot. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle -Dart_CreateCoreJITSnapshotAsBlobs( - uint8_t** vm_snapshot_data_buffer, - intptr_t* vm_snapshot_data_size, - uint8_t** vm_snapshot_instructions_buffer, - intptr_t* vm_snapshot_instructions_size, - uint8_t** isolate_snapshot_data_buffer, - intptr_t* isolate_snapshot_data_size, - uint8_t** isolate_snapshot_instructions_buffer, - intptr_t* isolate_snapshot_instructions_size); - -/** - * Get obfuscation map for precompiled code. - * - * Obfuscation map is encoded as a JSON array of pairs (original name, - * obfuscated name). - * - * \return Returns an error handler if the VM was built in a mode that does not - * support obfuscation. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle -Dart_GetObfuscationMap(uint8_t** buffer, intptr_t* buffer_length); - -/** - * Returns whether the VM only supports running from precompiled snapshots and - * not from any other kind of snapshot or from source (that is, the VM was - * compiled with DART_PRECOMPILED_RUNTIME). - */ -DART_EXPORT bool Dart_IsPrecompiledRuntime(void); - -/** - * Print a native stack trace. Used for crash handling. - * - * If context is NULL, prints the current stack trace. Otherwise, context - * should be a CONTEXT* (Windows) or ucontext_t* (POSIX) from a signal handler - * running on the current thread. - */ -DART_EXPORT void Dart_DumpNativeStackTrace(void* context); - -/** - * Indicate that the process is about to abort, and the Dart VM should not - * attempt to cleanup resources. - */ -DART_EXPORT void Dart_PrepareToAbort(void); - -#endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ +/* + * Copyright (c) 2012, 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. + */ + +#ifndef RUNTIME_INCLUDE_DART_API_H_ +#define RUNTIME_INCLUDE_DART_API_H_ + +/** \mainpage Dart Embedding API Reference + * + * This reference describes the Dart Embedding API, which is used to embed the + * Dart Virtual Machine within C/C++ applications. + * + * This reference is generated from the header include/dart_api.h. + */ + +/* __STDC_FORMAT_MACROS has to be defined before including to + * enable platform independent printf format specifiers. */ +#ifndef __STDC_FORMAT_MACROS +#define __STDC_FORMAT_MACROS +#endif + +#include +#include +#include + +#ifdef __cplusplus +#define DART_EXTERN_C extern "C" +#else +#define DART_EXTERN_C extern +#endif + +#if defined(__CYGWIN__) +#error Tool chain and platform not supported. +#elif defined(_WIN32) +#if defined(DART_SHARED_LIB) +#define DART_EXPORT DART_EXTERN_C __declspec(dllexport) +#else +#define DART_EXPORT DART_EXTERN_C +#endif +#else +#if __GNUC__ >= 4 +#if defined(DART_SHARED_LIB) +#define DART_EXPORT \ + DART_EXTERN_C __attribute__((visibility("default"))) __attribute((used)) +#else +#define DART_EXPORT DART_EXTERN_C +#endif +#else +#error Tool chain not supported. +#endif +#endif + +#if __GNUC__ +#define DART_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#elif _MSC_VER +#define DART_WARN_UNUSED_RESULT _Check_return_ +#else +#define DART_WARN_UNUSED_RESULT +#endif + +/* + * ======= + * Handles + * ======= + */ + +/** + * An isolate is the unit of concurrency in Dart. Each isolate has + * its own memory and thread of control. No state is shared between + * isolates. Instead, isolates communicate by message passing. + * + * Each thread keeps track of its current isolate, which is the + * isolate which is ready to execute on the current thread. The + * current isolate may be NULL, in which case no isolate is ready to + * execute. Most of the Dart apis require there to be a current + * isolate in order to function without error. The current isolate is + * set by any call to Dart_CreateIsolateGroup or Dart_EnterIsolate. + */ +typedef struct _Dart_Isolate* Dart_Isolate; +typedef struct _Dart_IsolateGroup* Dart_IsolateGroup; + +/** + * An object reference managed by the Dart VM garbage collector. + * + * Because the garbage collector may move objects, it is unsafe to + * refer to objects directly. Instead, we refer to objects through + * handles, which are known to the garbage collector and updated + * automatically when the object is moved. Handles should be passed + * by value (except in cases like out-parameters) and should never be + * allocated on the heap. + * + * Most functions in the Dart Embedding API return a handle. When a + * function completes normally, this will be a valid handle to an + * object in the Dart VM heap. This handle may represent the result of + * the operation or it may be a special valid handle used merely to + * indicate successful completion. Note that a valid handle may in + * some cases refer to the null object. + * + * --- Error handles --- + * + * When a function encounters a problem that prevents it from + * completing normally, it returns an error handle (See Dart_IsError). + * An error handle has an associated error message that gives more + * details about the problem (See Dart_GetError). + * + * There are four kinds of error handles that can be produced, + * depending on what goes wrong: + * + * - Api error handles are produced when an api function is misused. + * This happens when a Dart embedding api function is called with + * invalid arguments or in an invalid context. + * + * - Unhandled exception error handles are produced when, during the + * execution of Dart code, an exception is thrown but not caught. + * Prototypically this would occur during a call to Dart_Invoke, but + * it can occur in any function which triggers the execution of Dart + * code (for example, Dart_ToString). + * + * An unhandled exception error provides access to an exception and + * stacktrace via the functions Dart_ErrorGetException and + * Dart_ErrorGetStackTrace. + * + * - Compilation error handles are produced when, during the execution + * of Dart code, a compile-time error occurs. As above, this can + * occur in any function which triggers the execution of Dart code. + * + * - Fatal error handles are produced when the system wants to shut + * down the current isolate. + * + * --- Propagating errors --- + * + * When an error handle is returned from the top level invocation of + * Dart code in a program, the embedder must handle the error as they + * see fit. Often, the embedder will print the error message produced + * by Dart_Error and exit the program. + * + * When an error is returned while in the body of a native function, + * it can be propagated up the call stack by calling + * Dart_PropagateError, Dart_SetReturnValue, or Dart_ThrowException. + * Errors should be propagated unless there is a specific reason not + * to. If an error is not propagated then it is ignored. For + * example, if an unhandled exception error is ignored, that + * effectively "catches" the unhandled exception. Fatal errors must + * always be propagated. + * + * When an error is propagated, any current scopes created by + * Dart_EnterScope will be exited. + * + * Using Dart_SetReturnValue to propagate an exception is somewhat + * more convenient than using Dart_PropagateError, and should be + * preferred for reasons discussed below. + * + * Dart_PropagateError and Dart_ThrowException do not return. Instead + * they transfer control non-locally using a setjmp-like mechanism. + * This can be inconvenient if you have resources that you need to + * clean up before propagating the error. + * + * When relying on Dart_PropagateError, we often return error handles + * rather than propagating them from helper functions. Consider the + * following contrived example: + * + * 1 Dart_Handle isLongStringHelper(Dart_Handle arg) { + * 2 intptr_t* length = 0; + * 3 result = Dart_StringLength(arg, &length); + * 4 if (Dart_IsError(result)) { + * 5 return result; + * 6 } + * 7 return Dart_NewBoolean(length > 100); + * 8 } + * 9 + * 10 void NativeFunction_isLongString(Dart_NativeArguments args) { + * 11 Dart_EnterScope(); + * 12 AllocateMyResource(); + * 13 Dart_Handle arg = Dart_GetNativeArgument(args, 0); + * 14 Dart_Handle result = isLongStringHelper(arg); + * 15 if (Dart_IsError(result)) { + * 16 FreeMyResource(); + * 17 Dart_PropagateError(result); + * 18 abort(); // will not reach here + * 19 } + * 20 Dart_SetReturnValue(result); + * 21 FreeMyResource(); + * 22 Dart_ExitScope(); + * 23 } + * + * In this example, we have a native function which calls a helper + * function to do its work. On line 5, the helper function could call + * Dart_PropagateError, but that would not give the native function a + * chance to call FreeMyResource(), causing a leak. Instead, the + * helper function returns the error handle to the caller, giving the + * caller a chance to clean up before propagating the error handle. + * + * When an error is propagated by calling Dart_SetReturnValue, the + * native function will be allowed to complete normally and then the + * exception will be propagated only once the native call + * returns. This can be convenient, as it allows the C code to clean + * up normally. + * + * The example can be written more simply using Dart_SetReturnValue to + * propagate the error. + * + * 1 Dart_Handle isLongStringHelper(Dart_Handle arg) { + * 2 intptr_t* length = 0; + * 3 result = Dart_StringLength(arg, &length); + * 4 if (Dart_IsError(result)) { + * 5 return result + * 6 } + * 7 return Dart_NewBoolean(length > 100); + * 8 } + * 9 + * 10 void NativeFunction_isLongString(Dart_NativeArguments args) { + * 11 Dart_EnterScope(); + * 12 AllocateMyResource(); + * 13 Dart_Handle arg = Dart_GetNativeArgument(args, 0); + * 14 Dart_SetReturnValue(isLongStringHelper(arg)); + * 15 FreeMyResource(); + * 16 Dart_ExitScope(); + * 17 } + * + * In this example, the call to Dart_SetReturnValue on line 14 will + * either return the normal return value or the error (potentially + * generated on line 3). The call to FreeMyResource on line 15 will + * execute in either case. + * + * --- Local and persistent handles --- + * + * Local handles are allocated within the current scope (see + * Dart_EnterScope) and go away when the current scope exits. Unless + * otherwise indicated, callers should assume that all functions in + * the Dart embedding api return local handles. + * + * Persistent handles are allocated within the current isolate. They + * can be used to store objects across scopes. Persistent handles have + * the lifetime of the current isolate unless they are explicitly + * deallocated (see Dart_DeletePersistentHandle). + * The type Dart_Handle represents a handle (both local and persistent). + * The type Dart_PersistentHandle is a Dart_Handle and it is used to + * document that a persistent handle is expected as a parameter to a call + * or the return value from a call is a persistent handle. + * + * FinalizableHandles are persistent handles which are auto deleted when + * the object is garbage collected. It is never safe to use these handles + * unless you know the object is still reachable. + * + * WeakPersistentHandles are persistent handles which are automatically set + * to point Dart_Null when the object is garbage collected. They are not auto + * deleted, so it is safe to use them after the object has become unreachable. + */ +typedef struct _Dart_Handle* Dart_Handle; +typedef Dart_Handle Dart_PersistentHandle; +typedef struct _Dart_WeakPersistentHandle* Dart_WeakPersistentHandle; +typedef struct _Dart_FinalizableHandle* Dart_FinalizableHandle; +// These structs are versioned by DART_API_DL_MAJOR_VERSION, bump the +// version when changing this struct. + +typedef void (*Dart_HandleFinalizer)(void* isolate_callback_data, void* peer); + +/** + * Is this an error handle? + * + * Requires there to be a current isolate. + */ +DART_EXPORT bool Dart_IsError(Dart_Handle handle); + +/** + * Is this an api error handle? + * + * Api error handles are produced when an api function is misused. + * This happens when a Dart embedding api function is called with + * invalid arguments or in an invalid context. + * + * Requires there to be a current isolate. + */ +DART_EXPORT bool Dart_IsApiError(Dart_Handle handle); + +/** + * Is this an unhandled exception error handle? + * + * Unhandled exception error handles are produced when, during the + * execution of Dart code, an exception is thrown but not caught. + * This can occur in any function which triggers the execution of Dart + * code. + * + * See Dart_ErrorGetException and Dart_ErrorGetStackTrace. + * + * Requires there to be a current isolate. + */ +DART_EXPORT bool Dart_IsUnhandledExceptionError(Dart_Handle handle); + +/** + * Is this a compilation error handle? + * + * Compilation error handles are produced when, during the execution + * of Dart code, a compile-time error occurs. This can occur in any + * function which triggers the execution of Dart code. + * + * Requires there to be a current isolate. + */ +DART_EXPORT bool Dart_IsCompilationError(Dart_Handle handle); + +/** + * Is this a fatal error handle? + * + * Fatal error handles are produced when the system wants to shut down + * the current isolate. + * + * Requires there to be a current isolate. + */ +DART_EXPORT bool Dart_IsFatalError(Dart_Handle handle); + +/** + * Gets the error message from an error handle. + * + * Requires there to be a current isolate. + * + * \return A C string containing an error message if the handle is + * error. An empty C string ("") if the handle is valid. This C + * String is scope allocated and is only valid until the next call + * to Dart_ExitScope. +*/ +DART_EXPORT const char* Dart_GetError(Dart_Handle handle); + +/** + * Is this an error handle for an unhandled exception? + */ +DART_EXPORT bool Dart_ErrorHasException(Dart_Handle handle); + +/** + * Gets the exception Object from an unhandled exception error handle. + */ +DART_EXPORT Dart_Handle Dart_ErrorGetException(Dart_Handle handle); + +/** + * Gets the stack trace Object from an unhandled exception error handle. + */ +DART_EXPORT Dart_Handle Dart_ErrorGetStackTrace(Dart_Handle handle); + +/** + * Produces an api error handle with the provided error message. + * + * Requires there to be a current isolate. + * + * \param error the error message. + */ +DART_EXPORT Dart_Handle Dart_NewApiError(const char* error); +DART_EXPORT Dart_Handle Dart_NewCompilationError(const char* error); + +/** + * Produces a new unhandled exception error handle. + * + * Requires there to be a current isolate. + * + * \param exception An instance of a Dart object to be thrown or + * an ApiError or CompilationError handle. + * When an ApiError or CompilationError handle is passed in + * a string object of the error message is created and it becomes + * the Dart object to be thrown. + */ +DART_EXPORT Dart_Handle Dart_NewUnhandledExceptionError(Dart_Handle exception); + +/** + * Propagates an error. + * + * If the provided handle is an unhandled exception error, this + * function will cause the unhandled exception to be rethrown. This + * will proceed in the standard way, walking up Dart frames until an + * appropriate 'catch' block is found, executing 'finally' blocks, + * etc. + * + * If the error is not an unhandled exception error, we will unwind + * the stack to the next C frame. Intervening Dart frames will be + * discarded; specifically, 'finally' blocks will not execute. This + * is the standard way that compilation errors (and the like) are + * handled by the Dart runtime. + * + * In either case, when an error is propagated any current scopes + * created by Dart_EnterScope will be exited. + * + * See the additional discussion under "Propagating Errors" at the + * beginning of this file. + * + * \param handle An error handle (See Dart_IsError) + * + * On success, this function does not return. On failure, the + * process is terminated. + */ +DART_EXPORT void Dart_PropagateError(Dart_Handle handle); + +/** + * Converts an object to a string. + * + * May generate an unhandled exception error. + * + * \return The converted string if no error occurs during + * the conversion. If an error does occur, an error handle is + * returned. + */ +DART_EXPORT Dart_Handle Dart_ToString(Dart_Handle object); + +/** + * Checks to see if two handles refer to identically equal objects. + * + * If both handles refer to instances, this is equivalent to using the top-level + * function identical() from dart:core. Otherwise, returns whether the two + * argument handles refer to the same object. + * + * \param obj1 An object to be compared. + * \param obj2 An object to be compared. + * + * \return True if the objects are identically equal. False otherwise. + */ +DART_EXPORT bool Dart_IdentityEquals(Dart_Handle obj1, Dart_Handle obj2); + +/** + * Allocates a handle in the current scope from a persistent handle. + */ +DART_EXPORT Dart_Handle Dart_HandleFromPersistent(Dart_PersistentHandle object); + +/** + * Allocates a handle in the current scope from a weak persistent handle. + * + * This will be a handle to Dart_Null if the object has been garbage collected. + */ +DART_EXPORT Dart_Handle +Dart_HandleFromWeakPersistent(Dart_WeakPersistentHandle object); + +/** + * Allocates a persistent handle for an object. + * + * This handle has the lifetime of the current isolate unless it is + * explicitly deallocated by calling Dart_DeletePersistentHandle. + * + * Requires there to be a current isolate. + */ +DART_EXPORT Dart_PersistentHandle Dart_NewPersistentHandle(Dart_Handle object); + +/** + * Assign value of local handle to a persistent handle. + * + * Requires there to be a current isolate. + * + * \param obj1 A persistent handle whose value needs to be set. + * \param obj2 An object whose value needs to be set to the persistent handle. + */ +DART_EXPORT void Dart_SetPersistentHandle(Dart_PersistentHandle obj1, + Dart_Handle obj2); + +/** + * Deallocates a persistent handle. + * + * Requires there to be a current isolate group. + */ +DART_EXPORT void Dart_DeletePersistentHandle(Dart_PersistentHandle object); + +/** + * Allocates a weak persistent handle for an object. + * + * This handle has the lifetime of the current isolate. The handle can also be + * explicitly deallocated by calling Dart_DeleteWeakPersistentHandle. + * + * If the object becomes unreachable the callback is invoked with the peer as + * argument. The callback can be executed on any thread, will have a current + * isolate group, but will not have a current isolate. The callback can only + * call Dart_DeletePersistentHandle or Dart_DeleteWeakPersistentHandle. This + * gives the embedder the ability to cleanup data associated with the object. + * The handle will point to the Dart_Null object after the finalizer has been + * run. It is illegal to call into the VM with any other Dart_* functions from + * the callback. If the handle is deleted before the object becomes + * unreachable, the callback is never invoked. + * + * Requires there to be a current isolate. + * + * \param object An object with identity. + * \param peer A pointer to a native object or NULL. This value is + * provided to callback when it is invoked. + * \param external_allocation_size The number of externally allocated + * bytes for peer. Used to inform the garbage collector. + * \param callback A function pointer that will be invoked sometime + * after the object is garbage collected, unless the handle has been deleted. + * A valid callback needs to be specified it cannot be NULL. + * + * \return The weak persistent handle or NULL. NULL is returned in case of bad + * parameters. + */ +DART_EXPORT Dart_WeakPersistentHandle +Dart_NewWeakPersistentHandle(Dart_Handle object, + void* peer, + intptr_t external_allocation_size, + Dart_HandleFinalizer callback); + +/** + * Deletes the given weak persistent [object] handle. + * + * Requires there to be a current isolate group. + */ +DART_EXPORT void Dart_DeleteWeakPersistentHandle( + Dart_WeakPersistentHandle object); + +/** + * Updates the external memory size for the given weak persistent handle. + * + * May trigger garbage collection. + */ +DART_EXPORT void Dart_UpdateExternalSize(Dart_WeakPersistentHandle object, + intptr_t external_allocation_size); + +/** + * Allocates a finalizable handle for an object. + * + * This handle has the lifetime of the current isolate group unless the object + * pointed to by the handle is garbage collected, in this case the VM + * automatically deletes the handle after invoking the callback associated + * with the handle. The handle can also be explicitly deallocated by + * calling Dart_DeleteFinalizableHandle. + * + * If the object becomes unreachable the callback is invoked with the + * the peer as argument. The callback can be executed on any thread, will have + * an isolate group, but will not have a current isolate. The callback can only + * call Dart_DeletePersistentHandle or Dart_DeleteWeakPersistentHandle. + * This gives the embedder the ability to cleanup data associated with the + * object and clear out any cached references to the handle. All references to + * this handle after the callback will be invalid. It is illegal to call into + * the VM with any other Dart_* functions from the callback. If the handle is + * deleted before the object becomes unreachable, the callback is never + * invoked. + * + * Requires there to be a current isolate. + * + * \param object An object with identity. + * \param peer A pointer to a native object or NULL. This value is + * provided to callback when it is invoked. + * \param external_allocation_size The number of externally allocated + * bytes for peer. Used to inform the garbage collector. + * \param callback A function pointer that will be invoked sometime + * after the object is garbage collected, unless the handle has been deleted. + * A valid callback needs to be specified it cannot be NULL. + * + * \return The finalizable handle or NULL. NULL is returned in case of bad + * parameters. + */ +DART_EXPORT Dart_FinalizableHandle +Dart_NewFinalizableHandle(Dart_Handle object, + void* peer, + intptr_t external_allocation_size, + Dart_HandleFinalizer callback); + +/** + * Deletes the given finalizable [object] handle. + * + * The caller has to provide the actual Dart object the handle was created from + * to prove the object (and therefore the finalizable handle) is still alive. + * + * Requires there to be a current isolate. + */ +DART_EXPORT void Dart_DeleteFinalizableHandle(Dart_FinalizableHandle object, + Dart_Handle strong_ref_to_object); + +/** + * Updates the external memory size for the given finalizable handle. + * + * The caller has to provide the actual Dart object the handle was created from + * to prove the object (and therefore the finalizable handle) is still alive. + * + * May trigger garbage collection. + */ +DART_EXPORT void Dart_UpdateFinalizableExternalSize( + Dart_FinalizableHandle object, + Dart_Handle strong_ref_to_object, + intptr_t external_allocation_size); + +/* + * ========================== + * Initialization and Globals + * ========================== + */ + +/** + * Gets the version string for the Dart VM. + * + * The version of the Dart VM can be accessed without initializing the VM. + * + * \return The version string for the embedded Dart VM. + */ +DART_EXPORT const char* Dart_VersionString(void); + +/** + * Isolate specific flags are set when creating a new isolate using the + * Dart_IsolateFlags structure. + * + * Current version of flags is encoded in a 32-bit integer with 16 bits used + * for each part. + */ + +#define DART_FLAGS_CURRENT_VERSION (0x0000000c) + +typedef struct { + int32_t version; + bool enable_asserts; + bool use_field_guards; + bool use_osr; + bool obfuscate; + bool load_vmservice_library; + bool copy_parent_code; + bool null_safety; + bool is_system_isolate; + bool snapshot_is_dontneed_safe; + bool branch_coverage; +} Dart_IsolateFlags; + +/** + * Initialize Dart_IsolateFlags with correct version and default values. + */ +DART_EXPORT void Dart_IsolateFlagsInitialize(Dart_IsolateFlags* flags); + +/** + * An isolate creation and initialization callback function. + * + * This callback, provided by the embedder, is called when the VM + * needs to create an isolate. The callback should create an isolate + * by calling Dart_CreateIsolateGroup and load any scripts required for + * execution. + * + * This callback may be called on a different thread than the one + * running the parent isolate. + * + * When the function returns NULL, it is the responsibility of this + * function to ensure that Dart_ShutdownIsolate has been called if + * required (for example, if the isolate was created successfully by + * Dart_CreateIsolateGroup() but the root library fails to load + * successfully, then the function should call Dart_ShutdownIsolate + * before returning). + * + * When the function returns NULL, the function should set *error to + * a malloc-allocated buffer containing a useful error message. The + * caller of this function (the VM) will make sure that the buffer is + * freed. + * + * \param script_uri The uri of the main source file or snapshot to load. + * Either the URI of the parent isolate set in Dart_CreateIsolateGroup for + * Isolate.spawn, or the argument to Isolate.spawnUri canonicalized by the + * library tag handler of the parent isolate. + * The callback is responsible for loading the program by a call to + * Dart_LoadScriptFromKernel. + * \param main The name of the main entry point this isolate will + * eventually run. This is provided for advisory purposes only to + * improve debugging messages. The main function is not invoked by + * this function. + * \param package_root Ignored. + * \param package_config Uri of the package configuration file (either in format + * of .packages or .dart_tool/package_config.json) for this isolate + * to resolve package imports against. If this parameter is not passed the + * package resolution of the parent isolate should be used. + * \param flags Default flags for this isolate being spawned. Either inherited + * from the spawning isolate or passed as parameters when spawning the + * isolate from Dart code. + * \param isolate_data The isolate data which was passed to the + * parent isolate when it was created by calling Dart_CreateIsolateGroup(). + * \param error A structure into which the embedder can place a + * C string containing an error message in the case of failures. + * + * \return The embedder returns NULL if the creation and + * initialization was not successful and the isolate if successful. + */ +typedef Dart_Isolate (*Dart_IsolateGroupCreateCallback)( + const char* script_uri, + const char* main, + const char* package_root, + const char* package_config, + Dart_IsolateFlags* flags, + void* isolate_data, + char** error); + +/** + * An isolate initialization callback function. + * + * This callback, provided by the embedder, is called when the VM has created an + * isolate within an existing isolate group (i.e. from the same source as an + * existing isolate). + * + * The callback should setup native resolvers and might want to set a custom + * message handler via [Dart_SetMessageNotifyCallback] and mark the isolate as + * runnable. + * + * This callback may be called on a different thread than the one + * running the parent isolate. + * + * When the function returns `false`, it is the responsibility of this + * function to ensure that `Dart_ShutdownIsolate` has been called. + * + * When the function returns `false`, the function should set *error to + * a malloc-allocated buffer containing a useful error message. The + * caller of this function (the VM) will make sure that the buffer is + * freed. + * + * \param child_isolate_data The callback data to associate with the new + * child isolate. + * \param error A structure into which the embedder can place a + * C string containing an error message in the case the initialization fails. + * + * \return The embedder returns true if the initialization was successful and + * false otherwise (in which case the VM will terminate the isolate). + */ +typedef bool (*Dart_InitializeIsolateCallback)(void** child_isolate_data, + char** error); + +/** + * An isolate shutdown callback function. + * + * This callback, provided by the embedder, is called before the vm + * shuts down an isolate. The isolate being shutdown will be the current + * isolate. It is safe to run Dart code. + * + * This function should be used to dispose of native resources that + * are allocated to an isolate in order to avoid leaks. + * + * \param isolate_group_data The same callback data which was passed to the + * isolate group when it was created. + * \param isolate_data The same callback data which was passed to the isolate + * when it was created. + */ +typedef void (*Dart_IsolateShutdownCallback)(void* isolate_group_data, + void* isolate_data); + +/** + * An isolate cleanup callback function. + * + * This callback, provided by the embedder, is called after the vm + * shuts down an isolate. There will be no current isolate and it is *not* + * safe to run Dart code. + * + * This function should be used to dispose of native resources that + * are allocated to an isolate in order to avoid leaks. + * + * \param isolate_group_data The same callback data which was passed to the + * isolate group when it was created. + * \param isolate_data The same callback data which was passed to the isolate + * when it was created. + */ +typedef void (*Dart_IsolateCleanupCallback)(void* isolate_group_data, + void* isolate_data); + +/** + * An isolate group cleanup callback function. + * + * This callback, provided by the embedder, is called after the vm + * shuts down an isolate group. + * + * This function should be used to dispose of native resources that + * are allocated to an isolate in order to avoid leaks. + * + * \param isolate_group_data The same callback data which was passed to the + * isolate group when it was created. + * + */ +typedef void (*Dart_IsolateGroupCleanupCallback)(void* isolate_group_data); + +/** + * A thread start callback function. + * This callback, provided by the embedder, is called after a thread in the + * vm thread pool starts. + * This function could be used to adjust thread priority or attach native + * resources to the thread. + */ +typedef void (*Dart_ThreadStartCallback)(void); + +/** + * A thread death callback function. + * This callback, provided by the embedder, is called before a thread in the + * vm thread pool exits. + * This function could be used to dispose of native resources that + * are associated and attached to the thread, in order to avoid leaks. + */ +typedef void (*Dart_ThreadExitCallback)(void); + +/** + * Opens a file for reading or writing. + * + * Callback provided by the embedder for file operations. If the + * embedder does not allow file operations this callback can be + * NULL. + * + * \param name The name of the file to open. + * \param write A boolean variable which indicates if the file is to + * opened for writing. If there is an existing file it needs to truncated. + */ +typedef void* (*Dart_FileOpenCallback)(const char* name, bool write); + +/** + * Read contents of file. + * + * Callback provided by the embedder for file operations. If the + * embedder does not allow file operations this callback can be + * NULL. + * + * \param data Buffer allocated in the callback into which the contents + * of the file are read into. It is the responsibility of the caller to + * free this buffer. + * \param file_length A variable into which the length of the file is returned. + * In the case of an error this value would be -1. + * \param stream Handle to the opened file. + */ +typedef void (*Dart_FileReadCallback)(uint8_t** data, + intptr_t* file_length, + void* stream); + +/** + * Write data into file. + * + * Callback provided by the embedder for file operations. If the + * embedder does not allow file operations this callback can be + * NULL. + * + * \param data Buffer which needs to be written into the file. + * \param length Length of the buffer. + * \param stream Handle to the opened file. + */ +typedef void (*Dart_FileWriteCallback)(const void* data, + intptr_t length, + void* stream); + +/** + * Closes the opened file. + * + * Callback provided by the embedder for file operations. If the + * embedder does not allow file operations this callback can be + * NULL. + * + * \param stream Handle to the opened file. + */ +typedef void (*Dart_FileCloseCallback)(void* stream); + +typedef bool (*Dart_EntropySource)(uint8_t* buffer, intptr_t length); + +/** + * Callback provided by the embedder that is used by the vmservice isolate + * to request the asset archive. The asset archive must be an uncompressed tar + * archive that is stored in a Uint8List. + * + * If the embedder has no vmservice isolate assets, the callback can be NULL. + * + * \return The embedder must return a handle to a Uint8List containing an + * uncompressed tar archive or null. + */ +typedef Dart_Handle (*Dart_GetVMServiceAssetsArchive)(void); + +/** + * The current version of the Dart_InitializeFlags. Should be incremented every + * time Dart_InitializeFlags changes in a binary incompatible way. + */ +#define DART_INITIALIZE_PARAMS_CURRENT_VERSION (0x00000007) + +/** Forward declaration */ +struct Dart_CodeObserver; + +/** + * Callback provided by the embedder that is used by the VM to notify on code + * object creation, *before* it is invoked the first time. + * This is useful for embedders wanting to e.g. keep track of PCs beyond + * the lifetime of the garbage collected code objects. + * Note that an address range may be used by more than one code object over the + * lifecycle of a process. Clients of this function should record timestamps for + * these compilation events and when collecting PCs to disambiguate reused + * address ranges. + */ +typedef void (*Dart_OnNewCodeCallback)(struct Dart_CodeObserver* observer, + const char* name, + uintptr_t base, + uintptr_t size); + +typedef struct Dart_CodeObserver { + void* data; + + Dart_OnNewCodeCallback on_new_code; +} Dart_CodeObserver; + +/** + * Optional callback provided by the embedder that is used by the VM to + * implement registration of kernel blobs for the subsequent Isolate.spawnUri + * If no callback is provided, the registration of kernel blobs will throw + * an error. + * + * \param kernel_buffer A buffer which contains a kernel program. Callback + * should copy the contents of `kernel_buffer` as + * it may be freed immediately after registration. + * \param kernel_buffer_size The size of `kernel_buffer`. + * + * \return A C string representing URI which can be later used + * to spawn a new isolate. This C String should be scope allocated + * or owned by the embedder. + * Returns NULL if embedder runs out of memory. + */ +typedef const char* (*Dart_RegisterKernelBlobCallback)( + const uint8_t* kernel_buffer, + intptr_t kernel_buffer_size); + +/** + * Optional callback provided by the embedder that is used by the VM to + * unregister kernel blobs. + * If no callback is provided, the unregistration of kernel blobs will throw + * an error. + * + * \param kernel_blob_uri URI of the kernel blob to unregister. + */ +typedef void (*Dart_UnregisterKernelBlobCallback)(const char* kernel_blob_uri); + +/** + * Describes how to initialize the VM. Used with Dart_Initialize. + */ +typedef struct { + /** + * Identifies the version of the struct used by the client. + * should be initialized to DART_INITIALIZE_PARAMS_CURRENT_VERSION. + */ + int32_t version; + + /** + * A buffer containing snapshot data, or NULL if no snapshot is provided. + * + * If provided, the buffer must remain valid until Dart_Cleanup returns. + */ + const uint8_t* vm_snapshot_data; + + /** + * A buffer containing a snapshot of precompiled instructions, or NULL if + * no snapshot is provided. + * + * If provided, the buffer must remain valid until Dart_Cleanup returns. + */ + const uint8_t* vm_snapshot_instructions; + + /** + * A function to be called during isolate group creation. + * See Dart_IsolateGroupCreateCallback. + */ + Dart_IsolateGroupCreateCallback create_group; + + /** + * A function to be called during isolate + * initialization inside an existing isolate group. + * See Dart_InitializeIsolateCallback. + */ + Dart_InitializeIsolateCallback initialize_isolate; + + /** + * A function to be called right before an isolate is shutdown. + * See Dart_IsolateShutdownCallback. + */ + Dart_IsolateShutdownCallback shutdown_isolate; + + /** + * A function to be called after an isolate was shutdown. + * See Dart_IsolateCleanupCallback. + */ + Dart_IsolateCleanupCallback cleanup_isolate; + + /** + * A function to be called after an isolate group is + * shutdown. See Dart_IsolateGroupCleanupCallback. + */ + Dart_IsolateGroupCleanupCallback cleanup_group; + + Dart_ThreadStartCallback thread_start; + Dart_ThreadExitCallback thread_exit; + Dart_FileOpenCallback file_open; + Dart_FileReadCallback file_read; + Dart_FileWriteCallback file_write; + Dart_FileCloseCallback file_close; + Dart_EntropySource entropy_source; + + /** + * A function to be called by the service isolate when it requires the + * vmservice assets archive. See Dart_GetVMServiceAssetsArchive. + */ + Dart_GetVMServiceAssetsArchive get_service_assets; + + bool start_kernel_isolate; + + /** + * An external code observer callback function. The observer can be invoked + * as early as during the Dart_Initialize() call. + */ + Dart_CodeObserver* code_observer; + + /** + * Kernel blob registration callback function. See Dart_RegisterKernelBlobCallback. + */ + Dart_RegisterKernelBlobCallback register_kernel_blob; + + /** + * Kernel blob unregistration callback function. See Dart_UnregisterKernelBlobCallback. + */ + Dart_UnregisterKernelBlobCallback unregister_kernel_blob; +} Dart_InitializeParams; + +/** + * Initializes the VM. + * + * \param params A struct containing initialization information. The version + * field of the struct must be DART_INITIALIZE_PARAMS_CURRENT_VERSION. + * + * \return NULL if initialization is successful. Returns an error message + * otherwise. The caller is responsible for freeing the error message. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT char* Dart_Initialize( + Dart_InitializeParams* params); + +/** + * Cleanup state in the VM before process termination. + * + * \return NULL if cleanup is successful. Returns an error message otherwise. + * The caller is responsible for freeing the error message. + * + * NOTE: This function must not be called on a thread that was created by the VM + * itself. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT char* Dart_Cleanup(void); + +/** + * Sets command line flags. Should be called before Dart_Initialize. + * + * \param argc The length of the arguments array. + * \param argv An array of arguments. + * + * \return NULL if successful. Returns an error message otherwise. + * The caller is responsible for freeing the error message. + * + * NOTE: This call does not store references to the passed in c-strings. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT char* Dart_SetVMFlags(int argc, + const char** argv); + +/** + * Returns true if the named VM flag is of boolean type, specified, and set to + * true. + * + * \param flag_name The name of the flag without leading punctuation + * (example: "enable_asserts"). + */ +DART_EXPORT bool Dart_IsVMFlagSet(const char* flag_name); + +/* + * ======== + * Isolates + * ======== + */ + +/** + * Creates a new isolate. The new isolate becomes the current isolate. + * + * A snapshot can be used to restore the VM quickly to a saved state + * and is useful for fast startup. If snapshot data is provided, the + * isolate will be started using that snapshot data. Requires a core snapshot or + * an app snapshot created by Dart_CreateSnapshot or + * Dart_CreatePrecompiledSnapshot* from a VM with the same version. + * + * Requires there to be no current isolate. + * + * \param script_uri The main source file or snapshot this isolate will load. + * The VM will provide this URI to the Dart_IsolateGroupCreateCallback when a + * child isolate is created by Isolate.spawn. The embedder should use a URI + * that allows it to load the same program into such a child isolate. + * \param name A short name for the isolate to improve debugging messages. + * Typically of the format 'foo.dart:main()'. + * \param isolate_snapshot_data Buffer containing the snapshot data of the + * isolate or NULL if no snapshot is provided. If provided, the buffer must + * remain valid until the isolate shuts down. + * \param isolate_snapshot_instructions Buffer containing the snapshot + * instructions of the isolate or NULL if no snapshot is provided. If + * provided, the buffer must remain valid until the isolate shuts down. + * \param flags Pointer to VM specific flags or NULL for default flags. + * \param isolate_group_data Embedder group data. This data can be obtained + * by calling Dart_IsolateGroupData and will be passed to the + * Dart_IsolateShutdownCallback, Dart_IsolateCleanupCallback, and + * Dart_IsolateGroupCleanupCallback. + * \param isolate_data Embedder data. This data will be passed to + * the Dart_IsolateGroupCreateCallback when new isolates are spawned from + * this parent isolate. + * \param error Returns NULL if creation is successful, an error message + * otherwise. The caller is responsible for calling free() on the error + * message. + * + * \return The new isolate on success, or NULL if isolate creation failed. + */ +DART_EXPORT Dart_Isolate +Dart_CreateIsolateGroup(const char* script_uri, + const char* name, + const uint8_t* isolate_snapshot_data, + const uint8_t* isolate_snapshot_instructions, + Dart_IsolateFlags* flags, + void* isolate_group_data, + void* isolate_data, + char** error); +/** + * Creates a new isolate inside the isolate group of [group_member]. + * + * Requires there to be no current isolate. + * + * \param group_member An isolate from the same group into which the newly created + * isolate should be born into. Other threads may not have entered / enter this + * member isolate. + * \param name A short name for the isolate for debugging purposes. + * \param shutdown_callback A callback to be called when the isolate is being + * shutdown (may be NULL). + * \param cleanup_callback A callback to be called when the isolate is being + * cleaned up (may be NULL). + * \param isolate_data The embedder-specific data associated with this isolate. + * \param error Set to NULL if creation is successful, set to an error + * message otherwise. The caller is responsible for calling free() on the + * error message. + * + * \return The newly created isolate on success, or NULL if isolate creation + * failed. + * + * If successful, the newly created isolate will become the current isolate. + */ +DART_EXPORT Dart_Isolate +Dart_CreateIsolateInGroup(Dart_Isolate group_member, + const char* name, + Dart_IsolateShutdownCallback shutdown_callback, + Dart_IsolateCleanupCallback cleanup_callback, + void* child_isolate_data, + char** error); + +/* TODO(turnidge): Document behavior when there is already a current + * isolate. */ + +/** + * Creates a new isolate from a Dart Kernel file. The new isolate + * becomes the current isolate. + * + * Requires there to be no current isolate. + * + * \param script_uri The main source file or snapshot this isolate will load. + * The VM will provide this URI to the Dart_IsolateGroupCreateCallback when a + * child isolate is created by Isolate.spawn. The embedder should use a URI that + * allows it to load the same program into such a child isolate. + * \param name A short name for the isolate to improve debugging messages. + * Typically of the format 'foo.dart:main()'. + * \param kernel_buffer A buffer which contains a kernel/DIL program. Must + * remain valid until isolate shutdown. + * \param kernel_buffer_size The size of `kernel_buffer`. + * \param flags Pointer to VM specific flags or NULL for default flags. + * \param isolate_group_data Embedder group data. This data can be obtained + * by calling Dart_IsolateGroupData and will be passed to the + * Dart_IsolateShutdownCallback, Dart_IsolateCleanupCallback, and + * Dart_IsolateGroupCleanupCallback. + * \param isolate_data Embedder data. This data will be passed to + * the Dart_IsolateGroupCreateCallback when new isolates are spawned from + * this parent isolate. + * \param error Returns NULL if creation is successful, an error message + * otherwise. The caller is responsible for calling free() on the error + * message. + * + * \return The new isolate on success, or NULL if isolate creation failed. + */ +DART_EXPORT Dart_Isolate +Dart_CreateIsolateGroupFromKernel(const char* script_uri, + const char* name, + const uint8_t* kernel_buffer, + intptr_t kernel_buffer_size, + Dart_IsolateFlags* flags, + void* isolate_group_data, + void* isolate_data, + char** error); +/** + * Shuts down the current isolate. After this call, the current isolate is NULL. + * Any current scopes created by Dart_EnterScope will be exited. Invokes the + * shutdown callback and any callbacks of remaining weak persistent handles. + * + * Requires there to be a current isolate. + */ +DART_EXPORT void Dart_ShutdownIsolate(void); +/* TODO(turnidge): Document behavior when there is no current isolate. */ + +/** + * Returns the current isolate. Will return NULL if there is no + * current isolate. + */ +DART_EXPORT Dart_Isolate Dart_CurrentIsolate(void); + +/** + * Returns the callback data associated with the current isolate. This + * data was set when the isolate got created or initialized. + */ +DART_EXPORT void* Dart_CurrentIsolateData(void); + +/** + * Returns the callback data associated with the given isolate. This + * data was set when the isolate got created or initialized. + */ +DART_EXPORT void* Dart_IsolateData(Dart_Isolate isolate); + +/** + * Returns the current isolate group. Will return NULL if there is no + * current isolate group. + */ +DART_EXPORT Dart_IsolateGroup Dart_CurrentIsolateGroup(void); + +/** + * Returns the callback data associated with the current isolate group. This + * data was passed to the isolate group when it was created. + */ +DART_EXPORT void* Dart_CurrentIsolateGroupData(void); + +/** + * Gets an id that uniquely identifies current isolate group. + * + * It is the responsibility of the caller to free the returned ID. + */ +typedef int64_t Dart_IsolateGroupId; +DART_EXPORT Dart_IsolateGroupId Dart_CurrentIsolateGroupId(); + +/** + * Returns the callback data associated with the specified isolate group. This + * data was passed to the isolate when it was created. + * The embedder is responsible for ensuring the consistency of this data + * with respect to the lifecycle of an isolate group. + */ +DART_EXPORT void* Dart_IsolateGroupData(Dart_Isolate isolate); + +/** + * Returns the debugging name for the current isolate. + * + * This name is unique to each isolate and should only be used to make + * debugging messages more comprehensible. + */ +DART_EXPORT Dart_Handle Dart_DebugName(void); + +/** + * Returns the ID for an isolate which is used to query the service protocol. + * + * It is the responsibility of the caller to free the returned ID. + */ +DART_EXPORT const char* Dart_IsolateServiceId(Dart_Isolate isolate); + +/** + * Enters an isolate. After calling this function, + * the current isolate will be set to the provided isolate. + * + * Requires there to be no current isolate. Multiple threads may not be in + * the same isolate at once. + */ +DART_EXPORT void Dart_EnterIsolate(Dart_Isolate isolate); + +/** + * Kills the given isolate. + * + * This function has the same effect as dart:isolate's + * Isolate.kill(priority:immediate). + * It can interrupt ordinary Dart code but not native code. If the isolate is + * in the middle of a long running native function, the isolate will not be + * killed until control returns to Dart. + * + * Does not require a current isolate. It is safe to kill the current isolate if + * there is one. + */ +DART_EXPORT void Dart_KillIsolate(Dart_Isolate isolate); + +/** + * Notifies the VM that the embedder expects to be idle until |deadline|. The VM + * may use this time to perform garbage collection or other tasks to avoid + * delays during execution of Dart code in the future. + * + * |deadline| is measured in microseconds against the system's monotonic time. + * This clock can be accessed via Dart_TimelineGetMicros(). + * + * Requires there to be a current isolate. + */ +DART_EXPORT void Dart_NotifyIdle(int64_t deadline); + +/** + * Notifies the VM that the system is running low on memory. + * + * Does not require a current isolate. Only valid after calling Dart_Initialize. + */ +DART_EXPORT void Dart_NotifyLowMemory(void); + +/** + * Starts the CPU sampling profiler. + */ +DART_EXPORT void Dart_StartProfiling(void); + +/** + * Stops the CPU sampling profiler. + * + * Note that some profile samples might still be taken after this fucntion + * returns due to the asynchronous nature of the implementation on some + * platforms. + */ +DART_EXPORT void Dart_StopProfiling(void); + +/** + * Notifies the VM that the current thread should not be profiled until a + * matching call to Dart_ThreadEnableProfiling is made. + * + * NOTE: By default, if a thread has entered an isolate it will be profiled. + * This function should be used when an embedder knows a thread is about + * to make a blocking call and wants to avoid unnecessary interrupts by + * the profiler. + */ +DART_EXPORT void Dart_ThreadDisableProfiling(void); + +/** + * Notifies the VM that the current thread should be profiled. + * + * NOTE: It is only legal to call this function *after* calling + * Dart_ThreadDisableProfiling. + * + * NOTE: By default, if a thread has entered an isolate it will be profiled. + */ +DART_EXPORT void Dart_ThreadEnableProfiling(void); + +/** + * Register symbol information for the Dart VM's profiler and crash dumps. + * + * This consumes the output of //topaz/runtime/dart/profiler_symbols, which + * should be treated as opaque. + */ +DART_EXPORT void Dart_AddSymbols(const char* dso_name, + void* buffer, + intptr_t buffer_size); + +/** + * Exits an isolate. After this call, Dart_CurrentIsolate will + * return NULL. + * + * Requires there to be a current isolate. + */ +DART_EXPORT void Dart_ExitIsolate(void); +/* TODO(turnidge): We don't want users of the api to be able to exit a + * "pure" dart isolate. Implement and document. */ + +/** + * Creates a full snapshot of the current isolate heap. + * + * A full snapshot is a compact representation of the dart vm isolate heap + * and dart isolate heap states. These snapshots are used to initialize + * the vm isolate on startup and fast initialization of an isolate. + * A Snapshot of the heap is created before any dart code has executed. + * + * Requires there to be a current isolate. Not available in the precompiled + * runtime (check Dart_IsPrecompiledRuntime). + * + * \param vm_snapshot_data_buffer Returns a pointer to a buffer containing the + * vm snapshot. This buffer is scope allocated and is only valid + * until the next call to Dart_ExitScope. + * \param vm_snapshot_data_size Returns the size of vm_snapshot_data_buffer. + * \param isolate_snapshot_data_buffer Returns a pointer to a buffer containing + * the isolate snapshot. This buffer is scope allocated and is only valid + * until the next call to Dart_ExitScope. + * \param isolate_snapshot_data_size Returns the size of + * isolate_snapshot_data_buffer. + * \param is_core Create a snapshot containing core libraries. + * Such snapshot should be agnostic to null safety mode. + * + * \return A valid handle if no error occurs during the operation. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle +Dart_CreateSnapshot(uint8_t** vm_snapshot_data_buffer, + intptr_t* vm_snapshot_data_size, + uint8_t** isolate_snapshot_data_buffer, + intptr_t* isolate_snapshot_data_size, + bool is_core); + +/** + * Returns whether the buffer contains a kernel file. + * + * \param buffer Pointer to a buffer that might contain a kernel binary. + * \param buffer_size Size of the buffer. + * + * \return Whether the buffer contains a kernel binary (full or partial). + */ +DART_EXPORT bool Dart_IsKernel(const uint8_t* buffer, intptr_t buffer_size); + +/** + * Make isolate runnable. + * + * When isolates are spawned, this function is used to indicate that + * the creation and initialization (including script loading) of the + * isolate is complete and the isolate can start. + * This function expects there to be no current isolate. + * + * \param isolate The isolate to be made runnable. + * + * \return NULL if successful. Returns an error message otherwise. The caller + * is responsible for freeing the error message. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT char* Dart_IsolateMakeRunnable( + Dart_Isolate isolate); + +/* + * ================== + * Messages and Ports + * ================== + */ + +/** + * A port is used to send or receive inter-isolate messages + */ +typedef int64_t Dart_Port; + +/** + * ILLEGAL_PORT is a port number guaranteed never to be associated with a valid + * port. + */ +#define ILLEGAL_PORT ((Dart_Port)0) + +/** + * A message notification callback. + * + * This callback allows the embedder to provide an alternate wakeup + * mechanism for the delivery of inter-isolate messages. It is the + * responsibility of the embedder to call Dart_HandleMessage to + * process the message. + */ +typedef void (*Dart_MessageNotifyCallback)(Dart_Isolate dest_isolate); + +/** + * Allows embedders to provide an alternative wakeup mechanism for the + * delivery of inter-isolate messages. This setting only applies to + * the current isolate. + * + * Most embedders will only call this function once, before isolate + * execution begins. If this function is called after isolate + * execution begins, the embedder is responsible for threading issues. + */ +DART_EXPORT void Dart_SetMessageNotifyCallback( + Dart_MessageNotifyCallback message_notify_callback); +/* TODO(turnidge): Consider moving this to isolate creation so that it + * is impossible to mess up. */ + +/** + * Query the current message notify callback for the isolate. + * + * \return The current message notify callback for the isolate. + */ +DART_EXPORT Dart_MessageNotifyCallback Dart_GetMessageNotifyCallback(void); + +/** + * The VM's default message handler supports pausing an isolate before it + * processes the first message and right after the it processes the isolate's + * final message. This can be controlled for all isolates by two VM flags: + * + * `--pause-isolates-on-start` + * `--pause-isolates-on-exit` + * + * Additionally, Dart_SetShouldPauseOnStart and Dart_SetShouldPauseOnExit can be + * used to control this behaviour on a per-isolate basis. + * + * When an embedder is using a Dart_MessageNotifyCallback the embedder + * needs to cooperate with the VM so that the service protocol can report + * accurate information about isolates and so that tools such as debuggers + * work reliably. + * + * The following functions can be used to implement pausing on start and exit. + */ + +/** + * If the VM flag `--pause-isolates-on-start` was passed this will be true. + * + * \return A boolean value indicating if pause on start was requested. + */ +DART_EXPORT bool Dart_ShouldPauseOnStart(void); + +/** + * Override the VM flag `--pause-isolates-on-start` for the current isolate. + * + * \param should_pause Should the isolate be paused on start? + * + * NOTE: This must be called before Dart_IsolateMakeRunnable. + */ +DART_EXPORT void Dart_SetShouldPauseOnStart(bool should_pause); + +/** + * Is the current isolate paused on start? + * + * \return A boolean value indicating if the isolate is paused on start. + */ +DART_EXPORT bool Dart_IsPausedOnStart(void); + +/** + * Called when the embedder has paused the current isolate on start and when + * the embedder has resumed the isolate. + * + * \param paused Is the isolate paused on start? + */ +DART_EXPORT void Dart_SetPausedOnStart(bool paused); + +/** + * If the VM flag `--pause-isolates-on-exit` was passed this will be true. + * + * \return A boolean value indicating if pause on exit was requested. + */ +DART_EXPORT bool Dart_ShouldPauseOnExit(void); + +/** + * Override the VM flag `--pause-isolates-on-exit` for the current isolate. + * + * \param should_pause Should the isolate be paused on exit? + * + */ +DART_EXPORT void Dart_SetShouldPauseOnExit(bool should_pause); + +/** + * Is the current isolate paused on exit? + * + * \return A boolean value indicating if the isolate is paused on exit. + */ +DART_EXPORT bool Dart_IsPausedOnExit(void); + +/** + * Called when the embedder has paused the current isolate on exit and when + * the embedder has resumed the isolate. + * + * \param paused Is the isolate paused on exit? + */ +DART_EXPORT void Dart_SetPausedOnExit(bool paused); + +/** + * Called when the embedder has caught a top level unhandled exception error + * in the current isolate. + * + * NOTE: It is illegal to call this twice on the same isolate without first + * clearing the sticky error to null. + * + * \param error The unhandled exception error. + */ +DART_EXPORT void Dart_SetStickyError(Dart_Handle error); + +/** + * Does the current isolate have a sticky error? + */ +DART_EXPORT bool Dart_HasStickyError(void); + +/** + * Gets the sticky error for the current isolate. + * + * \return A handle to the sticky error object or null. + */ +DART_EXPORT Dart_Handle Dart_GetStickyError(void); + +/** + * Handles the next pending message for the current isolate. + * + * May generate an unhandled exception error. + * + * \return A valid handle if no error occurs during the operation. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_HandleMessage(void); + +/** + * Drains the microtask queue, then blocks the calling thread until the current + * isolate receives a message, then handles all messages. + * + * \param timeout_millis When non-zero, the call returns after the indicated + number of milliseconds even if no message was received. + * \return A valid handle if no error occurs, otherwise an error handle. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle +Dart_WaitForEvent(int64_t timeout_millis); + +/** + * Handles any pending messages for the vm service for the current + * isolate. + * + * This function may be used by an embedder at a breakpoint to avoid + * pausing the vm service. + * + * This function can indirectly cause the message notify callback to + * be called. + * + * \return true if the vm service requests the program resume + * execution, false otherwise + */ +DART_EXPORT bool Dart_HandleServiceMessages(void); + +/** + * Does the current isolate have pending service messages? + * + * \return true if the isolate has pending service messages, false otherwise. + */ +DART_EXPORT bool Dart_HasServiceMessages(void); + +/** + * Processes any incoming messages for the current isolate. + * + * This function may only be used when the embedder has not provided + * an alternate message delivery mechanism with + * Dart_SetMessageCallbacks. It is provided for convenience. + * + * This function waits for incoming messages for the current + * isolate. As new messages arrive, they are handled using + * Dart_HandleMessage. The routine exits when all ports to the + * current isolate are closed. + * + * \return A valid handle if the run loop exited successfully. If an + * exception or other error occurs while processing messages, an + * error handle is returned. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_RunLoop(void); + +/** + * Lets the VM run message processing for the isolate. + * + * This function expects there to a current isolate and the current isolate + * must not have an active api scope. The VM will take care of making the + * isolate runnable (if not already), handles its message loop and will take + * care of shutting the isolate down once it's done. + * + * \param errors_are_fatal Whether uncaught errors should be fatal. + * \param on_error_port A port to notify on uncaught errors (or ILLEGAL_PORT). + * \param on_exit_port A port to notify on exit (or ILLEGAL_PORT). + * \param error A non-NULL pointer which will hold an error message if the call + * fails. The error has to be free()ed by the caller. + * + * \return If successfull the VM takes owernship of the isolate and takes care + * of its message loop. If not successful the caller retains owernship of the + * isolate. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT bool Dart_RunLoopAsync( + bool errors_are_fatal, + Dart_Port on_error_port, + Dart_Port on_exit_port, + char** error); + +/* TODO(turnidge): Should this be removed from the public api? */ + +/** + * Gets the main port id for the current isolate. + */ +DART_EXPORT Dart_Port Dart_GetMainPortId(void); + +/** + * Does the current isolate have live ReceivePorts? + * + * A ReceivePort is live when it has not been closed. + */ +DART_EXPORT bool Dart_HasLivePorts(void); + +/** + * Posts a message for some isolate. The message is a serialized + * object. + * + * Requires there to be a current isolate. + * + * \param port_id The destination port. + * \param object An object from the current isolate. + * + * \return True if the message was posted. + */ +DART_EXPORT bool Dart_Post(Dart_Port port_id, Dart_Handle object); + +/** + * Returns a new SendPort with the provided port id. + * + * \param port_id The destination port. + * + * \return A new SendPort if no errors occurs. Otherwise returns + * an error handle. + */ +DART_EXPORT Dart_Handle Dart_NewSendPort(Dart_Port port_id); + +/** + * Gets the SendPort id for the provided SendPort. + * \param port A SendPort object whose id is desired. + * \param port_id Returns the id of the SendPort. + * \return Success if no error occurs. Otherwise returns + * an error handle. + */ +DART_EXPORT Dart_Handle Dart_SendPortGetId(Dart_Handle port, + Dart_Port* port_id); + +/* + * ====== + * Scopes + * ====== + */ + +/** + * Enters a new scope. + * + * All new local handles will be created in this scope. Additionally, + * some functions may return "scope allocated" memory which is only + * valid within this scope. + * + * Requires there to be a current isolate. + */ +DART_EXPORT void Dart_EnterScope(void); + +/** + * Exits a scope. + * + * The previous scope (if any) becomes the current scope. + * + * Requires there to be a current isolate. + */ +DART_EXPORT void Dart_ExitScope(void); + +/** + * The Dart VM uses "zone allocation" for temporary structures. Zones + * support very fast allocation of small chunks of memory. The chunks + * cannot be deallocated individually, but instead zones support + * deallocating all chunks in one fast operation. + * + * This function makes it possible for the embedder to allocate + * temporary data in the VMs zone allocator. + * + * Zone allocation is possible: + * 1. when inside a scope where local handles can be allocated + * 2. when processing a message from a native port in a native port + * handler + * + * All the memory allocated this way will be reclaimed either on the + * next call to Dart_ExitScope or when the native port handler exits. + * + * \param size Size of the memory to allocate. + * + * \return A pointer to the allocated memory. NULL if allocation + * failed. Failure might due to is no current VM zone. + */ +DART_EXPORT uint8_t* Dart_ScopeAllocate(intptr_t size); + +/* + * ======= + * Objects + * ======= + */ + +/** + * Returns the null object. + * + * \return A handle to the null object. + */ +DART_EXPORT Dart_Handle Dart_Null(void); + +/** + * Is this object null? + */ +DART_EXPORT bool Dart_IsNull(Dart_Handle object); + +/** + * Returns the empty string object. + * + * \return A handle to the empty string object. + */ +DART_EXPORT Dart_Handle Dart_EmptyString(void); + +/** + * Returns types that are not classes, and which therefore cannot be looked up + * as library members by Dart_GetType. + * + * \return A handle to the dynamic, void or Never type. + */ +DART_EXPORT Dart_Handle Dart_TypeDynamic(void); +DART_EXPORT Dart_Handle Dart_TypeVoid(void); +DART_EXPORT Dart_Handle Dart_TypeNever(void); + +/** + * Checks if the two objects are equal. + * + * The result of the comparison is returned through the 'equal' + * parameter. The return value itself is used to indicate success or + * failure, not equality. + * + * May generate an unhandled exception error. + * + * \param obj1 An object to be compared. + * \param obj2 An object to be compared. + * \param equal Returns the result of the equality comparison. + * + * \return A valid handle if no error occurs during the comparison. + */ +DART_EXPORT Dart_Handle Dart_ObjectEquals(Dart_Handle obj1, + Dart_Handle obj2, + bool* equal); + +/** + * Is this object an instance of some type? + * + * The result of the test is returned through the 'instanceof' parameter. + * The return value itself is used to indicate success or failure. + * + * \param object An object. + * \param type A type. + * \param instanceof Return true if 'object' is an instance of type 'type'. + * + * \return A valid handle if no error occurs during the operation. + */ +DART_EXPORT Dart_Handle Dart_ObjectIsType(Dart_Handle object, + Dart_Handle type, + bool* instanceof); + +/** + * Query object type. + * + * \param object Some Object. + * + * \return true if Object is of the specified type. + */ +DART_EXPORT bool Dart_IsInstance(Dart_Handle object); +DART_EXPORT bool Dart_IsNumber(Dart_Handle object); +DART_EXPORT bool Dart_IsInteger(Dart_Handle object); +DART_EXPORT bool Dart_IsDouble(Dart_Handle object); +DART_EXPORT bool Dart_IsBoolean(Dart_Handle object); +DART_EXPORT bool Dart_IsString(Dart_Handle object); +DART_EXPORT bool Dart_IsStringLatin1(Dart_Handle object); /* (ISO-8859-1) */ +DART_EXPORT bool Dart_IsExternalString(Dart_Handle object); +DART_EXPORT bool Dart_IsList(Dart_Handle object); +DART_EXPORT bool Dart_IsMap(Dart_Handle object); +DART_EXPORT bool Dart_IsLibrary(Dart_Handle object); +DART_EXPORT bool Dart_IsType(Dart_Handle handle); +DART_EXPORT bool Dart_IsFunction(Dart_Handle handle); +DART_EXPORT bool Dart_IsVariable(Dart_Handle handle); +DART_EXPORT bool Dart_IsTypeVariable(Dart_Handle handle); +DART_EXPORT bool Dart_IsClosure(Dart_Handle object); +DART_EXPORT bool Dart_IsTypedData(Dart_Handle object); +DART_EXPORT bool Dart_IsByteBuffer(Dart_Handle object); +DART_EXPORT bool Dart_IsFuture(Dart_Handle object); + +/* + * ========= + * Instances + * ========= + */ + +/* + * For the purposes of the embedding api, not all objects returned are + * Dart language objects. Within the api, we use the term 'Instance' + * to indicate handles which refer to true Dart language objects. + * + * TODO(turnidge): Reorganize the "Object" section above, pulling down + * any functions that more properly belong here. */ + +/** + * Gets the type of a Dart language object. + * + * \param instance Some Dart object. + * + * \return If no error occurs, the type is returned. Otherwise an + * error handle is returned. + */ +DART_EXPORT Dart_Handle Dart_InstanceGetType(Dart_Handle instance); + +/** + * Returns the name for the provided class type. + * + * \return A valid string handle if no error occurs during the + * operation. + */ +DART_EXPORT Dart_Handle Dart_ClassName(Dart_Handle cls_type); + +/** + * Returns the name for the provided function or method. + * + * \return A valid string handle if no error occurs during the + * operation. + */ +DART_EXPORT Dart_Handle Dart_FunctionName(Dart_Handle function); + +/** + * Returns a handle to the owner of a function. + * + * The owner of an instance method or a static method is its defining + * class. The owner of a top-level function is its defining + * library. The owner of the function of a non-implicit closure is the + * function of the method or closure that defines the non-implicit + * closure. + * + * \return A valid handle to the owner of the function, or an error + * handle if the argument is not a valid handle to a function. + */ +DART_EXPORT Dart_Handle Dart_FunctionOwner(Dart_Handle function); + +/** + * Determines whether a function handle referes to a static function + * of method. + * + * For the purposes of the embedding API, a top-level function is + * implicitly declared static. + * + * \param function A handle to a function or method declaration. + * \param is_static Returns whether the function or method is declared static. + * + * \return A valid handle if no error occurs during the operation. + */ +DART_EXPORT Dart_Handle Dart_FunctionIsStatic(Dart_Handle function, + bool* is_static); + +/** + * Is this object a closure resulting from a tear-off (closurized method)? + * + * Returns true for closures produced when an ordinary method is accessed + * through a getter call. Returns false otherwise, in particular for closures + * produced from local function declarations. + * + * \param object Some Object. + * + * \return true if Object is a tear-off. + */ +DART_EXPORT bool Dart_IsTearOff(Dart_Handle object); + +/** + * Retrieves the function of a closure. + * + * \return A handle to the function of the closure, or an error handle if the + * argument is not a closure. + */ +DART_EXPORT Dart_Handle Dart_ClosureFunction(Dart_Handle closure); + +/** + * Returns a handle to the library which contains class. + * + * \return A valid handle to the library with owns class, null if the class + * has no library or an error handle if the argument is not a valid handle + * to a class type. + */ +DART_EXPORT Dart_Handle Dart_ClassLibrary(Dart_Handle cls_type); + +/* + * ============================= + * Numbers, Integers and Doubles + * ============================= + */ + +/** + * Does this Integer fit into a 64-bit signed integer? + * + * \param integer An integer. + * \param fits Returns true if the integer fits into a 64-bit signed integer. + * + * \return A valid handle if no error occurs during the operation. + */ +DART_EXPORT Dart_Handle Dart_IntegerFitsIntoInt64(Dart_Handle integer, + bool* fits); + +/** + * Does this Integer fit into a 64-bit unsigned integer? + * + * \param integer An integer. + * \param fits Returns true if the integer fits into a 64-bit unsigned integer. + * + * \return A valid handle if no error occurs during the operation. + */ +DART_EXPORT Dart_Handle Dart_IntegerFitsIntoUint64(Dart_Handle integer, + bool* fits); + +/** + * Returns an Integer with the provided value. + * + * \param value The value of the integer. + * + * \return The Integer object if no error occurs. Otherwise returns + * an error handle. + */ +DART_EXPORT Dart_Handle Dart_NewInteger(int64_t value); + +/** + * Returns an Integer with the provided value. + * + * \param value The unsigned value of the integer. + * + * \return The Integer object if no error occurs. Otherwise returns + * an error handle. + */ +DART_EXPORT Dart_Handle Dart_NewIntegerFromUint64(uint64_t value); + +/** + * Returns an Integer with the provided value. + * + * \param value The value of the integer represented as a C string + * containing a hexadecimal number. + * + * \return The Integer object if no error occurs. Otherwise returns + * an error handle. + */ +DART_EXPORT Dart_Handle Dart_NewIntegerFromHexCString(const char* value); + +/** + * Gets the value of an Integer. + * + * The integer must fit into a 64-bit signed integer, otherwise an error occurs. + * + * \param integer An Integer. + * \param value Returns the value of the Integer. + * + * \return A valid handle if no error occurs during the operation. + */ +DART_EXPORT Dart_Handle Dart_IntegerToInt64(Dart_Handle integer, + int64_t* value); + +/** + * Gets the value of an Integer. + * + * The integer must fit into a 64-bit unsigned integer, otherwise an + * error occurs. + * + * \param integer An Integer. + * \param value Returns the value of the Integer. + * + * \return A valid handle if no error occurs during the operation. + */ +DART_EXPORT Dart_Handle Dart_IntegerToUint64(Dart_Handle integer, + uint64_t* value); + +/** + * Gets the value of an integer as a hexadecimal C string. + * + * \param integer An Integer. + * \param value Returns the value of the Integer as a hexadecimal C + * string. This C string is scope allocated and is only valid until + * the next call to Dart_ExitScope. + * + * \return A valid handle if no error occurs during the operation. + */ +DART_EXPORT Dart_Handle Dart_IntegerToHexCString(Dart_Handle integer, + const char** value); + +/** + * Returns a Double with the provided value. + * + * \param value A double. + * + * \return The Double object if no error occurs. Otherwise returns + * an error handle. + */ +DART_EXPORT Dart_Handle Dart_NewDouble(double value); + +/** + * Gets the value of a Double + * + * \param double_obj A Double + * \param value Returns the value of the Double. + * + * \return A valid handle if no error occurs during the operation. + */ +DART_EXPORT Dart_Handle Dart_DoubleValue(Dart_Handle double_obj, double* value); + +/** + * Returns a closure of static function 'function_name' in the class 'class_name' + * in the exported namespace of specified 'library'. + * + * \param library Library object + * \param cls_type Type object representing a Class + * \param function_name Name of the static function in the class + * + * \return A valid Dart instance if no error occurs during the operation. + */ +DART_EXPORT Dart_Handle Dart_GetStaticMethodClosure(Dart_Handle library, + Dart_Handle cls_type, + Dart_Handle function_name); + +/* + * ======== + * Booleans + * ======== + */ + +/** + * Returns the True object. + * + * Requires there to be a current isolate. + * + * \return A handle to the True object. + */ +DART_EXPORT Dart_Handle Dart_True(void); + +/** + * Returns the False object. + * + * Requires there to be a current isolate. + * + * \return A handle to the False object. + */ +DART_EXPORT Dart_Handle Dart_False(void); + +/** + * Returns a Boolean with the provided value. + * + * \param value true or false. + * + * \return The Boolean object if no error occurs. Otherwise returns + * an error handle. + */ +DART_EXPORT Dart_Handle Dart_NewBoolean(bool value); + +/** + * Gets the value of a Boolean + * + * \param boolean_obj A Boolean + * \param value Returns the value of the Boolean. + * + * \return A valid handle if no error occurs during the operation. + */ +DART_EXPORT Dart_Handle Dart_BooleanValue(Dart_Handle boolean_obj, bool* value); + +/* + * ======= + * Strings + * ======= + */ + +/** + * Gets the length of a String. + * + * \param str A String. + * \param length Returns the length of the String. + * + * \return A valid handle if no error occurs during the operation. + */ +DART_EXPORT Dart_Handle Dart_StringLength(Dart_Handle str, intptr_t* length); + +/** + * Returns a String built from the provided C string + * (There is an implicit assumption that the C string passed in contains + * UTF-8 encoded characters and '\0' is considered as a termination + * character). + * + * \param str A C String + * + * \return The String object if no error occurs. Otherwise returns + * an error handle. + */ +DART_EXPORT Dart_Handle Dart_NewStringFromCString(const char* str); +/* TODO(turnidge): Document what happens when we run out of memory + * during this call. */ + +/** + * Returns a String built from an array of UTF-8 encoded characters. + * + * \param utf8_array An array of UTF-8 encoded characters. + * \param length The length of the codepoints array. + * + * \return The String object if no error occurs. Otherwise returns + * an error handle. + */ +DART_EXPORT Dart_Handle Dart_NewStringFromUTF8(const uint8_t* utf8_array, + intptr_t length); + +/** + * Returns a String built from an array of UTF-16 encoded characters. + * + * \param utf16_array An array of UTF-16 encoded characters. + * \param length The length of the codepoints array. + * + * \return The String object if no error occurs. Otherwise returns + * an error handle. + */ +DART_EXPORT Dart_Handle Dart_NewStringFromUTF16(const uint16_t* utf16_array, + intptr_t length); + +/** + * Returns a String built from an array of UTF-32 encoded characters. + * + * \param utf32_array An array of UTF-32 encoded characters. + * \param length The length of the codepoints array. + * + * \return The String object if no error occurs. Otherwise returns + * an error handle. + */ +DART_EXPORT Dart_Handle Dart_NewStringFromUTF32(const int32_t* utf32_array, + intptr_t length); + +/** + * Returns a String which references an external array of + * Latin-1 (ISO-8859-1) encoded characters. + * + * \param latin1_array Array of Latin-1 encoded characters. This must not move. + * \param length The length of the characters array. + * \param peer An external pointer to associate with this string. + * \param external_allocation_size The number of externally allocated + * bytes for peer. Used to inform the garbage collector. + * \param callback A callback to be called when this string is finalized. + * + * \return The String object if no error occurs. Otherwise returns + * an error handle. + */ +DART_EXPORT Dart_Handle +Dart_NewExternalLatin1String(const uint8_t* latin1_array, + intptr_t length, + void* peer, + intptr_t external_allocation_size, + Dart_HandleFinalizer callback); + +/** + * Returns a String which references an external array of UTF-16 encoded + * characters. + * + * \param utf16_array An array of UTF-16 encoded characters. This must not move. + * \param length The length of the characters array. + * \param peer An external pointer to associate with this string. + * \param external_allocation_size The number of externally allocated + * bytes for peer. Used to inform the garbage collector. + * \param callback A callback to be called when this string is finalized. + * + * \return The String object if no error occurs. Otherwise returns + * an error handle. + */ +DART_EXPORT Dart_Handle +Dart_NewExternalUTF16String(const uint16_t* utf16_array, + intptr_t length, + void* peer, + intptr_t external_allocation_size, + Dart_HandleFinalizer callback); + +/** + * Gets the C string representation of a String. + * (It is a sequence of UTF-8 encoded values with a '\0' termination.) + * + * \param str A string. + * \param cstr Returns the String represented as a C string. + * This C string is scope allocated and is only valid until + * the next call to Dart_ExitScope. + * + * \return A valid handle if no error occurs during the operation. + */ +DART_EXPORT Dart_Handle Dart_StringToCString(Dart_Handle str, + const char** cstr); + +/** + * Gets a UTF-8 encoded representation of a String. + * + * Any unpaired surrogate code points in the string will be converted as + * replacement characters (U+FFFD, 0xEF 0xBF 0xBD in UTF-8). If you need + * to preserve unpaired surrogates, use the Dart_StringToUTF16 function. + * + * \param str A string. + * \param utf8_array Returns the String represented as UTF-8 code + * units. This UTF-8 array is scope allocated and is only valid + * until the next call to Dart_ExitScope. + * \param length Used to return the length of the array which was + * actually used. + * + * \return A valid handle if no error occurs during the operation. + */ +DART_EXPORT Dart_Handle Dart_StringToUTF8(Dart_Handle str, + uint8_t** utf8_array, + intptr_t* length); + +/** + * Gets the data corresponding to the string object. This function returns + * the data only for Latin-1 (ISO-8859-1) string objects. For all other + * string objects it returns an error. + * + * \param str A string. + * \param latin1_array An array allocated by the caller, used to return + * the string data. + * \param length Used to pass in the length of the provided array. + * Used to return the length of the array which was actually used. + * + * \return A valid handle if no error occurs during the operation. + */ +DART_EXPORT Dart_Handle Dart_StringToLatin1(Dart_Handle str, + uint8_t* latin1_array, + intptr_t* length); + +/** + * Gets the UTF-16 encoded representation of a string. + * + * \param str A string. + * \param utf16_array An array allocated by the caller, used to return + * the array of UTF-16 encoded characters. + * \param length Used to pass in the length of the provided array. + * Used to return the length of the array which was actually used. + * + * \return A valid handle if no error occurs during the operation. + */ +DART_EXPORT Dart_Handle Dart_StringToUTF16(Dart_Handle str, + uint16_t* utf16_array, + intptr_t* length); + +/** + * Gets the storage size in bytes of a String. + * + * \param str A String. + * \param size Returns the storage size in bytes of the String. + * This is the size in bytes needed to store the String. + * + * \return A valid handle if no error occurs during the operation. + */ +DART_EXPORT Dart_Handle Dart_StringStorageSize(Dart_Handle str, intptr_t* size); + +/** + * Retrieves some properties associated with a String. + * Properties retrieved are: + * - character size of the string (one or two byte) + * - length of the string + * - peer pointer of string if it is an external string. + * \param str A String. + * \param char_size Returns the character size of the String. + * \param str_len Returns the length of the String. + * \param peer Returns the peer pointer associated with the String or 0 if + * there is no peer pointer for it. + * \return Success if no error occurs. Otherwise returns + * an error handle. + */ +DART_EXPORT Dart_Handle Dart_StringGetProperties(Dart_Handle str, + intptr_t* char_size, + intptr_t* str_len, + void** peer); + +/* + * ===== + * Lists + * ===== + */ + +/** + * Returns a List of the desired length. + * + * \param length The length of the list. + * + * \return The List object if no error occurs. Otherwise returns + * an error handle. + */ +DART_EXPORT Dart_Handle Dart_NewList(intptr_t length); + +typedef enum { + Dart_CoreType_Dynamic, + Dart_CoreType_Int, + Dart_CoreType_String, +} Dart_CoreType_Id; + +// TODO(bkonyi): convert this to use nullable types once NNBD is enabled. +/** + * Returns a List of the desired length with the desired legacy element type. + * + * \param element_type_id The type of elements of the list. + * \param length The length of the list. + * + * \return The List object if no error occurs. Otherwise returns an error + * handle. + */ +DART_EXPORT Dart_Handle Dart_NewListOf(Dart_CoreType_Id element_type_id, + intptr_t length); + +/** + * Returns a List of the desired length with the desired element type. + * + * \param element_type Handle to a nullable type object. E.g., from + * Dart_GetType or Dart_GetNullableType. + * + * \param length The length of the list. + * + * \return The List object if no error occurs. Otherwise returns + * an error handle. + */ +DART_EXPORT Dart_Handle Dart_NewListOfType(Dart_Handle element_type, + intptr_t length); + +/** + * Returns a List of the desired length with the desired element type, filled + * with the provided object. + * + * \param element_type Handle to a type object. E.g., from Dart_GetType. + * + * \param fill_object Handle to an object of type 'element_type' that will be + * used to populate the list. This parameter can only be Dart_Null() if the + * length of the list is 0 or 'element_type' is a nullable type. + * + * \param length The length of the list. + * + * \return The List object if no error occurs. Otherwise returns + * an error handle. + */ +DART_EXPORT Dart_Handle Dart_NewListOfTypeFilled(Dart_Handle element_type, + Dart_Handle fill_object, + intptr_t length); + +/** + * Gets the length of a List. + * + * May generate an unhandled exception error. + * + * \param list A List. + * \param length Returns the length of the List. + * + * \return A valid handle if no error occurs during the operation. + */ +DART_EXPORT Dart_Handle Dart_ListLength(Dart_Handle list, intptr_t* length); + +/** + * Gets the Object at some index of a List. + * + * If the index is out of bounds, an error occurs. + * + * May generate an unhandled exception error. + * + * \param list A List. + * \param index A valid index into the List. + * + * \return The Object in the List at the specified index if no error + * occurs. Otherwise returns an error handle. + */ +DART_EXPORT Dart_Handle Dart_ListGetAt(Dart_Handle list, intptr_t index); + +/** +* Gets a range of Objects from a List. +* +* If any of the requested index values are out of bounds, an error occurs. +* +* May generate an unhandled exception error. +* +* \param list A List. +* \param offset The offset of the first item to get. +* \param length The number of items to get. +* \param result A pointer to fill with the objects. +* +* \return Success if no error occurs during the operation. +*/ +DART_EXPORT Dart_Handle Dart_ListGetRange(Dart_Handle list, + intptr_t offset, + intptr_t length, + Dart_Handle* result); + +/** + * Sets the Object at some index of a List. + * + * If the index is out of bounds, an error occurs. + * + * May generate an unhandled exception error. + * + * \param list A List. + * \param index A valid index into the List. + * \param value The Object to put in the List. + * + * \return A valid handle if no error occurs during the operation. + */ +DART_EXPORT Dart_Handle Dart_ListSetAt(Dart_Handle list, + intptr_t index, + Dart_Handle value); + +/** + * May generate an unhandled exception error. + */ +DART_EXPORT Dart_Handle Dart_ListGetAsBytes(Dart_Handle list, + intptr_t offset, + uint8_t* native_array, + intptr_t length); + +/** + * May generate an unhandled exception error. + */ +DART_EXPORT Dart_Handle Dart_ListSetAsBytes(Dart_Handle list, + intptr_t offset, + const uint8_t* native_array, + intptr_t length); + +/* + * ==== + * Maps + * ==== + */ + +/** + * Gets the Object at some key of a Map. + * + * May generate an unhandled exception error. + * + * \param map A Map. + * \param key An Object. + * + * \return The value in the map at the specified key, null if the map does not + * contain the key, or an error handle. + */ +DART_EXPORT Dart_Handle Dart_MapGetAt(Dart_Handle map, Dart_Handle key); + +/** + * Returns whether the Map contains a given key. + * + * May generate an unhandled exception error. + * + * \param map A Map. + * + * \return A handle on a boolean indicating whether map contains the key. + * Otherwise returns an error handle. + */ +DART_EXPORT Dart_Handle Dart_MapContainsKey(Dart_Handle map, Dart_Handle key); + +/** + * Gets the list of keys of a Map. + * + * May generate an unhandled exception error. + * + * \param map A Map. + * + * \return The list of key Objects if no error occurs. Otherwise returns an + * error handle. + */ +DART_EXPORT Dart_Handle Dart_MapKeys(Dart_Handle map); + +/* + * ========== + * Typed Data + * ========== + */ + +typedef enum { + Dart_TypedData_kByteData = 0, + Dart_TypedData_kInt8, + Dart_TypedData_kUint8, + Dart_TypedData_kUint8Clamped, + Dart_TypedData_kInt16, + Dart_TypedData_kUint16, + Dart_TypedData_kInt32, + Dart_TypedData_kUint32, + Dart_TypedData_kInt64, + Dart_TypedData_kUint64, + Dart_TypedData_kFloat32, + Dart_TypedData_kFloat64, + Dart_TypedData_kInt32x4, + Dart_TypedData_kFloat32x4, + Dart_TypedData_kFloat64x2, + Dart_TypedData_kInvalid +} Dart_TypedData_Type; + +/** + * Return type if this object is a TypedData object. + * + * \return kInvalid if the object is not a TypedData object or the appropriate + * Dart_TypedData_Type. + */ +DART_EXPORT Dart_TypedData_Type Dart_GetTypeOfTypedData(Dart_Handle object); + +/** + * Return type if this object is an external TypedData object. + * + * \return kInvalid if the object is not an external TypedData object or + * the appropriate Dart_TypedData_Type. + */ +DART_EXPORT Dart_TypedData_Type +Dart_GetTypeOfExternalTypedData(Dart_Handle object); + +/** + * Returns a TypedData object of the desired length and type. + * + * \param type The type of the TypedData object. + * \param length The length of the TypedData object (length in type units). + * + * \return The TypedData object if no error occurs. Otherwise returns + * an error handle. + */ +DART_EXPORT Dart_Handle Dart_NewTypedData(Dart_TypedData_Type type, + intptr_t length); + +/** + * Returns a TypedData object which references an external data array. + * + * \param type The type of the data array. + * \param data A data array. This array must not move. + * \param length The length of the data array (length in type units). + * + * \return The TypedData object if no error occurs. Otherwise returns + * an error handle. + */ +DART_EXPORT Dart_Handle Dart_NewExternalTypedData(Dart_TypedData_Type type, + void* data, + intptr_t length); + +/** + * Returns a TypedData object which references an external data array. + * + * \param type The type of the data array. + * \param data A data array. This array must not move. + * \param length The length of the data array (length in type units). + * \param peer A pointer to a native object or NULL. This value is + * provided to callback when it is invoked. + * \param external_allocation_size The number of externally allocated + * bytes for peer. Used to inform the garbage collector. + * \param callback A function pointer that will be invoked sometime + * after the object is garbage collected, unless the handle has been deleted. + * A valid callback needs to be specified it cannot be NULL. + * + * \return The TypedData object if no error occurs. Otherwise returns + * an error handle. + */ +DART_EXPORT Dart_Handle +Dart_NewExternalTypedDataWithFinalizer(Dart_TypedData_Type type, + void* data, + intptr_t length, + void* peer, + intptr_t external_allocation_size, + Dart_HandleFinalizer callback); + +/** + * Returns a ByteBuffer object for the typed data. + * + * \param typed_data The TypedData object. + * + * \return The ByteBuffer object if no error occurs. Otherwise returns + * an error handle. + */ +DART_EXPORT Dart_Handle Dart_NewByteBuffer(Dart_Handle typed_data); + +/** + * Acquires access to the internal data address of a TypedData object. + * + * \param object The typed data object whose internal data address is to + * be accessed. + * \param type The type of the object is returned here. + * \param data The internal data address is returned here. + * \param len Size of the typed array is returned here. + * + * Notes: + * When the internal address of the object is acquired any calls to a + * Dart API function that could potentially allocate an object or run + * any Dart code will return an error. + * + * Any Dart API functions for accessing the data should not be called + * before the corresponding release. In particular, the object should + * not be acquired again before its release. This leads to undefined + * behavior. + * + * \return Success if the internal data address is acquired successfully. + * Otherwise, returns an error handle. + */ +DART_EXPORT Dart_Handle Dart_TypedDataAcquireData(Dart_Handle object, + Dart_TypedData_Type* type, + void** data, + intptr_t* len); + +/** + * Releases access to the internal data address that was acquired earlier using + * Dart_TypedDataAcquireData. + * + * \param object The typed data object whose internal data address is to be + * released. + * + * \return Success if the internal data address is released successfully. + * Otherwise, returns an error handle. + */ +DART_EXPORT Dart_Handle Dart_TypedDataReleaseData(Dart_Handle object); + +/** + * Returns the TypedData object associated with the ByteBuffer object. + * + * \param byte_buffer The ByteBuffer object. + * + * \return The TypedData object if no error occurs. Otherwise returns + * an error handle. + */ +DART_EXPORT Dart_Handle Dart_GetDataFromByteBuffer(Dart_Handle byte_buffer); + +/* + * ============================================================ + * Invoking Constructors, Methods, Closures and Field accessors + * ============================================================ + */ + +/** + * Invokes a constructor, creating a new object. + * + * This function allows hidden constructors (constructors with leading + * underscores) to be called. + * + * \param type Type of object to be constructed. + * \param constructor_name The name of the constructor to invoke. Use + * Dart_Null() or Dart_EmptyString() to invoke the unnamed constructor. + * This name should not include the name of the class. + * \param number_of_arguments Size of the arguments array. + * \param arguments An array of arguments to the constructor. + * + * \return If the constructor is called and completes successfully, + * then the new object. If an error occurs during execution, then an + * error handle is returned. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle +Dart_New(Dart_Handle type, + Dart_Handle constructor_name, + int number_of_arguments, + Dart_Handle* arguments); + +/** + * Allocate a new object without invoking a constructor. + * + * \param type The type of an object to be allocated. + * + * \return The new object. If an error occurs during execution, then an + * error handle is returned. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_Allocate(Dart_Handle type); + +/** + * Allocate a new object without invoking a constructor, and sets specified + * native fields. + * + * \param type The type of an object to be allocated. + * \param num_native_fields The number of native fields to set. + * \param native_fields An array containing the value of native fields. + * + * \return The new object. If an error occurs during execution, then an + * error handle is returned. + */ +DART_EXPORT Dart_Handle +Dart_AllocateWithNativeFields(Dart_Handle type, + intptr_t num_native_fields, + const intptr_t* native_fields); + +/** + * Invokes a method or function. + * + * The 'target' parameter may be an object, type, or library. If + * 'target' is an object, then this function will invoke an instance + * method. If 'target' is a type, then this function will invoke a + * static method. If 'target' is a library, then this function will + * invoke a top-level function from that library. + * NOTE: This API call cannot be used to invoke methods of a type object. + * + * This function ignores visibility (leading underscores in names). + * + * May generate an unhandled exception error. + * + * \param target An object, type, or library. + * \param name The name of the function or method to invoke. + * \param number_of_arguments Size of the arguments array. + * \param arguments An array of arguments to the function. + * + * \return If the function or method is called and completes + * successfully, then the return value is returned. If an error + * occurs during execution, then an error handle is returned. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle +Dart_Invoke(Dart_Handle target, + Dart_Handle name, + int number_of_arguments, + Dart_Handle* arguments); +/* TODO(turnidge): Document how to invoke operators. */ + +/** + * Invokes a Closure with the given arguments. + * + * May generate an unhandled exception error. + * + * \return If no error occurs during execution, then the result of + * invoking the closure is returned. If an error occurs during + * execution, then an error handle is returned. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle +Dart_InvokeClosure(Dart_Handle closure, + int number_of_arguments, + Dart_Handle* arguments); + +/** + * Invokes a Generative Constructor on an object that was previously + * allocated using Dart_Allocate/Dart_AllocateWithNativeFields. + * + * The 'object' parameter must be an object. + * + * This function ignores visibility (leading underscores in names). + * + * May generate an unhandled exception error. + * + * \param object An object. + * \param name The name of the constructor to invoke. + * Use Dart_Null() or Dart_EmptyString() to invoke the unnamed constructor. + * \param number_of_arguments Size of the arguments array. + * \param arguments An array of arguments to the function. + * + * \return If the constructor is called and completes + * successfully, then the object is returned. If an error + * occurs during execution, then an error handle is returned. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle +Dart_InvokeConstructor(Dart_Handle object, + Dart_Handle name, + int number_of_arguments, + Dart_Handle* arguments); + +/** + * Gets the value of a field. + * + * The 'container' parameter may be an object, type, or library. If + * 'container' is an object, then this function will access an + * instance field. If 'container' is a type, then this function will + * access a static field. If 'container' is a library, then this + * function will access a top-level variable. + * NOTE: This API call cannot be used to access fields of a type object. + * + * This function ignores field visibility (leading underscores in names). + * + * May generate an unhandled exception error. + * + * \param container An object, type, or library. + * \param name A field name. + * + * \return If no error occurs, then the value of the field is + * returned. Otherwise an error handle is returned. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle +Dart_GetField(Dart_Handle container, Dart_Handle name); + +/** + * Sets the value of a field. + * + * The 'container' parameter may actually be an object, type, or + * library. If 'container' is an object, then this function will + * access an instance field. If 'container' is a type, then this + * function will access a static field. If 'container' is a library, + * then this function will access a top-level variable. + * NOTE: This API call cannot be used to access fields of a type object. + * + * This function ignores field visibility (leading underscores in names). + * + * May generate an unhandled exception error. + * + * \param container An object, type, or library. + * \param name A field name. + * \param value The new field value. + * + * \return A valid handle if no error occurs. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle +Dart_SetField(Dart_Handle container, Dart_Handle name, Dart_Handle value); + +/* + * ========== + * Exceptions + * ========== + */ + +/* + * TODO(turnidge): Remove these functions from the api and replace all + * uses with Dart_NewUnhandledExceptionError. */ + +/** + * Throws an exception. + * + * This function causes a Dart language exception to be thrown. This + * will proceed in the standard way, walking up Dart frames until an + * appropriate 'catch' block is found, executing 'finally' blocks, + * etc. + * + * If an error handle is passed into this function, the error is + * propagated immediately. See Dart_PropagateError for a discussion + * of error propagation. + * + * If successful, this function does not return. Note that this means + * that the destructors of any stack-allocated C++ objects will not be + * called. If there are no Dart frames on the stack, an error occurs. + * + * \return An error handle if the exception was not thrown. + * Otherwise the function does not return. + */ +DART_EXPORT Dart_Handle Dart_ThrowException(Dart_Handle exception); + +/** + * Rethrows an exception. + * + * Rethrows an exception, unwinding all dart frames on the stack. If + * successful, this function does not return. Note that this means + * that the destructors of any stack-allocated C++ objects will not be + * called. If there are no Dart frames on the stack, an error occurs. + * + * \return An error handle if the exception was not thrown. + * Otherwise the function does not return. + */ +DART_EXPORT Dart_Handle Dart_ReThrowException(Dart_Handle exception, + Dart_Handle stacktrace); + +/* + * =========================== + * Native fields and functions + * =========================== + */ + +/** + * Gets the number of native instance fields in an object. + */ +DART_EXPORT Dart_Handle Dart_GetNativeInstanceFieldCount(Dart_Handle obj, + int* count); + +/** + * Gets the value of a native field. + * + * TODO(turnidge): Document. + */ +DART_EXPORT Dart_Handle Dart_GetNativeInstanceField(Dart_Handle obj, + int index, + intptr_t* value); + +/** + * Sets the value of a native field. + * + * TODO(turnidge): Document. + */ +DART_EXPORT Dart_Handle Dart_SetNativeInstanceField(Dart_Handle obj, + int index, + intptr_t value); + +/** + * The arguments to a native function. + * + * This object is passed to a native function to represent its + * arguments and return value. It allows access to the arguments to a + * native function by index. It also allows the return value of a + * native function to be set. + */ +typedef struct _Dart_NativeArguments* Dart_NativeArguments; + +/** + * Extracts current isolate group data from the native arguments structure. + */ +DART_EXPORT void* Dart_GetNativeIsolateGroupData(Dart_NativeArguments args); + +typedef enum { + Dart_NativeArgument_kBool = 0, + Dart_NativeArgument_kInt32, + Dart_NativeArgument_kUint32, + Dart_NativeArgument_kInt64, + Dart_NativeArgument_kUint64, + Dart_NativeArgument_kDouble, + Dart_NativeArgument_kString, + Dart_NativeArgument_kInstance, + Dart_NativeArgument_kNativeFields, +} Dart_NativeArgument_Type; + +typedef struct _Dart_NativeArgument_Descriptor { + uint8_t type; + uint8_t index; +} Dart_NativeArgument_Descriptor; + +typedef union _Dart_NativeArgument_Value { + bool as_bool; + int32_t as_int32; + uint32_t as_uint32; + int64_t as_int64; + uint64_t as_uint64; + double as_double; + struct { + Dart_Handle dart_str; + void* peer; + } as_string; + struct { + intptr_t num_fields; + intptr_t* values; + } as_native_fields; + Dart_Handle as_instance; +} Dart_NativeArgument_Value; + +enum { + kNativeArgNumberPos = 0, + kNativeArgNumberSize = 8, + kNativeArgTypePos = kNativeArgNumberPos + kNativeArgNumberSize, + kNativeArgTypeSize = 8, +}; + +#define BITMASK(size) ((1 << size) - 1) +#define DART_NATIVE_ARG_DESCRIPTOR(type, position) \ + (((type & BITMASK(kNativeArgTypeSize)) << kNativeArgTypePos) | \ + (position & BITMASK(kNativeArgNumberSize))) + +/** + * Gets the native arguments based on the types passed in and populates + * the passed arguments buffer with appropriate native values. + * + * \param args the Native arguments block passed into the native call. + * \param num_arguments length of argument descriptor array and argument + * values array passed in. + * \param arg_descriptors an array that describes the arguments that + * need to be retrieved. For each argument to be retrieved the descriptor + * contains the argument number (0, 1 etc.) and the argument type + * described using Dart_NativeArgument_Type, e.g: + * DART_NATIVE_ARG_DESCRIPTOR(Dart_NativeArgument_kBool, 1) indicates + * that the first argument is to be retrieved and it should be a boolean. + * \param arg_values array into which the native arguments need to be + * extracted into, the array is allocated by the caller (it could be + * stack allocated to avoid the malloc/free performance overhead). + * + * \return Success if all the arguments could be extracted correctly, + * returns an error handle if there were any errors while extracting the + * arguments (mismatched number of arguments, incorrect types, etc.). + */ +DART_EXPORT Dart_Handle +Dart_GetNativeArguments(Dart_NativeArguments args, + int num_arguments, + const Dart_NativeArgument_Descriptor* arg_descriptors, + Dart_NativeArgument_Value* arg_values); + +/** + * Gets the native argument at some index. + */ +DART_EXPORT Dart_Handle Dart_GetNativeArgument(Dart_NativeArguments args, + int index); +/* TODO(turnidge): Specify the behavior of an out-of-bounds access. */ + +/** + * Gets the number of native arguments. + */ +DART_EXPORT int Dart_GetNativeArgumentCount(Dart_NativeArguments args); + +/** + * Gets all the native fields of the native argument at some index. + * \param args Native arguments structure. + * \param arg_index Index of the desired argument in the structure above. + * \param num_fields size of the intptr_t array 'field_values' passed in. + * \param field_values intptr_t array in which native field values are returned. + * \return Success if the native fields where copied in successfully. Otherwise + * returns an error handle. On success the native field values are copied + * into the 'field_values' array, if the argument at 'arg_index' is a + * null object then 0 is copied as the native field values into the + * 'field_values' array. + */ +DART_EXPORT Dart_Handle +Dart_GetNativeFieldsOfArgument(Dart_NativeArguments args, + int arg_index, + int num_fields, + intptr_t* field_values); + +/** + * Gets the native field of the receiver. + */ +DART_EXPORT Dart_Handle Dart_GetNativeReceiver(Dart_NativeArguments args, + intptr_t* value); + +/** + * Gets a string native argument at some index. + * \param args Native arguments structure. + * \param arg_index Index of the desired argument in the structure above. + * \param peer Returns the peer pointer if the string argument has one. + * \return Success if the string argument has a peer, if it does not + * have a peer then the String object is returned. Otherwise returns + * an error handle (argument is not a String object). + */ +DART_EXPORT Dart_Handle Dart_GetNativeStringArgument(Dart_NativeArguments args, + int arg_index, + void** peer); + +/** + * Gets an integer native argument at some index. + * \param args Native arguments structure. + * \param index Index of the desired argument in the structure above. + * \param value Returns the integer value if the argument is an Integer. + * \return Success if no error occurs. Otherwise returns an error handle. + */ +DART_EXPORT Dart_Handle Dart_GetNativeIntegerArgument(Dart_NativeArguments args, + int index, + int64_t* value); + +/** + * Gets a boolean native argument at some index. + * \param args Native arguments structure. + * \param index Index of the desired argument in the structure above. + * \param value Returns the boolean value if the argument is a Boolean. + * \return Success if no error occurs. Otherwise returns an error handle. + */ +DART_EXPORT Dart_Handle Dart_GetNativeBooleanArgument(Dart_NativeArguments args, + int index, + bool* value); + +/** + * Gets a double native argument at some index. + * \param args Native arguments structure. + * \param index Index of the desired argument in the structure above. + * \param value Returns the double value if the argument is a double. + * \return Success if no error occurs. Otherwise returns an error handle. + */ +DART_EXPORT Dart_Handle Dart_GetNativeDoubleArgument(Dart_NativeArguments args, + int index, + double* value); + +/** + * Sets the return value for a native function. + * + * If retval is an Error handle, then error will be propagated once + * the native functions exits. See Dart_PropagateError for a + * discussion of how different types of errors are propagated. + */ +DART_EXPORT void Dart_SetReturnValue(Dart_NativeArguments args, + Dart_Handle retval); + +DART_EXPORT void Dart_SetWeakHandleReturnValue(Dart_NativeArguments args, + Dart_WeakPersistentHandle rval); + +DART_EXPORT void Dart_SetBooleanReturnValue(Dart_NativeArguments args, + bool retval); + +DART_EXPORT void Dart_SetIntegerReturnValue(Dart_NativeArguments args, + int64_t retval); + +DART_EXPORT void Dart_SetDoubleReturnValue(Dart_NativeArguments args, + double retval); + +/** + * A native function. + */ +typedef void (*Dart_NativeFunction)(Dart_NativeArguments arguments); + +/** + * Native entry resolution callback. + * + * For libraries and scripts which have native functions, the embedder + * can provide a native entry resolver. This callback is used to map a + * name/arity to a Dart_NativeFunction. If no function is found, the + * callback should return NULL. + * + * The parameters to the native resolver function are: + * \param name a Dart string which is the name of the native function. + * \param num_of_arguments is the number of arguments expected by the + * native function. + * \param auto_setup_scope is a boolean flag that can be set by the resolver + * to indicate if this function needs a Dart API scope (see Dart_EnterScope/ + * Dart_ExitScope) to be setup automatically by the VM before calling into + * the native function. By default most native functions would require this + * to be true but some light weight native functions which do not call back + * into the VM through the Dart API may not require a Dart scope to be + * setup automatically. + * + * \return A valid Dart_NativeFunction which resolves to a native entry point + * for the native function. + * + * See Dart_SetNativeResolver. + */ +typedef Dart_NativeFunction (*Dart_NativeEntryResolver)(Dart_Handle name, + int num_of_arguments, + bool* auto_setup_scope); +/* TODO(turnidge): Consider renaming to NativeFunctionResolver or + * NativeResolver. */ + +/** + * Native entry symbol lookup callback. + * + * For libraries and scripts which have native functions, the embedder + * can provide a callback for mapping a native entry to a symbol. This callback + * maps a native function entry PC to the native function name. If no native + * entry symbol can be found, the callback should return NULL. + * + * The parameters to the native reverse resolver function are: + * \param nf A Dart_NativeFunction. + * + * \return A const UTF-8 string containing the symbol name or NULL. + * + * See Dart_SetNativeResolver. + */ +typedef const uint8_t* (*Dart_NativeEntrySymbol)(Dart_NativeFunction nf); + +/** + * FFI Native C function pointer resolver callback. + * + * See Dart_SetFfiNativeResolver. + */ +typedef void* (*Dart_FfiNativeResolver)(const char* name, uintptr_t args_n); + +/* + * =========== + * Environment + * =========== + */ + +/** + * An environment lookup callback function. + * + * \param name The name of the value to lookup in the environment. + * + * \return A valid handle to a string if the name exists in the + * current environment or Dart_Null() if not. + */ +typedef Dart_Handle (*Dart_EnvironmentCallback)(Dart_Handle name); + +/** + * Sets the environment callback for the current isolate. This + * callback is used to lookup environment values by name in the + * current environment. This enables the embedder to supply values for + * the const constructors bool.fromEnvironment, int.fromEnvironment + * and String.fromEnvironment. + */ +DART_EXPORT Dart_Handle +Dart_SetEnvironmentCallback(Dart_EnvironmentCallback callback); + +/** + * Sets the callback used to resolve native functions for a library. + * + * \param library A library. + * \param resolver A native entry resolver. + * + * \return A valid handle if the native resolver was set successfully. + */ +DART_EXPORT Dart_Handle +Dart_SetNativeResolver(Dart_Handle library, + Dart_NativeEntryResolver resolver, + Dart_NativeEntrySymbol symbol); +/* TODO(turnidge): Rename to Dart_LibrarySetNativeResolver? */ + +/** + * Returns the callback used to resolve native functions for a library. + * + * \param library A library. + * \param resolver a pointer to a Dart_NativeEntryResolver + * + * \return A valid handle if the library was found. + */ +DART_EXPORT Dart_Handle +Dart_GetNativeResolver(Dart_Handle library, Dart_NativeEntryResolver* resolver); + +/** + * Returns the callback used to resolve native function symbols for a library. + * + * \param library A library. + * \param resolver a pointer to a Dart_NativeEntrySymbol. + * + * \return A valid handle if the library was found. + */ +DART_EXPORT Dart_Handle Dart_GetNativeSymbol(Dart_Handle library, + Dart_NativeEntrySymbol* resolver); + +/** + * Sets the callback used to resolve FFI native functions for a library. + * The resolved functions are expected to be a C function pointer of the + * correct signature (as specified in the `@FfiNative()` function + * annotation in Dart code). + * + * NOTE: This is an experimental feature and might change in the future. + * + * \param library A library. + * \param resolver A native function resolver. + * + * \return A valid handle if the native resolver was set successfully. + */ +DART_EXPORT Dart_Handle +Dart_SetFfiNativeResolver(Dart_Handle library, Dart_FfiNativeResolver resolver); + +/* + * ===================== + * Scripts and Libraries + * ===================== + */ + +typedef enum { + Dart_kCanonicalizeUrl = 0, + Dart_kImportTag, + Dart_kKernelTag, +} Dart_LibraryTag; + +/** + * The library tag handler is a multi-purpose callback provided by the + * embedder to the Dart VM. The embedder implements the tag handler to + * provide the ability to load Dart scripts and imports. + * + * -- TAGS -- + * + * Dart_kCanonicalizeUrl + * + * This tag indicates that the embedder should canonicalize 'url' with + * respect to 'library'. For most embedders, the + * Dart_DefaultCanonicalizeUrl function is a sufficient implementation + * of this tag. The return value should be a string holding the + * canonicalized url. + * + * Dart_kImportTag + * + * This tag is used to load a library from IsolateMirror.loadUri. The embedder + * should call Dart_LoadLibraryFromKernel to provide the library to the VM. The + * return value should be an error or library (the result from + * Dart_LoadLibraryFromKernel). + * + * Dart_kKernelTag + * + * This tag is used to load the intermediate file (kernel) generated by + * the Dart front end. This tag is typically used when a 'hot-reload' + * of an application is needed and the VM is 'use dart front end' mode. + * The dart front end typically compiles all the scripts, imports and part + * files into one intermediate file hence we don't use the source/import or + * script tags. The return value should be an error or a TypedData containing + * the kernel bytes. + * + */ +typedef Dart_Handle (*Dart_LibraryTagHandler)( + Dart_LibraryTag tag, + Dart_Handle library_or_package_map_url, + Dart_Handle url); + +/** + * Sets library tag handler for the current isolate. This handler is + * used to handle the various tags encountered while loading libraries + * or scripts in the isolate. + * + * \param handler Handler code to be used for handling the various tags + * encountered while loading libraries or scripts in the isolate. + * + * \return If no error occurs, the handler is set for the isolate. + * Otherwise an error handle is returned. + * + * TODO(turnidge): Document. + */ +DART_EXPORT Dart_Handle +Dart_SetLibraryTagHandler(Dart_LibraryTagHandler handler); + +/** + * Handles deferred loading requests. When this handler is invoked, it should + * eventually load the deferred loading unit with the given id and call + * Dart_DeferredLoadComplete or Dart_DeferredLoadCompleteError. It is + * recommended that the loading occur asynchronously, but it is permitted to + * call Dart_DeferredLoadComplete or Dart_DeferredLoadCompleteError before the + * handler returns. + * + * If an error is returned, it will be propagated through + * `prefix.loadLibrary()`. This is useful for synchronous + * implementations, which must propagate any unwind errors from + * Dart_DeferredLoadComplete or Dart_DeferredLoadComplete. Otherwise the handler + * should return a non-error such as `Dart_Null()`. + */ +typedef Dart_Handle (*Dart_DeferredLoadHandler)(intptr_t loading_unit_id); + +/** + * Sets the deferred load handler for the current isolate. This handler is + * used to handle loading deferred imports in an AppJIT or AppAOT program. + */ +DART_EXPORT Dart_Handle +Dart_SetDeferredLoadHandler(Dart_DeferredLoadHandler handler); + +/** + * Notifies the VM that a deferred load completed successfully. This function + * will eventually cause the corresponding `prefix.loadLibrary()` futures to + * complete. + * + * Requires the current isolate to be the same current isolate during the + * invocation of the Dart_DeferredLoadHandler. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle +Dart_DeferredLoadComplete(intptr_t loading_unit_id, + const uint8_t* snapshot_data, + const uint8_t* snapshot_instructions); + +/** + * Notifies the VM that a deferred load failed. This function + * will eventually cause the corresponding `prefix.loadLibrary()` futures to + * complete with an error. + * + * If `transient` is true, future invocations of `prefix.loadLibrary()` will + * trigger new load requests. If false, futures invocation will complete with + * the same error. + * + * Requires the current isolate to be the same current isolate during the + * invocation of the Dart_DeferredLoadHandler. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle +Dart_DeferredLoadCompleteError(intptr_t loading_unit_id, + const char* error_message, + bool transient); + +/** + * Canonicalizes a url with respect to some library. + * + * The url is resolved with respect to the library's url and some url + * normalizations are performed. + * + * This canonicalization function should be sufficient for most + * embedders to implement the Dart_kCanonicalizeUrl tag. + * + * \param base_url The base url relative to which the url is + * being resolved. + * \param url The url being resolved and canonicalized. This + * parameter is a string handle. + * + * \return If no error occurs, a String object is returned. Otherwise + * an error handle is returned. + */ +DART_EXPORT Dart_Handle Dart_DefaultCanonicalizeUrl(Dart_Handle base_url, + Dart_Handle url); + +/** + * Loads the root library for the current isolate. + * + * Requires there to be no current root library. + * + * \param kernel_buffer A buffer which contains a kernel binary (see + * pkg/kernel/binary.md). Must remain valid until isolate group shutdown. + * \param kernel_size Length of the passed in buffer. + * + * \return A handle to the root library, or an error. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle +Dart_LoadScriptFromKernel(const uint8_t* kernel_buffer, intptr_t kernel_size); + +/** + * Gets the library for the root script for the current isolate. + * + * If the root script has not yet been set for the current isolate, + * this function returns Dart_Null(). This function never returns an + * error handle. + * + * \return Returns the root Library for the current isolate or Dart_Null(). + */ +DART_EXPORT Dart_Handle Dart_RootLibrary(void); + +/** + * Sets the root library for the current isolate. + * + * \return Returns an error handle if `library` is not a library handle. + */ +DART_EXPORT Dart_Handle Dart_SetRootLibrary(Dart_Handle library); + +/** + * Lookup or instantiate a legacy type by name and type arguments from a + * Library. + * + * \param library The library containing the class or interface. + * \param class_name The class name for the type. + * \param number_of_type_arguments Number of type arguments. + * For non parametric types the number of type arguments would be 0. + * \param type_arguments Pointer to an array of type arguments. + * For non parameteric types a NULL would be passed in for this argument. + * + * \return If no error occurs, the type is returned. + * Otherwise an error handle is returned. + */ +DART_EXPORT Dart_Handle Dart_GetType(Dart_Handle library, + Dart_Handle class_name, + intptr_t number_of_type_arguments, + Dart_Handle* type_arguments); + +/** + * Lookup or instantiate a nullable type by name and type arguments from + * Library. + * + * \param library The library containing the class or interface. + * \param class_name The class name for the type. + * \param number_of_type_arguments Number of type arguments. + * For non parametric types the number of type arguments would be 0. + * \param type_arguments Pointer to an array of type arguments. + * For non parameteric types a NULL would be passed in for this argument. + * + * \return If no error occurs, the type is returned. + * Otherwise an error handle is returned. + */ +DART_EXPORT Dart_Handle Dart_GetNullableType(Dart_Handle library, + Dart_Handle class_name, + intptr_t number_of_type_arguments, + Dart_Handle* type_arguments); + +/** + * Lookup or instantiate a non-nullable type by name and type arguments from + * Library. + * + * \param library The library containing the class or interface. + * \param class_name The class name for the type. + * \param number_of_type_arguments Number of type arguments. + * For non parametric types the number of type arguments would be 0. + * \param type_arguments Pointer to an array of type arguments. + * For non parameteric types a NULL would be passed in for this argument. + * + * \return If no error occurs, the type is returned. + * Otherwise an error handle is returned. + */ +DART_EXPORT Dart_Handle +Dart_GetNonNullableType(Dart_Handle library, + Dart_Handle class_name, + intptr_t number_of_type_arguments, + Dart_Handle* type_arguments); + +/** + * Creates a nullable version of the provided type. + * + * \param type The type to be converted to a nullable type. + * + * \return If no error occurs, a nullable type is returned. + * Otherwise an error handle is returned. + */ +DART_EXPORT Dart_Handle Dart_TypeToNullableType(Dart_Handle type); + +/** + * Creates a non-nullable version of the provided type. + * + * \param type The type to be converted to a non-nullable type. + * + * \return If no error occurs, a non-nullable type is returned. + * Otherwise an error handle is returned. + */ +DART_EXPORT Dart_Handle Dart_TypeToNonNullableType(Dart_Handle type); + +/** + * A type's nullability. + * + * \param type A Dart type. + * \param result An out parameter containing the result of the check. True if + * the type is of the specified nullability, false otherwise. + * + * \return Returns an error handle if type is not of type Type. + */ +DART_EXPORT Dart_Handle Dart_IsNullableType(Dart_Handle type, bool* result); +DART_EXPORT Dart_Handle Dart_IsNonNullableType(Dart_Handle type, bool* result); +DART_EXPORT Dart_Handle Dart_IsLegacyType(Dart_Handle type, bool* result); + +/** + * Lookup a class or interface by name from a Library. + * + * \param library The library containing the class or interface. + * \param class_name The name of the class or interface. + * + * \return If no error occurs, the class or interface is + * returned. Otherwise an error handle is returned. + */ +DART_EXPORT Dart_Handle Dart_GetClass(Dart_Handle library, + Dart_Handle class_name); +/* TODO(asiva): The above method needs to be removed once all uses + * of it are removed from the embedder code. */ + +/** + * Returns an import path to a Library, such as "file:///test.dart" or + * "dart:core". + */ +DART_EXPORT Dart_Handle Dart_LibraryUrl(Dart_Handle library); + +/** + * Returns a URL from which a Library was loaded. + */ +DART_EXPORT Dart_Handle Dart_LibraryResolvedUrl(Dart_Handle library); + +/** + * \return An array of libraries. + */ +DART_EXPORT Dart_Handle Dart_GetLoadedLibraries(void); + +DART_EXPORT Dart_Handle Dart_LookupLibrary(Dart_Handle url); +/* TODO(turnidge): Consider returning Dart_Null() when the library is + * not found to distinguish that from a true error case. */ + +/** + * Report an loading error for the library. + * + * \param library The library that failed to load. + * \param error The Dart error instance containing the load error. + * + * \return If the VM handles the error, the return value is + * a null handle. If it doesn't handle the error, the error + * object is returned. + */ +DART_EXPORT Dart_Handle Dart_LibraryHandleError(Dart_Handle library, + Dart_Handle error); + +/** + * Called by the embedder to load a partial program. Does not set the root + * library. + * + * \param kernel_buffer A buffer which contains a kernel binary (see + * pkg/kernel/binary.md). Must remain valid until isolate shutdown. + * \param kernel_buffer_size Length of the passed in buffer. + * + * \return A handle to the main library of the compilation unit, or an error. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle +Dart_LoadLibraryFromKernel(const uint8_t* kernel_buffer, + intptr_t kernel_buffer_size); + +/** + * Indicates that all outstanding load requests have been satisfied. + * This finalizes all the new classes loaded and optionally completes + * deferred library futures. + * + * Requires there to be a current isolate. + * + * \param complete_futures Specify true if all deferred library + * futures should be completed, false otherwise. + * + * \return Success if all classes have been finalized and deferred library + * futures are completed. Otherwise, returns an error. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle +Dart_FinalizeLoading(bool complete_futures); + +/* + * ===== + * Peers + * ===== + */ + +/** + * The peer field is a lazily allocated field intended for storage of + * an uncommonly used values. Most instances types can have a peer + * field allocated. The exceptions are subtypes of Null, num, and + * bool. + */ + +/** + * Returns the value of peer field of 'object' in 'peer'. + * + * \param object An object. + * \param peer An out parameter that returns the value of the peer + * field. + * + * \return Returns an error if 'object' is a subtype of Null, num, or + * bool. + */ +DART_EXPORT Dart_Handle Dart_GetPeer(Dart_Handle object, void** peer); + +/** + * Sets the value of the peer field of 'object' to the value of + * 'peer'. + * + * \param object An object. + * \param peer A value to store in the peer field. + * + * \return Returns an error if 'object' is a subtype of Null, num, or + * bool. + */ +DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); + +/* + * ====== + * Kernel + * ====== + */ + +/** + * Experimental support for Dart to Kernel parser isolate. + * + * TODO(hausner): Document finalized interface. + * + */ + +// TODO(33433): Remove kernel service from the embedding API. + +typedef enum { + Dart_KernelCompilationStatus_Unknown = -1, + Dart_KernelCompilationStatus_Ok = 0, + Dart_KernelCompilationStatus_Error = 1, + Dart_KernelCompilationStatus_Crash = 2, + Dart_KernelCompilationStatus_MsgFailed = 3, +} Dart_KernelCompilationStatus; + +typedef struct { + Dart_KernelCompilationStatus status; + bool null_safety; + char* error; + uint8_t* kernel; + intptr_t kernel_size; +} Dart_KernelCompilationResult; + +typedef enum { + Dart_KernelCompilationVerbosityLevel_Error = 0, + Dart_KernelCompilationVerbosityLevel_Warning, + Dart_KernelCompilationVerbosityLevel_Info, + Dart_KernelCompilationVerbosityLevel_All, +} Dart_KernelCompilationVerbosityLevel; + +DART_EXPORT bool Dart_IsKernelIsolate(Dart_Isolate isolate); +DART_EXPORT bool Dart_KernelIsolateIsRunning(void); +DART_EXPORT Dart_Port Dart_KernelPort(void); + +/** + * Compiles the given `script_uri` to a kernel file. + * + * \param platform_kernel A buffer containing the kernel of the platform (e.g. + * `vm_platform_strong.dill`). The VM does not take ownership of this memory. + * + * \param platform_kernel_size The length of the platform_kernel buffer. + * + * \param snapshot_compile Set to `true` when the compilation is for a snapshot. + * This is used by the frontend to determine if compilation related information + * should be printed to console (e.g., null safety mode). + * + * \param verbosity Specifies the logging behavior of the kernel compilation + * service. + * + * \return Returns the result of the compilation. + * + * On a successful compilation the returned [Dart_KernelCompilationResult] has + * a status of [Dart_KernelCompilationStatus_Ok] and the `kernel`/`kernel_size` + * fields are set. The caller takes ownership of the malloc()ed buffer. + * + * On a failed compilation the `error` might be set describing the reason for + * the failed compilation. The caller takes ownership of the malloc()ed + * error. + * + * Requires there to be a current isolate. + */ +DART_EXPORT Dart_KernelCompilationResult +Dart_CompileToKernel(const char* script_uri, + const uint8_t* platform_kernel, + const intptr_t platform_kernel_size, + bool incremental_compile, + bool snapshot_compile, + const char* package_config, + Dart_KernelCompilationVerbosityLevel verbosity); + +/** + * Compiles the given `script_uri` to a kernel file. + * + * \param platform_kernel A buffer containing the kernel of the platform (e.g. + * `vm_platform_strong.dill`). The VM does not take ownership of this memory. + * + * \param platform_kernel_size The length of the platform_kernel buffer. + * + * \param snapshot_compile Set to `true` when the compilation is for a snapshot. + * This is used by the frontend to determine if compilation related information + * should be printed to console (e.g., null safety mode). + * + * \param null_safety Provides null-safety mode setting for the compiler. + * + * \param verbosity Specifies the logging behavior of the kernel compilation + * service. + * + * \return Returns the result of the compilation. + * + * On a successful compilation the returned [Dart_KernelCompilationResult] has + * a status of [Dart_KernelCompilationStatus_Ok] and the `kernel`/`kernel_size` + * fields are set. The caller takes ownership of the malloc()ed buffer. + * + * On a failed compilation the `error` might be set describing the reason for + * the failed compilation. The caller takes ownership of the malloc()ed + * error. + */ +DART_EXPORT Dart_KernelCompilationResult +Dart_CompileToKernelWithGivenNullsafety( + const char* script_uri, + const uint8_t* platform_kernel, + const intptr_t platform_kernel_size, + bool snapshot_compile, + const char* package_config, + const bool null_safety, + Dart_KernelCompilationVerbosityLevel verbosity); + +typedef struct { + const char* uri; + const char* source; +} Dart_SourceFile; + +DART_EXPORT Dart_KernelCompilationResult Dart_KernelListDependencies(void); + +/** + * Sets the kernel buffer which will be used to load Dart SDK sources + * dynamically at runtime. + * + * \param platform_kernel A buffer containing kernel which has sources for the + * Dart SDK populated. Note: The VM does not take ownership of this memory. + * + * \param platform_kernel_size The length of the platform_kernel buffer. + */ +DART_EXPORT void Dart_SetDartLibrarySourcesKernel( + const uint8_t* platform_kernel, + const intptr_t platform_kernel_size); + +/** + * Detect the null safety opt-in status. + * + * When running from source, it is based on the opt-in status of `script_uri`. + * When running from a kernel buffer, it is based on the mode used when + * generating `kernel_buffer`. + * When running from an appJIT or AOT snapshot, it is based on the mode used + * when generating `snapshot_data`. + * + * \param script_uri Uri of the script that contains the source code + * + * \param package_config Uri of the package configuration file (either in format + * of .packages or .dart_tool/package_config.json) for the null safety + * detection to resolve package imports against. If this parameter is not + * passed the package resolution of the parent isolate should be used. + * + * \param original_working_directory current working directory when the VM + * process was launched, this is used to correctly resolve the path specified + * for package_config. + * + * \param snapshot_data Buffer containing the snapshot data of the + * isolate or NULL if no snapshot is provided. If provided, the buffers must + * remain valid until the isolate shuts down. + * + * \param snapshot_instructions Buffer containing the snapshot instructions of + * the isolate or NULL if no snapshot is provided. If provided, the buffers + * must remain valid until the isolate shuts down. + * + * \param kernel_buffer A buffer which contains a kernel/DIL program. Must + * remain valid until isolate shutdown. + * + * \param kernel_buffer_size The size of `kernel_buffer`. + * + * \return Returns true if the null safety is opted in by the input being + * run `script_uri`, `snapshot_data` or `kernel_buffer`. + * + */ +DART_EXPORT bool Dart_DetectNullSafety(const char* script_uri, + const char* package_config, + const char* original_working_directory, + const uint8_t* snapshot_data, + const uint8_t* snapshot_instructions, + const uint8_t* kernel_buffer, + intptr_t kernel_buffer_size); + +#define DART_KERNEL_ISOLATE_NAME "kernel-service" + +/* + * ======= + * Service + * ======= + */ + +#define DART_VM_SERVICE_ISOLATE_NAME "vm-service" + +/** + * Returns true if isolate is the service isolate. + * + * \param isolate An isolate + * + * \return Returns true if 'isolate' is the service isolate. + */ +DART_EXPORT bool Dart_IsServiceIsolate(Dart_Isolate isolate); + +/** + * Writes the CPU profile to the timeline as a series of 'instant' events. + * + * Note that this is an expensive operation. + * + * \param main_port The main port of the Isolate whose profile samples to write. + * \param error An optional error, must be free()ed by caller. + * + * \return Returns true if the profile is successfully written and false + * otherwise. + */ +DART_EXPORT bool Dart_WriteProfileToTimeline(Dart_Port main_port, char** error); + +/* + * ============== + * Precompilation + * ============== + */ + +/** + * Compiles all functions reachable from entry points and marks + * the isolate to disallow future compilation. + * + * Entry points should be specified using `@pragma("vm:entry-point")` + * annotation. + * + * \return An error handle if a compilation error or runtime error running const + * constructors was encountered. + */ +DART_EXPORT Dart_Handle Dart_Precompile(void); + +typedef void (*Dart_CreateLoadingUnitCallback)( + void* callback_data, + intptr_t loading_unit_id, + void** write_callback_data, + void** write_debug_callback_data); +typedef void (*Dart_StreamingWriteCallback)(void* callback_data, + const uint8_t* buffer, + intptr_t size); +typedef void (*Dart_StreamingCloseCallback)(void* callback_data); + +DART_EXPORT Dart_Handle Dart_LoadingUnitLibraryUris(intptr_t loading_unit_id); + +// On Darwin systems, 'dlsym' adds an '_' to the beginning of the symbol name. +// Use the '...CSymbol' definitions for resolving through 'dlsym'. The actual +// symbol names in the objects are given by the '...AsmSymbol' definitions. +#if defined(__APPLE__) +#define kSnapshotBuildIdCSymbol "kDartSnapshotBuildId" +#define kVmSnapshotDataCSymbol "kDartVmSnapshotData" +#define kVmSnapshotInstructionsCSymbol "kDartVmSnapshotInstructions" +#define kVmSnapshotBssCSymbol "kDartVmSnapshotBss" +#define kIsolateSnapshotDataCSymbol "kDartIsolateSnapshotData" +#define kIsolateSnapshotInstructionsCSymbol "kDartIsolateSnapshotInstructions" +#define kIsolateSnapshotBssCSymbol "kDartIsolateSnapshotBss" +#else +#define kSnapshotBuildIdCSymbol "_kDartSnapshotBuildId" +#define kVmSnapshotDataCSymbol "_kDartVmSnapshotData" +#define kVmSnapshotInstructionsCSymbol "_kDartVmSnapshotInstructions" +#define kVmSnapshotBssCSymbol "_kDartVmSnapshotBss" +#define kIsolateSnapshotDataCSymbol "_kDartIsolateSnapshotData" +#define kIsolateSnapshotInstructionsCSymbol "_kDartIsolateSnapshotInstructions" +#define kIsolateSnapshotBssCSymbol "_kDartIsolateSnapshotBss" +#endif + +#define kSnapshotBuildIdAsmSymbol "_kDartSnapshotBuildId" +#define kVmSnapshotDataAsmSymbol "_kDartVmSnapshotData" +#define kVmSnapshotInstructionsAsmSymbol "_kDartVmSnapshotInstructions" +#define kVmSnapshotBssAsmSymbol "_kDartVmSnapshotBss" +#define kIsolateSnapshotDataAsmSymbol "_kDartIsolateSnapshotData" +#define kIsolateSnapshotInstructionsAsmSymbol \ + "_kDartIsolateSnapshotInstructions" +#define kIsolateSnapshotBssAsmSymbol "_kDartIsolateSnapshotBss" + +/** + * Creates a precompiled snapshot. + * - A root library must have been loaded. + * - Dart_Precompile must have been called. + * + * Outputs an assembly file defining the symbols listed in the definitions + * above. + * + * The assembly should be compiled as a static or shared library and linked or + * loaded by the embedder. Running this snapshot requires a VM compiled with + * DART_PRECOMPILED_SNAPSHOT. The kDartVmSnapshotData and + * kDartVmSnapshotInstructions should be passed to Dart_Initialize. The + * kDartIsolateSnapshotData and kDartIsolateSnapshotInstructions should be + * passed to Dart_CreateIsolateGroup. + * + * The callback will be invoked one or more times to provide the assembly code. + * + * If stripped is true, then the assembly code will not include DWARF + * debugging sections. + * + * If debug_callback_data is provided, debug_callback_data will be used with + * the callback to provide separate debugging information. + * + * \return A valid handle if no error occurs during the operation. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle +Dart_CreateAppAOTSnapshotAsAssembly(Dart_StreamingWriteCallback callback, + void* callback_data, + bool stripped, + void* debug_callback_data); +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle +Dart_CreateAppAOTSnapshotAsAssemblies( + Dart_CreateLoadingUnitCallback next_callback, + void* next_callback_data, + bool stripped, + Dart_StreamingWriteCallback write_callback, + Dart_StreamingCloseCallback close_callback); + +/** + * Creates a precompiled snapshot. + * - A root library must have been loaded. + * - Dart_Precompile must have been called. + * + * Outputs an ELF shared library defining the symbols + * - _kDartVmSnapshotData + * - _kDartVmSnapshotInstructions + * - _kDartIsolateSnapshotData + * - _kDartIsolateSnapshotInstructions + * + * The shared library should be dynamically loaded by the embedder. + * Running this snapshot requires a VM compiled with DART_PRECOMPILED_SNAPSHOT. + * The kDartVmSnapshotData and kDartVmSnapshotInstructions should be passed to + * Dart_Initialize. The kDartIsolateSnapshotData and + * kDartIsolateSnapshotInstructions should be passed to Dart_CreateIsolate. + * + * The callback will be invoked one or more times to provide the binary output. + * + * If stripped is true, then the binary output will not include DWARF + * debugging sections. + * + * If debug_callback_data is provided, debug_callback_data will be used with + * the callback to provide separate debugging information. + * + * \return A valid handle if no error occurs during the operation. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle +Dart_CreateAppAOTSnapshotAsElf(Dart_StreamingWriteCallback callback, + void* callback_data, + bool stripped, + void* debug_callback_data); +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle +Dart_CreateAppAOTSnapshotAsElfs(Dart_CreateLoadingUnitCallback next_callback, + void* next_callback_data, + bool stripped, + Dart_StreamingWriteCallback write_callback, + Dart_StreamingCloseCallback close_callback); + +/** + * Like Dart_CreateAppAOTSnapshotAsAssembly, but only includes + * kDartVmSnapshotData and kDartVmSnapshotInstructions. It also does + * not strip DWARF information from the generated assembly or allow for + * separate debug information. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle +Dart_CreateVMAOTSnapshotAsAssembly(Dart_StreamingWriteCallback callback, + void* callback_data); + +/** + * Sorts the class-ids in depth first traversal order of the inheritance + * tree. This is a costly operation, but it can make method dispatch + * more efficient and is done before writing snapshots. + * + * \return A valid handle if no error occurs during the operation. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_SortClasses(void); + +/** + * Creates a snapshot that caches compiled code and type feedback for faster + * startup and quicker warmup in a subsequent process. + * + * Outputs a snapshot in two pieces. The pieces should be passed to + * Dart_CreateIsolateGroup in a VM using the same VM snapshot pieces used in the + * current VM. The instructions piece must be loaded with read and execute + * permissions; the data piece may be loaded as read-only. + * + * - Requires the VM to have not been started with --precompilation. + * - Not supported when targeting IA32. + * - The VM writing the snapshot and the VM reading the snapshot must be the + * same version, must be built in the same DEBUG/RELEASE/PRODUCT mode, must + * be targeting the same architecture, and must both be in checked mode or + * both in unchecked mode. + * + * The buffers are scope allocated and are only valid until the next call to + * Dart_ExitScope. + * + * \return A valid handle if no error occurs during the operation. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle +Dart_CreateAppJITSnapshotAsBlobs(uint8_t** isolate_snapshot_data_buffer, + intptr_t* isolate_snapshot_data_size, + uint8_t** isolate_snapshot_instructions_buffer, + intptr_t* isolate_snapshot_instructions_size); + +/** + * Like Dart_CreateAppJITSnapshotAsBlobs, but also creates a new VM snapshot. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle +Dart_CreateCoreJITSnapshotAsBlobs( + uint8_t** vm_snapshot_data_buffer, + intptr_t* vm_snapshot_data_size, + uint8_t** vm_snapshot_instructions_buffer, + intptr_t* vm_snapshot_instructions_size, + uint8_t** isolate_snapshot_data_buffer, + intptr_t* isolate_snapshot_data_size, + uint8_t** isolate_snapshot_instructions_buffer, + intptr_t* isolate_snapshot_instructions_size); + +/** + * Get obfuscation map for precompiled code. + * + * Obfuscation map is encoded as a JSON array of pairs (original name, + * obfuscated name). + * + * \return Returns an error handler if the VM was built in a mode that does not + * support obfuscation. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle +Dart_GetObfuscationMap(uint8_t** buffer, intptr_t* buffer_length); + +/** + * Returns whether the VM only supports running from precompiled snapshots and + * not from any other kind of snapshot or from source (that is, the VM was + * compiled with DART_PRECOMPILED_RUNTIME). + */ +DART_EXPORT bool Dart_IsPrecompiledRuntime(void); + +/** + * Print a native stack trace. Used for crash handling. + * + * If context is NULL, prints the current stack trace. Otherwise, context + * should be a CONTEXT* (Windows) or ucontext_t* (POSIX) from a signal handler + * running on the current thread. + */ +DART_EXPORT void Dart_DumpNativeStackTrace(void* context); + +/** + * Indicate that the process is about to abort, and the Dart VM should not + * attempt to cleanup resources. + */ +DART_EXPORT void Dart_PrepareToAbort(void); + +#endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ diff --git a/shared/dart-sdk/include/dart_api_dl.c b/shared/dart-sdk/include/dart_api_dl.c index 573c5d7..fd8a6a6 100644 --- a/shared/dart-sdk/include/dart_api_dl.c +++ b/shared/dart-sdk/include/dart_api_dl.c @@ -1,59 +1,59 @@ -/* - * Copyright (c) 2020, 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. - */ - -#include "dart_api_dl.h" /* NOLINT */ -#include "dart_version.h" /* NOLINT */ -#include "internal/dart_api_dl_impl.h" /* NOLINT */ - -#include - -#define DART_API_DL_DEFINITIONS(name, R, A) name##_Type name##_DL = NULL; - -DART_API_ALL_DL_SYMBOLS(DART_API_DL_DEFINITIONS) - -#undef DART_API_DL_DEFINITIONS - -typedef void* DartApiEntry_function; - -DartApiEntry_function FindFunctionPointer(const DartApiEntry* entries, - const char* name) { - while (entries->name != NULL) { - if (strcmp(entries->name, name) == 0) return (void*)entries->function; // making clang happy. TODO: solve this another way? - entries++; - } - return NULL; -} - -intptr_t Dart_InitializeApiDL(void* data) { - DartApi* dart_api_data = (DartApi*)data; - - if (dart_api_data->major != DART_API_DL_MAJOR_VERSION) { - // If the DartVM we're running on does not have the same version as this - // file was compiled against, refuse to initialize. The symbols are not - // compatible. - return -1; - } - // Minor versions are allowed to be different. - // If the DartVM has a higher minor version, it will provide more symbols - // than we initialize here. - // If the DartVM has a lower minor version, it will not provide all symbols. - // In that case, we leave the missing symbols un-initialized. Those symbols - // should not be used by the Dart and native code. The client is responsible - // for checking the minor version number himself based on which symbols it - // is using. - // (If we would error out on this case, recompiling native code against a - // newer SDK would break all uses on older SDKs, which is too strict.) - - const DartApiEntry* dart_api_function_pointers = dart_api_data->functions; - -#define DART_API_DL_INIT(name, R, A) \ - name##_DL = \ - (name##_Type)(FindFunctionPointer(dart_api_function_pointers, #name)); - DART_API_ALL_DL_SYMBOLS(DART_API_DL_INIT) -#undef DART_API_DL_INIT - - return 0; -} +/* + * Copyright (c) 2020, 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. + */ + +#include "dart_api_dl.h" /* NOLINT */ +#include "dart_version.h" /* NOLINT */ +#include "internal/dart_api_dl_impl.h" /* NOLINT */ + +#include + +#define DART_API_DL_DEFINITIONS(name, R, A) name##_Type name##_DL = NULL; + +DART_API_ALL_DL_SYMBOLS(DART_API_DL_DEFINITIONS) + +#undef DART_API_DL_DEFINITIONS + +typedef void* DartApiEntry_function; + +DartApiEntry_function FindFunctionPointer(const DartApiEntry* entries, + const char* name) { + while (entries->name != NULL) { + if (strcmp(entries->name, name) == 0) return (void*)entries->function; // making clang happy. TODO: solve this another way? + entries++; + } + return NULL; +} + +intptr_t Dart_InitializeApiDL(void* data) { + DartApi* dart_api_data = (DartApi*)data; + + if (dart_api_data->major != DART_API_DL_MAJOR_VERSION) { + // If the DartVM we're running on does not have the same version as this + // file was compiled against, refuse to initialize. The symbols are not + // compatible. + return -1; + } + // Minor versions are allowed to be different. + // If the DartVM has a higher minor version, it will provide more symbols + // than we initialize here. + // If the DartVM has a lower minor version, it will not provide all symbols. + // In that case, we leave the missing symbols un-initialized. Those symbols + // should not be used by the Dart and native code. The client is responsible + // for checking the minor version number himself based on which symbols it + // is using. + // (If we would error out on this case, recompiling native code against a + // newer SDK would break all uses on older SDKs, which is too strict.) + + const DartApiEntry* dart_api_function_pointers = dart_api_data->functions; + +#define DART_API_DL_INIT(name, R, A) \ + name##_DL = \ + (name##_Type)(FindFunctionPointer(dart_api_function_pointers, #name)); + DART_API_ALL_DL_SYMBOLS(DART_API_DL_INIT) +#undef DART_API_DL_INIT + + return 0; +} diff --git a/shared/dart-sdk/include/dart_api_dl.h b/shared/dart-sdk/include/dart_api_dl.h index 804b281..1c1fcbe 100644 --- a/shared/dart-sdk/include/dart_api_dl.h +++ b/shared/dart-sdk/include/dart_api_dl.h @@ -1,150 +1,150 @@ -/* - * Copyright (c) 2020, 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. - */ - -#ifndef RUNTIME_INCLUDE_DART_API_DL_H_ -#define RUNTIME_INCLUDE_DART_API_DL_H_ - -#include "dart_api.h" /* NOLINT */ -#include "dart_native_api.h" /* NOLINT */ - -/** \mainpage Dynamically Linked Dart API - * - * This exposes a subset of symbols from dart_api.h and dart_native_api.h - * available in every Dart embedder through dynamic linking. - * - * All symbols are postfixed with _DL to indicate that they are dynamically - * linked and to prevent conflicts with the original symbol. - * - * Link `dart_api_dl.c` file into your library and invoke - * `Dart_InitializeApiDL` with `NativeApi.initializeApiDLData`. - */ - -DART_EXPORT intptr_t Dart_InitializeApiDL(void* data); - -// ============================================================================ -// IMPORTANT! Never update these signatures without properly updating -// DART_API_DL_MAJOR_VERSION and DART_API_DL_MINOR_VERSION. -// -// Verbatim copy of `dart_native_api.h` and `dart_api.h` symbol names and types -// to trigger compile-time errors if the sybols in those files are updated -// without updating these. -// -// Function return and argument types, and typedefs are carbon copied. Structs -// are typechecked nominally in C/C++, so they are not copied, instead a -// comment is added to their definition. -typedef int64_t Dart_Port_DL; - -typedef void (*Dart_NativeMessageHandler_DL)(Dart_Port_DL dest_port_id, - Dart_CObject* message); - -// dart_native_api.h symbols can be called on any thread. -#define DART_NATIVE_API_DL_SYMBOLS(F) \ - /***** dart_native_api.h *****/ \ - /* Dart_Port */ \ - F(Dart_PostCObject, bool, (Dart_Port_DL port_id, Dart_CObject * message)) \ - F(Dart_PostInteger, bool, (Dart_Port_DL port_id, int64_t message)) \ - F(Dart_NewNativePort, Dart_Port_DL, \ - (const char* name, Dart_NativeMessageHandler_DL handler, \ - bool handle_concurrently)) \ - F(Dart_CloseNativePort, bool, (Dart_Port_DL native_port_id)) - -// dart_api.h symbols can only be called on Dart threads. -#define DART_API_DL_SYMBOLS(F) \ - /***** dart_api.h *****/ \ - /* Errors */ \ - F(Dart_IsError, bool, (Dart_Handle handle)) \ - F(Dart_IsApiError, bool, (Dart_Handle handle)) \ - F(Dart_IsUnhandledExceptionError, bool, (Dart_Handle handle)) \ - F(Dart_IsCompilationError, bool, (Dart_Handle handle)) \ - F(Dart_IsFatalError, bool, (Dart_Handle handle)) \ - F(Dart_GetError, const char*, (Dart_Handle handle)) \ - F(Dart_ErrorHasException, bool, (Dart_Handle handle)) \ - F(Dart_ErrorGetException, Dart_Handle, (Dart_Handle handle)) \ - F(Dart_ErrorGetStackTrace, Dart_Handle, (Dart_Handle handle)) \ - F(Dart_NewApiError, Dart_Handle, (const char* error)) \ - F(Dart_NewCompilationError, Dart_Handle, (const char* error)) \ - F(Dart_NewUnhandledExceptionError, Dart_Handle, (Dart_Handle exception)) \ - F(Dart_PropagateError, void, (Dart_Handle handle)) \ - /* Dart_Handle, Dart_PersistentHandle, Dart_WeakPersistentHandle */ \ - F(Dart_HandleFromPersistent, Dart_Handle, (Dart_PersistentHandle object)) \ - F(Dart_HandleFromWeakPersistent, Dart_Handle, \ - (Dart_WeakPersistentHandle object)) \ - F(Dart_NewPersistentHandle, Dart_PersistentHandle, (Dart_Handle object)) \ - F(Dart_SetPersistentHandle, void, \ - (Dart_PersistentHandle obj1, Dart_Handle obj2)) \ - F(Dart_DeletePersistentHandle, void, (Dart_PersistentHandle object)) \ - F(Dart_NewWeakPersistentHandle, Dart_WeakPersistentHandle, \ - (Dart_Handle object, void* peer, intptr_t external_allocation_size, \ - Dart_HandleFinalizer callback)) \ - F(Dart_DeleteWeakPersistentHandle, void, (Dart_WeakPersistentHandle object)) \ - F(Dart_UpdateExternalSize, void, \ - (Dart_WeakPersistentHandle object, intptr_t external_allocation_size)) \ - F(Dart_NewFinalizableHandle, Dart_FinalizableHandle, \ - (Dart_Handle object, void* peer, intptr_t external_allocation_size, \ - Dart_HandleFinalizer callback)) \ - F(Dart_DeleteFinalizableHandle, void, \ - (Dart_FinalizableHandle object, Dart_Handle strong_ref_to_object)) \ - F(Dart_UpdateFinalizableExternalSize, void, \ - (Dart_FinalizableHandle object, Dart_Handle strong_ref_to_object, \ - intptr_t external_allocation_size)) \ - /* Dart_Port */ \ - F(Dart_Post, bool, (Dart_Port_DL port_id, Dart_Handle object)) \ - F(Dart_NewSendPort, Dart_Handle, (Dart_Port_DL port_id)) \ - F(Dart_SendPortGetId, Dart_Handle, \ - (Dart_Handle port, Dart_Port_DL * port_id)) \ - /* Scopes */ \ - F(Dart_EnterScope, void, (void)) \ - F(Dart_ExitScope, void, (void)) - -#define DART_API_ALL_DL_SYMBOLS(F) \ - DART_NATIVE_API_DL_SYMBOLS(F) \ - DART_API_DL_SYMBOLS(F) -// IMPORTANT! Never update these signatures without properly updating -// DART_API_DL_MAJOR_VERSION and DART_API_DL_MINOR_VERSION. -// -// End of verbatim copy. -// ============================================================================ - -// Copy of definition of DART_EXPORT without 'used' attribute. -// -// The 'used' attribute cannot be used with DART_API_ALL_DL_SYMBOLS because -// they are not function declarations, but variable declarations with a -// function pointer type. -// -// The function pointer variables are initialized with the addresses of the -// functions in the VM. If we were to use function declarations instead, we -// would need to forward the call to the VM adding indirection. -#if defined(__CYGWIN__) -#error Tool chain and platform not supported. -#elif defined(_WIN32) -#if defined(DART_SHARED_LIB) -#define DART_EXPORT_DL DART_EXTERN_C __declspec(dllexport) -#else -#define DART_EXPORT_DL DART_EXTERN_C -#endif -#else -#if __GNUC__ >= 4 -#if defined(DART_SHARED_LIB) -#define DART_EXPORT_DL DART_EXTERN_C __attribute__((visibility("default"))) -#else -#define DART_EXPORT_DL DART_EXTERN_C -#endif -#else -#error Tool chain not supported. -#endif -#endif - -#define DART_API_DL_DECLARATIONS(name, R, A) \ - typedef R(*name##_Type) A; \ - DART_EXPORT_DL name##_Type name##_DL; - -DART_API_ALL_DL_SYMBOLS(DART_API_DL_DECLARATIONS) - -#undef DART_API_DL_DECLARATIONS - -#undef DART_EXPORT_DL - -#endif /* RUNTIME_INCLUDE_DART_API_DL_H_ */ /* NOLINT */ +/* + * Copyright (c) 2020, 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. + */ + +#ifndef RUNTIME_INCLUDE_DART_API_DL_H_ +#define RUNTIME_INCLUDE_DART_API_DL_H_ + +#include "dart_api.h" /* NOLINT */ +#include "dart_native_api.h" /* NOLINT */ + +/** \mainpage Dynamically Linked Dart API + * + * This exposes a subset of symbols from dart_api.h and dart_native_api.h + * available in every Dart embedder through dynamic linking. + * + * All symbols are postfixed with _DL to indicate that they are dynamically + * linked and to prevent conflicts with the original symbol. + * + * Link `dart_api_dl.c` file into your library and invoke + * `Dart_InitializeApiDL` with `NativeApi.initializeApiDLData`. + */ + +DART_EXPORT intptr_t Dart_InitializeApiDL(void* data); + +// ============================================================================ +// IMPORTANT! Never update these signatures without properly updating +// DART_API_DL_MAJOR_VERSION and DART_API_DL_MINOR_VERSION. +// +// Verbatim copy of `dart_native_api.h` and `dart_api.h` symbol names and types +// to trigger compile-time errors if the sybols in those files are updated +// without updating these. +// +// Function return and argument types, and typedefs are carbon copied. Structs +// are typechecked nominally in C/C++, so they are not copied, instead a +// comment is added to their definition. +typedef int64_t Dart_Port_DL; + +typedef void (*Dart_NativeMessageHandler_DL)(Dart_Port_DL dest_port_id, + Dart_CObject* message); + +// dart_native_api.h symbols can be called on any thread. +#define DART_NATIVE_API_DL_SYMBOLS(F) \ + /***** dart_native_api.h *****/ \ + /* Dart_Port */ \ + F(Dart_PostCObject, bool, (Dart_Port_DL port_id, Dart_CObject * message)) \ + F(Dart_PostInteger, bool, (Dart_Port_DL port_id, int64_t message)) \ + F(Dart_NewNativePort, Dart_Port_DL, \ + (const char* name, Dart_NativeMessageHandler_DL handler, \ + bool handle_concurrently)) \ + F(Dart_CloseNativePort, bool, (Dart_Port_DL native_port_id)) + +// dart_api.h symbols can only be called on Dart threads. +#define DART_API_DL_SYMBOLS(F) \ + /***** dart_api.h *****/ \ + /* Errors */ \ + F(Dart_IsError, bool, (Dart_Handle handle)) \ + F(Dart_IsApiError, bool, (Dart_Handle handle)) \ + F(Dart_IsUnhandledExceptionError, bool, (Dart_Handle handle)) \ + F(Dart_IsCompilationError, bool, (Dart_Handle handle)) \ + F(Dart_IsFatalError, bool, (Dart_Handle handle)) \ + F(Dart_GetError, const char*, (Dart_Handle handle)) \ + F(Dart_ErrorHasException, bool, (Dart_Handle handle)) \ + F(Dart_ErrorGetException, Dart_Handle, (Dart_Handle handle)) \ + F(Dart_ErrorGetStackTrace, Dart_Handle, (Dart_Handle handle)) \ + F(Dart_NewApiError, Dart_Handle, (const char* error)) \ + F(Dart_NewCompilationError, Dart_Handle, (const char* error)) \ + F(Dart_NewUnhandledExceptionError, Dart_Handle, (Dart_Handle exception)) \ + F(Dart_PropagateError, void, (Dart_Handle handle)) \ + /* Dart_Handle, Dart_PersistentHandle, Dart_WeakPersistentHandle */ \ + F(Dart_HandleFromPersistent, Dart_Handle, (Dart_PersistentHandle object)) \ + F(Dart_HandleFromWeakPersistent, Dart_Handle, \ + (Dart_WeakPersistentHandle object)) \ + F(Dart_NewPersistentHandle, Dart_PersistentHandle, (Dart_Handle object)) \ + F(Dart_SetPersistentHandle, void, \ + (Dart_PersistentHandle obj1, Dart_Handle obj2)) \ + F(Dart_DeletePersistentHandle, void, (Dart_PersistentHandle object)) \ + F(Dart_NewWeakPersistentHandle, Dart_WeakPersistentHandle, \ + (Dart_Handle object, void* peer, intptr_t external_allocation_size, \ + Dart_HandleFinalizer callback)) \ + F(Dart_DeleteWeakPersistentHandle, void, (Dart_WeakPersistentHandle object)) \ + F(Dart_UpdateExternalSize, void, \ + (Dart_WeakPersistentHandle object, intptr_t external_allocation_size)) \ + F(Dart_NewFinalizableHandle, Dart_FinalizableHandle, \ + (Dart_Handle object, void* peer, intptr_t external_allocation_size, \ + Dart_HandleFinalizer callback)) \ + F(Dart_DeleteFinalizableHandle, void, \ + (Dart_FinalizableHandle object, Dart_Handle strong_ref_to_object)) \ + F(Dart_UpdateFinalizableExternalSize, void, \ + (Dart_FinalizableHandle object, Dart_Handle strong_ref_to_object, \ + intptr_t external_allocation_size)) \ + /* Dart_Port */ \ + F(Dart_Post, bool, (Dart_Port_DL port_id, Dart_Handle object)) \ + F(Dart_NewSendPort, Dart_Handle, (Dart_Port_DL port_id)) \ + F(Dart_SendPortGetId, Dart_Handle, \ + (Dart_Handle port, Dart_Port_DL * port_id)) \ + /* Scopes */ \ + F(Dart_EnterScope, void, (void)) \ + F(Dart_ExitScope, void, (void)) + +#define DART_API_ALL_DL_SYMBOLS(F) \ + DART_NATIVE_API_DL_SYMBOLS(F) \ + DART_API_DL_SYMBOLS(F) +// IMPORTANT! Never update these signatures without properly updating +// DART_API_DL_MAJOR_VERSION and DART_API_DL_MINOR_VERSION. +// +// End of verbatim copy. +// ============================================================================ + +// Copy of definition of DART_EXPORT without 'used' attribute. +// +// The 'used' attribute cannot be used with DART_API_ALL_DL_SYMBOLS because +// they are not function declarations, but variable declarations with a +// function pointer type. +// +// The function pointer variables are initialized with the addresses of the +// functions in the VM. If we were to use function declarations instead, we +// would need to forward the call to the VM adding indirection. +#if defined(__CYGWIN__) +#error Tool chain and platform not supported. +#elif defined(_WIN32) +#if defined(DART_SHARED_LIB) +#define DART_EXPORT_DL DART_EXTERN_C __declspec(dllexport) +#else +#define DART_EXPORT_DL DART_EXTERN_C +#endif +#else +#if __GNUC__ >= 4 +#if defined(DART_SHARED_LIB) +#define DART_EXPORT_DL DART_EXTERN_C __attribute__((visibility("default"))) +#else +#define DART_EXPORT_DL DART_EXTERN_C +#endif +#else +#error Tool chain not supported. +#endif +#endif + +#define DART_API_DL_DECLARATIONS(name, R, A) \ + typedef R(*name##_Type) A; \ + DART_EXPORT_DL name##_Type name##_DL; + +DART_API_ALL_DL_SYMBOLS(DART_API_DL_DECLARATIONS) + +#undef DART_API_DL_DECLARATIONS + +#undef DART_EXPORT_DL + +#endif /* RUNTIME_INCLUDE_DART_API_DL_H_ */ /* NOLINT */ diff --git a/shared/dart-sdk/include/dart_native_api.h b/shared/dart-sdk/include/dart_native_api.h index a938b49..ce110f9 100644 --- a/shared/dart-sdk/include/dart_native_api.h +++ b/shared/dart-sdk/include/dart_native_api.h @@ -1,204 +1,204 @@ -/* - * Copyright (c) 2013, 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. - */ - -#ifndef RUNTIME_INCLUDE_DART_NATIVE_API_H_ -#define RUNTIME_INCLUDE_DART_NATIVE_API_H_ - -#include "dart_api.h" /* NOLINT */ - -/* - * ========================================== - * Message sending/receiving from native code - * ========================================== - */ - -/** - * A Dart_CObject is used for representing Dart objects as native C - * data outside the Dart heap. These objects are totally detached from - * the Dart heap. Only a subset of the Dart objects have a - * representation as a Dart_CObject. - * - * The string encoding in the 'value.as_string' is UTF-8. - * - * All the different types from dart:typed_data are exposed as type - * kTypedData. The specific type from dart:typed_data is in the type - * field of the as_typed_data structure. The length in the - * as_typed_data structure is always in bytes. - * - * The data for kTypedData is copied on message send and ownership remains with - * the caller. The ownership of data for kExternalTyped is passed to the VM on - * message send and returned when the VM invokes the - * Dart_HandleFinalizer callback; a non-NULL callback must be provided. - * - * Note that Dart_CObject_kNativePointer is intended for internal use by - * dart:io implementation and has no connection to dart:ffi Pointer class. - * It represents a pointer to a native resource of a known type. - * The receiving side will only see this pointer as an integer and will not - * see the specified finalizer. - * The specified finalizer will only be invoked if the message is not delivered. - */ -typedef enum { - Dart_CObject_kNull = 0, - Dart_CObject_kBool, - Dart_CObject_kInt32, - Dart_CObject_kInt64, - Dart_CObject_kDouble, - Dart_CObject_kString, - Dart_CObject_kArray, - Dart_CObject_kTypedData, - Dart_CObject_kExternalTypedData, - Dart_CObject_kSendPort, - Dart_CObject_kCapability, - Dart_CObject_kNativePointer, - Dart_CObject_kUnsupported, - Dart_CObject_kNumberOfTypes -} Dart_CObject_Type; - -typedef struct _Dart_CObject { - Dart_CObject_Type type; - union { - bool as_bool; - int32_t as_int32; - int64_t as_int64; - double as_double; - char* as_string; - struct { - Dart_Port id; - Dart_Port origin_id; - } as_send_port; - struct { - int64_t id; - } as_capability; - struct { - intptr_t length; - struct _Dart_CObject** values; - } as_array; - struct { - Dart_TypedData_Type type; - intptr_t length; /* in elements, not bytes */ - uint8_t* values; - } as_typed_data; - struct { - Dart_TypedData_Type type; - intptr_t length; /* in elements, not bytes */ - uint8_t* data; - void* peer; - Dart_HandleFinalizer callback; - } as_external_typed_data; - struct { - intptr_t ptr; - intptr_t size; - Dart_HandleFinalizer callback; - } as_native_pointer; - } value; -} Dart_CObject; -// This struct is versioned by DART_API_DL_MAJOR_VERSION, bump the version when -// changing this struct. - -/** - * Posts a message on some port. The message will contain the Dart_CObject - * object graph rooted in 'message'. - * - * While the message is being sent the state of the graph of Dart_CObject - * structures rooted in 'message' should not be accessed, as the message - * generation will make temporary modifications to the data. When the message - * has been sent the graph will be fully restored. - * - * If true is returned, the message was enqueued, and finalizers for external - * typed data will eventually run, even if the receiving isolate shuts down - * before processing the message. If false is returned, the message was not - * enqueued and ownership of external typed data in the message remains with the - * caller. - * - * This function may be called on any thread when the VM is running (that is, - * after Dart_Initialize has returned and before Dart_Cleanup has been called). - * - * \param port_id The destination port. - * \param message The message to send. - * - * \return True if the message was posted. - */ -DART_EXPORT bool Dart_PostCObject(Dart_Port port_id, Dart_CObject* message); - -/** - * Posts a message on some port. The message will contain the integer 'message'. - * - * \param port_id The destination port. - * \param message The message to send. - * - * \return True if the message was posted. - */ -DART_EXPORT bool Dart_PostInteger(Dart_Port port_id, int64_t message); - -/** - * A native message handler. - * - * This handler is associated with a native port by calling - * Dart_NewNativePort. - * - * The message received is decoded into the message structure. The - * lifetime of the message data is controlled by the caller. All the - * data references from the message are allocated by the caller and - * will be reclaimed when returning to it. - */ -typedef void (*Dart_NativeMessageHandler)(Dart_Port dest_port_id, - Dart_CObject* message); - -/** - * Creates a new native port. When messages are received on this - * native port, then they will be dispatched to the provided native - * message handler. - * - * \param name The name of this port in debugging messages. - * \param handler The C handler to run when messages arrive on the port. - * \param handle_concurrently Is it okay to process requests on this - * native port concurrently? - * - * \return If successful, returns the port id for the native port. In - * case of error, returns ILLEGAL_PORT. - */ -DART_EXPORT Dart_Port Dart_NewNativePort(const char* name, - Dart_NativeMessageHandler handler, - bool handle_concurrently); -/* TODO(turnidge): Currently handle_concurrently is ignored. */ - -/** - * Closes the native port with the given id. - * - * The port must have been allocated by a call to Dart_NewNativePort. - * - * \param native_port_id The id of the native port to close. - * - * \return Returns true if the port was closed successfully. - */ -DART_EXPORT bool Dart_CloseNativePort(Dart_Port native_port_id); - -/* - * ================== - * Verification Tools - * ================== - */ - -/** - * Forces all loaded classes and functions to be compiled eagerly in - * the current isolate.. - * - * TODO(turnidge): Document. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_CompileAll(void); - -/** - * Finalizes all classes. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_FinalizeAllClasses(void); - -/* This function is intentionally undocumented. - * - * It should not be used outside internal tests. - */ -DART_EXPORT void* Dart_ExecuteInternalCommand(const char* command, void* arg); - -#endif /* INCLUDE_DART_NATIVE_API_H_ */ /* NOLINT */ +/* + * Copyright (c) 2013, 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. + */ + +#ifndef RUNTIME_INCLUDE_DART_NATIVE_API_H_ +#define RUNTIME_INCLUDE_DART_NATIVE_API_H_ + +#include "dart_api.h" /* NOLINT */ + +/* + * ========================================== + * Message sending/receiving from native code + * ========================================== + */ + +/** + * A Dart_CObject is used for representing Dart objects as native C + * data outside the Dart heap. These objects are totally detached from + * the Dart heap. Only a subset of the Dart objects have a + * representation as a Dart_CObject. + * + * The string encoding in the 'value.as_string' is UTF-8. + * + * All the different types from dart:typed_data are exposed as type + * kTypedData. The specific type from dart:typed_data is in the type + * field of the as_typed_data structure. The length in the + * as_typed_data structure is always in bytes. + * + * The data for kTypedData is copied on message send and ownership remains with + * the caller. The ownership of data for kExternalTyped is passed to the VM on + * message send and returned when the VM invokes the + * Dart_HandleFinalizer callback; a non-NULL callback must be provided. + * + * Note that Dart_CObject_kNativePointer is intended for internal use by + * dart:io implementation and has no connection to dart:ffi Pointer class. + * It represents a pointer to a native resource of a known type. + * The receiving side will only see this pointer as an integer and will not + * see the specified finalizer. + * The specified finalizer will only be invoked if the message is not delivered. + */ +typedef enum { + Dart_CObject_kNull = 0, + Dart_CObject_kBool, + Dart_CObject_kInt32, + Dart_CObject_kInt64, + Dart_CObject_kDouble, + Dart_CObject_kString, + Dart_CObject_kArray, + Dart_CObject_kTypedData, + Dart_CObject_kExternalTypedData, + Dart_CObject_kSendPort, + Dart_CObject_kCapability, + Dart_CObject_kNativePointer, + Dart_CObject_kUnsupported, + Dart_CObject_kNumberOfTypes +} Dart_CObject_Type; + +typedef struct _Dart_CObject { + Dart_CObject_Type type; + union { + bool as_bool; + int32_t as_int32; + int64_t as_int64; + double as_double; + char* as_string; + struct { + Dart_Port id; + Dart_Port origin_id; + } as_send_port; + struct { + int64_t id; + } as_capability; + struct { + intptr_t length; + struct _Dart_CObject** values; + } as_array; + struct { + Dart_TypedData_Type type; + intptr_t length; /* in elements, not bytes */ + uint8_t* values; + } as_typed_data; + struct { + Dart_TypedData_Type type; + intptr_t length; /* in elements, not bytes */ + uint8_t* data; + void* peer; + Dart_HandleFinalizer callback; + } as_external_typed_data; + struct { + intptr_t ptr; + intptr_t size; + Dart_HandleFinalizer callback; + } as_native_pointer; + } value; +} Dart_CObject; +// This struct is versioned by DART_API_DL_MAJOR_VERSION, bump the version when +// changing this struct. + +/** + * Posts a message on some port. The message will contain the Dart_CObject + * object graph rooted in 'message'. + * + * While the message is being sent the state of the graph of Dart_CObject + * structures rooted in 'message' should not be accessed, as the message + * generation will make temporary modifications to the data. When the message + * has been sent the graph will be fully restored. + * + * If true is returned, the message was enqueued, and finalizers for external + * typed data will eventually run, even if the receiving isolate shuts down + * before processing the message. If false is returned, the message was not + * enqueued and ownership of external typed data in the message remains with the + * caller. + * + * This function may be called on any thread when the VM is running (that is, + * after Dart_Initialize has returned and before Dart_Cleanup has been called). + * + * \param port_id The destination port. + * \param message The message to send. + * + * \return True if the message was posted. + */ +DART_EXPORT bool Dart_PostCObject(Dart_Port port_id, Dart_CObject* message); + +/** + * Posts a message on some port. The message will contain the integer 'message'. + * + * \param port_id The destination port. + * \param message The message to send. + * + * \return True if the message was posted. + */ +DART_EXPORT bool Dart_PostInteger(Dart_Port port_id, int64_t message); + +/** + * A native message handler. + * + * This handler is associated with a native port by calling + * Dart_NewNativePort. + * + * The message received is decoded into the message structure. The + * lifetime of the message data is controlled by the caller. All the + * data references from the message are allocated by the caller and + * will be reclaimed when returning to it. + */ +typedef void (*Dart_NativeMessageHandler)(Dart_Port dest_port_id, + Dart_CObject* message); + +/** + * Creates a new native port. When messages are received on this + * native port, then they will be dispatched to the provided native + * message handler. + * + * \param name The name of this port in debugging messages. + * \param handler The C handler to run when messages arrive on the port. + * \param handle_concurrently Is it okay to process requests on this + * native port concurrently? + * + * \return If successful, returns the port id for the native port. In + * case of error, returns ILLEGAL_PORT. + */ +DART_EXPORT Dart_Port Dart_NewNativePort(const char* name, + Dart_NativeMessageHandler handler, + bool handle_concurrently); +/* TODO(turnidge): Currently handle_concurrently is ignored. */ + +/** + * Closes the native port with the given id. + * + * The port must have been allocated by a call to Dart_NewNativePort. + * + * \param native_port_id The id of the native port to close. + * + * \return Returns true if the port was closed successfully. + */ +DART_EXPORT bool Dart_CloseNativePort(Dart_Port native_port_id); + +/* + * ================== + * Verification Tools + * ================== + */ + +/** + * Forces all loaded classes and functions to be compiled eagerly in + * the current isolate.. + * + * TODO(turnidge): Document. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_CompileAll(void); + +/** + * Finalizes all classes. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_FinalizeAllClasses(void); + +/* This function is intentionally undocumented. + * + * It should not be used outside internal tests. + */ +DART_EXPORT void* Dart_ExecuteInternalCommand(const char* command, void* arg); + +#endif /* INCLUDE_DART_NATIVE_API_H_ */ /* NOLINT */ diff --git a/shared/dart-sdk/include/dart_tools_api.h b/shared/dart-sdk/include/dart_tools_api.h index 4ccfe4f..49a642b 100644 --- a/shared/dart-sdk/include/dart_tools_api.h +++ b/shared/dart-sdk/include/dart_tools_api.h @@ -1,539 +1,539 @@ -// Copyright (c) 2011, 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. - -#ifndef RUNTIME_INCLUDE_DART_TOOLS_API_H_ -#define RUNTIME_INCLUDE_DART_TOOLS_API_H_ - -#include "dart_api.h" /* NOLINT */ - -/** \mainpage Dart Tools Embedding API Reference - * - * This reference describes the Dart embedding API for tools. Tools include - * a debugger, service protocol, and timeline. - * - * NOTE: The APIs described in this file are unstable and subject to change. - * - * This reference is generated from the header include/dart_tools_api.h. - */ - -/* - * ======== - * Debugger - * ======== - */ - -/** - * ILLEGAL_ISOLATE_ID is a number guaranteed never to be associated with a - * valid isolate. - */ -#define ILLEGAL_ISOLATE_ID ILLEGAL_PORT - - -/* - * ======= - * Service - * ======= - */ - -/** - * A service request callback function. - * - * These callbacks, registered by the embedder, are called when the VM receives - * a service request it can't handle and the service request command name - * matches one of the embedder registered handlers. - * - * The return value of the callback indicates whether the response - * should be used as a regular result or an error result. - * Specifically, if the callback returns true, a regular JSON-RPC - * response is built in the following way: - * - * { - * "jsonrpc": "2.0", - * "result": , - * "id": , - * } - * - * If the callback returns false, a JSON-RPC error is built like this: - * - * { - * "jsonrpc": "2.0", - * "error": , - * "id": , - * } - * - * \param method The rpc method name. - * \param param_keys Service requests can have key-value pair parameters. The - * keys and values are flattened and stored in arrays. - * \param param_values The values associated with the keys. - * \param num_params The length of the param_keys and param_values arrays. - * \param user_data The user_data pointer registered with this handler. - * \param result A C string containing a valid JSON object. The returned - * pointer will be freed by the VM by calling free. - * - * \return True if the result is a regular JSON-RPC response, false if the - * result is a JSON-RPC error. - */ -typedef bool (*Dart_ServiceRequestCallback)(const char* method, - const char** param_keys, - const char** param_values, - intptr_t num_params, - void* user_data, - const char** json_object); - -/** - * Register a Dart_ServiceRequestCallback to be called to handle - * requests for the named rpc on a specific isolate. The callback will - * be invoked with the current isolate set to the request target. - * - * \param method The name of the method that this callback is responsible for. - * \param callback The callback to invoke. - * \param user_data The user data passed to the callback. - * - * NOTE: If multiple callbacks with the same name are registered, only - * the last callback registered will be remembered. - */ -DART_EXPORT void Dart_RegisterIsolateServiceRequestCallback( - const char* method, - Dart_ServiceRequestCallback callback, - void* user_data); - -/** - * Register a Dart_ServiceRequestCallback to be called to handle - * requests for the named rpc. The callback will be invoked without a - * current isolate. - * - * \param method The name of the command that this callback is responsible for. - * \param callback The callback to invoke. - * \param user_data The user data passed to the callback. - * - * NOTE: If multiple callbacks with the same name are registered, only - * the last callback registered will be remembered. - */ -DART_EXPORT void Dart_RegisterRootServiceRequestCallback( - const char* method, - Dart_ServiceRequestCallback callback, - void* user_data); - -/** - * Embedder information which can be requested by the VM for internal or - * reporting purposes. - * - * The pointers in this structure are not going to be cached or freed by the VM. - */ - - #define DART_EMBEDDER_INFORMATION_CURRENT_VERSION (0x00000001) - -typedef struct { - int32_t version; - const char* name; // [optional] The name of the embedder - int64_t current_rss; // [optional] the current RSS of the embedder - int64_t max_rss; // [optional] the maximum RSS of the embedder -} Dart_EmbedderInformation; - -/** - * Callback provided by the embedder that is used by the vm to request - * information. - * - * \return Returns a pointer to a Dart_EmbedderInformation structure. - * The embedder keeps the ownership of the structure and any field in it. - * The embedder must ensure that the structure will remain valid until the - * next invokation of the callback. - */ -typedef void (*Dart_EmbedderInformationCallback)( - Dart_EmbedderInformation* info); - -/** - * Register a Dart_ServiceRequestCallback to be called to handle - * requests for the named rpc. The callback will be invoked without a - * current isolate. - * - * \param method The name of the command that this callback is responsible for. - * \param callback The callback to invoke. - * \param user_data The user data passed to the callback. - * - * NOTE: If multiple callbacks with the same name are registered, only - * the last callback registered will be remembered. - */ -DART_EXPORT void Dart_SetEmbedderInformationCallback( - Dart_EmbedderInformationCallback callback); - -/** - * Invoke a vm-service method and wait for its result. - * - * \param request_json The utf8-encoded json-rpc request. - * \param request_json_length The length of the json-rpc request. - * - * \param response_json The returned utf8-encoded json response, must be - * free()ed by caller. - * \param response_json_length The length of the returned json response. - * \param error An optional error, must be free()ed by caller. - * - * \return Whether the call was successfully performed. - * - * NOTE: This method does not need a current isolate and must not have the - * vm-isolate being the current isolate. It must be called after - * Dart_Initialize() and before Dart_Cleanup(). - */ -DART_EXPORT bool Dart_InvokeVMServiceMethod(uint8_t* request_json, - intptr_t request_json_length, - uint8_t** response_json, - intptr_t* response_json_length, - char** error); - -/* - * ======== - * Event Streams - * ======== - */ - -/** - * A callback invoked when the VM service gets a request to listen to - * some stream. - * - * \return Returns true iff the embedder supports the named stream id. - */ -typedef bool (*Dart_ServiceStreamListenCallback)(const char* stream_id); - -/** - * A callback invoked when the VM service gets a request to cancel - * some stream. - */ -typedef void (*Dart_ServiceStreamCancelCallback)(const char* stream_id); - -/** - * Adds VM service stream callbacks. - * - * \param listen_callback A function pointer to a listen callback function. - * A listen callback function should not be already set when this function - * is called. A NULL value removes the existing listen callback function - * if any. - * - * \param cancel_callback A function pointer to a cancel callback function. - * A cancel callback function should not be already set when this function - * is called. A NULL value removes the existing cancel callback function - * if any. - * - * \return Success if the callbacks were added. Otherwise, returns an - * error handle. - */ -DART_EXPORT char* Dart_SetServiceStreamCallbacks( - Dart_ServiceStreamListenCallback listen_callback, - Dart_ServiceStreamCancelCallback cancel_callback); - -/** - * Sends a data event to clients of the VM Service. - * - * A data event is used to pass an array of bytes to subscribed VM - * Service clients. For example, in the standalone embedder, this is - * function used to provide WriteEvents on the Stdout and Stderr - * streams. - * - * If the embedder passes in a stream id for which no client is - * subscribed, then the event is ignored. - * - * \param stream_id The id of the stream on which to post the event. - * - * \param event_kind A string identifying what kind of event this is. - * For example, 'WriteEvent'. - * - * \param bytes A pointer to an array of bytes. - * - * \param bytes_length The length of the byte array. - * - * \return NULL if the arguments are well formed. Otherwise, returns an - * error string. The caller is responsible for freeing the error message. - */ -DART_EXPORT char* Dart_ServiceSendDataEvent(const char* stream_id, - const char* event_kind, - const uint8_t* bytes, - intptr_t bytes_length); - -/** - * Usage statistics for a space/generation at a particular moment in time. - * - * \param used Amount of memory used, in bytes. - * - * \param capacity Memory capacity, in bytes. - * - * \param external External memory, in bytes. - * - * \param collections How many times the garbage collector has run in this - * space. - * - * \param time Cumulative time spent collecting garbage in this space, in - * seconds. - * - * \param avg_collection_period Average time between garbage collector running - * in this space, in milliseconds. - */ -typedef struct { - intptr_t used; - intptr_t capacity; - intptr_t external; - intptr_t collections; - double time; - double avg_collection_period; -} Dart_GCStats; - -/** - * A Garbage Collection event with memory usage statistics. - * - * \param type The event type. Static lifetime. - * - * \param reason The reason for the GC event. Static lifetime. - * - * \param new_space Data for New Space. - * - * \param old_space Data for Old Space. - */ -typedef struct { - const char* type; - const char* reason; - - Dart_IsolateGroupId isolate_group_id; - - Dart_GCStats new_space; - Dart_GCStats old_space; -} Dart_GCEvent; - -/** - * A callback invoked when the VM emits a GC event. - * - * \param event The GC event data. Pointer only valid for the duration of the - * callback. - */ -typedef void (*Dart_GCEventCallback)(Dart_GCEvent* event); - -/** - * Sets the native GC event callback. - * - * \param callback A function pointer to an event handler callback function. - * A NULL value removes the existing listen callback function if any. - */ -DART_EXPORT void Dart_SetGCEventCallback(Dart_GCEventCallback callback); - -/* - * ======== - * Reload support - * ======== - * - * These functions are used to implement reloading in the Dart VM. - * This is an experimental feature, so embedders should be prepared - * for these functions to change. - */ - -/** - * A callback which determines whether the file at some url has been - * modified since some time. If the file cannot be found, true should - * be returned. - */ -typedef bool (*Dart_FileModifiedCallback)(const char* url, int64_t since); - -DART_EXPORT char* Dart_SetFileModifiedCallback( - Dart_FileModifiedCallback file_modified_callback); - -/** - * Returns true if isolate is currently reloading. - */ -DART_EXPORT bool Dart_IsReloading(); - -/* - * ======== - * Timeline - * ======== - */ - -/** - * Enable tracking of specified timeline category. This is operational - * only when systrace timeline functionality is turned on. - * - * \param categories A comma separated list of categories that need to - * be enabled, the categories are - * "all" : All categories - * "API" - Execution of Dart C API functions - * "Compiler" - Execution of Dart JIT compiler - * "CompilerVerbose" - More detailed Execution of Dart JIT compiler - * "Dart" - Execution of Dart code - * "Debugger" - Execution of Dart debugger - * "Embedder" - Execution of Dart embedder code - * "GC" - Execution of Dart Garbage Collector - * "Isolate" - Dart Isolate lifecycle execution - * "VM" - Excution in Dart VM runtime code - * "" - None - * - * When "all" is specified all the categories are enabled. - * When a comma separated list of categories is specified, the categories - * that are specified will be enabled and the rest will be disabled. - * When "" is specified all the categories are disabled. - * The category names are case sensitive. - * eg: Dart_EnableTimelineCategory("all"); - * Dart_EnableTimelineCategory("GC,API,Isolate"); - * Dart_EnableTimelineCategory("GC,Debugger,Dart"); - * - * \return True if the categories were successfully enabled, False otherwise. - */ -DART_EXPORT bool Dart_SetEnabledTimelineCategory(const char* categories); - -/** - * Returns a timestamp in microseconds. This timestamp is suitable for - * passing into the timeline system, and uses the same monotonic clock - * as dart:developer's Timeline.now. - * - * \return A timestamp that can be passed to the timeline system. - */ -DART_EXPORT int64_t Dart_TimelineGetMicros(); - -/** - * Returns a raw timestamp in from the monotonic clock. - * - * \return A raw timestamp from the monotonic clock. - */ -DART_EXPORT int64_t Dart_TimelineGetTicks(); - -/** - * Returns the frequency of the monotonic clock. - * - * \return The frequency of the monotonic clock. - */ -DART_EXPORT int64_t Dart_TimelineGetTicksFrequency(); - -typedef enum { - Dart_Timeline_Event_Begin, // Phase = 'B'. - Dart_Timeline_Event_End, // Phase = 'E'. - Dart_Timeline_Event_Instant, // Phase = 'i'. - Dart_Timeline_Event_Duration, // Phase = 'X'. - Dart_Timeline_Event_Async_Begin, // Phase = 'b'. - Dart_Timeline_Event_Async_End, // Phase = 'e'. - Dart_Timeline_Event_Async_Instant, // Phase = 'n'. - Dart_Timeline_Event_Counter, // Phase = 'C'. - Dart_Timeline_Event_Flow_Begin, // Phase = 's'. - Dart_Timeline_Event_Flow_Step, // Phase = 't'. - Dart_Timeline_Event_Flow_End, // Phase = 'f'. -} Dart_Timeline_Event_Type; - -/** - * Add a timeline event to the embedder stream. - * - * \param label The name of the event. Its lifetime must extend at least until - * Dart_Cleanup. - * \param timestamp0 The first timestamp of the event. - * \param timestamp1_or_async_id The second timestamp of the event or - * the async id. - * \param argument_count The number of argument names and values. - * \param argument_names An array of names of the arguments. The lifetime of the - * names must extend at least until Dart_Cleanup. The array may be reclaimed - * when this call returns. - * \param argument_values An array of values of the arguments. The values and - * the array may be reclaimed when this call returns. - */ -DART_EXPORT void Dart_TimelineEvent(const char* label, - int64_t timestamp0, - int64_t timestamp1_or_async_id, - Dart_Timeline_Event_Type type, - intptr_t argument_count, - const char** argument_names, - const char** argument_values); - -/** - * Associates a name with the current thread. This name will be used to name - * threads in the timeline. Can only be called after a call to Dart_Initialize. - * - * \param name The name of the thread. - */ -DART_EXPORT void Dart_SetThreadName(const char* name); - -/* - * ======= - * Metrics - * ======= - */ - -/** - * Return metrics gathered for the VM and individual isolates. - * - * NOTE: Non-heap metrics are not available in PRODUCT builds of Dart. - * Calling the non-heap metric functions on a PRODUCT build might return invalid metrics. - */ -DART_EXPORT int64_t Dart_VMIsolateCountMetric(); // Counter -DART_EXPORT int64_t Dart_VMCurrentRSSMetric(); // Byte -DART_EXPORT int64_t Dart_VMPeakRSSMetric(); // Byte -DART_EXPORT int64_t -Dart_IsolateGroupHeapOldUsedMetric(Dart_IsolateGroup group); // Byte -DART_EXPORT int64_t -Dart_IsolateGroupHeapOldUsedMaxMetric(Dart_IsolateGroup group); // Byte -DART_EXPORT int64_t -Dart_IsolateGroupHeapOldCapacityMetric(Dart_IsolateGroup group); // Byte -DART_EXPORT int64_t -Dart_IsolateGroupHeapOldCapacityMaxMetric(Dart_IsolateGroup group); // Byte -DART_EXPORT int64_t -Dart_IsolateGroupHeapOldExternalMetric(Dart_IsolateGroup group); // Byte -DART_EXPORT int64_t -Dart_IsolateGroupHeapNewUsedMetric(Dart_IsolateGroup group); // Byte -DART_EXPORT int64_t -Dart_IsolateGroupHeapNewUsedMaxMetric(Dart_IsolateGroup group); // Byte -DART_EXPORT int64_t -Dart_IsolateGroupHeapNewCapacityMetric(Dart_IsolateGroup group); // Byte -DART_EXPORT int64_t -Dart_IsolateGroupHeapNewCapacityMaxMetric(Dart_IsolateGroup group); // Byte -DART_EXPORT int64_t -Dart_IsolateGroupHeapNewExternalMetric(Dart_IsolateGroup group); // Byte -DART_EXPORT int64_t -Dart_IsolateGroupHeapGlobalUsedMetric(Dart_IsolateGroup group); // Byte -DART_EXPORT int64_t -Dart_IsolateGroupHeapGlobalUsedMaxMetric(Dart_IsolateGroup group); // Byte -DART_EXPORT int64_t -Dart_IsolateRunnableLatencyMetric(Dart_Isolate isolate); // Microsecond -DART_EXPORT int64_t -Dart_IsolateRunnableHeapSizeMetric(Dart_Isolate isolate); // Byte - -/* - * ======== - * UserTags - * ======== - */ - -/* - * Gets the current isolate's currently set UserTag instance. - * - * \return The currently set UserTag instance. - */ -DART_EXPORT Dart_Handle Dart_GetCurrentUserTag(); - -/* - * Gets the current isolate's default UserTag instance. - * - * \return The default UserTag with label 'Default' - */ -DART_EXPORT Dart_Handle Dart_GetDefaultUserTag(); - -/* - * Creates a new UserTag instance. - * - * \param label The name of the new UserTag. - * - * \return The newly created UserTag instance or an error handle. - */ -DART_EXPORT Dart_Handle Dart_NewUserTag(const char* label); - -/* - * Updates the current isolate's UserTag to a new value. - * - * \param user_tag The UserTag to be set as the current UserTag. - * - * \return The previously set UserTag instance or an error handle. - */ -DART_EXPORT Dart_Handle Dart_SetCurrentUserTag(Dart_Handle user_tag); - -/* - * Returns the label of a given UserTag instance. - * - * \param user_tag The UserTag from which the label will be retrieved. - * - * \return The UserTag's label. NULL if the user_tag is invalid. The caller is - * responsible for freeing the returned label. - */ -DART_EXPORT DART_WARN_UNUSED_RESULT char* Dart_GetUserTagLabel( - Dart_Handle user_tag); - -#endif // RUNTIME_INCLUDE_DART_TOOLS_API_H_ +// Copyright (c) 2011, 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. + +#ifndef RUNTIME_INCLUDE_DART_TOOLS_API_H_ +#define RUNTIME_INCLUDE_DART_TOOLS_API_H_ + +#include "dart_api.h" /* NOLINT */ + +/** \mainpage Dart Tools Embedding API Reference + * + * This reference describes the Dart embedding API for tools. Tools include + * a debugger, service protocol, and timeline. + * + * NOTE: The APIs described in this file are unstable and subject to change. + * + * This reference is generated from the header include/dart_tools_api.h. + */ + +/* + * ======== + * Debugger + * ======== + */ + +/** + * ILLEGAL_ISOLATE_ID is a number guaranteed never to be associated with a + * valid isolate. + */ +#define ILLEGAL_ISOLATE_ID ILLEGAL_PORT + + +/* + * ======= + * Service + * ======= + */ + +/** + * A service request callback function. + * + * These callbacks, registered by the embedder, are called when the VM receives + * a service request it can't handle and the service request command name + * matches one of the embedder registered handlers. + * + * The return value of the callback indicates whether the response + * should be used as a regular result or an error result. + * Specifically, if the callback returns true, a regular JSON-RPC + * response is built in the following way: + * + * { + * "jsonrpc": "2.0", + * "result": , + * "id": , + * } + * + * If the callback returns false, a JSON-RPC error is built like this: + * + * { + * "jsonrpc": "2.0", + * "error": , + * "id": , + * } + * + * \param method The rpc method name. + * \param param_keys Service requests can have key-value pair parameters. The + * keys and values are flattened and stored in arrays. + * \param param_values The values associated with the keys. + * \param num_params The length of the param_keys and param_values arrays. + * \param user_data The user_data pointer registered with this handler. + * \param result A C string containing a valid JSON object. The returned + * pointer will be freed by the VM by calling free. + * + * \return True if the result is a regular JSON-RPC response, false if the + * result is a JSON-RPC error. + */ +typedef bool (*Dart_ServiceRequestCallback)(const char* method, + const char** param_keys, + const char** param_values, + intptr_t num_params, + void* user_data, + const char** json_object); + +/** + * Register a Dart_ServiceRequestCallback to be called to handle + * requests for the named rpc on a specific isolate. The callback will + * be invoked with the current isolate set to the request target. + * + * \param method The name of the method that this callback is responsible for. + * \param callback The callback to invoke. + * \param user_data The user data passed to the callback. + * + * NOTE: If multiple callbacks with the same name are registered, only + * the last callback registered will be remembered. + */ +DART_EXPORT void Dart_RegisterIsolateServiceRequestCallback( + const char* method, + Dart_ServiceRequestCallback callback, + void* user_data); + +/** + * Register a Dart_ServiceRequestCallback to be called to handle + * requests for the named rpc. The callback will be invoked without a + * current isolate. + * + * \param method The name of the command that this callback is responsible for. + * \param callback The callback to invoke. + * \param user_data The user data passed to the callback. + * + * NOTE: If multiple callbacks with the same name are registered, only + * the last callback registered will be remembered. + */ +DART_EXPORT void Dart_RegisterRootServiceRequestCallback( + const char* method, + Dart_ServiceRequestCallback callback, + void* user_data); + +/** + * Embedder information which can be requested by the VM for internal or + * reporting purposes. + * + * The pointers in this structure are not going to be cached or freed by the VM. + */ + + #define DART_EMBEDDER_INFORMATION_CURRENT_VERSION (0x00000001) + +typedef struct { + int32_t version; + const char* name; // [optional] The name of the embedder + int64_t current_rss; // [optional] the current RSS of the embedder + int64_t max_rss; // [optional] the maximum RSS of the embedder +} Dart_EmbedderInformation; + +/** + * Callback provided by the embedder that is used by the vm to request + * information. + * + * \return Returns a pointer to a Dart_EmbedderInformation structure. + * The embedder keeps the ownership of the structure and any field in it. + * The embedder must ensure that the structure will remain valid until the + * next invokation of the callback. + */ +typedef void (*Dart_EmbedderInformationCallback)( + Dart_EmbedderInformation* info); + +/** + * Register a Dart_ServiceRequestCallback to be called to handle + * requests for the named rpc. The callback will be invoked without a + * current isolate. + * + * \param method The name of the command that this callback is responsible for. + * \param callback The callback to invoke. + * \param user_data The user data passed to the callback. + * + * NOTE: If multiple callbacks with the same name are registered, only + * the last callback registered will be remembered. + */ +DART_EXPORT void Dart_SetEmbedderInformationCallback( + Dart_EmbedderInformationCallback callback); + +/** + * Invoke a vm-service method and wait for its result. + * + * \param request_json The utf8-encoded json-rpc request. + * \param request_json_length The length of the json-rpc request. + * + * \param response_json The returned utf8-encoded json response, must be + * free()ed by caller. + * \param response_json_length The length of the returned json response. + * \param error An optional error, must be free()ed by caller. + * + * \return Whether the call was successfully performed. + * + * NOTE: This method does not need a current isolate and must not have the + * vm-isolate being the current isolate. It must be called after + * Dart_Initialize() and before Dart_Cleanup(). + */ +DART_EXPORT bool Dart_InvokeVMServiceMethod(uint8_t* request_json, + intptr_t request_json_length, + uint8_t** response_json, + intptr_t* response_json_length, + char** error); + +/* + * ======== + * Event Streams + * ======== + */ + +/** + * A callback invoked when the VM service gets a request to listen to + * some stream. + * + * \return Returns true iff the embedder supports the named stream id. + */ +typedef bool (*Dart_ServiceStreamListenCallback)(const char* stream_id); + +/** + * A callback invoked when the VM service gets a request to cancel + * some stream. + */ +typedef void (*Dart_ServiceStreamCancelCallback)(const char* stream_id); + +/** + * Adds VM service stream callbacks. + * + * \param listen_callback A function pointer to a listen callback function. + * A listen callback function should not be already set when this function + * is called. A NULL value removes the existing listen callback function + * if any. + * + * \param cancel_callback A function pointer to a cancel callback function. + * A cancel callback function should not be already set when this function + * is called. A NULL value removes the existing cancel callback function + * if any. + * + * \return Success if the callbacks were added. Otherwise, returns an + * error handle. + */ +DART_EXPORT char* Dart_SetServiceStreamCallbacks( + Dart_ServiceStreamListenCallback listen_callback, + Dart_ServiceStreamCancelCallback cancel_callback); + +/** + * Sends a data event to clients of the VM Service. + * + * A data event is used to pass an array of bytes to subscribed VM + * Service clients. For example, in the standalone embedder, this is + * function used to provide WriteEvents on the Stdout and Stderr + * streams. + * + * If the embedder passes in a stream id for which no client is + * subscribed, then the event is ignored. + * + * \param stream_id The id of the stream on which to post the event. + * + * \param event_kind A string identifying what kind of event this is. + * For example, 'WriteEvent'. + * + * \param bytes A pointer to an array of bytes. + * + * \param bytes_length The length of the byte array. + * + * \return NULL if the arguments are well formed. Otherwise, returns an + * error string. The caller is responsible for freeing the error message. + */ +DART_EXPORT char* Dart_ServiceSendDataEvent(const char* stream_id, + const char* event_kind, + const uint8_t* bytes, + intptr_t bytes_length); + +/** + * Usage statistics for a space/generation at a particular moment in time. + * + * \param used Amount of memory used, in bytes. + * + * \param capacity Memory capacity, in bytes. + * + * \param external External memory, in bytes. + * + * \param collections How many times the garbage collector has run in this + * space. + * + * \param time Cumulative time spent collecting garbage in this space, in + * seconds. + * + * \param avg_collection_period Average time between garbage collector running + * in this space, in milliseconds. + */ +typedef struct { + intptr_t used; + intptr_t capacity; + intptr_t external; + intptr_t collections; + double time; + double avg_collection_period; +} Dart_GCStats; + +/** + * A Garbage Collection event with memory usage statistics. + * + * \param type The event type. Static lifetime. + * + * \param reason The reason for the GC event. Static lifetime. + * + * \param new_space Data for New Space. + * + * \param old_space Data for Old Space. + */ +typedef struct { + const char* type; + const char* reason; + + Dart_IsolateGroupId isolate_group_id; + + Dart_GCStats new_space; + Dart_GCStats old_space; +} Dart_GCEvent; + +/** + * A callback invoked when the VM emits a GC event. + * + * \param event The GC event data. Pointer only valid for the duration of the + * callback. + */ +typedef void (*Dart_GCEventCallback)(Dart_GCEvent* event); + +/** + * Sets the native GC event callback. + * + * \param callback A function pointer to an event handler callback function. + * A NULL value removes the existing listen callback function if any. + */ +DART_EXPORT void Dart_SetGCEventCallback(Dart_GCEventCallback callback); + +/* + * ======== + * Reload support + * ======== + * + * These functions are used to implement reloading in the Dart VM. + * This is an experimental feature, so embedders should be prepared + * for these functions to change. + */ + +/** + * A callback which determines whether the file at some url has been + * modified since some time. If the file cannot be found, true should + * be returned. + */ +typedef bool (*Dart_FileModifiedCallback)(const char* url, int64_t since); + +DART_EXPORT char* Dart_SetFileModifiedCallback( + Dart_FileModifiedCallback file_modified_callback); + +/** + * Returns true if isolate is currently reloading. + */ +DART_EXPORT bool Dart_IsReloading(); + +/* + * ======== + * Timeline + * ======== + */ + +/** + * Enable tracking of specified timeline category. This is operational + * only when systrace timeline functionality is turned on. + * + * \param categories A comma separated list of categories that need to + * be enabled, the categories are + * "all" : All categories + * "API" - Execution of Dart C API functions + * "Compiler" - Execution of Dart JIT compiler + * "CompilerVerbose" - More detailed Execution of Dart JIT compiler + * "Dart" - Execution of Dart code + * "Debugger" - Execution of Dart debugger + * "Embedder" - Execution of Dart embedder code + * "GC" - Execution of Dart Garbage Collector + * "Isolate" - Dart Isolate lifecycle execution + * "VM" - Excution in Dart VM runtime code + * "" - None + * + * When "all" is specified all the categories are enabled. + * When a comma separated list of categories is specified, the categories + * that are specified will be enabled and the rest will be disabled. + * When "" is specified all the categories are disabled. + * The category names are case sensitive. + * eg: Dart_EnableTimelineCategory("all"); + * Dart_EnableTimelineCategory("GC,API,Isolate"); + * Dart_EnableTimelineCategory("GC,Debugger,Dart"); + * + * \return True if the categories were successfully enabled, False otherwise. + */ +DART_EXPORT bool Dart_SetEnabledTimelineCategory(const char* categories); + +/** + * Returns a timestamp in microseconds. This timestamp is suitable for + * passing into the timeline system, and uses the same monotonic clock + * as dart:developer's Timeline.now. + * + * \return A timestamp that can be passed to the timeline system. + */ +DART_EXPORT int64_t Dart_TimelineGetMicros(); + +/** + * Returns a raw timestamp in from the monotonic clock. + * + * \return A raw timestamp from the monotonic clock. + */ +DART_EXPORT int64_t Dart_TimelineGetTicks(); + +/** + * Returns the frequency of the monotonic clock. + * + * \return The frequency of the monotonic clock. + */ +DART_EXPORT int64_t Dart_TimelineGetTicksFrequency(); + +typedef enum { + Dart_Timeline_Event_Begin, // Phase = 'B'. + Dart_Timeline_Event_End, // Phase = 'E'. + Dart_Timeline_Event_Instant, // Phase = 'i'. + Dart_Timeline_Event_Duration, // Phase = 'X'. + Dart_Timeline_Event_Async_Begin, // Phase = 'b'. + Dart_Timeline_Event_Async_End, // Phase = 'e'. + Dart_Timeline_Event_Async_Instant, // Phase = 'n'. + Dart_Timeline_Event_Counter, // Phase = 'C'. + Dart_Timeline_Event_Flow_Begin, // Phase = 's'. + Dart_Timeline_Event_Flow_Step, // Phase = 't'. + Dart_Timeline_Event_Flow_End, // Phase = 'f'. +} Dart_Timeline_Event_Type; + +/** + * Add a timeline event to the embedder stream. + * + * \param label The name of the event. Its lifetime must extend at least until + * Dart_Cleanup. + * \param timestamp0 The first timestamp of the event. + * \param timestamp1_or_async_id The second timestamp of the event or + * the async id. + * \param argument_count The number of argument names and values. + * \param argument_names An array of names of the arguments. The lifetime of the + * names must extend at least until Dart_Cleanup. The array may be reclaimed + * when this call returns. + * \param argument_values An array of values of the arguments. The values and + * the array may be reclaimed when this call returns. + */ +DART_EXPORT void Dart_TimelineEvent(const char* label, + int64_t timestamp0, + int64_t timestamp1_or_async_id, + Dart_Timeline_Event_Type type, + intptr_t argument_count, + const char** argument_names, + const char** argument_values); + +/** + * Associates a name with the current thread. This name will be used to name + * threads in the timeline. Can only be called after a call to Dart_Initialize. + * + * \param name The name of the thread. + */ +DART_EXPORT void Dart_SetThreadName(const char* name); + +/* + * ======= + * Metrics + * ======= + */ + +/** + * Return metrics gathered for the VM and individual isolates. + * + * NOTE: Non-heap metrics are not available in PRODUCT builds of Dart. + * Calling the non-heap metric functions on a PRODUCT build might return invalid metrics. + */ +DART_EXPORT int64_t Dart_VMIsolateCountMetric(); // Counter +DART_EXPORT int64_t Dart_VMCurrentRSSMetric(); // Byte +DART_EXPORT int64_t Dart_VMPeakRSSMetric(); // Byte +DART_EXPORT int64_t +Dart_IsolateGroupHeapOldUsedMetric(Dart_IsolateGroup group); // Byte +DART_EXPORT int64_t +Dart_IsolateGroupHeapOldUsedMaxMetric(Dart_IsolateGroup group); // Byte +DART_EXPORT int64_t +Dart_IsolateGroupHeapOldCapacityMetric(Dart_IsolateGroup group); // Byte +DART_EXPORT int64_t +Dart_IsolateGroupHeapOldCapacityMaxMetric(Dart_IsolateGroup group); // Byte +DART_EXPORT int64_t +Dart_IsolateGroupHeapOldExternalMetric(Dart_IsolateGroup group); // Byte +DART_EXPORT int64_t +Dart_IsolateGroupHeapNewUsedMetric(Dart_IsolateGroup group); // Byte +DART_EXPORT int64_t +Dart_IsolateGroupHeapNewUsedMaxMetric(Dart_IsolateGroup group); // Byte +DART_EXPORT int64_t +Dart_IsolateGroupHeapNewCapacityMetric(Dart_IsolateGroup group); // Byte +DART_EXPORT int64_t +Dart_IsolateGroupHeapNewCapacityMaxMetric(Dart_IsolateGroup group); // Byte +DART_EXPORT int64_t +Dart_IsolateGroupHeapNewExternalMetric(Dart_IsolateGroup group); // Byte +DART_EXPORT int64_t +Dart_IsolateGroupHeapGlobalUsedMetric(Dart_IsolateGroup group); // Byte +DART_EXPORT int64_t +Dart_IsolateGroupHeapGlobalUsedMaxMetric(Dart_IsolateGroup group); // Byte +DART_EXPORT int64_t +Dart_IsolateRunnableLatencyMetric(Dart_Isolate isolate); // Microsecond +DART_EXPORT int64_t +Dart_IsolateRunnableHeapSizeMetric(Dart_Isolate isolate); // Byte + +/* + * ======== + * UserTags + * ======== + */ + +/* + * Gets the current isolate's currently set UserTag instance. + * + * \return The currently set UserTag instance. + */ +DART_EXPORT Dart_Handle Dart_GetCurrentUserTag(); + +/* + * Gets the current isolate's default UserTag instance. + * + * \return The default UserTag with label 'Default' + */ +DART_EXPORT Dart_Handle Dart_GetDefaultUserTag(); + +/* + * Creates a new UserTag instance. + * + * \param label The name of the new UserTag. + * + * \return The newly created UserTag instance or an error handle. + */ +DART_EXPORT Dart_Handle Dart_NewUserTag(const char* label); + +/* + * Updates the current isolate's UserTag to a new value. + * + * \param user_tag The UserTag to be set as the current UserTag. + * + * \return The previously set UserTag instance or an error handle. + */ +DART_EXPORT Dart_Handle Dart_SetCurrentUserTag(Dart_Handle user_tag); + +/* + * Returns the label of a given UserTag instance. + * + * \param user_tag The UserTag from which the label will be retrieved. + * + * \return The UserTag's label. NULL if the user_tag is invalid. The caller is + * responsible for freeing the returned label. + */ +DART_EXPORT DART_WARN_UNUSED_RESULT char* Dart_GetUserTagLabel( + Dart_Handle user_tag); + +#endif // RUNTIME_INCLUDE_DART_TOOLS_API_H_ diff --git a/shared/dart-sdk/include/dart_version.h b/shared/dart-sdk/include/dart_version.h index b3b4924..5f661a5 100644 --- a/shared/dart-sdk/include/dart_version.h +++ b/shared/dart-sdk/include/dart_version.h @@ -1,16 +1,16 @@ -/* - * Copyright (c) 2020, 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. - */ - -#ifndef RUNTIME_INCLUDE_DART_VERSION_H_ -#define RUNTIME_INCLUDE_DART_VERSION_H_ - -// On breaking changes the major version is increased. -// On backwards compatible changes the minor version is increased. -// The versioning covers the symbols exposed in dart_api_dl.h -#define DART_API_DL_MAJOR_VERSION 2 -#define DART_API_DL_MINOR_VERSION 0 - -#endif /* RUNTIME_INCLUDE_DART_VERSION_H_ */ /* NOLINT */ +/* + * Copyright (c) 2020, 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. + */ + +#ifndef RUNTIME_INCLUDE_DART_VERSION_H_ +#define RUNTIME_INCLUDE_DART_VERSION_H_ + +// On breaking changes the major version is increased. +// On backwards compatible changes the minor version is increased. +// The versioning covers the symbols exposed in dart_api_dl.h +#define DART_API_DL_MAJOR_VERSION 2 +#define DART_API_DL_MINOR_VERSION 0 + +#endif /* RUNTIME_INCLUDE_DART_VERSION_H_ */ /* NOLINT */ diff --git a/shared/dart-sdk/include/internal/dart_api_dl_impl.h b/shared/dart-sdk/include/internal/dart_api_dl_impl.h index e4a5689..8eb6cde 100644 --- a/shared/dart-sdk/include/internal/dart_api_dl_impl.h +++ b/shared/dart-sdk/include/internal/dart_api_dl_impl.h @@ -1,21 +1,21 @@ -/* - * Copyright (c) 2020, 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. - */ - -#ifndef RUNTIME_INCLUDE_INTERNAL_DART_API_DL_IMPL_H_ -#define RUNTIME_INCLUDE_INTERNAL_DART_API_DL_IMPL_H_ - -typedef struct { - const char* name; - void (*function)(void); -} DartApiEntry; - -typedef struct { - const int major; - const int minor; - const DartApiEntry* const functions; -} DartApi; - -#endif /* RUNTIME_INCLUDE_INTERNAL_DART_API_DL_IMPL_H_ */ /* NOLINT */ +/* + * Copyright (c) 2020, 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. + */ + +#ifndef RUNTIME_INCLUDE_INTERNAL_DART_API_DL_IMPL_H_ +#define RUNTIME_INCLUDE_INTERNAL_DART_API_DL_IMPL_H_ + +typedef struct { + const char* name; + void (*function)(void); +} DartApiEntry; + +typedef struct { + const int major; + const int minor; + const DartApiEntry* const functions; +} DartApi; + +#endif /* RUNTIME_INCLUDE_INTERNAL_DART_API_DL_IMPL_H_ */ /* NOLINT */ diff --git a/shared/dart-sdk/revision b/shared/dart-sdk/revision index b93a957..ae3d8c7 100644 --- a/shared/dart-sdk/revision +++ b/shared/dart-sdk/revision @@ -1 +1 @@ -c42a304ce78f37b717cc055abc503023871a7013 +c42a304ce78f37b717cc055abc503023871a7013 diff --git a/shared/dart-sdk/version b/shared/dart-sdk/version index a36e9b0..062f0d6 100644 --- a/shared/dart-sdk/version +++ b/shared/dart-sdk/version @@ -1 +1 @@ -2.18.1 +2.18.1 diff --git a/shared/hid_listener_shared.h b/shared/hid_listener_shared.h index df748ae..804042a 100644 --- a/shared/hid_listener_shared.h +++ b/shared/hid_listener_shared.h @@ -1,53 +1,55 @@ -#pragma once -#include - -#include "dart-sdk/include/dart_native_api.h" -#include "dart-sdk/include/dart_api_dl.h" - -#ifdef _MSC_VER -#define PLUGIN_DLLEXPORT __declspec(dllexport) -#define PLUGIN_DLLIMPORT __declspec(dllimport) -#else - -#ifdef __cplusplus -#define DLLEXPORT [[gnu::dllexport]] -#define DLLIMPORT [[gnu::dllimport]] -#else -#define DLLEXPORT __attribute__((visibility("default"))) -#define DLLIMPORT -#endif - -#define PLUGIN_DLLEXPORT DLLEXPORT __attribute__((used)) -#define PLUGIN_DLLIMPORT DLLIMPORT __attribute__((used)) - -#endif - -#ifndef __APPLE__ -#ifndef FLUTTER_PLUGIN_EXPORT -#ifdef FLUTTER_PLUGIN_IMPL -#define FLUTTER_PLUGIN_EXPORT PLUGIN_DLLEXPORT -#else -#define FLUTTER_PLUGIN_EXPORT PLUGIN_DLLIMPORT -#endif -#endif -#else -#define FLUTTER_PLUGIN_EXPORT -#endif - -enum MouseEventType -{ - LeftButtonDown, - LeftButtonUp, - RightButtonDown, - RightButtonUp, - MouseMove, - MouseWheel, - MouseHorizontalWheel -}; - -struct MouseEvent { - enum MouseEventType eventType; - double x; - double y; - int64_t wheelDelta; -}; +#pragma once +#include + +#include "dart-sdk/include/dart_native_api.h" +#include "dart-sdk/include/dart_api_dl.h" + +#ifdef _MSC_VER +#define PLUGIN_DLLEXPORT __declspec(dllexport) +#define PLUGIN_DLLIMPORT __declspec(dllimport) +#else + +#ifdef __cplusplus +#define DLLEXPORT [[gnu::dllexport]] +#define DLLIMPORT [[gnu::dllimport]] +#else +#define DLLEXPORT __attribute__((visibility("default"))) +#define DLLIMPORT +#endif + +#define PLUGIN_DLLEXPORT DLLEXPORT __attribute__((used)) +#define PLUGIN_DLLIMPORT DLLIMPORT __attribute__((used)) + +#endif + +#ifndef __APPLE__ +#ifndef FLUTTER_PLUGIN_EXPORT +#ifdef FLUTTER_PLUGIN_IMPL +#define FLUTTER_PLUGIN_EXPORT PLUGIN_DLLEXPORT +#else +#define FLUTTER_PLUGIN_EXPORT PLUGIN_DLLIMPORT +#endif +#endif +#else +#define FLUTTER_PLUGIN_EXPORT +#endif + +enum MouseEventType +{ + LeftButtonDown, + LeftButtonUp, + MiddleButtonDown, + MiddleButtonUp, + RightButtonDown, + RightButtonUp, + MouseMove, + MouseWheel, + MouseHorizontalWheel +}; + +struct MouseEvent { + enum MouseEventType eventType; + double x; + double y; + int64_t wheelDelta; +}; diff --git a/shared/module/module.modulemap b/shared/module/module.modulemap index 7f0b11e..b7b04fc 100644 --- a/shared/module/module.modulemap +++ b/shared/module/module.modulemap @@ -1,5 +1,5 @@ -module HidListenerShared { - header "../hid_listener_shared.h" - header "../dart-sdk/include/dart_api_dl.c" - export * -} +module HidListenerShared { + header "../hid_listener_shared.h" + header "../dart-sdk/include/dart_api_dl.c" + export * +} diff --git a/windows/.gitignore b/windows/.gitignore index b3eb2be..808064a 100644 --- a/windows/.gitignore +++ b/windows/.gitignore @@ -1,17 +1,17 @@ -flutter/ - -# Visual Studio user-specific files. -*.suo -*.user -*.userosscache -*.sln.docstates - -# Visual Studio build-related files. -x64/ -x86/ - -# Visual Studio cache files -# files ending in .cache can be ignored -*.[Cc]ache -# but keep track of directories ending in .cache -!*.[Cc]ache/ +flutter/ + +# Visual Studio user-specific files. +*.suo +*.user +*.userosscache +*.sln.docstates + +# Visual Studio build-related files. +x64/ +x86/ + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ diff --git a/windows/CMakeLists.txt b/windows/CMakeLists.txt index 5d07284..4f89a5f 100644 --- a/windows/CMakeLists.txt +++ b/windows/CMakeLists.txt @@ -1,64 +1,64 @@ -# The Flutter tooling requires that developers have a version of Visual Studio -# installed that includes CMake 3.14 or later. 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.14) - -# Project-level configuration. -set(PROJECT_NAME "hid_listener") -project(${PROJECT_NAME} LANGUAGES CXX) - -# This value is used when generating builds using this plugin, so it must -# not be changed -set(PLUGIN_NAME "hid_listener_plugin") - -add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/../shared" shared) - -# Any new source files that you add to the plugin should be added here. -list(APPEND PLUGIN_SOURCES - "hid_listener_plugin.cpp" - "hid_listener_plugin.h" -) - -get_filename_component(SHARED_INC ${CMAKE_CURRENT_SOURCE_DIR}/../shared ABSOLUTE) -# Define the plugin library target. Its name must not be changed (see comment -# on PLUGIN_NAME above). -add_library(${PLUGIN_NAME} SHARED - "include/hid_listener/hid_listener_plugin_windows.h" - "hid_listener_plugin_windows.cpp" - "${SHARED_INC}/dart-sdk/include/dart_api_dl.h" - "${SHARED_INC}/dart-sdk/include/dart_api_dl.c" - ${PLUGIN_SOURCES} -) - -set_target_properties(${PLUGIN_NAME} PROPERTIES OUTPUT_NAME "hid_listener") - -# Apply a standard set of build settings that are configured in the -# application-level CMakeLists.txt. This can be removed for plugins that want -# full control over build settings. -# apply_standard_settings(${PLUGIN_NAME}) - -# Symbols are hidden by default to reduce the chance of accidental conflicts -# between plugins. This should not be removed; any symbols that should be -# exported should be explicitly exported with the FLUTTER_PLUGIN_EXPORT macro. -set_target_properties(${PLUGIN_NAME} PROPERTIES - CXX_VISIBILITY_PRESET hidden) -target_compile_definitions(${PLUGIN_NAME} PRIVATE FLUTTER_PLUGIN_IMPL) - -# Source include directories and library dependencies. Add any plugin-specific -# dependencies here. - -include_directories(${SHARED_INC}) -include_directories(${CMAKE_CURRENT_SOURCE_DIR}) -target_include_directories(${PLUGIN_NAME} INTERFACE - "${CMAKE_CURRENT_SOURCE_DIR}/include" - ${SHARED_INC}) -target_link_libraries(${PLUGIN_NAME} PRIVATE flutter flutter_wrapper_plugin) - -# List of absolute paths to libraries that should be bundled with the plugin. -# This list could contain prebuilt libraries, or libraries created by an -# external build triggered from this build file. -set(hid_listener_bundled_libraries - "" - PARENT_SCOPE -) +# The Flutter tooling requires that developers have a version of Visual Studio +# installed that includes CMake 3.14 or later. 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.14) + +# Project-level configuration. +set(PROJECT_NAME "hid_listener") +project(${PROJECT_NAME} LANGUAGES CXX) + +# This value is used when generating builds using this plugin, so it must +# not be changed +set(PLUGIN_NAME "hid_listener_plugin") + +add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/../shared" shared) + +# Any new source files that you add to the plugin should be added here. +list(APPEND PLUGIN_SOURCES + "hid_listener_plugin.cpp" + "hid_listener_plugin.h" +) + +get_filename_component(SHARED_INC ${CMAKE_CURRENT_SOURCE_DIR}/../shared ABSOLUTE) +# Define the plugin library target. Its name must not be changed (see comment +# on PLUGIN_NAME above). +add_library(${PLUGIN_NAME} SHARED + "include/hid_listener/hid_listener_plugin_windows.h" + "hid_listener_plugin_windows.cpp" + "${SHARED_INC}/dart-sdk/include/dart_api_dl.h" + "${SHARED_INC}/dart-sdk/include/dart_api_dl.c" + ${PLUGIN_SOURCES} +) + +set_target_properties(${PLUGIN_NAME} PROPERTIES OUTPUT_NAME "hid_listener") + +# Apply a standard set of build settings that are configured in the +# application-level CMakeLists.txt. This can be removed for plugins that want +# full control over build settings. +# apply_standard_settings(${PLUGIN_NAME}) + +# Symbols are hidden by default to reduce the chance of accidental conflicts +# between plugins. This should not be removed; any symbols that should be +# exported should be explicitly exported with the FLUTTER_PLUGIN_EXPORT macro. +set_target_properties(${PLUGIN_NAME} PROPERTIES + CXX_VISIBILITY_PRESET hidden) +target_compile_definitions(${PLUGIN_NAME} PRIVATE FLUTTER_PLUGIN_IMPL) + +# Source include directories and library dependencies. Add any plugin-specific +# dependencies here. + +include_directories(${SHARED_INC}) +include_directories(${CMAKE_CURRENT_SOURCE_DIR}) +target_include_directories(${PLUGIN_NAME} INTERFACE + "${CMAKE_CURRENT_SOURCE_DIR}/include" + ${SHARED_INC}) +target_link_libraries(${PLUGIN_NAME} PRIVATE flutter flutter_wrapper_plugin) + +# List of absolute paths to libraries that should be bundled with the plugin. +# This list could contain prebuilt libraries, or libraries created by an +# external build triggered from this build file. +set(hid_listener_bundled_libraries + "" + PARENT_SCOPE +) diff --git a/windows/hid_listener_plugin.cpp b/windows/hid_listener_plugin.cpp index e7141a8..7d6ee8a 100644 --- a/windows/hid_listener_plugin.cpp +++ b/windows/hid_listener_plugin.cpp @@ -1,59 +1,59 @@ -#include "hid_listener_plugin.h" - -// This must be included before many other Windows headers. -#include - -// For getPlatformVersion; remove unless needed for your plugin implementation. -#include - -#include -#include -#include - -#include -#include - -namespace hid_listener { - -// static -void HidListenerPlugin::RegisterWithRegistrar( - flutter::PluginRegistrarWindows *registrar) { - auto channel = - std::make_unique>( - registrar->messenger(), "hid_listener", - &flutter::StandardMethodCodec::GetInstance()); - - auto plugin = std::make_unique(); - - channel->SetMethodCallHandler( - [plugin_pointer = plugin.get()](const auto &call, auto result) { - plugin_pointer->HandleMethodCall(call, std::move(result)); - }); - - registrar->AddPlugin(std::move(plugin)); -} - -HidListenerPlugin::HidListenerPlugin() {} - -HidListenerPlugin::~HidListenerPlugin() {} - -void HidListenerPlugin::HandleMethodCall( - const flutter::MethodCall &method_call, - std::unique_ptr> result) { - if (method_call.method_name().compare("getPlatformVersion") == 0) { - std::ostringstream version_stream; - version_stream << "Windows "; - if (IsWindows10OrGreater()) { - version_stream << "10+"; - } else if (IsWindows8OrGreater()) { - version_stream << "8"; - } else if (IsWindows7OrGreater()) { - version_stream << "7"; - } - result->Success(flutter::EncodableValue(version_stream.str())); - } else { - result->NotImplemented(); - } -} - -} // namespace hid_listener +#include "hid_listener_plugin.h" + +// This must be included before many other Windows headers. +#include + +// For getPlatformVersion; remove unless needed for your plugin implementation. +#include + +#include +#include +#include + +#include +#include + +namespace hid_listener { + +// static +void HidListenerPlugin::RegisterWithRegistrar( + flutter::PluginRegistrarWindows *registrar) { + auto channel = + std::make_unique>( + registrar->messenger(), "hid_listener", + &flutter::StandardMethodCodec::GetInstance()); + + auto plugin = std::make_unique(); + + channel->SetMethodCallHandler( + [plugin_pointer = plugin.get()](const auto &call, auto result) { + plugin_pointer->HandleMethodCall(call, std::move(result)); + }); + + registrar->AddPlugin(std::move(plugin)); +} + +HidListenerPlugin::HidListenerPlugin() {} + +HidListenerPlugin::~HidListenerPlugin() {} + +void HidListenerPlugin::HandleMethodCall( + const flutter::MethodCall &method_call, + std::unique_ptr> result) { + if (method_call.method_name().compare("getPlatformVersion") == 0) { + std::ostringstream version_stream; + version_stream << "Windows "; + if (IsWindows10OrGreater()) { + version_stream << "10+"; + } else if (IsWindows8OrGreater()) { + version_stream << "8"; + } else if (IsWindows7OrGreater()) { + version_stream << "7"; + } + result->Success(flutter::EncodableValue(version_stream.str())); + } else { + result->NotImplemented(); + } +} + +} // namespace hid_listener diff --git a/windows/hid_listener_plugin.h b/windows/hid_listener_plugin.h index da881c3..c802836 100644 --- a/windows/hid_listener_plugin.h +++ b/windows/hid_listener_plugin.h @@ -1,32 +1,32 @@ -#ifndef FLUTTER_PLUGIN_HID_LISTENER_PLUGIN_H_ -#define FLUTTER_PLUGIN_HID_LISTENER_PLUGIN_H_ - -#include -#include - -#include - -namespace hid_listener { - -class HidListenerPlugin : public flutter::Plugin { - public: - static void RegisterWithRegistrar(flutter::PluginRegistrarWindows *registrar); - - HidListenerPlugin(); - - virtual ~HidListenerPlugin(); - - // Disallow copy and assign. - HidListenerPlugin(const HidListenerPlugin&) = delete; - HidListenerPlugin& operator=(const HidListenerPlugin&) = delete; - - private: - // Called when a method is called on this plugin's channel from Dart. - void HandleMethodCall( - const flutter::MethodCall &method_call, - std::unique_ptr> result); -}; - -} // namespace hid_listener - -#endif // FLUTTER_PLUGIN_HID_LISTENER_PLUGIN_H_ +#ifndef FLUTTER_PLUGIN_HID_LISTENER_PLUGIN_H_ +#define FLUTTER_PLUGIN_HID_LISTENER_PLUGIN_H_ + +#include +#include + +#include + +namespace hid_listener { + +class HidListenerPlugin : public flutter::Plugin { + public: + static void RegisterWithRegistrar(flutter::PluginRegistrarWindows *registrar); + + HidListenerPlugin(); + + virtual ~HidListenerPlugin(); + + // Disallow copy and assign. + HidListenerPlugin(const HidListenerPlugin&) = delete; + HidListenerPlugin& operator=(const HidListenerPlugin&) = delete; + + private: + // Called when a method is called on this plugin's channel from Dart. + void HandleMethodCall( + const flutter::MethodCall &method_call, + std::unique_ptr> result); +}; + +} // namespace hid_listener + +#endif // FLUTTER_PLUGIN_HID_LISTENER_PLUGIN_H_ diff --git a/windows/hid_listener_plugin_windows.cpp b/windows/hid_listener_plugin_windows.cpp index 4d11f4a..6702370 100644 --- a/windows/hid_listener_plugin_windows.cpp +++ b/windows/hid_listener_plugin_windows.cpp @@ -1,126 +1,130 @@ -#include "include/hid_listener/hid_listener_plugin_windows.h" - -#include -#include -#include -#include -#include - -#include -#include "hid_listener_plugin.h" - -static Dart_Port keyboardListenerPort = 0; -static Dart_Port mouseListenerPort = 0; - -void NotifyDart(Dart_Port port, const void* work) { - const intptr_t workAddr = reinterpret_cast(work); - - Dart_CObject cObject; - cObject.type = Dart_CObject_kInt64; - cObject.value.as_int64 = workAddr; - - Dart_PostCObject_DL(port, &cObject); -} - -static LRESULT KeyboardProc(int nCode, WPARAM wParam, LPARAM lParam) { - if (nCode < 0 || keyboardListenerPort == 0 || Dart_PostCObject_DL == nullptr) return CallNextHookEx(NULL, nCode, wParam, lParam); - - WindowsKeyboardEventType eventType = WindowsKeyboardEventType::WKE_KeyDown; - - if (wParam == WM_SYSKEYUP || wParam == WM_KEYUP) { - eventType = WindowsKeyboardEventType::WKE_KeyUp; - } - - KBDLLHOOKSTRUCT* info = reinterpret_cast(lParam); - - WindowsKeyboardEvent* keyboardEvent = new WindowsKeyboardEvent; - keyboardEvent->eventType = eventType; - keyboardEvent->vkCode = info->vkCode; - keyboardEvent->scanCode = info->scanCode; - - NotifyDart(keyboardListenerPort, keyboardEvent); - - return CallNextHookEx(NULL, nCode, wParam, lParam); -} - -static LRESULT MouseProc(int nCode, WPARAM wParam, LPARAM lParam) { - if (nCode < 0 || mouseListenerPort == 0 || Dart_PostCObject_DL == nullptr) - return CallNextHookEx(NULL, nCode, wParam, lParam); - - MouseEventType eventType = MouseEventType::LeftButtonDown; - - if (wParam == WM_LBUTTONDOWN) { - eventType = MouseEventType::LeftButtonDown; - } else if (wParam == WM_LBUTTONUP) { - eventType = MouseEventType::LeftButtonUp; - } else if (wParam == WM_RBUTTONDOWN) { - eventType = MouseEventType::RightButtonDown; - } else if (wParam == WM_RBUTTONUP) { - eventType = MouseEventType::RightButtonUp; - } else if (wParam == WM_MOUSEMOVE) { - eventType = MouseEventType::MouseMove; - } else if (wParam == WM_MOUSEWHEEL) { - eventType = MouseEventType::MouseWheel; - } else if (wParam == WM_MOUSEHWHEEL) { - eventType = MouseEventType::MouseHorizontalWheel; - } - - MSLLHOOKSTRUCT* info = reinterpret_cast(lParam); - - MouseEvent *mouseEvent = new MouseEvent; - mouseEvent->eventType = eventType; - mouseEvent->x = (double)info->pt.x; - mouseEvent->y = (double)info->pt.y; - mouseEvent->wheelDelta = HIWORD(info->mouseData); - - NotifyDart(mouseListenerPort, mouseEvent); - - return CallNextHookEx(NULL, nCode, wParam, lParam); -} - -#if defined(__cplusplus) - -HidListener* HidListener::listenerInstance = nullptr; - -HidListener::HidListener() { - m_keyboardHook = SetWindowsHookEx(WH_KEYBOARD_LL, KeyboardProc, NULL, NULL); - m_mouseHook = SetWindowsHookEx(WH_MOUSE_LL, MouseProc, NULL, NULL); - - listenerInstance = this; -} - -HidListener::~HidListener() { - UnhookWindowsHookEx(m_keyboardHook); - UnhookWindowsHookEx(m_mouseHook); - - listenerInstance = nullptr; -} - -#endif - -bool SetKeyboardListener(Dart_Port port) { - if(HidListener::Get() == nullptr) return false; - keyboardListenerPort = port; - return true; -} - -bool SetMouseListener(Dart_Port port) { - if(HidListener::Get() == nullptr) return false; - mouseListenerPort = port; - return true; -} - -void InitializeDartAPI(void* data) { - Dart_InitializeApiDL(data); -} - -bool InitializeListeners() { - return true; -} - -void HidListenerPluginWindowsRegisterWithRegistrar( - FlutterDesktopPluginRegistrarRef registrar) { - hid_listener::HidListenerPlugin::RegisterWithRegistrar( - flutter::PluginRegistrarManager::GetInstance() - ->GetRegistrar(registrar)); -} +#include "include/hid_listener/hid_listener_plugin_windows.h" + +#include +#include +#include +#include +#include + +#include +#include "hid_listener_plugin.h" + +static Dart_Port keyboardListenerPort = 0; +static Dart_Port mouseListenerPort = 0; + +void NotifyDart(Dart_Port port, const void* work) { + const intptr_t workAddr = reinterpret_cast(work); + + Dart_CObject cObject; + cObject.type = Dart_CObject_kInt64; + cObject.value.as_int64 = workAddr; + + Dart_PostCObject_DL(port, &cObject); +} + +static LRESULT KeyboardProc(int nCode, WPARAM wParam, LPARAM lParam) { + if (nCode < 0 || keyboardListenerPort == 0 || Dart_PostCObject_DL == nullptr) return CallNextHookEx(NULL, nCode, wParam, lParam); + + WindowsKeyboardEventType eventType = WindowsKeyboardEventType::WKE_KeyDown; + + if (wParam == WM_SYSKEYUP || wParam == WM_KEYUP) { + eventType = WindowsKeyboardEventType::WKE_KeyUp; + } + + KBDLLHOOKSTRUCT* info = reinterpret_cast(lParam); + + WindowsKeyboardEvent* keyboardEvent = new WindowsKeyboardEvent; + keyboardEvent->eventType = eventType; + keyboardEvent->vkCode = info->vkCode; + keyboardEvent->scanCode = info->scanCode; + + NotifyDart(keyboardListenerPort, keyboardEvent); + + return CallNextHookEx(NULL, nCode, wParam, lParam); +} + +static LRESULT MouseProc(int nCode, WPARAM wParam, LPARAM lParam) { + if (nCode < 0 || mouseListenerPort == 0 || Dart_PostCObject_DL == nullptr) + return CallNextHookEx(NULL, nCode, wParam, lParam); + + MouseEventType eventType = MouseEventType::LeftButtonDown; + + if (wParam == WM_LBUTTONDOWN) { + eventType = MouseEventType::LeftButtonDown; + } else if (wParam == WM_LBUTTONUP) { + eventType = MouseEventType::LeftButtonUp; + } else if (wParam == WM_RBUTTONDOWN) { + eventType = MouseEventType::RightButtonDown; + } else if (wParam == WM_RBUTTONUP) { + eventType = MouseEventType::RightButtonUp; + } else if (wParam == WM_MOUSEMOVE) { + eventType = MouseEventType::MouseMove; + } else if (wParam == WM_MOUSEWHEEL) { + eventType = MouseEventType::MouseWheel; + } else if (wParam == WM_MOUSEHWHEEL) { + eventType = MouseEventType::MouseHorizontalWheel; + } else if (wParam == WM_MBUTTONUP) { + eventType = MouseEventType::MiddleButtonUp; + } else if (wParam == WM_MBUTTONDOWN) { + eventType = MouseEventType::MiddleButtonDown; + } + + MSLLHOOKSTRUCT* info = reinterpret_cast(lParam); + + MouseEvent *mouseEvent = new MouseEvent; + mouseEvent->eventType = eventType; + mouseEvent->x = (double)info->pt.x; + mouseEvent->y = (double)info->pt.y; + mouseEvent->wheelDelta = HIWORD(info->mouseData); + + NotifyDart(mouseListenerPort, mouseEvent); + + return CallNextHookEx(NULL, nCode, wParam, lParam); +} + +#if defined(__cplusplus) + +HidListener* HidListener::listenerInstance = nullptr; + +HidListener::HidListener() { + m_keyboardHook = SetWindowsHookEx(WH_KEYBOARD_LL, KeyboardProc, NULL, NULL); + m_mouseHook = SetWindowsHookEx(WH_MOUSE_LL, MouseProc, NULL, NULL); + + listenerInstance = this; +} + +HidListener::~HidListener() { + UnhookWindowsHookEx(m_keyboardHook); + UnhookWindowsHookEx(m_mouseHook); + + listenerInstance = nullptr; +} + +#endif + +bool SetKeyboardListener(Dart_Port port) { + if(HidListener::Get() == nullptr) return false; + keyboardListenerPort = port; + return true; +} + +bool SetMouseListener(Dart_Port port) { + if(HidListener::Get() == nullptr) return false; + mouseListenerPort = port; + return true; +} + +void InitializeDartAPI(void* data) { + Dart_InitializeApiDL(data); +} + +bool InitializeListeners() { + return true; +} + +void HidListenerPluginWindowsRegisterWithRegistrar( + FlutterDesktopPluginRegistrarRef registrar) { + hid_listener::HidListenerPlugin::RegisterWithRegistrar( + flutter::PluginRegistrarManager::GetInstance() + ->GetRegistrar(registrar)); +} diff --git a/windows/hid_listener_windows.h b/windows/hid_listener_windows.h index 01dda92..a4a5deb 100644 --- a/windows/hid_listener_windows.h +++ b/windows/hid_listener_windows.h @@ -1,27 +1,27 @@ -#pragma once -#include -#include - -enum WindowsKeyboardEventType -{ - WKE_KeyUp, - WKE_KeyDown -}; - -struct WindowsKeyboardEvent { - enum WindowsKeyboardEventType eventType; - uint32_t vkCode; - uint32_t scanCode; -}; - -#if defined(__cplusplus) -extern "C" -{ -#endif - FLUTTER_PLUGIN_EXPORT bool SetKeyboardListener(Dart_Port port); - FLUTTER_PLUGIN_EXPORT bool SetMouseListener(Dart_Port port); - FLUTTER_PLUGIN_EXPORT void InitializeDartAPI(void* data); - FLUTTER_PLUGIN_EXPORT bool InitializeListeners(); -#if defined(__cplusplus) -} +#pragma once +#include +#include + +enum WindowsKeyboardEventType +{ + WKE_KeyUp, + WKE_KeyDown +}; + +struct WindowsKeyboardEvent { + enum WindowsKeyboardEventType eventType; + uint32_t vkCode; + uint32_t scanCode; +}; + +#if defined(__cplusplus) +extern "C" +{ +#endif + FLUTTER_PLUGIN_EXPORT bool SetKeyboardListener(Dart_Port port); + FLUTTER_PLUGIN_EXPORT bool SetMouseListener(Dart_Port port); + FLUTTER_PLUGIN_EXPORT void InitializeDartAPI(void* data); + FLUTTER_PLUGIN_EXPORT bool InitializeListeners(); +#if defined(__cplusplus) +} #endif \ No newline at end of file diff --git a/windows/include/hid_listener/hid_listener_plugin_windows.h b/windows/include/hid_listener/hid_listener_plugin_windows.h index e88ff50..491ee33 100644 --- a/windows/include/hid_listener/hid_listener_plugin_windows.h +++ b/windows/include/hid_listener/hid_listener_plugin_windows.h @@ -1,37 +1,37 @@ -#ifndef FLUTTER_PLUGIN_HID_LISTENER_PLUGIN_C_API_H_ -#define FLUTTER_PLUGIN_HID_LISTENER_PLUGIN_C_API_H_ - -#include -#include - -#if defined(__cplusplus) -extern "C" -{ -#endif - -#if defined(__cplusplus) -#include - class FLUTTER_PLUGIN_EXPORT HidListener - { - public: - HidListener(); - ~HidListener(); - - static HidListener* Get() { return HidListener::listenerInstance; } - - private: - HHOOK m_keyboardHook; - HHOOK m_mouseHook; - - static HidListener* listenerInstance; - }; -#endif - - FLUTTER_PLUGIN_EXPORT void HidListenerPluginWindowsRegisterWithRegistrar( - FlutterDesktopPluginRegistrarRef registrar); - -#if defined(__cplusplus) -} // extern "C" -#endif - -#endif // FLUTTER_PLUGIN_HID_LISTENER_PLUGIN_C_API_H_ +#ifndef FLUTTER_PLUGIN_HID_LISTENER_PLUGIN_C_API_H_ +#define FLUTTER_PLUGIN_HID_LISTENER_PLUGIN_C_API_H_ + +#include +#include + +#if defined(__cplusplus) +extern "C" +{ +#endif + +#if defined(__cplusplus) +#include + class FLUTTER_PLUGIN_EXPORT HidListener + { + public: + HidListener(); + ~HidListener(); + + static HidListener* Get() { return HidListener::listenerInstance; } + + private: + HHOOK m_keyboardHook; + HHOOK m_mouseHook; + + static HidListener* listenerInstance; + }; +#endif + + FLUTTER_PLUGIN_EXPORT void HidListenerPluginWindowsRegisterWithRegistrar( + FlutterDesktopPluginRegistrarRef registrar); + +#if defined(__cplusplus) +} // extern "C" +#endif + +#endif // FLUTTER_PLUGIN_HID_LISTENER_PLUGIN_C_API_H_